/* ================================================
   TROPIMAS 2026 — FAQ Page Styles
   Premium Carnival FAQ Experience
   ================================================ */

/* === FAQ HERO === */
.faq-hero {
    position: relative;
    padding: 160px 0 80px;
    text-align: center;
    overflow: hidden;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.faq-hero-bg {
    position: absolute;
    inset: 0;
    background-color: var(--bg-black);
    background-image:
        radial-gradient(ellipse at 25% 30%, rgba(233, 30, 140, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 70%, rgba(123, 47, 247, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 230, 118, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 20%, rgba(255, 107, 26, 0.06) 0%, transparent 40%);
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.faq-hero .container {
    position: relative;
    z-index: 2;
}

.faq-hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.5rem);
    letter-spacing: 6px;
    margin-bottom: 16px;
}

.faq-hero-sub {
    font-size: 1rem;
    color: var(--text-dim);
    max-width: 560px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

.faq-hero-accent {
    width: 80px;
    height: 3px;
    background: var(--gradient-fire);
    margin: 0 auto;
    border-radius: 2px;
}

/* === FAQ SEARCH === */
.faq-search-section {
    padding: 0;
    margin-top: -30px;
    position: relative;
    z-index: 3;
}

.faq-search-card {
    max-width: 640px;
    margin: 0 auto;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-search-card:focus-within {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(255, 107, 26, 0.08);
}

.faq-search-icon {
    padding-left: 16px;
    color: var(--text-dim);
    flex-shrink: 0;
}

.faq-search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 14px 0;
}

.faq-search-input::placeholder {
    color: var(--text-dim);
}

/* === FAQ CATEGORIES === */
.faq-categories-section {
    padding: 60px 0 20px;
}

.faq-category-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-tab {
    padding: 10px 22px;
    border-radius: 100px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-tab:hover {
    border-color: var(--border-accent);
    color: var(--text-light);
}

.faq-tab.active {
    background: var(--gradient-fire);
    border-color: transparent;
    color: #fff;
}

/* === FAQ CONTENT === */
.faq-content-section {
    padding: 40px 0 80px;
}

.faq-category-group {
    max-width: 820px;
    margin: 0 auto 48px;
}

.faq-category-group:last-child {
    margin-bottom: 0;
}

.faq-category-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    color: var(--orange);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-category-title .cat-icon {
    font-size: 1.1rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* FAQ Items */
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-item:hover {
    border-color: var(--border-accent);
}

.faq-item.open {
    border-color: rgba(255, 107, 26, 0.3);
    box-shadow: 0 4px 20px rgba(255, 107, 26, 0.05);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    width: 100%;
    background: none;
    border: none;
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-align: left;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--orange);
}

.faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 107, 26, 0.06);
    border: 1px solid rgba(255, 107, 26, 0.12);
    transition: all 0.3s ease;
}

.faq-item.open .faq-icon {
    background: var(--orange);
    border-color: var(--orange);
    transform: rotate(45deg);
}

.faq-item.open .faq-icon svg {
    stroke: #fff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.faq-item.open .faq-answer {
    max-height: 400px;
}

.faq-answer-inner {
    padding: 0 24px 22px;
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.8;
}

.faq-answer-inner a {
    color: var(--orange);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.faq-answer-inner strong {
    color: var(--text-light);
}

.faq-answer-inner .red-text {
    color: #ff4444;
    font-weight: 600;
}

/* === STILL HAVE QUESTIONS === */
.faq-contact-section {
    padding: 60px 0 80px;
    text-align: center;
}

.faq-contact-card {
    max-width: 640px;
    margin: 0 auto;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}

.faq-contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 107, 26, 0.03) 0%, transparent 50%, rgba(123, 47, 247, 0.03) 100%);
    pointer-events: none;
}

.faq-contact-card h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: 3px;
    margin-bottom: 12px;
    position: relative;
}

.faq-contact-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
    position: relative;
}

.faq-contact-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
}

.faq-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 100px;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.faq-contact-btn--primary {
    background: var(--gradient-fire);
    color: #fff;
}

.faq-contact-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 26, 0.3);
}

.faq-contact-btn--secondary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-light);
}

.faq-contact-btn--secondary:hover {
    border-color: var(--orange);
    color: var(--orange);
    transform: translateY(-2px);
}

/* === NO RESULTS === */
.faq-no-results {
    text-align: center;
    padding: 60px 20px;
    display: none;
}

.faq-no-results.visible {
    display: block;
}

.faq-no-results p {
    font-size: 1rem;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.faq-no-results .emoji {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .faq-hero {
        padding: 140px 0 60px;
        min-height: 40vh;
    }

    .faq-category-tabs {
        gap: 8px;
    }

    .faq-tab {
        padding: 8px 16px;
        font-size: 0.7rem;
    }

    .faq-question {
        padding: 16px 18px;
        font-size: 0.82rem;
    }

    .faq-answer-inner {
        padding: 0 18px 18px;
        font-size: 0.82rem;
    }

    .faq-contact-card {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .faq-hero {
        padding: 130px 0 50px;
        min-height: 35vh;
    }

    .faq-search-card {
        border-radius: 12px;
    }
}