/* ============================================
   FAQ PAGE STYLES - Enhanced with Interactions
   ============================================ */

/* ============================================
   FAQ SECTION
   ============================================ */

.faq-section {
    padding: 8rem 0 5rem 0;
    position: relative;
    min-height: 100vh;
}

/* Background image styling */
.faq-section-with-bg {
    position: relative;
    overflow: hidden;
}

.faq-section-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.faq-section-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: blur(2px);
}

.faq-section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
        rgba(250, 251, 252, 0.92) 0%,
        rgba(244, 245, 247, 0.94) 100%);
}

.faq-section-with-bg .container {
    position: relative;
    z-index: 1;
}

/* ============================================
   FAQ HERO HEADER
   ============================================ */

.faq-hero-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.faq-hero-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   SEARCH BOX
   ============================================ */

.faq-search {
    max-width: 600px;
    margin: 0 auto 2.5rem;
    position: relative;
}

.faq-search-input {
    width: 100%;
    padding: 1.125rem 1.5rem 1.125rem 3.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    font-size: 1rem;
    font-family: inherit;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.faq-search-input:focus {
    outline: none;
    border-color: var(--primary-400);
    box-shadow: var(--shadow-md), 0 0 0 4px rgba(0, 119, 182, 0.1);
}

.faq-search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 22px;
    pointer-events: none;
}

/* ============================================
   CATEGORY PILLS
   ============================================ */

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

.category-pill {
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-full);
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    background: white;
    color: var(--gray-600);
    border: 1.5px solid var(--border-color);
    box-shadow: var(--shadow-xs);
}

.category-pill:hover {
    background: var(--primary-100);
    color: var(--primary-600);
    border-color: var(--primary-300);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.category-pill.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-sm);
}

/* ============================================
   FAQ CONTAINER
   ============================================ */

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

/* ============================================
   FAQ CATEGORY
   ============================================ */

.faq-category {
    margin-bottom: 3rem;
}

.faq-category:last-of-type {
    margin-bottom: 2rem;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.875rem;
    border-bottom: 3px solid transparent;
    background: linear-gradient(to right, var(--primary-500), var(--primary-300)) left bottom no-repeat;
    background-size: 60px 3px;
}

.category-title .material-symbols-outlined {
    color: var(--primary-500);
    font-size: 28px;
    background: var(--primary-100);
    padding: 0.5rem;
    border-radius: var(--radius-md);
}

/* ============================================
   FAQ ITEM - Enhanced Accordion
   ============================================ */

.faq-item {
    background: white;
    border-radius: var(--radius-lg);
    margin-bottom: 0.875rem;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-200);
}

.faq-item.active {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-300);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.375rem 1.75rem;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    transition: all var(--transition-fast);
    gap: 1rem;
}

.faq-question:hover {
    color: var(--primary-600);
}

.faq-item.active .faq-question {
    color: var(--primary-600);
}

.faq-icon {
    flex-shrink: 0;
    font-size: 24px;
    color: var(--primary-400);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--primary-100);
    padding: 0.25rem;
    border-radius: var(--radius-sm);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    background: var(--primary-500);
    color: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 1.75rem;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 1.75rem 1.5rem 1.75rem;
}

.faq-answer-content {
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-light);
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0 0 1rem 0;
    font-size: 0.9375rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    margin: 0.75rem 0;
    padding-left: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.9375rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
    position: relative;
}

.faq-answer li::marker {
    color: var(--primary-400);
}

.faq-answer strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Links in answers */
.faq-link {
    color: var(--primary-600);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all var(--transition-fast);
}

.faq-link:hover {
    color: var(--primary-700);
    border-bottom-color: var(--primary-500);
}

/* Highlight boxes in answers */
.faq-highlight {
    background: var(--primary-100);
    border-left: 4px solid var(--primary-500);
    padding: 1rem 1.25rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 1rem 0;
}

.faq-highlight p {
    margin: 0;
    color: var(--primary-700);
}

