/* FAQ Page Specific Styles - Modernized */

.faq-hero {
    padding: clamp(120px, 18vh, 160px) 0 clamp(80px, 12vh, 100px);
    background: var(--gradient-page-hero);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.faq-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(78, 205, 196, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(255, 107, 122, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
    animation: gradientShift 20s ease infinite;
}

.faq-header {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-header h1 {
    font-size: clamp(36px, 6.5vw, 64px);
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    color: white;
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.faq-header p {
    font-size: clamp(18px, 2.5vw, 22px);
    opacity: 0.95;
    line-height: 1.7;
    letter-spacing: 0.01em;
    max-width: 800px;
    margin: 0 auto;
}

/* Search Section - Modernized */
.faq-search {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-rosa) 100%);
}

.search-container {
    max-width: min(700px, 90vw);
    margin: 0 auto;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-navy);
    font-size: clamp(16px, 2vw, 20px);
    z-index: 2;
    transition: transform var(--transition-base);
}

.search-box:focus-within i {
    transform: scale(1.1);
    color: var(--color-teal-hero);
}

.search-box input {
    width: 100%;
    padding: clamp(16px, 2.5vw, 20px) clamp(1rem, 2vw, 1.25rem) clamp(16px, 2.5vw, 20px) clamp(3rem, 5vw, 3.5rem);
    border: 2px solid rgba(59, 76, 107, 0.2);
    border-radius: var(--border-radius-xl);
    font-size: clamp(15px, 1.8vw, 18px);
    background: white;
    color: var(--color-charcoal);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    font-family: 'Poppins', sans-serif;
    min-height: 56px; /* Touch target */
}

.search-box input:focus {
    outline: none;
    border-color: var(--color-teal-hero);
    box-shadow: var(--shadow-lg), 0 0 0 3px rgba(78, 205, 196, 0.15);
    transform: translateY(-2px);
}

.search-box input::placeholder {
    color: rgba(42, 46, 53, 0.6);
}

/* Category Filters - Modernized */
.faq-categories {
    padding: clamp(2rem, 4vw, 2.5rem) 0 clamp(1rem, 2vw, 1.25rem);
    border-bottom: 1px solid rgba(175, 196, 216, 0.3);
    position: sticky;
    top: 70px;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.category-filters {
    display: flex;
    justify-content: center;
    gap: clamp(0.75rem, 1.5vw, 1rem);
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 2vw, 1.5rem);
}

.category-btn {
    padding: clamp(10px, 1.5vw, 14px) clamp(18px, 3vw, 26px);
    border: 2px solid rgba(59, 76, 107, 0.2);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: var(--color-navy);
    border-radius: var(--border-radius-xl);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: clamp(13px, 1.6vw, 15px);
    min-height: 44px; /* Touch target */
    position: relative;
    overflow: hidden;
}

.category-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(59, 76, 107, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 0;
}

.category-btn:hover::after {
    width: 200px;
    height: 200px;
}

.category-btn:hover {
    border-color: var(--color-navy);
    background: rgba(59, 76, 107, 0.08);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.category-btn.active {
    background: linear-gradient(135deg, var(--color-navy-hero) 0%, var(--color-blue) 100%);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.category-btn.active::after {
    background: rgba(255, 255, 255, 0.2);
}

/* FAQ Content - Modernized */
.faq-content {
    padding: clamp(3rem, 6vw, 5rem) 0;
    background: white;
}

.faq-grid {
    max-width: min(900px, 95vw);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 1.5rem);
    padding: 0 clamp(1rem, 2vw, 1.5rem);
}

.faq-item {
    background: rgba(249, 248, 246, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 2px solid rgba(175, 196, 216, 0.2);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }
.faq-item:nth-child(5) { animation-delay: 0.5s; }

.faq-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: rgba(175, 196, 216, 0.4);
}

.faq-item.active {
    border-color: rgba(78, 205, 196, 0.3);
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(78, 205, 196, 0.08);
}

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

.faq-question {
    padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.5rem, 3vw, 2rem);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-base);
    position: relative;
    min-height: 44px; /* Touch target */
}

.faq-question::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform var(--transition-base);
}

