/* FAQ Page Styles */

/* Keyframe Animations */
@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes accordion-down {
    0% {
        height: 0;
        opacity: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    100% {
        height: auto;
        opacity: 1;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

@keyframes accordion-up {
    0% {
        height: auto;
        opacity: 1;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    100% {
        height: 0;
        opacity: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fade-in 0.6s ease-out forwards;
}

.faq-item:nth-child(2) { animation-delay: 0.1s; }
.faq-item:nth-child(3) { animation-delay: 0.2s; }
.faq-item:nth-child(4) { animation-delay: 0.3s; }
.faq-item:nth-child(5) { animation-delay: 0.4s; }
.faq-item:nth-child(6) { animation-delay: 0.5s; }
.faq-item:nth-child(7) { animation-delay: 0.6s; }
.faq-item:nth-child(8) { animation-delay: 0.7s; }

/* Hero Section */
.faq-hero {
    background: linear-gradient(135deg, gold 0%, rgb(172, 148, 12) 100%);
    padding: 8rem 2rem 4rem;
    text-align: center;
    color: white;
    margin-top: 80px;
}

.faq-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.faq-hero .hero-title {
    font-family: 'Lora', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #e0e6ed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-hero .hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* Main FAQ Section */
.faq-main {
    padding: 4rem 2rem;
    background: #fafafa;
    min-height: 50vh;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-list {
    margin-bottom: 4rem;
}

/* FAQ Items */
.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    overflow: hidden;
    opacity: 0;
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.faq-question {
    padding: 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    transition: background-color 0.3s ease;
    border: none;
    background: none;
    width: 100%;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-question:focus {
    outline: 2px solid gold;
    outline-offset: -2px;
}

.faq-question h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.4;
    flex: 1;
    text-align: left;
}

.faq-icon {
    font-size: 1.5rem;
    color:gold;
    font-weight: 300;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color:gold;
}

.faq-answer {
    padding: 0 2rem;
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.open {
    animation: accordion-down 0.3s ease-out forwards;
}

.faq-answer.closing {
    animation: accordion-up 0.3s ease-out forwards;
}

.faq-answer p {
    font-size: 1rem;
    line-height: 1.6;
    color: #4a5568;
    margin: 0;
    padding: 0;
}

/* Feedback Section */
.faq-feedback {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.feedback-content h3 {
    font-family: 'Lora', serif;
    font-size: 2rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.feedback-content p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 2rem;
}

.feedback-cta {
    margin-top: 2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
}

.cta-button.primary {
    background: linear-gradient(135deg, gold 0%, gold 100%);
    color: white;
}



.cta-button.primary:active {
    transform: translateY(0);
}

/* Footer active page styling */
.footer-nav .active-page {
    color: #0066cc;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq-hero {
        padding: 6rem 1.5rem 3rem;
    }

    .faq-hero .hero-title {
        font-size: 2.5rem;
    }

    .faq-hero .hero-description {
        font-size: 1.125rem;
    }

    .faq-main {
        padding: 3rem 1.5rem;
    }

    .faq-question {
        padding: 1.5rem;
    }

    .faq-question h2 {
        font-size: 1.125rem;
    }

    .faq-answer {
        padding: 0 1.5rem;
    }

    .faq-feedback {
        padding: 2rem;
    }

    .feedback-content h3 {
        font-size: 1.5rem;
    }

    .feedback-content p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .faq-hero {
        padding: 5rem 1rem 2.5rem;
    }

    .faq-hero .hero-title {
        font-size: 2rem;
    }

    .faq-question {
        padding: 1.25rem;
    }

    .faq-question h2 {
        font-size: 1rem;
    }

    .faq-feedback {
        padding: 1.5rem;
    }

    .feedback-content h3 {
        font-size: 1.25rem;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .faq-item {
        animation: none;
    }
    
    .animate-fade-in {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .faq-icon {
        transition: none;
    }
    
    .faq-answer {
        transition: none;
    }
    
    .cta-button {
        transition: none;
    }
}

/* Focus styles for better accessibility */
.faq-question:focus-visible {
    outline: 3px solid gold;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .faq-item {
        border: 2px solid #000;
    }
    
    .faq-question h2 {
        color: #000;
    }
    
    .faq-answer p {
        color: #000;
    }
}