/* ============================================
   NO RESULTS
   ============================================ */

.faq-no-results {
    text-align: center;
    padding: 3rem 2rem;
    display: none;
}

.faq-no-results.visible {
    display: block;
}

.faq-no-results .material-symbols-outlined {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.faq-no-results h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.faq-no-results p {
    color: var(--text-muted);
}

/* ============================================
   FAQ CTA
   ============================================ */

.faq-cta {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.faq-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.faq-cta h3 {
    color: var(--text-primary);
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.faq-cta p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.9375rem 2rem;
    border-radius: var(--radius-full);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-600);
    border-color: var(--primary-500);
}

.btn-secondary:hover {
    background: var(--primary-500);
    color: white;
    transform: translateY(-3px);
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* Stagger animation for FAQ items */
.faq-item {
    opacity: 0;
    transform: translateY(15px);
    animation: faqItemFadeIn 0.5s ease forwards;
}

.faq-category:nth-child(1) .faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-category:nth-child(1) .faq-item:nth-child(2) { animation-delay: 0.15s; }
.faq-category:nth-child(1) .faq-item:nth-child(3) { animation-delay: 0.2s; }
.faq-category:nth-child(1) .faq-item:nth-child(4) { animation-delay: 0.25s; }
.faq-category:nth-child(2) .faq-item:nth-child(1) { animation-delay: 0.3s; }
.faq-category:nth-child(2) .faq-item:nth-child(2) { animation-delay: 0.35s; }
.faq-category:nth-child(2) .faq-item:nth-child(3) { animation-delay: 0.4s; }
.faq-category:nth-child(2) .faq-item:nth-child(4) { animation-delay: 0.45s; }
.faq-category:nth-child(2) .faq-item:nth-child(5) { animation-delay: 0.5s; }
.faq-category:nth-child(3) .faq-item:nth-child(1) { animation-delay: 0.55s; }
.faq-category:nth-child(3) .faq-item:nth-child(2) { animation-delay: 0.6s; }
.faq-category:nth-child(3) .faq-item:nth-child(3) { animation-delay: 0.65s; }
.faq-category:nth-child(3) .faq-item:nth-child(4) { animation-delay: 0.7s; }
.faq-category:nth-child(4) .faq-item:nth-child(1) { animation-delay: 0.75s; }
.faq-category:nth-child(4) .faq-item:nth-child(2) { animation-delay: 0.8s; }
.faq-category:nth-child(4) .faq-item:nth-child(3) { animation-delay: 0.85s; }
.faq-category:nth-child(4) .faq-item:nth-child(4) { animation-delay: 0.9s; }

@keyframes faqItemFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

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

    .faq-hero-header {
        margin-bottom: 2rem;
        padding: 1rem 0;
    }

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

    .faq-search-input {
        padding: 1rem 1.25rem 1rem 3rem;
        font-size: 0.9375rem;
    }

    .faq-search-icon {
        left: 1rem;
        font-size: 20px;
    }

    .faq-categories {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }

    .category-pill {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }

    .faq-section-background img {
        filter: blur(1px);
    }

    .category-title {
        font-size: 1.25rem;
    }

    .category-title .material-symbols-outlined {
        font-size: 24px;
        padding: 0.375rem;
    }

    .faq-question {
        padding: 1.125rem 1.25rem;
        font-size: 1rem;
    }

    .faq-icon {
        font-size: 22px;
    }

    .faq-answer {
        padding: 0 1.25rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 1.25rem 1.25rem 1.25rem;
    }

    .faq-answer p,
    .faq-answer ul {
        font-size: 0.9rem;
    }

    .faq-cta {
        padding: 2rem 1.5rem;
        border-radius: var(--radius-xl);
    }

    .faq-cta h3 {
        font-size: 1.5rem;
    }

    .faq-cta p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .faq-item {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .faq-item,
    .faq-icon,
    .faq-answer,
    .category-pill,
    .btn {
        transition: none;
    }
}
