/* ── FAQ Accordion Component ─────────────────────────────── */

.b2e-faq-section {
    background: var(--b2e-white);
}

.b2e-faq-list {
    max-width: 820px;
    margin: 0 auto;
}

.b2e-faq-item {
    border: 1px solid var(--b2e-gray-200);
    border-radius: var(--b2e-radius-md);
    margin-bottom: 12px;
    background: var(--b2e-gray-50);
    overflow: hidden;
    transition:
        background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.b2e-faq-item:last-child {
    margin-bottom: 0;
}

.b2e-faq-item:hover {
    border-color: var(--b2e-gray-300);
}

.b2e-faq-item.is-open {
    background: var(--b2e-white);
    border-color: rgba(19, 64, 165, 0.18);
    box-shadow: 0 4px 20px rgba(19, 64, 165, 0.08);
}

.b2e-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 18px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: start;
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.45;
    color: var(--b2e-gray-800);
    transition: color 0.25s ease;
}

.b2e-faq-question:hover {
    color: var(--b2e-primary);
}

.b2e-faq-question:focus-visible {
    outline: 2px solid var(--b2e-primary);
    outline-offset: -2px;
    border-radius: var(--b2e-radius-md);
}

.b2e-faq-item.is-open .b2e-faq-question {
    color: var(--b2e-primary);
}

.b2e-faq-question-text {
    flex: 1;
    min-width: 0;
}

.b2e-faq-chevron {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(19, 64, 165, 0.06);
    color: var(--b2e-primary);
    transition:
        transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        background-color 0.25s ease,
        color 0.25s ease;
}

.b2e-faq-item.is-open .b2e-faq-chevron {
    transform: rotate(180deg);
    background: var(--b2e-primary);
    color: var(--b2e-white);
}

.b2e-faq-chevron i {
    font-size: 0.72rem;
}

.b2e-faq-answer-wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.b2e-faq-item.is-open .b2e-faq-answer-wrap {
    grid-template-rows: 1fr;
}

.b2e-faq-answer-inner {
    overflow: hidden;
}

.b2e-faq-answer {
    padding: 0 20px 20px;
    margin: 0;
    line-height: 1.85;
    color: var(--b2e-gray-600);
    font-size: 0.98rem;
    opacity: 0;
    transform: translateY(-6px);
    transition:
        opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.05s,
        transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) 0.05s;
}

.b2e-faq-item.is-open .b2e-faq-answer {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 767px) {
    .b2e-faq-question {
        padding: 16px 16px;
        font-size: 1rem;
        gap: 12px;
    }

    .b2e-faq-answer {
        padding: 0 16px 16px;
        font-size: 0.95rem;
    }

    .b2e-faq-chevron {
        width: 26px;
        height: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .b2e-faq-item,
    .b2e-faq-question,
    .b2e-faq-chevron,
    .b2e-faq-answer-wrap,
    .b2e-faq-answer {
        transition: none;
    }

    .b2e-faq-item.is-open .b2e-faq-chevron {
        transform: none;
    }

    .b2e-faq-item.is-open .b2e-faq-answer {
        opacity: 1;
        transform: none;
    }
}
