/* ==========================================================================
   Find the Right Hearing Aid Page Styles
   ========================================================================== */

.find-hearing-aid-page {
    background-color: #ffffff;
    min-height: 80vh;
    padding-bottom: 80px;
}

/* Page Header Banner */
.fha-banner-section {
    background: #f4f6fb;
    padding: 50px 0 35px 0;
    text-align: center;
    border-bottom: 1px solid #e9edf5;
}

.fha-banner-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 34px;
    font-weight: 700;
    color: #222f7b;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
}

.fha-breadcrumbs {
    font-size: 14px;
    color: #64748b;
}

.fha-breadcrumbs a {
    color: #222f7b;
    text-decoration: none;
    font-weight: 500;
}

.fha-breadcrumbs a:hover {
    color: #00A7F6;
}

.fha-sep {
    margin: 0 8px;
    color: #94a3b8;
}

.fha-current {
    color: #64748b;
}

/* Main Container */
.fha-main-container {
    max-width: 960px;
    margin: 40px auto 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   3-Step Multi-Step Progress Indicator
   ========================================================================== */

.fha-stepper-wrapper {
    margin-bottom: 45px;
}

.fha-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 440px;
    margin: 0 auto;
}

.fha-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: default;
}

.fha-step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #222f7b;
    background: #ffffff;
    color: #222f7b;
    font-size: 17px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.fha-step-label {
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    white-space: nowrap;
}

/* Active and Completed States */
.fha-step-item.active .fha-step-circle {
    background: #222f7b;
    color: #ffffff;
    border-color: #222f7b;
    box-shadow: 0 4px 12px rgba(34, 47, 123, 0.25);
}

.fha-step-item.completed .fha-step-circle {
    background: #222f7b;
    color: #ffffff;
    border-color: #222f7b;
}

.fha-step-line {
    flex: 1;
    height: 2px;
    background: #222f7b;
    margin: 0 15px 26px 15px;
    min-width: 35px;
}

/* Step Panels */
.fha-step-panel {
    display: none;
    animation: fhaFadeIn 0.35s ease forwards;
}

.fha-step-panel.active {
    display: block;
}

@keyframes fhaFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Step 1: About You Panel
   ========================================================================== */

.fha-about-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    align-items: start;
    margin-top: 20px;
}

.fha-about-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #222f7b;
    line-height: 1.25;
    margin: 0 0 12px 0;
}

.fha-about-subtitle {
    font-size: 15px;
    color: #64748b;
    margin: 0;
}

/* Step 1 Form */
.fha-form-row-2 {
    display: flex;
    gap: 15px;
    margin-bottom: 16px;
}

.fha-flex-1 {
    flex: 1;
}

.fha-age-group {
    width: 140px;
}

.fha-form-group {
    margin-bottom: 16px;
}

.fha-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #dcdfe4;
    border-radius: 4px;
    font-size: 15px;
    color: #1e293b;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.fha-input:focus {
    border-color: #00A7F6;
    box-shadow: 0 0 0 3px rgba(0, 167, 246, 0.12);
}

.fha-phone-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.fha-phone-input-group .fha-input {
    padding-right: 90px;
}

.fha-verify-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #222f7b;
    color: #ffffff;
    border: none;
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fha-verify-btn:hover {
    background: #18225c;
}

.fha-verify-btn.verified {
    background: #10b981 !important;
}

.fha-checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.fha-checkbox-group input[type="checkbox"] {
    width: 17px;
    height: 17px;
    cursor: pointer;
}

.fha-checkbox-group label {
    font-size: 14px;
    color: #475569;
    cursor: pointer;
    margin: 0;
}

.fha-terms-link {
    color: #00A7F6;
    text-decoration: none;
}

.fha-terms-link:hover {
    text-decoration: underline;
}

.fha-btn-submit {
    width: 100%;
    height: 50px;
    background: #00A7F6;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.fha-btn-submit:hover {
    background: #0093da;
}

.fha-btn-submit:active {
    transform: scale(0.99);
}

/* ==========================================================================
   Step 2: Question Presentation Panel
   ========================================================================== */

