/*
 * Signup progress, navigation, phone field, and interests.
 */

/* Progress indicators */

.mls-progress {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 22px;
}

.mls-progress-step {
    display: flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    font-weight: 700;
}

.mls-progress-step.active {
    background: var(--mls-primary);
    color: #ffffff;
}

/* Steps */

.mls-step {
    margin-bottom: 10px;
}

.mls-signup-form .mls-step[hidden],
#mls-signup-form .mls-step[hidden] {
    display: none !important;
}

.mls-signup-form .mls-step:not([hidden]) {
    display: block;
}

/* Navigation */

.mls-next-button,
.mls-back-button,
.mls-finish-button {
    display: inline-block;
    width: auto !important;
    margin: 0 8px 0 0 !important;
    padding: 10px 18px !important;
    border: 0;
    border-radius: 10px;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.mls-next-button,
.mls-finish-button {
    background: var(--mls-primary) !important;
}

.mls-back-button {
    background: #475569 !important;
}

.mls-next-button:hover,
.mls-back-button:hover,
.mls-finish-button:hover {
    filter: brightness(0.9);
}

#mls-signup-form .mls-step-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

#mls-signup-form .mls-step-actions-end {
    justify-content: flex-end;
}

#mls-signup-form .mls-step-actions button {
    width: auto !important;
    min-width: 120px;
    margin: 0 !important;
}

.mls-optional-note {
    color: var(--mls-muted);
    font-size: 13px;
    text-align: center;
}

/* Phone number */

.mls-phone-field {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
}

.mls-phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-right: 1px solid var(--mls-border);
    background: #f1f5f9;
    color: #475569;
    font-weight: 700;
}

.mls-phone-field input {
    flex: 1;
    min-width: 0;
    padding: 11px 12px;
    box-sizing: border-box;
    border: 0;
    outline: 0;
    color: var(--mls-text);
}

/* Override shared input borders inside the combined phone field. */
.mls-form .mls-phone-field input[type="tel"] {
    border: 0;
    border-radius: 0;
    background: transparent;
}

/* Interest checkboxes */

.mls-interest-fieldset {
    margin: 0 0 16px;
    padding: 16px;
    border: 1px solid var(--mls-border);
    border-radius: 12px;
}

.mls-interest-fieldset legend {
    padding: 0 6px;
    color: var(--mls-text);
    font-weight: 700;
}

.mls-interest-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.mls-interest-option {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--mls-text);
    font-weight: 500;
    cursor: pointer;
}

/* Override the generic form-label display rule. */
.mls-form label.mls-interest-option,
.mls-profile-edit-form label.mls-interest-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.mls-interest-option input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--mls-primary);
}