/* ============================================================
   TOKENS — reuses the same brand values as previous sections
============================================================ */
.faq-section {
    --faq-bg: #FFFFFF;
    --faq-primary: #1E9BF7;
    --faq-primary-dark: #157ACB;
    --faq-text: #000000;
    --faq-white: #FFFFFF;
    --faq-muted: rgba(0, 0, 0, 0.62);
    --faq-line: rgba(0, 0, 0, 0.08);
    --faq-font-heading: 'Inter', 'Montserrat', 'Arial Narrow', 'Helvetica Neue', sans-serif;
    --faq-font-body: 'Poppins', sans-serif;
}

/* ============================================================
   SECTION SHELL
============================================================ */
.faq-section {
    position: relative;
    width: 100%;
    background: var(--faq-bg);
    overflow: hidden;
    padding: 0px 0 80px;
    isolation: isolate;
}

.faq-section * {
    box-sizing: border-box;
}

.faq-section__container {
    position: relative;
    z-index: 3;
    max-width: 1450px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   BACKGROUND
============================================================ */
.faq-section__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.faq-section__grid-glass {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 78%);
}

.faq-section__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    background: radial-gradient(circle at 30% 30%, rgba(30, 155, 247, 0.4), rgba(30, 155, 247, 0));
}

.faq-section__glow--one {
    width: 540px;
    height: 540px;
    top: -180px;
    right: -180px;
    opacity: 0.24;
}

.faq-section__glow--two {
    width: 460px;
    height: 460px;
    bottom: -200px;
    left: -160px;
    opacity: 0.2;
}

/* ============================================================
   HEADER
============================================================ */
.faq-section__header {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 700px;
    margin: 0 auto clamp(60px, 7vw, 56px);
}

.faq-section__badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(30, 155, 247, 0.08);
    border: 1px solid rgba(30, 155, 247, 0.18);
    color: var(--faq-primary);
    font-family: var(--faq-font-body);
    font-weight: 600;
    font-size: clamp(11px, 1vw, 13px);
    letter-spacing: 0.3px;
    margin-bottom: 22px;
    opacity: 0;
}

.faq-section__badge i {
    font-size: clamp(10px, 0.9vw, 12px);
}

.faq-section__heading {
    font-family: var(--faq-font-heading);
    font-weight: 900;
    color: var(--faq-text);
    font-size: clamp(28px, 4.2vw, 50px);
    line-height: 1.08;
    letter-spacing: 0.2px;
    margin: 0 0 20px;
    opacity: 0;
    text-transform: uppercase;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.faq-section__heading-accent {
    color: var(--faq-primary);
}

.faq-section__desc {
    font-family: var(--faq-font-body);
    font-weight: 400;
    font-size: clamp(13px, 1.1vw, 15px);
    line-height: 1.7;
    color: var(--faq-muted);
    max-width: 560px;
    margin: 0 auto;
    opacity: 0;
}

/* ============================================================
   FAQ ROW — Left (AI Panel) + Right (Accordion)
============================================================ */
.faq-section__row {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 42% 58%;
    gap: 48px;
    align-items: stretch;
}

/* ============================================================
   LEFT PANEL — AI Support
============================================================ */
.faq-section__ai-panel {
    position: relative;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 28px;
    padding: 32px 28px 28px;
    box-shadow:
        0 24px 54px -28px rgba(0, 0, 0, 0.12),
        0 0 0 1px var(--faq-line);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 520px;
}

.faq-section__ai-panel__glow {
    position: absolute;
    top: -30%;
    right: -20%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 155, 247, 0.12), transparent 70%);
    pointer-events: none;
}

