/* ==========================================================================
   FAQ Section Styles
   ========================================================================== */

/* Container Migration Notice:
 * .faq-container has been replaced with .main-container from base.css
 * This provides consistent spacing across all sections
 */

/* Section Container */
.faq-section {
    background-color: var(--bg-white);
    padding: 160px 0 80px 0;
}

.faq-section.city-faq-section {
    padding: 160px 0;
}

.faq-section.dumpster-faq-section {
    padding: 160px 0;
}

.faq-section.toilet-faq-section {
    padding: 80px 0 160px 0;
}

.faq-section.materials-faq-section {
    padding: 160px 0 160px 0;
}

/* Responsive padding for FAQ sections */
@media (min-width: 768px) and (max-width: 1279px) {
    .faq-section {
        padding: 100px 0 50px 0;
    }
    
    .faq-section.city-faq-section {
        padding: 100px 0;
    }
    
    .faq-section.dumpster-faq-section {
        padding: 100px 0;
    }
    
    .faq-section.toilet-faq-section {
        padding: 50px 0 100px 0;
    }
    
    .faq-section.materials-faq-section {
        padding: 100px 0 100px 0;
    }
}

@media (max-width: 767px) {
    .faq-section {
        padding: 80px 0 40px 0;
    }
    
    .faq-section.city-faq-section {
        padding: 80px 0;
    }
    
    .faq-section.dumpster-faq-section {
        padding: 80px 0;
    }
    
    .faq-section.toilet-faq-section {
        padding: 40px 0 80px 0;
    }
    
    .faq-section.materials-faq-section {
        padding: 80px 0 80px 0;
    }
}

/* FAQ container styles moved to main-container in base.css */
/* Note: Additional margins can be applied via page-specific CSS if needed */

/* Header */
.faq-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.faq-title {
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.faq-subtitle {
    color: var(--text-gray);
}

.faq-question {
    width: 100%;
    padding: 12px 20px;
    background: var(--bg-gray);
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
}

.faq-question span:first-child,
.faq-question .faq-question-text,
.faq-question h3 {
    transition: color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--bg-gray);
}

.faq-question[aria-expanded="true"] {
    background-color: var(--bg-gray);
}

.faq-question[aria-expanded="true"] span:first-child,
.faq-question[aria-expanded="true"] .faq-question-text,
.faq-question[aria-expanded="true"] h3 {
    color: var(--primary-green);
}

.faq-item {
    background-color: var(--bg-white);
    border: 1px solid var(--border-lighter);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

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


.faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.faq-icon svg {
    width: 100%;
    height: 100%;
    color: var(--text-gray);
}

/* Expanded State */
.faq-item.expanded .faq-icon {
    transform: rotate(180deg);
}

/* Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
}

.faq-answer-content {
    padding: 12px 20px 16px 20px;
    color: var(--text-dark);
    text-align: left;
}

.faq-answer-content a {
    color: var(--primary-blue-faq);
    text-decoration: none;
}

.faq-answer-content a:hover {
    text-decoration: underline;
}

.faq-answer-content ul,
.faq-answer-content ol {
    margin: var(--spacing-sm) 0;
    padding-left: var(--spacing-lg);
}

.faq-answer-content li {
    margin-bottom: var(--spacing-xs);
}

/* Expanded Answer */
.faq-item.expanded .faq-answer {
    max-height: 1000px; /* Adjust based on content */
}

/* ==========================================================================
   Mobile FAQ Styles (XS - < 600px)
   ========================================================================== */
@media screen and (max-width: 599px) {
    .faq-section {
        padding: 40px 0 20px 0;
    }

    /* FAQ container padding handled by main-container responsive styles */
    
    .faq-question {
        padding: 10px 16px;
    }
    
    .faq-answer-content {
        padding: 12px;
    }

    .faq-header {
        margin-bottom: var(--spacing-lg);
    }
}

/* ==========================================================================
   Tablet FAQ Styles (SM - 600px to 959px)
   ========================================================================== */
@media screen and (min-width: 600px) and (max-width: 959px) {
    /* FAQ container padding handled by main-container responsive styles */
    .faq-section {
    padding: 60px 0 30px 0;
    }

    .faq-header {
        margin-bottom: 40px;
    }
    
}

/* ==========================================================================
   Desktop FAQ Styles (MD - 960px to 1279px)
   ========================================================================== */
@media screen and (min-width: 960px) and (max-width: 1279px) {
    /* FAQ container padding handled by main-container responsive styles */
    .faq-section {
    padding: 100px 0 50px 0;
    }

    .faq-header {
        margin-bottom: 40px;
    }

}