/* MGC Safety Nets - FAQ Page Styles */

.faq-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Search Box */
.faq-search {
    position: relative;
    max-width: 600px;
    margin: 0 auto 40px;
}

.faq-search input {
    width: 100%;
    padding: 18px 50px 18px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
}

.faq-search input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #999;
}

/* Category Buttons */
.faq-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.category-btn {
    padding: 12px 30px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.category-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
}

/* FAQ Container */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-category-group {
    margin-bottom: 50px;
}

.category-title {
    font-size: 28px;
    color: #1a1a2e;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
}

/* FAQ Items */
.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question h3 {
    font-size: 18px;
    color: #1a1a2e;
    margin: 0;
    font-weight: 600;
    flex: 1;
}

.toggle-icon {
    font-size: 28px;
    font-weight: 300;
    color: #667eea;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea15, #764ba215);
    border-radius: 50%;
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
}

.faq-item.active .faq-question {
    background: linear-gradient(135deg, #667eea15, #764ba215);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 30px;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 30px 25px;
}

.faq-answer p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.faq-answer ul,
.faq-answer ol {
    color: #555;
    line-height: 1.8;
    margin-left: 20px;
    margin-bottom: 15px;
}

.faq-answer li {
    margin-bottom: 8px;
}

.faq-answer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

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

/* Contact CTA */
.contact-cta {
    background: white;
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-top: 60px;
}

.contact-cta h2 {
    font-size: 32px;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.contact-cta p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.contact-cta .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-cta .cta-btn {
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.contact-cta .cta-btn.primary {
    background: linear-gradient(135deg, #00cc66, #009944);
    color: white;
}

.contact-cta .cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 204, 102, 0.4);
}

.contact-cta .cta-btn.secondary {
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
}

.contact-cta .cta-btn.secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-3px);
}

/* Hidden State */
.faq-category-group.hidden {
    display: none;
}

.faq-item.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq-section {
        padding: 50px 0;
    }
    
    .faq-search {
        margin-bottom: 30px;
    }
    
    .faq-categories {
        gap: 10px;
        margin-bottom: 30px;
    }
    
    .category-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .category-title {
        font-size: 24px;
    }
    
    .faq-question {
        padding: 20px;
    }
    
    .faq-question h3 {
        font-size: 16px;
    }
    
    .faq-answer {
        padding: 0 20px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 20px 20px;
    }
    
    .contact-cta {
        padding: 40px 25px;
    }
    
    .contact-cta h2 {
        font-size: 26px;
    }
    
    .contact-cta p {
        font-size: 16px;
    }
    
    .contact-cta .cta-buttons {
        flex-direction: column;
    }
    
    .contact-cta .cta-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .faq-search input {
        padding: 15px 45px 15px 15px;
        font-size: 14px;
    }
    
    .search-icon {
        right: 15px;
        font-size: 18px;
    }
    
    .faq-question {
        padding: 15px;
    }
    
    .faq-question h3 {
        font-size: 15px;
    }
    
    .toggle-icon {
        font-size: 24px;
        width: 25px;
        height: 25px;
    }
}