/* AI Panel Header */
.faq-section__ai-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.faq-section__ai-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(155deg, var(--faq-primary), var(--faq-primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(17px, 1.4vw, 20px);
    color: var(--faq-white);
    box-shadow: 0 12px 24px -8px rgba(30, 155, 247, 0.4);
    flex-shrink: 0;
    position: relative;
}

.faq-section__ai-avatar__status {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #16A34A;
    border: 2px solid var(--faq-white);
}

.faq-section__ai-info {
    flex: 1;
    min-width: 0;
}

.faq-section__ai-name {
    font-family: var(--faq-font-body);
    font-weight: 600;
    font-size: clamp(13px, 1vw, 15px);
    color: var(--faq-text);
    margin: 0;
    line-height: 1.2;
}

.faq-section__ai-status {
    font-family: var(--faq-font-body);
    font-size: clamp(10px, 0.8vw, 11px);
    color: #16A34A;
    display: flex;
    align-items: center;
    gap: 4px;
}

.faq-section__ai-status i {
    font-size: clamp(7px, 0.6vw, 8px);
}

/* AI Chat Container */
.faq-section__ai-chat {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 0;
    min-height: 200px;
    overflow-y: auto;
    max-height: 380px;
}

/* AI Message Bubbles */
.faq-section__ai-bubble {
    max-width: 88%;
    padding: 12px 16px;
    border-radius: 16px;
    font-family: var(--faq-font-body);
    font-size: clamp(12px, 0.95vw, 13.5px);
    line-height: 1.6;
    color: var(--faq-text);
    opacity: 0;
    transform: translateY(12px);
}

.faq-section__ai-bubble--bot {
    align-self: flex-start;
    background: rgba(30, 155, 247, 0.06);
    border: 1px solid rgba(30, 155, 247, 0.10);
    border-bottom-left-radius: 4px;
}

.faq-section__ai-bubble--user {
    align-self: flex-end;
    background: var(--faq-primary);
    color: var(--faq-white);
    border-bottom-right-radius: 4px;
}

.faq-section__ai-bubble--typing {
    align-self: flex-start;
    background: rgba(30, 155, 247, 0.06);
    border: 1px solid rgba(30, 155, 247, 0.10);
    border-bottom-left-radius: 4px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 56px;
}

.faq-section__ai-typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--faq-primary);
    opacity: 0.4;
    animation: faqTypingDot 1.2s ease-in-out infinite;
}