.faq-item.active .faq-question::before {
    background: linear-gradient(180deg, var(--color-teal-hero) 0%, var(--color-navy-hero) 100%);
    transform: scaleY(1);
}

.faq-question:hover {
    background: rgba(59, 76, 107, 0.05);
}

.faq-question h3 {
    font-size: clamp(17px, 2.2vw, 20px);
    color: var(--color-navy);
    margin: 0;
    font-weight: 600;
    line-height: 1.5;
    flex: 1;
    padding-right: clamp(1rem, 2vw, 1.25rem);
}

.faq-question i {
    color: var(--color-navy);
    font-size: clamp(18px, 2.5vw, 22px);
    transition: transform var(--transition-base);
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
    color: var(--color-blue);
}

.faq-answer {
    padding: 0 clamp(1.5rem, 3vw, 2rem);
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    color: var(--color-charcoal);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    padding: 0 clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2rem);
    max-height: 2000px;
}

.faq-answer p {
    margin-bottom: clamp(0.75rem, 1.5vw, 1rem);
    font-size: clamp(15px, 1.8vw, 17px);
    opacity: 0.9;
}

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

.faq-answer ul,
.faq-answer ol {
    margin: clamp(0.75rem, 1.5vw, 1rem) 0;
    padding-left: clamp(1.25rem, 2.5vw, 1.75rem);
}

.faq-answer li {
    margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
    font-size: clamp(14px, 1.7vw, 16px);
}

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

/* Highlight search results */
.highlight {
    background: linear-gradient(135deg, #F4C842 0%, #F39C12 100%);
    color: var(--color-charcoal);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(244, 200, 66, 0.3);
}

/* No results message */
.no-results {
    text-align: center;
    padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 2vw, 1.5rem);
    color: var(--color-charcoal);
    opacity: 0.75;
    display: none;
    animation: fadeInUp 0.6s ease-out;
}

.no-results.show {
    display: block;
}

.no-results i {
    font-size: clamp(40px, 6vw, 56px);
    color: var(--color-blue);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    display: block;
    opacity: 0.6;
}

.no-results h3 {
    font-size: clamp(22px, 3.5vw, 28px);
    margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
    color: var(--color-navy);
    font-weight: 600;
}

.no-results p {
    font-size: clamp(15px, 2vw, 18px);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

/* Support Section - Modernized */
.faq-support {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: linear-gradient(135deg, var(--color-rosa) 0%, var(--color-malve) 100%);
}

.support-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: clamp(3rem, 6vw, 4rem) clamp(2rem, 4vw, 3rem);
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.4);
    max-width: min(1000px, 95vw);
    margin: 0 auto;
}

.support-card h2 {
    font-size: clamp(28px, 4vw, 36px);
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
    color: var(--color-navy);
    font-weight: 700;
}

.support-card > p {
    font-size: clamp(16px, 2vw, 20px);
    margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--color-charcoal);
    opacity: 0.85;
    line-height: 1.7;
}

.support-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
    max-width: 900px;
    margin: 0 auto;
}

.support-option {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(240, 212, 219, 0.1) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: clamp(2rem, 4vw, 2.5rem) clamp(1.5rem, 3vw, 2rem);
    border-radius: var(--border-radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid rgba(175, 196, 216, 0.3);
}

.support-option:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(78, 205, 196, 0.12);
    border-color: rgba(175, 196, 216, 0.5);
}

.support-option i {
    font-size: clamp(40px, 5vw, 52px);
    color: var(--color-navy);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    transition: transform var(--transition-base);
}

.support-option:hover i {
    transform: scale(1.15) rotate(5deg);
}

.support-option h3 {
    font-size: clamp(20px, 2.5vw, 24px);
    margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
    color: var(--color-navy);
    font-weight: 600;
}

.support-option p {
    margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
    color: var(--color-charcoal);
    opacity: 0.85;
    font-size: clamp(14px, 1.8vw, 16px);
    line-height: 1.6;
}

/* FAQ Categories - Clean style without icons */

/* Loading Animation */
.faq-loading {
    text-align: center;
    padding: clamp(2rem, 4vw, 3rem);
    display: none;
}

