/*
|--------------------------------------------------------------------------
| FYSIOHUB ONBOARDING
|--------------------------------------------------------------------------
*/

.fh-onboarding-wrapper {
    max-width: 900px;
    margin: 50px auto;
    padding: 0 20px;
    color: #172033;
    font-family: inherit;
}


/*
|--------------------------------------------------------------------------
| HEADER
|--------------------------------------------------------------------------
*/

.fh-onboarding-header {
    margin-bottom: 35px;
}

.fh-onboarding-header h1 {
    margin: 8px 0 10px;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.1;
}

.fh-onboarding-header p {
    max-width: 650px;
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
    color: #64748b;
}

.fh-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #0d9488;
}


/*
|--------------------------------------------------------------------------
| PROGRESS
|--------------------------------------------------------------------------
*/

.fh-progress {
    margin: 35px 0 40px;
}

.fh-progress-bar {
    position: relative;
    width: 100%;
    height: 7px;
    background: #e2e8f0;
    border-radius: 100px;
    overflow: hidden;
}

.fh-progress-fill {
    width: 16.666%;
    height: 100%;
    background: #14b8a6;
    border-radius: 100px;
    transition: width 0.3s ease;
}

.fh-progress-steps {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
}

.fh-progress-step {
    flex: 1;
    font-size: 12px;
    text-align: center;
    color: #94a3b8;
}

.fh-progress-step.active {
    font-weight: 700;
    color: #164e63;
}


/*
|--------------------------------------------------------------------------
| FORM CARD
|--------------------------------------------------------------------------
*/

.fh-onboarding-form {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.fh-step {
    display: none;
    padding: 40px;
}

.fh-step.active {
    display: block;
}

.fh-step-heading {
    margin-bottom: 30px;
}

.fh-step-heading > span {
    font-size: 13px;
    font-weight: 700;
    color: #14b8a6;
}

.fh-step-heading h2 {
    margin: 5px 0 8px;
    font-size: 28px;
}

.fh-step-heading p {
    margin: 0;
    color: #64748b;
}

.fh-subheading {
    margin: 32px 0 18px;
    font-size: 18px;
}

.fh-subheading span {
    font-weight: 400;
    color: #94a3b8;
}


/*
|--------------------------------------------------------------------------
| GRID
|--------------------------------------------------------------------------
*/

.fh-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.fh-field {
    margin-bottom: 22px;
}

.fh-field-wide {
    grid-column: span 2;
}

.fh-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.fh-field input[type="text"],
.fh-field input[type="email"],
.fh-field input[type="tel"],
.fh-field input[type="date"],
.fh-field input[type="file"],
.fh-field select,
.fh-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 13px 14px;
    background: #ffffff;
    color: #172033;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.fh-field input:focus,
.fh-field select:focus,
.fh-field textarea:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}

.fh-field small {
    display: block;
    margin-top: 7px;
    line-height: 1.5;
    color: #64748b;
}


/*
|--------------------------------------------------------------------------
| CHECKBOX CARDS
|--------------------------------------------------------------------------
*/

.fh-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.fh-checkbox-card {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    padding: 14px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.fh-checkbox-card:hover {
    border-color: #14b8a6;
    background: #f0fdfa;
}

.fh-checkbox-card input {
    width: 17px;
    height: 17px;
    margin: 0;
}


/*
|--------------------------------------------------------------------------
| BUTTONS
|--------------------------------------------------------------------------
*/

.fh-step-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

.fh-step-actions .fh-next:only-child {
    margin-left: auto;
}

.fh-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 22px;
    border: 0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.fh-button-primary {
    background: #164e63;
    color: #ffffff;
}

.fh-button-primary:hover {
    background: #123f50;
    color: #ffffff;
}

.fh-button-secondary {
    background: #f1f5f9;
    color: #334155;
}

.fh-button-secondary:hover {
    background: #e2e8f0;
}


/*
|--------------------------------------------------------------------------
| NOTICES
|--------------------------------------------------------------------------
*/

.fh-notice {
    margin: 0 0 25px;
    padding: 18px 20px;
    border-radius: 12px;
}

.fh-notice p:last-child {
    margin-bottom: 0;
}

.fh-notice-success {
    border: 1px solid #a7f3d0;
    background: #ecfdf5;
}

.fh-notice-error {
    border: 1px solid #fecaca;
    background: #fef2f2;
}


/*
|--------------------------------------------------------------------------
| FOTO
|--------------------------------------------------------------------------
*/

.fh-current-photo img,
.fh-photo-preview img {
    width: 110px;
    height: 110px;
    margin-bottom: 15px;
    border-radius: 50%;
    object-fit: cover;
}

.fh-photo-preview {
    margin-top: 15px;
}


/*
|--------------------------------------------------------------------------
| PAYMENT
|--------------------------------------------------------------------------
*/

.fh-payment-info {
    margin-bottom: 25px;
    padding: 17px 18px;
    border-radius: 12px;
    background: #f0fdfa;
    border: 1px solid #99f6e4;
}

.fh-payment-info p {
    margin: 5px 0 0;
    color: #475569;
}


/*
|--------------------------------------------------------------------------
| REVIEW
|--------------------------------------------------------------------------
*/

.fh-review {
    margin-bottom: 28px;
}

.fh-review-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid #e2e8f0;
}

.fh-review-label {
    font-weight: 600;
    color: #64748b;
}

.fh-review-value {
    color: #172033;
}


/*
|--------------------------------------------------------------------------
| CONSENT
|--------------------------------------------------------------------------
*/

.fh-consent {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fh-consent-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.fh-consent-row input {
    margin-top: 3px;
}


/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 700px) {

    .fh-step {
        padding: 25px 20px;
    }

    .fh-form-grid,
    .fh-checkbox-grid {
        grid-template-columns: 1fr;
    }

    .fh-field-wide {
        grid-column: span 1;
    }

    .fh-progress-steps {
        display: none;
    }

    .fh-step-actions {
        flex-direction: column-reverse;
    }

    .fh-step-actions button {
        width: 100%;
    }

    .fh-review-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}