/* ========================================
   FAQ SECTION - MODERN INTERACTIVE (SCOPED)
   ======================================== */

#faq.faq-section {
    background: #ffffff;
    padding: 100px 0;
    position: relative;
}

#faq .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Section Header */
#faq .section-header {
    text-align: center;
    margin-bottom: 60px;
}

#faq .faq-section-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    transform: translateY(30px);
}

#faq .section-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* FAQ Container */
#faq .faq-container {
    position: relative;
}

#faq .faq-list {
    margin-bottom: 60px;
}

/* FAQ Item */
#faq .faq-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

#faq .faq-item:hover {
    border-color: #25d366;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.1);
}

#faq .faq-item.active {
    background: white;
    border-color: #25d366;
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.15);
}

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

#faq .faq-question:hover {
    color: #25d366;
}

#faq .faq-question span {
    flex: 1;
    margin-right: 16px;
}

/* FAQ Icon */
#faq .faq-icon {
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

#faq .faq-item.active .faq-icon {
    background: #25d366;
    color: white;
    transform: rotate(45deg);
}

#faq .faq-item:hover .faq-icon {
    background: #25d366;
    color: white;
}

/* FAQ Answer */
#faq .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

#faq .faq-item.active .faq-answer {
    max-height: 1000px;
}

#faq .answer-content {
    padding: 0 24px 24px;
    color: #475569;
    line-height: 1.6;
}

#faq .answer-content p {
    margin-bottom: 16px;
}

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

#faq .answer-content ul {
    margin: 16px 0;
    padding-left: 20px;
}

#faq .answer-content li {
    margin-bottom: 8px;
    color: #475569;
}

#faq .answer-content strong {
    color: #25d366;
    font-weight: 600;
}

/* Integration Grid */
#faq .integration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

#faq .integration-category {
    background: #f8fafc;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

#faq .integration-category strong {
    display: block;
    color: #1e293b;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

#faq .integration-category span {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* FAQ CTA */
#faq .faq-cta {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid rgba(37, 211, 102, 0.2);
    border-radius: 20px;
    padding: 48px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#faq .faq-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(37, 211, 102, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

#faq .faq-cta h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
    position: relative;
}

#faq .faq-cta p {
    color: #64748b;
    margin-bottom: 24px;
    font-size: 1rem;
    position: relative;
}

#faq .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
}

#faq .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
    border: none;
    cursor: pointer;
    margin: 0;
}

#faq .btn-primary {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.25);
}

#faq .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.35);
}

#faq .btn-secondary {
    background: white;
    color: #475569;
    border: 2px solid #e2e8f0;
}

#faq .btn-secondary:hover {
    border-color: #25d366;
    color: #25d366;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    #faq.faq-section {
        padding: 80px 0;
    }
    
    #faq .container {
        padding: 0 20px;
    }
    
    #faq .section-title {
        font-size: 2rem;
    }
    
    #faq .faq-question {
        padding: 20px;
        font-size: 1rem;
    }
    
    #faq .answer-content {
        padding: 0 20px 20px;
    }
    
    #faq .integration-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    #faq .faq-cta {
        padding: 40px 24px;
    }
    
    #faq .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    #faq .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    #faq .faq-question {
        padding: 16px;
        font-size: 0.95rem;
    }
    
    #faq .answer-content {
        padding: 0 16px 16px;
        font-size: 0.9rem;
    }
    
    #faq .faq-cta {
        padding: 32px 20px;
    }
    
    #faq .faq-cta h3 {
        font-size: 1.5rem;
    }
}