.faq-section__ai-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.faq-section__ai-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes faqTypingDot {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

/* Quick Question Chips */
.faq-section__ai-chips {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.faq-section__ai-chip {
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--faq-line);
    font-family: var(--faq-font-body);
    font-size: clamp(10px, 0.8vw, 11.5px);
    font-weight: 500;
    color: var(--faq-text);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.faq-section__ai-chip:hover {
    background: rgba(30, 155, 247, 0.08);
    border-color: var(--faq-primary);
    color: var(--faq-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -8px rgba(30, 155, 247, 0.2);
}

.faq-section__ai-chip i {
    font-size: clamp(9px, 0.7vw, 10px);
    margin-right: 4px;
    color: var(--faq-primary);
}

/* Notification Badge */
.faq-section__ai-notification {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 5;
    display: none;
    align-items: center;
    gap: 6px;
    padding: 6px 14px 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(30, 155, 247, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-family: var(--faq-font-body);
    font-size: clamp(9px, 0.7vw, 10px);
    font-weight: 600;
    color: var(--faq-primary);
    opacity: 0;
    transform: scale(0.8);
}

.faq-section__ai-notification i {
    font-size: clamp(9px, 0.7vw, 10px);
}

.faq-section__ai-notification__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #EF4444;
    animation: faqPulseDot 1.5s ease-in-out infinite;
}

@keyframes faqPulseDot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* ============================================================
   RIGHT PANEL — FAQ Accordion
============================================================ */
.faq-section__accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-section__item {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
}

.faq-section__item:hover {
    border-color: rgba(30, 155, 247, 0.2);
    box-shadow: 0 12px 32px -12px rgba(30, 155, 247, 0.15);
    transform: translateY(-2px);
}

.faq-section__item.is-active {
    border-color: var(--faq-primary);
    background: rgba(30, 155, 247, 0.02);
    box-shadow: 0 16px 40px -16px rgba(30, 155, 247, 0.18);
}

.faq-section__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    font-family: var(--faq-font-body);
    font-weight: 600;
    font-size: clamp(13px, 1vw, 15px);
    color: var(--faq-text);
    user-select: none;
    transition: color 0.3s ease;
}

.faq-section__item.is-active .faq-section__question {
    color: var(--faq-primary);
}

.faq-section__question-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(30, 155, 247, 0.06);
    color: var(--faq-primary);
    font-size: clamp(10px, 0.8vw, 11px);
    flex-shrink: 0;
    transition: background 0.3s ease, transform 0.3s ease;
}

.faq-section__item:hover .faq-section__question-icon {
    background: rgba(30, 155, 247, 0.12);
}

.faq-section__item.is-active .faq-section__question-icon {
    background: var(--faq-primary);
    color: var(--faq-white);
}

.faq-section__chevron {
    flex-shrink: 0;
    font-size: clamp(12px, 0.9vw, 13px);
    color: var(--faq-muted);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease;
}

.faq-section__item.is-active .faq-section__chevron {
    transform: rotate(180deg);
    color: var(--faq-primary);
}

.faq-section__answer-wrap {
    overflow: hidden;
    height: 0;
    opacity: 0;
}

.faq-section__answer {
    padding: 0 22px 22px;
    font-family: var(--faq-font-body);
    font-size: clamp(12.5px, 0.95vw, 14px);
    line-height: 1.7;
    color: var(--faq-muted);
}

.faq-section__answer p {
    margin: 0;
}

/* ============================================================
   RESPONSIVE — Large Desktop (1300px to 1468px)
============================================================ */
@media (min-width: 1300px) and (max-width: 1468px) {
    .faq-section__container {
        max-width: 1220px;
    }

    .faq-section__row {
        grid-template-columns: 40% 60%;
        gap: 36px;
    }

    .faq-section__ai-panel {
        padding: 28px 24px 24px;
        min-height: 460px;
    }

    .faq-section__question {
        padding: 16px 20px;
        font-size: 14px;
    }

    .faq-section__answer {
        padding: 0 20px 20px;
        font-size: 13.5px;
    }
}

/* ============================================================
   RESPONSIVE — Desktop (992px to 1299px)
============================================================ */
@media (min-width: 992px) and (max-width: 1299px) {
    .faq-section__container {
        max-width: 96%;
        padding: 0 20px;
    }

    .faq-section__row {
        grid-template-columns: 38% 62%;
        gap: 30px;
    }

    .faq-section__ai-panel {
        padding: 24px 20px 20px;
        min-height: 420px;
        border-radius: 24px;
    }

    .faq-section__ai-avatar {
        width: 42px;
        height: 42px;
        font-size: 17px;
    }

    .faq-section__ai-chat {
        max-height: 320px;
        min-height: 160px;
    }

    .faq-section__ai-bubble {
        font-size: 12.5px;
        padding: 10px 14px;
    }

    .faq-section__question {
        padding: 14px 18px;
        font-size: 13.5px;
    }

    .faq-section__answer {
        padding: 0 18px 18px;
        font-size: 13px;
    }

    .faq-section__item {
        border-radius: 16px;
    }
}

/* ============================================================
   RESPONSIVE — Tablets (max-width: 991.98px)
============================================================ */
@media (max-width: 991.98px) {
    .faq-section {
        padding: 110px 0 120px;
    }

    .faq-section__row {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .faq-section__ai-panel {
        min-height: 380px;
        order: 1;
    }

    .faq-section__accordion {
        order: 2;
    }

    .faq-section__ai-chat {
        max-height: 280px;
    }
}

/* ============================================================
   RESPONSIVE — Mobile (max-width: 576px)
============================================================ */
@media (max-width: 576px) {
    .faq-section {
        padding: 40px 0 40px;
    }

    .faq-section__container {
        padding: 0 16px;
    }

    .faq-section__heading {
        font-size: clamp(28px, 8.2vw, 38px);
    }

    .faq-section__desc {
        font-size: 15px;
    }

    .faq-section__row {
        gap: 28px;
    }

    .faq-section__ai-panel {
        padding: 24px 18px 20px;
        min-height: 340px;
        border-radius: 22px;
    }

    .faq-section__ai-avatar {
        width: 42px;
        height: 42px;
        font-size: 15px;
    }

    .faq-section__ai-name {
        font-size: 13px;
    }

    .faq-section__ai-bubble {
        font-size: 12.5px;
        padding: 10px 14px;
    }

    .faq-section__ai-chips {
        gap: 6px;
    }

    .faq-section__ai-chip {
        font-size: 10.5px;
        padding: 5px 12px;
    }

    .faq-section__ai-notification {
        top: 14px;
        right: 14px;
        padding: 4px 10px 4px 8px;
        font-size: 9px;
    }

    .faq-section__question {
        padding: 14px 16px;
        font-size: 13.5px;
        gap: 12px;
    }

    .faq-section__question-icon {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .faq-section__answer {
        padding: 0 16px 16px;
        font-size: 13px;
    }

    .faq-section__item {
        border-radius: 14px;
    }
}

/* ============================================================
   RESPONSIVE — Very Small Mobile (max-width: 400px)
============================================================ */
@media (max-width: 400px) {
    .faq-section {
        padding: 30px 0 30px;
    }

    .faq-section__heading {
        font-size: clamp(24px, 7vw, 28px);
    }

    .faq-section__desc {
        font-size: 13px;
    }

    .faq-section__ai-panel {
        padding: 18px 14px 16px;
        min-height: 300px;
        border-radius: 18px;
    }

    .faq-section__ai-avatar {
        width: 36px;
        height: 36px;
        font-size: 13px;
        border-radius: 10px;
    }

    .faq-section__ai-avatar__status {
        width: 10px;
        height: 10px;
        bottom: -1px;
        right: -1px;
    }

    .faq-section__ai-name {
        font-size: 12px;
    }

    .faq-section__ai-status {
        font-size: 9px;
    }

    .faq-section__ai-chat {
        max-height: 220px;
        min-height: 120px;
        padding: 10px 0;
        gap: 8px;
    }

    .faq-section__ai-bubble {
        font-size: 11.5px;
        padding: 8px 12px;
        border-radius: 12px;
    }

    .faq-section__ai-chip {
        font-size: 9.5px;
        padding: 4px 10px;
    }

    .faq-section__ai-chip i {
        font-size: 8px;
    }

    .faq-section__ai-chips {
        gap: 4px;
    }

    .faq-section__question {
        padding: 12px 14px;
        font-size: 12.5px;
        gap: 10px;
    }

    .faq-section__question-icon {
        width: 20px;
        height: 20px;
        font-size: 8px;
    }

    .faq-section__answer {
        padding: 0 14px 14px;
        font-size: 12px;
    }

    .faq-section__item {
        border-radius: 12px;
    }

    .faq-section__ai-notification {
        top: 10px;
        right: 10px;
        padding: 3px 8px 3px 6px;
        font-size: 8px;
    }

    .faq-section__ai-notification i {
        font-size: 8px;
    }
}

/* ============================================================
   FONT FIX - Ensure consistent font rendering across all screens
============================================================ */
@supports (font-variation-settings: normal) {
    .faq-section__heading {
        font-variation-settings: 'wght' 900, 'wdth' 100;
    }
}

/* Fallback for browsers that don't support variable fonts */
@supports not (font-variation-settings: normal) {
    .faq-section__heading {
        font-weight: 900;
        letter-spacing: -0.5px;
    }
}

/* ============================================================
   REDUCED MOTION
============================================================ */
@media (prefers-reduced-motion: reduce) {
    .faq-section * {
        animation: none !important;
        transition: none !important;
    }

    .faq-section__ai-typing-dot {
        animation: none !important;
    }

    .faq-section__ai-notification__dot {
        animation: none !important;
    }
}