.fha-question-card {
    text-align: center;
    padding: 40px 20px 20px 20px;
    max-width: 680px;
    margin: 0 auto;
}

.fha-q-number {
    font-size: 16px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

.fha-q-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #222f7b;
    margin: 0 0 35px 0;
    line-height: 1.3;
}

.fha-q-buttons-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.fha-q-choice-btn {
    min-width: 120px;
    padding: 13px 36px;
    background: #00A7F6;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 167, 246, 0.2);
}

.fha-q-choice-btn:hover {
    background: #0091d6;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 167, 246, 0.3);
}

.fha-q-choice-btn:active {
    transform: translateY(0);
}

/* 5 Progress Dashes */
.fha-dashes-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.fha-dash {
    width: 68px;
    height: 5px;
    background: #c3e6fb;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s;
}

.fha-dash.active {
    background: #00A7F6;
    transform: scaleY(1.2);
}

.fha-dash.completed {
    background: #00A7F6;
}

.fha-q-back-wrapper {
    margin-top: 15px;
}

.fha-back-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    transition: color 0.2s;
}

.fha-back-btn:hover {
    color: #222f7b;
}

/* ==========================================================================
   Step 3: Results Recommendations Panel
   ========================================================================== */

.fha-results-wrapper {
    padding: 10px 0;
}

.fha-results-header {
    text-align: center;
    margin-bottom: 35px;
}

.fha-results-badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0284c7;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fha-results-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #222f7b;
    margin: 0 0 10px 0;
}

.fha-results-subtitle {
    font-size: 15px;
    color: #64748b;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.5;
}

.fha-recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.fha-rec-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
}

.fha-rec-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: #00A7F6;
}

.fha-rec-top-tag {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #222f7b;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
}

.fha-rec-thumb {
    width: 100%;
    height: 160px;
    background: #f8fafc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    overflow: hidden;
}

.fha-rec-thumb img {
    max-height: 130px;
    max-width: 85%;
    object-fit: contain;
}

.fha-rec-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.fha-rec-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
}

.fha-rec-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.fha-rec-features li {
    font-size: 13px;
    color: #334155;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fha-rec-features li i {
    color: #10b981;
    font-size: 12px;
}

.fha-rec-btn {
    display: inline-block;
    text-align: center;
    background: #00A7F6;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.fha-rec-btn:hover {
    background: #0088cb;
    color: #ffffff;
}

/* Consultation Banner */
.fha-consultation-banner {
    background: linear-gradient(135deg, #222f7b 0%, #111a4d 100%);
    border-radius: 12px;
    padding: 30px 35px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    flex-wrap: wrap;
}

.fha-consult-text h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #ffffff;
}

.fha-consult-text p {
    font-size: 14px;
    color: #cbd5e1;
    margin: 0;
    max-width: 550px;
    line-height: 1.5;
}

.fha-consult-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.fha-btn-consult {
    background: #00A7F6;
    color: #ffffff;
    padding: 12px 22px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease;
}

.fha-btn-consult:hover {
    background: #0088cb;
    color: #ffffff;
}

.fha-btn-retake {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease;
}

.fha-btn-retake:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 768px) {
    .fha-main-container {
        padding: 20px 15px 50px;
    }

    .fha-about-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .fha-about-title {
        font-size: 24px;
    }

    .fha-form-row-2 {
        flex-direction: column;
        gap: 0;
    }

    .fha-age-group {
        width: 100%;
    }

    .fha-q-title {
        font-size: 22px;
    }

    .fha-dash {
        width: 42px;
    }

    .fha-consultation-banner {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .fha-consult-actions {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .fha-stepper {
        gap: 8px;
    }

    .fha-step-circle {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .fha-step-label {
        font-size: 11px;
    }

    .fha-step-line {
        width: 25px;
    }

    .fha-dash {
        width: 28px;
        height: 4px;
    }

    .fha-q-choice-btn {
        min-width: 90px;
        padding: 10px 24px;
        font-size: 14px;
    }

    .fha-rec-card {
        padding: 16px;
    }

    .fha-btn-consult,
    .fha-btn-retake {
        width: 100%;
        justify-content: center;
    }
}
