/* =============================================================================
   FAQ PAGE STYLES
   Role: Questions, Support & Practical Clarity
   ========================================================================== */

.faq-page {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: #FFFFFF;
    color: #4A5568;
}

/* ── Section scaffolding ─────────────────────────────────────────────────── */

.faq-page__section {
    padding: 80px 24px;
}

@media (max-width: 639px) {
    .faq-page__section {
        padding: 56px 16px;
    }
}

.faq-page__section--alabaster {
    background-color: #F8F9FA;
}

.center-text {
    text-align: center;
}

.faq-page__section-header {
    max-width: 760px;
    margin: 0 auto 40px;
}

.faq-page__section-title {
    font-family: 'Merriweather', serif;
    font-size: clamp(2rem, 1.75rem + 1vw, 2.5rem);
    font-weight: 700;
    color: #1A365D;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.faq-page__section-subtitle {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 18px;
    color: #4A5568;
    line-height: 1.7;
    margin: 0;
}

.faq-page__body-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    color: #4A5568;
    line-height: 1.7;
    margin: 0 0 28px 0;
}

/* ── 1. Hero ─────────────────────────────────────────────────────────────── */

.faq-page__hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top center, rgba(214, 158, 46, 0.12) 0%, rgba(214, 158, 46, 0) 38%),
        linear-gradient(180deg, #1A365D 0%, #11243D 100%);
    padding: 88px 24px;
    text-align: center;
    border-bottom: 4px solid #D69E2E;
}

.faq-page__hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(248, 249, 250, 0.03) 0%, rgba(248, 249, 250, 0) 100%);
    pointer-events: none;
}

.faq-page__hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
}

.faq-page__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    padding: 6px 14px;
    margin: 0 0 18px 0;
    border-radius: 999px;
    background-color: rgba(248, 249, 250, 0.1);
    border: 1px solid rgba(248, 249, 250, 0.14);
    color: #F6E05E;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.faq-page__title {
    font-family: 'Merriweather', serif;
    font-size: clamp(2.25rem, 2rem + 1.6vw, 3.5rem);
    font-weight: 700;
    color: #F8F9FA;
    margin: 0 0 20px 0;
    line-height: 1.15;
}

.faq-page__subtitle {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 18px;
    line-height: 1.75;
    color: #E2E8F0;
    margin: 0 auto;
    max-width: 720px;
}

.faq-page__hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.faq-page__hero-secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 18px;
    border-radius: 8px;
    border: 1px solid rgba(248, 249, 250, 0.24);
    color: #F8F9FA;
    text-decoration: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    font-weight: 600;
    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}

.faq-page__hero-secondary-link:hover {
    background-color: rgba(248, 249, 250, 0.08);
    border-color: rgba(248, 249, 250, 0.42);
    transform: translateY(-2px);
}

.faq-page__hero-secondary-link:focus-visible {
    outline: 2px solid #F6E05E;
    outline-offset: 3px;
}

/* ── 2. Trust cards ──────────────────────────────────────────────────────── */

.faq-page__trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 1100px) {
    .faq-page__trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 639px) {
    .faq-page__trust-grid {
        grid-template-columns: 1fr;
    }
}

.faq-page__trust-card {
    height: 100%;
    background-color: #FFFFFF;
    border: 1px solid rgba(26, 54, 93, 0.08);
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 10px 24px rgba(26, 54, 93, 0.04);
}

.faq-page__trust-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(214, 158, 46, 0.12);
    color: #D69E2E;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 16px;
}

.faq-page__trust-title {
    font-family: 'Merriweather', serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    color: #1A365D;
    margin: 0 0 10px 0;
}

.faq-page__trust-text {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #4A5568;
}

/* ── 3. Sidebar & support cards ─────────────────────────────────────────── */

.faq-page__sidebar {
    padding-right: 40px;
}

@media (max-width: 1023px) {
    .faq-page__sidebar {
        padding-right: 0;
        margin-bottom: 40px;
    }
}

.faq-page__contact-card,
.faq-page__support-card {
    background-color: #F8F9FA;
    border: 1px solid rgba(26, 54, 93, 0.08);
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 8px 20px rgba(26, 54, 93, 0.035);
}

.faq-page__contact-card {
    margin-bottom: 20px;
    border-top: 4px solid #C05621;
}

.faq-page__support-card {
    border-top: 4px solid #D69E2E;
}

.faq-page__contact-title,
.faq-page__support-card-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #1A365D;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.faq-page__contact-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    color: #4A5568;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.6;
}

.faq-page__contact-text:last-of-type {
    margin-bottom: 12px;
}

.faq-page__contact-text span {
    color: #D69E2E;
}

.faq-page__contact-note {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #718096;
}

