/* Forms & Inputs */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 14px;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Field-level help icon: a small "?" badge next to a form-label that reveals
   a short explanation on hover/focus/tap. Use with .form-label-help on the
   label so the icon sits inline at the end of the label text. */
.form-label-help {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.field-help {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    cursor: help;
}

.field-help:hover,
.field-help:focus,
.field-help.active {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
    outline: none;
}

.field-help-tip {
    display: none;
    position: absolute;
    z-index: 40;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.45;
    text-align: left;
    white-space: normal;
    padding: 8px 10px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.field-help:hover .field-help-tip,
.field-help:focus .field-help-tip,
.field-help.active .field-help-tip {
    display: block;
}

/* A field beside another one in a row shrinks instead of running out of its column. */
[class*="u-d-flex"] > .form-control {
    min-width: 0;
}