.faq-loading.show {
    display: block;
}

.faq-loading i {
    font-size: clamp(28px, 4vw, 36px);
    color: var(--color-blue);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Search Result Counter */
.search-results-counter {
    text-align: center;
    padding: clamp(1rem, 2vw, 1.5rem) 0;
    color: var(--color-navy);
    font-weight: 600;
    font-size: clamp(14px, 1.8vw, 16px);
    display: none;
    animation: fadeInUp 0.4s ease-out;
}

.search-results-counter.show {
    display: block;
}

/* Special styles for featured questions */
.faq-item.featured {
    border-left: 4px solid var(--color-navy);
    background: linear-gradient(135deg, rgba(59, 76, 107, 0.08) 0%, rgba(175, 196, 216, 0.12) 100%);
    box-shadow: var(--shadow-md);
}

.faq-item.featured .faq-question::before {
    content: "⭐";
    margin-right: clamp(0.5rem, 1vw, 0.75rem);
    font-size: clamp(14px, 2vw, 18px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq-hero {
        padding: clamp(80px, 12vh, 120px) 0 clamp(40px, 8vh, 60px);
    }
    
    .faq-categories {
        top: 60px;
    }
    
    .faq-question {
        padding: clamp(1rem, 2vw, 1.25rem) clamp(1.25rem, 2.5vw, 1.5rem);
    }
    
    .faq-answer {
        padding: 0 clamp(1.25rem, 2.5vw, 1.5rem);
    }
    
    .faq-item.active .faq-answer {
        padding: 0 clamp(1.25rem, 2.5vw, 1.5rem) clamp(1.25rem, 2.5vw, 1.5rem);
    }
    
    .support-card {
        padding: clamp(2rem, 4vw, 2.5rem) clamp(1.5rem, 3vw, 2rem);
        margin: 0 clamp(0.75rem, 2vw, 1rem);
    }
    
    .support-options {
        grid-template-columns: 1fr;
        gap: clamp(1.25rem, 2.5vw, 1.75rem);
    }
}

@media (max-width: 480px) {
    .faq-search {
        padding: clamp(1.5rem, 3vw, 2rem) 0;
    }
    
    .faq-content {
        padding: clamp(2rem, 4vw, 3rem) 0;
    }
    
    .category-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: clamp(0.5rem, 1vw, 0.75rem);
        scrollbar-width: thin;
    }
    
    .category-btn {
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .faq-question {
        padding: clamp(0.9rem, 2vw, 1.1rem) clamp(1rem, 2vw, 1.25rem);
    }
    
    .faq-question h3 {
        font-size: clamp(15px, 3vw, 17px);
        line-height: 1.4;
    }
    
    .faq-answer {
        padding: 0 clamp(1rem, 2vw, 1.25rem);
    }
    
    .faq-item.active .faq-answer {
        padding: 0 clamp(1rem, 2vw, 1.25rem) clamp(1rem, 2vw, 1.25rem);
    }
    
    .support-card {
        padding: clamp(1.5rem, 3vw, 2rem) clamp(1rem, 2vw, 1.25rem);
    }
    
    .support-option {
        padding: clamp(1.5rem, 3vw, 2rem) clamp(1rem, 2vw, 1.25rem);
    }
    
    .support-option i {
        font-size: clamp(36px, 5vw, 44px);
    }
}

/* Print styles */
@media print {
    .faq-search,
    .faq-categories,
    .faq-support,
    .navbar,
    .footer {
        display: none !important;
    }
    
    .faq-item {
        page-break-inside: avoid;
        margin-bottom: 20px;
        border: 1px solid #ccc;
    }
    
    .faq-answer {
        max-height: none !important;
        padding: 15px !important;
    }
    
    .faq-question i {
        display: none;
    }
}

/* Accessibility */
.faq-question:focus-visible {
    outline: 3px solid var(--color-navy);
    outline-offset: 2px;
}

.category-btn:focus-visible {
    outline: 3px solid var(--color-navy);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .faq-item,
    .no-results,
    .search-results-counter {
        animation: none;
    }
    
    .faq-loading i {
        animation: none;
    }
}
