/* FAQ Section Styling - Consistent across all pages */
.faq-section {
    padding: 60px 0;
    background: white;
}

.faq-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #1e293b;
}

/* Accordion Style FAQ */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-accordion .faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-accordion .faq-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f1f5f9;
}

.faq-question[aria-expanded="true"] {
    background: #e2e8f0;
    border-bottom: 1px solid #cbd5e1;
}

.faq-icon {
    font-size: 0.9rem;
    color: #64748b;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
    color: #3b82f6;
}

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

.faq-answer.active {
    max-height: 500px;
}

.faq-answer-content {
    padding: 1.5rem 2rem 2rem;
    color: #475569;
    line-height: 1.6;
}

.faq-answer-content p {
    margin: 0 0 1rem;
}

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

/* List Style FAQ */
.faq-list .faq-item {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-question-static {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 1rem;
}

.faq-answer-static {
    color: #475569;
    line-height: 1.6;
}

.faq-answer-static p {
    margin: 0 0 1rem;
}

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

/* Grid Layout for Contact Page */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.faq-grid .faq-item {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.faq-grid .faq-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.faq-grid .faq-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 1rem;
}

.faq-grid .faq-item p {
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* All FAQ sections use consistent styling */
.homepage-faq,
.occasion-faq,
.archive-faq,
.contact-page .faq-section {
    background: white;
    padding: 60px 0;
}

.homepage-faq .faq-accordion,
.occasion-faq .faq-accordion,
.archive-faq .faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

/* FAQ in lease section (single occasion) */
.lease-faq-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.lease-faq-section .faq-section {
    padding: 0;
    background: transparent;
}

.lease-faq-section .faq-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.lease-faq-section .faq-accordion {
    max-width: none;
}

.lease-faq-section .faq-item {
    margin-bottom: 0.75rem;
}

.lease-faq-section .faq-question {
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

.lease-faq-section .faq-answer-content {
    padding: 1rem 1.5rem 1.25rem;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq-section {
        padding: 40px 0;
    }
    
    .faq-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .faq-question {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
    }
    
    .faq-answer-content {
        padding: 1.25rem 1.5rem 1.5rem;
    }
    
    .faq-list .faq-item {
        padding: 1.5rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .faq-grid .faq-item {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .faq-answer-content {
        padding: 1rem 1.25rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .faq-list .faq-item {
        padding: 1.25rem;
    }
    
    .faq-grid .faq-item {
        padding: 1.25rem;
    }
}

/* Animation for FAQ accordion */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-answer.active .faq-answer-content {
    animation: fadeIn 0.3s ease;
}

/* Focus states for accessibility */
.faq-question:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.faq-question:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}
