/* FAQ page specific styles */

.faq-header {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-bottom: 3rem;
}

.faq-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #dc2626;
}

.faq-header p {
    font-size: 1.25rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.faq-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-btn {
    background: transparent;
    border: 2px solid #dc2626;
    color: #dc2626;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn.active,
.category-btn:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.faq-content {
    max-width: 800px;
    margin: 0 auto;
}

.faq-section {
    margin-bottom: 3rem;
}

.faq-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #1a1a1a;
    border-bottom: 3px solid #dc2626;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.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-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.faq-item.active {
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.2);
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
    color: #dc2626;
}

.faq-item.active .faq-question {
    background: #dc2626;
    color: white;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
    min-width: 24px;
    text-align: center;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #f8f9fa;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 1.5rem;
}

.faq-answer p {
    margin: 0;
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

.faq-cta {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: white;
    border-radius: 12px;
    margin-top: 4rem;
}

.faq-cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.faq-cta p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: #e5e5e5;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary,
.cta-buttons .btn-secondary {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-buttons .btn-primary {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
}

.cta-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-buttons .btn-secondary:hover {
    background: white;
    color: #1a1a1a;
    transform: translateY(-2px);
}

/* Category filtering */
.faq-section.hidden {
    display: none;
}

.faq-item.hidden {
    display: none;
}

/* Search functionality */
.faq-search {
    margin-bottom: 2rem;
    text-align: center;
}

.search-box {
    width: 100%;
    max-width: 500px;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-box:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.search-results {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .faq-header {
        padding: 2rem 0;
    }
    
    .faq-header h1 {
        font-size: 2.5rem;
    }
    
    .faq-header p {
        font-size: 1.125rem;
        padding: 0 1rem;
    }
    
    .faq-categories {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        padding: 0 1rem;
    }
    
    .category-btn {
        width: 200px;
    }
    
    .faq-content {
        padding: 0 1rem;
    }
    
    .faq-section h2 {
        font-size: 1.75rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 1rem;
        max-height: 300px;
    }
    
    .faq-cta {
        padding: 3rem 1rem;
        margin: 2rem 1rem 0;
    }
    
    .faq-cta h2 {
        font-size: 1.75rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .faq-header h1 {
        font-size: 2rem;
    }
    
    .faq-question {
        font-size: 0.95rem;
        padding: 0.75rem;
    }
    
    .faq-answer p {
        font-size: 0.9rem;
    }
}