/**
 * ============================================================================
 * FAQ CO2 Style - Card Design with Shadows
 * ============================================================================
 * 
 * THIS IS THE REFERENCE IMPLEMENTATION FOR ALL FAQ SECTIONS
 * 
 * Purpose: Creates elevated card-style FAQ items with proper shadows
 * Design Standard: Matches the CO2 laser landing page design requirements
 * 
 * TO IMPLEMENT ON OTHER TEMPLATES:
 * 1. Include this CSS file in your template
 * 2. Use the HTML structure from t_co2-laser-landing.php (lines 531-550)
 * 3. Include the JavaScript from t_co2-laser-landing.php (lines 603-636)
 * 
 * For detailed documentation, see: /CLAUDE.md
 * For reusable component version, see: /css/components/faq-component.css
 * 
 * ============================================================================
 */

/* ==========================================================================
   SECTION CONTAINER
   ==========================================================================
   Main FAQ section styling - provides gray background container */
.faq-section {
    background: #f8f9fa !important;
    padding: 80px 0;
}

/* ==========================================================================
   ACCORDION CONTAINER
   ==========================================================================
   Container for FAQ accordion - centers content with max-width */
.faq-accordion {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   FAQ CARDS
   ==========================================================================
   FAQ Item - Card Style with Shadow
   CRITICAL: These shadows are essential to the design pattern */
.faq-item {
    background: white !important;
    border: none !important;
    border-radius: 8px !important;
    margin-bottom: 20px !important;
    padding: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    transition: box-shadow 0.3s ease !important;
    overflow: hidden !important;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
}

.faq-item:last-child {
    margin-bottom: 0 !important;
}

/* ==========================================================================
   QUESTION BUTTON
   ==========================================================================
   Question styling - Interactive button with hover states
   NOTE: The flex layout ensures icon alignment */
.faq-question {
    background: white !important;
    border: none !important;
    padding: 24px 30px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #333333 !important;
    width: 100% !important;
    text-align: left !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border-radius: 0 !important;
    position: relative !important;
}

.faq-question:hover {
    background: #f8f9fa !important;
    color: #00B189 !important;
}

.faq-question:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Active/Expanded state
   IMPORTANT: Border-bottom only appears when expanded */
.faq-question[aria-expanded="true"] {
    background: white !important;
    color: #00B189 !important;
    border-bottom: 1px solid #e9ecef !important;
}

/* ==========================================================================
   ANSWER CONTENT
   ==========================================================================
   Answer styling - Collapsible content area
   Uses max-height for smooth animation */
.faq-answer {
    background: white !important;
    padding: 0 30px !important;
    max-height: 0 !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
}

.faq-answer.active {
    padding: 20px 30px 30px 30px !important;
    max-height: 1000px !important;
}

/* Answer content typography */
.faq-answer p {
    color: #6c757d !important;
    line-height: 1.7 !important;
    margin-bottom: 15px !important;
}

.faq-answer p:last-child {
    margin-bottom: 0 !important;
}

.faq-answer ul,
.faq-answer ol {
    color: #6c757d !important;
    line-height: 1.7 !important;
    margin: 15px 0 !important;
    padding-left: 20px !important;
}

.faq-answer li {
    color: #6c757d !important;
    margin-bottom: 8px !important;
}

/* ==========================================================================
   TOGGLE ICON
   ==========================================================================
   Plus/minus toggle styling
   BEHAVIOR: Rotates 45deg when expanded to form an X */
.faq-toggle {
    font-size: 24px !important;
    font-weight: 300 !important;
    color: #9ca3af !important;
    transition: transform 0.3s ease !important;
    display: inline-block !important;
    line-height: 1 !important;
    margin-left: 20px !important;
    flex-shrink: 0 !important;
}

.faq-question[aria-expanded="true"] .faq-toggle {
    transform: rotate(45deg) !important;
    color: #00B189 !important;
}

/* ==========================================================================
   SECTION TITLE
   ==========================================================================
   Section title styling - Centered heading above FAQs */
.faq-section h2,
.faq-section .section-title {
    color: #333333 !important;
    font-size: 36px !important;
    font-weight: 600 !important;
    margin-bottom: 50px !important;
    text-align: center !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ==========================================================================
   Responsive adjustments for mobile devices */
@media (max-width: 768px) {
    .faq-question {
        padding: 20px !important;
        font-size: 16px !important;
    }
    
    .faq-answer {
        padding: 0 20px !important;
    }
    
    .faq-answer.active {
        padding: 15px 20px 20px 20px !important;
    }
    
    .faq-toggle {
        font-size: 20px !important;
        margin-left: 15px !important;
    }
    
    .faq-section h2,
    .faq-section .section-title {
        font-size: 28px !important;
        margin-bottom: 40px !important;
    }
}

/* ==========================================================================
   SPECIFICITY OVERRIDES
   ==========================================================================
   Override any conflicting styles from theme or other components
   WARNING: Only modify if you understand the cascade implications */
body .faq-section .faq-item {
    background: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
}

body .faq-section .faq-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
}

/* ==========================================================================
   TEMPLATE-SPECIFIC CLASSES
   ==========================================================================
   Ensure proper spacing in accordion container
   The .co2-faq-accordion class prevents inheritance of unwanted styles */
.co2-faq-accordion {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}