/* Setup wizard shown in savitarna until the parent's data is complete.
   The shell (.user-account / .user-account-content) supplies background, padding and
   typography - only the wizard specifics live here. */

.onboarding {
    max-width: 720px;
}

/* Welcome text above the form: reads as guidance rather than as a form label */
.onboarding-intro {
    margin: 12px 0 24px;
    padding: 16px 20px;
    background: var(--grey6, #f4f5f6);
    border-left: 4px solid var(--green1, #00693e);
    border-radius: 4px;
}

.onboarding-intro p {
    margin: 0;
}

.onboarding-intro p + p {
    margin-top: 8px;
}

.onboarding-form-title {
    margin-bottom: 4px;
}

.onboarding-form {
    margin-top: 8px;
}

/* JS reserves the tallest step's height here, so stepping back and forth cannot shift
   the page even when the steps hold a different number of rows */
.onboarding-steps {
    display: block;
}

.onboarding-step {
    display: none;
}

.onboarding-step.active {
    display: block;
}

.onboarding-step-count {
    display: block;
    margin-bottom: 4px;
    font-weight: 300;
    color: var(--grey1);
    text-transform: uppercase;
}

.onboarding-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.onboarding-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.onboarding-label {
    font-weight: 300;
    color: var(--grey1);
}

.onboarding-field .profile-input {
    width: 100%;
    background: var(--white1);
}

.onboarding-field select.profile-input {
    appearance: none;
    height: 50px;
    cursor: pointer;
}

.onboarding-field input:disabled {
    background: var(--grey6);
    border-color: var(--grey5);
    cursor: not-allowed;
}

.onboarding-child {
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid var(--grey5);
}

.onboarding-child:first-of-type {
    padding-top: 16px;
    margin-top: 16px;
}

.onboarding-child-name {
    color: var(--grey2);
}

.onboarding-child-name span {
    margin-left: 8px;
    font-weight: 300;
    color: var(--grey1);
}

/* message under the form, same look as the other account forms */
.onboarding-message {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    min-height: 18px;
    color: var(--grey2);
}

.onboarding-message.red::before,
.onboarding-message.green::before {
    content: "";
    height: 18px;
    width: 18px;
    display: block;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.onboarding-message.red::before {
    background-image: url(../../icons/form_errors.svg);
}

.onboarding-message.green::before {
    background-image: url(../../icons/form_success.svg);
}

.onboarding-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

/* the theme button stretches by default */
.onboarding-actions .main-button-green {
    width: max-content;
}

.onboarding-note {
    margin-top: 16px;
    font-weight: 300;
    color: var(--grey1);
}

@media (max-width: 767px) {
    .onboarding-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .onboarding-actions .main-button-green {
        width: 100%;
    }
}
