/* FAQ — premium layout (faq.php) */
.faq-page {
    background: #f4f5f7;
    overflow-x: hidden;
}

.faq-hero {
    position: relative;
    padding: 3.5rem 1.25rem 5rem;
    background:
        linear-gradient(125deg, rgba(26, 26, 26, 0.93) 0%, rgba(40, 40, 40, 0.9) 50%, rgba(163, 0, 47, 0.5) 100%),
        url('https://images.unsplash.com/photo-1486312338219-ce68d2c6f44d?auto=format&fit=crop&q=80&w=1600') center/cover no-repeat;
    color: #fff;
}

.faq-hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 100px;
    background: linear-gradient(to top, #f4f5f7, transparent);
    pointer-events: none;
}

.faq-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    align-items: center;
}

.faq-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    margin-bottom: 1rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.faq-hero__badge i,
.faq-hero__badge svg {
    width: 1rem;
    height: 1rem;
}

.faq-hero__title {
    font-size: clamp(1.85rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.65rem;
}

.faq-hero__subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    opacity: 0.92;
    line-height: 1.65;
    margin-bottom: 0.75rem;
}

.faq-hero__intro {
    font-size: 0.95rem;
    line-height: 1.75;
    opacity: 0.85;
    max-width: 36rem;
}

.faq-hero__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.faq-hero__stat {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.85rem;
    padding: 1rem 0.75rem;
    text-align: center;
    backdrop-filter: blur(8px);
}

.faq-hero__stat i,
.faq-hero__stat svg {
    width: 1.45rem;
    height: 1.45rem;
    color: #ff8fa3;
    margin-bottom: 0.45rem;
}

.faq-hero__stat span {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.35;
    opacity: 0.92;
}

.faq-wrap {
    max-width: 860px;
    margin: -2.5rem auto 3rem;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.faq-search {
    background: #fff;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.75rem;
    border: 1px solid var(--border-color, #e2e2e2);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.faq-search__label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary, #1a1a1a);
    margin-bottom: 0.65rem;
}

.faq-search__label i,
.faq-search__label svg {
    width: 1.1rem;
    height: 1.1rem;
    color: var(--primary, #c3002f);
}

.faq-search__field {
    position: relative;
}

.faq-search__field i,
.faq-search__field svg {
    position: absolute;
    inset-inline-start: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.15rem;
    height: 1.15rem;
    color: var(--text-secondary, #666);
    pointer-events: none;
}

.faq-search__input {
    width: 100%;
    padding: 0.85rem 1rem;
    padding-inline-start: 2.75rem;
    border: 1px solid var(--border-color, #e2e2e2);
    border-radius: 0.75rem;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-search__input:focus {
    outline: none;
    border-color: var(--primary, #c3002f);
    box-shadow: 0 0 0 3px rgba(195, 0, 47, 0.12);
}

.faq-section-head {
    text-align: center;
    margin-bottom: 1.25rem;
}

.faq-section-head h2 {
    font-size: clamp(1.25rem, 3vw, 1.55rem);
    font-weight: 800;
    color: var(--text-primary, #1a1a1a);
    margin-bottom: 0.35rem;
}

.faq-section-head p {
    font-size: 0.9rem;
    color: var(--text-secondary, #666);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.faq-item {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid var(--border-color, #e2e2e2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.faq-item:hover {
    border-color: rgba(195, 0, 47, 0.2);
}

.faq-item.is-open {
    border-color: rgba(195, 0, 47, 0.35);
    box-shadow: 0 10px 28px rgba(195, 0, 47, 0.1);
}

.faq-item.is-hidden {
    display: none;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: start;
    transition: background 0.2s;
}

.faq-question:hover {
    background: rgba(195, 0, 47, 0.04);
}

.faq-question__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.7rem;
    background: rgba(195, 0, 47, 0.08);
    color: var(--primary, #c3002f);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.faq-question__icon i,
.faq-question__icon svg {
    width: 1.2rem;
    height: 1.2rem;
}

.faq-question__text {
    flex: 1;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary, #1a1a1a);
    line-height: 1.45;
}

.faq-question__chevron {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary, #c3002f);
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.faq-item.is-open .faq-question__chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-answer__inner {
    padding: 0 1.35rem 1.25rem;
    padding-inline-start: calc(1.35rem + 2.5rem + 1rem);
}

.faq-answer__inner p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.8;
    color: var(--text-secondary, #666);
    border-top: 1px solid var(--border-color, #e2e2e2);
    padding-top: 1rem;
}

.faq-empty {
    display: none;
    text-align: center;
    padding: 2rem 1rem;
    background: #fff;
    border-radius: 1rem;
    border: 1px dashed var(--border-color, #e2e2e2);
    color: var(--text-secondary, #666);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.faq-empty.is-visible {
    display: block;
}

.faq-cta {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    padding: 2rem 2.25rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #3d0a14 100%);
    color: #fff;
    box-shadow: 0 16px 40px rgba(195, 0, 47, 0.18);
}

.faq-cta h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.faq-cta p {
    margin: 0;
    opacity: 0.88;
    font-size: 0.95rem;
    line-height: 1.65;
    max-width: 34rem;
}

.faq-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.faq-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem 1.25rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.faq-btn i,
.faq-btn svg {
    width: 1rem;
    height: 1rem;
}

.faq-btn--primary {
    background: #fff;
    color: var(--primary, #c3002f);
}

.faq-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.faq-btn--ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.faq-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .faq-hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .faq-hero__intro {
        margin-inline: auto;
    }

    .faq-hero__stats {
        max-width: 360px;
        margin: 0 auto;
    }

    .faq-answer__inner {
        padding-inline-start: 1.35rem;
    }

    .faq-cta {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .faq-cta__actions {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .faq-hero {
        padding: 2.5rem 1rem 4rem;
    }

    .faq-wrap {
        margin-top: -2rem;
    }

    .faq-question {
        padding: 1rem;
        gap: 0.75rem;
    }

    .faq-question__text {
        font-size: 0.92rem;
    }

    .faq-cta {
        padding: 1.5rem;
    }

    .faq-cta__actions {
        flex-direction: column;
        width: 100%;
    }

    .faq-btn {
        width: 100%;
        justify-content: center;
    }
}
