/* Enhanced FAQ Styles */

/* Search Bar */
.faq-search {
    margin: 2rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-container {
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-container input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 2px 20px rgba(0, 100, 200, 0.2);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1.1rem;
}

/* Search Results */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-result-item {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

.result-question {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.result-question mark {
    background: #fff3cd;
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
}

.result-category {
    font-size: 0.9rem;
    color: #666;
}

.result-category i {
    margin-right: 0.25rem;
}

.no-results {
    padding: 2rem;
    text-align: center;
    color: #666;
    font-style: italic;
}

.no-results i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

/* Enhanced FAQ Items */
.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.faq-question {
    padding: 1.25rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.faq-question h3 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-toggle {
    color: var(--primary-color);
    transition: transform 0.3s ease;
    font-size: 1.2rem;
    margin-left: 1rem;
    flex-shrink: 0;
}

.faq-answer {
    padding: 1.5rem;
    display: none;
    line-height: 1.7;
    color: #555;
}

/* Enhanced Answer Components */
.emergency-contacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.contact-item {
    padding: 1rem;
    border-radius: 8px;
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-item.urgent {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.contact-item i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.warning-box {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.warning-box i {
    color: #721c24;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.protection-tip {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.protection-tip i {
    color: #155724;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.price-info {
    background: #e7f3ff;
    border: 1px solid #b8daff;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.price-info i {
    color: #004085;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.category-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.category-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.category-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

/* Support Section */
.faq-support {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.support-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.support-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.support-card.emergency {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fff8e1 0%, #ffffff 100%);
}

.support-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.support-card.emergency i {
    color: #ffc107;
}

.support-card h3 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.3rem;
}

.support-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.support-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.support-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 100, 200, 0.3);
}

.emergency-numbers {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.emergency-numbers span {
    background: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid #ffc107;
    font-size: 0.9rem;
}

/* Enhanced Category Buttons */
.faq-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.faq-category-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e9ecef;
    background: white;
    color: #666;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-category-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.faq-category-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.faq-category-btn i {
    font-size: 1.1rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .faq-search {
        margin: 1rem 0;
    }
    
    .search-container input {
        padding: 0.875rem 0.875rem 0.875rem 2.5rem;
        font-size: 0.9rem;
    }
    
    .search-icon {
        left: 0.875rem;
        font-size: 1rem;
    }
    
    .faq-categories {
        flex-direction: column;
        align-items: center;
    }
    
    .faq-category-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .emergency-contacts {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-support {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .support-card {
        padding: 1.5rem;
    }
    
    .emergency-numbers {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .faq-question {
        padding: 1rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 1rem;
    }
    
    .search-results {
        max-height: 300px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* Accessibility Improvements */
.faq-question:focus,
.faq-category-btn:focus,
.support-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.search-container input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 100, 200, 0.2);
}

/* Smooth animations */
.faq-category-content {
    opacity: 0;
    display: none;
    transition: opacity 0.3s ease;
}

.faq-category-content.active {
    opacity: 1;
    display: block;
}

/* Print styles */
@media print {
    .faq-search,
    .faq-categories,
    .faq-support {
        display: none;
    }
    
    .faq-answer {
        display: block !important;
    }
    
    .faq-toggle {
        display: none;
    }
}