.faq-page__support-list {
    margin: 0;
    padding-left: 18px;
}

.faq-page__support-list li {
    margin-bottom: 10px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: #4A5568;
}

.faq-page__support-list li:last-child {
    margin-bottom: 0;
}

/* ── 4. Content column / categories ─────────────────────────────────────── */

.faq-page__content-column {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.faq-page__category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 767px) {
    .faq-page__category-grid {
        grid-template-columns: 1fr;
    }
}

.faq-page__category-card {
    background-color: #F8F9FA;
    border: 1px solid rgba(26, 54, 93, 0.08);
    border-radius: 10px;
    padding: 20px;
}

.faq-page__category-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.faq-page__category-icon {
    color: #D69E2E;
    font-size: 16px;
    flex-shrink: 0;
}

.faq-page__category-title {
    margin: 0;
    font-family: 'Merriweather', serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #1A365D;
}

.faq-page__category-text {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #4A5568;
}

/* ── 5. Accordion list ──────────────────────────────────────────────────── */

.faq-page__accordion-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-page__accordion-item {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    overflow: hidden;
    transition:
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.faq-page__accordion-item:hover {
    box-shadow: 0 8px 18px rgba(26, 54, 93, 0.05);
}

.faq-page__accordion-item--open {
    border-color: rgba(214, 158, 46, 0.4);
    box-shadow: 0 12px 24px rgba(26, 54, 93, 0.055);
}

.faq-page__accordion-button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 24px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.faq-page__accordion-button:focus-visible {
    outline: 2px solid #D69E2E;
    outline-offset: -2px;
}

.faq-page__accordion-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.faq-page__accordion-category {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 24px;
    padding: 4px 10px;
    border-radius: 999px;
    background-color: rgba(214, 158, 46, 0.14);
    color: #9C4221;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.faq-page__accordion-question {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    color: #1A365D;
    padding-right: 0;
}

.faq-page__accordion-icon {
    color: #C05621;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 4px;
    transition:
        transform 180ms ease,
        color 180ms ease;
}

.faq-page__accordion-item--open .faq-page__accordion-icon {
    color: #D69E2E;
}

.faq-page__accordion-collapse {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition:
        max-height 320ms ease,
        opacity 220ms ease;
}

.faq-page__accordion-item--open .faq-page__accordion-collapse {
    max-height: 520px;
    opacity: 1;
}

.faq-page__accordion-body {
    padding: 0 24px 24px 24px;
}

.faq-page__accordion-body p {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: #4A5568;
}

/* ── 6. Steps section ───────────────────────────────────────────────────── */

.faq-page__steps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 1100px) {
    .faq-page__steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 639px) {
    .faq-page__steps-grid {
        grid-template-columns: 1fr;
    }
}

.faq-page__step-card {
    height: 100%;
    background-color: #FFFFFF;
    border: 1px solid rgba(26, 54, 93, 0.08);
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 10px 24px rgba(26, 54, 93, 0.04);
}

.faq-page__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    min-height: 32px;
    padding: 4px 10px;
    border-radius: 999px;
    background-color: rgba(26, 54, 93, 0.08);
    color: #1A365D;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.faq-page__step-title {
    margin: 0 0 10px 0;
    font-family: 'Merriweather', serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    color: #1A365D;
}

.faq-page__step-text {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #4A5568;
}

/* ── 7. Support options ──────────────────────────────────────────────────── */

.faq-page__support-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 1100px) {
    .faq-page__support-options {
        grid-template-columns: 1fr;
    }
}

.faq-page__support-option {
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #FFFFFF;
    border: 1px solid rgba(26, 54, 93, 0.08);
    border-radius: 10px;
    padding: 28px 24px;
    box-shadow: 0 10px 24px rgba(26, 54, 93, 0.04);
}

.faq-page__support-option-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(214, 158, 46, 0.12);
    color: #D69E2E;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 16px;
}

.faq-page__support-option-title {
    margin: 0 0 10px 0;
    font-family: 'Merriweather', serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: #1A365D;
}

.faq-page__support-option-text {
    margin: 0 0 24px 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #4A5568;
    flex-grow: 1;
}

.faq-page__support-option-action {
    margin-top: auto;
}

/* ── 8. CTA section ─────────────────────────────────────────────────────── */

.faq-page__cta-wrapper {
    text-align: center;
    padding: 24px 0 8px;
}

.faq-page__cta-text {
    max-width: 720px;
    margin: 0 auto 32px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 18px;
    color: #4A5568;
    line-height: 1.7;
}

.faq-page__cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* ── 9. Reduced motion ───────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {

    .faq-page__hero-secondary-link,
    .faq-page__accordion-item,
    .faq-page__accordion-icon,
    .faq-page__accordion-collapse {
        transition: none;
    }
}