/* FAQ component */

.faq-section {
    padding: 4.5rem 0;
    background: var(--faq-bg, #ffffff);
}

.faq-section.is-colored {
    color: var(--faq-text, #0f172a);
}

.faq-section__header {
    margin-bottom: 2rem;
}

.faq-section__title {
    margin-bottom: 0.9rem;
}

.faq-section__subtitle {
    max-width: 760px;
    margin: 0 auto;
    color: var(--faq-muted, #475569);
    font-size: 1.05rem;
    line-height: 1.7;
}

.faq-search {
    max-width: 720px;
    margin: 0 auto 1.25rem;
}

.faq-search__box {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1.1rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.faq-search__box:focus-within {
    border-color: rgba(136, 106, 181, 0.42);
    box-shadow: 0 16px 36px rgba(136, 106, 181, 0.12);
    transform: translateY(-1px);
}

.faq-search__icon {
    color: var(--primary, #886ab5);
    font-size: 1rem;
}

.faq-search__input {
    width: 100%;
    border: 0;
    background: transparent;
    outline: none;
    color: #0f172a;
    font-size: 1rem;
}

.faq-search__input::placeholder {
    color: #64748b;
}

.faq-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: 1.75rem;
}

.faq-categories__btn {
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #ffffff;
    color: #334155;
    border-radius: 999px;
    padding: 0.6rem 1rem;
    font-weight: 700;
    font-size: 0.95rem;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.faq-categories__btn:hover,
.faq-categories__btn:focus-visible {
    border-color: rgba(136, 106, 181, 0.45);
    color: var(--primary, #886ab5);
    box-shadow: 0 10px 24px rgba(136, 106, 181, 0.12);
    outline: none;
}

.faq-categories__btn.is-active {
    background: var(--primary, #886ab5);
    border-color: var(--primary, #886ab5);
    color: #ffffff;
}

.faq-accordion {
    display: grid;
    gap: 0.9rem;
}

.faq-item {
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.faq-item:hover {
    transform: translateY(-1px);
    border-color: rgba(136, 106, 181, 0.22);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.09);
}

.faq-item__question {
    width: 100%;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.4rem;
    text-align: left;
    color: #0f172a;
    font-weight: 800;
    font-size: 1.02rem;
}

.faq-item__question:focus-visible {
    outline: 2px solid rgba(136, 106, 181, 0.35);
    outline-offset: -2px;
}

.faq-item__question-text {
    flex: 1 1 auto;
}

.faq-item__icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(136, 106, 181, 0.1);
    color: var(--primary, #886ab5);
    flex: 0 0 auto;
    transition: transform 160ms ease, background-color 160ms ease;
}

.faq-item.is-open .faq-item__icon {
    transform: rotate(180deg);
    background: rgba(136, 106, 181, 0.18);
}

.faq-item__answer {
    border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.faq-item__answer-inner {
    padding: 1rem 1.4rem 1.35rem;
}

.faq-item__answer-inner p {
    margin: 0;
    color: var(--faq-muted, #475569);
    line-height: 1.75;
    font-size: 0.98rem;
}

.faq-section__empty,
.faq-section__no-results {
    border: 1px dashed rgba(148, 163, 184, 0.45);
    border-radius: 18px;
    padding: 1.2rem 1.3rem;
    text-align: center;
    color: #475569;
    background: rgba(248, 250, 252, 0.8);
}

.faq-section__empty p,
.faq-section__no-results p {
    margin: 0;
}

@media (max-width: 768px) {
    .faq-section {
        padding: 3.5rem 0;
    }

    .faq-search__box {
        border-radius: 18px;
        padding: 0.9rem 1rem;
    }

    .faq-item__question {
        padding: 1.05rem 1rem;
        font-size: 0.98rem;
    }

    .faq-item__answer-inner {
        padding: 0.95rem 1rem 1.1rem;
    }
}
