/* FAQ Page Specific Styles */

/* Fix page header positioning to show h1 properly */
.page-header {
    padding-top: 350px !important;
    padding-bottom: 80px !important;
}

.page-header h1 {
    font-size: 4rem !important;
    font-weight: 800 !important;
    color: white !important;
    margin-bottom: 30px !important;
    text-align: center !important;
    position: relative !important;
    z-index: 2 !important;
    margin-top: 0 !important;
}

.page-header p {
    font-size: 1.4rem !important;
    color: rgba(255,255,255,0.95) !important;
    text-align: center !important;
    max-width: 700px !important;
    margin: 0 auto 50px !important;
    position: relative !important;
    z-index: 2 !important;
}

/* FAQ Search Section */
.faq-search-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-top: -60px;
    position: relative;
    z-index: 2;
}

.search-box {
    text-align: center;
}

.search-box h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    font-family: 'Nunito', sans-serif;
}

.search-box p {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 40px;
    font-family: 'Open Sans', sans-serif;
}

.search-form .input-group {
    max-width: 600px;
    margin: 0 auto 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-form .input-group:hover,
.search-form .input-group:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
}

.search-form .form-control {
    border: none;
    padding: 20px 30px;
    font-size: 1.1rem;
    background: white;
    border-radius: 50px 0 0 50px;
    font-family: 'Open Sans', sans-serif;
}

.search-form .form-control:focus {
    box-shadow: none;
    border: none;
    outline: none;
}

.search-form .form-control::placeholder {
    color: #999;
}

.search-form .btn {
    background: #2c5aa0;
    border: none;
    padding: 20px 35px;
    border-radius: 0 50px 50px 0;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.search-form .btn:hover {
    background: #1e3d6f;
    transform: scale(1.05);
}

/* Search Suggestions */
.search-suggestions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.suggestion-label {
    color: #6c757d;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.suggestion-tag {
    background: transparent;
    border: 2px solid #2c5aa0;
    color: #2c5aa0;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.suggestion-tag:hover {
    background: #2c5aa0;
    color: white;
    transform: translateY(-2px);
}

/* FAQ Categories Section */
.faq-categories-section {
    padding: 60px 0;
    background: white;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.category-btn {
    background: transparent;
    border: 2px solid rgba(44, 90, 160, 0.2);
    color: #2c5aa0;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    cursor: pointer;
}

.category-btn:hover,
.category-btn.active {
    background: #2c5aa0;
    color: white;
    border-color: #2c5aa0;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(44, 90, 160, 0.3);
}

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

/* FAQ Content Section */
.faq-content-section {
    padding: 80px 0 120px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

/* FAQ Items */
.faq-item {
    background: white;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    overflow: hidden;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.faq-question {
    padding: 30px 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-question:hover {
    background: rgba(44, 90, 160, 0.05);
}

.faq-question h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    flex-grow: 1;
    font-family: 'Nunito', sans-serif;
}

.faq-question i {
    color: #2c5aa0;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    margin-left: 20px;
    flex-shrink: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: white;
}

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

.faq-answer > div,
.faq-answer {
    padding: 0 40px 40px;
}

.faq-answer p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.05rem;
}

.faq-answer ul,
.faq-answer ol {
    color: #555;
    margin-bottom: 20px;
    padding-left: 20px;
}

.faq-answer li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.faq-answer strong {
    color: #2c3e50;
    font-weight: 700;
}

/* Special FAQ Content Styling */
.format-grid,
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 25px 0;
}

.format-category,
.feature-item {
    background: rgba(44, 90, 160, 0.05);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid #2c5aa0;
}

.format-category h4,
.feature-item h4 {
    color: #2c5aa0;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Nunito', sans-serif;
}

.format-category ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.format-category li {
    padding: 5px 0;
    color: #555;
    font-family: 'Consolas', monospace;
    font-size: 0.95rem;
}

.legal-compliance,
.security-features,
.support-channels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.compliance-item,
.security-item,
.support-item {
    text-align: center;
    padding: 20px;
    background: rgba(40, 167, 69, 0.05);
    border-radius: 15px;
    border: 2px solid rgba(40, 167, 69, 0.1);
}

.compliance-item i,
.security-item i,
.support-item i {
    font-size: 2.5rem;
    color: #28a745;
    margin-bottom: 15px;
    display: block;
}

.compliance-item h4,
.security-item h4,
.support-item h4 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Nunito', sans-serif;
}

.compliance-item p,
.security-item p,
.support-item p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

/* Pricing Summary */
.pricing-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.plan-item {
    background: white;
    padding: 25px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(44, 90, 160, 0.1);
    transition: all 0.3s ease;
}

.plan-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: #2c5aa0;
}

.plan-item h4 {
    color: #2c5aa0;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Nunito', sans-serif;
}

.plan-item p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.plan-item .price {
    color: #28a745;
    font-weight: 800;
    font-size: 1.3rem;
    display: block;
    font-family: 'Nunito', sans-serif;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.no-results-content i {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 20px;
}

.no-results-content h3 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: 'Nunito', sans-serif;
}

.no-results-content p {
    color: #6c757d;
    margin-bottom: 30px;
    font-family: 'Open Sans', sans-serif;
}

/* Help Section */
.help-section {
    background: white;
    padding: 120px 0;
}

.help-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 25px;
    padding: 50px 40px;
    text-align: center;
    height: 100%;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.help-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
}

.help-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 25px;
    transition: transform 0.3s ease;
}

.help-card:hover .help-icon {
    transform: scale(1.1);
}

.help-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    font-family: 'Nunito', sans-serif;
}

.help-card p {
    color: #6c757d;
    margin-bottom: 25px;
    line-height: 1.7;
    font-family: 'Open Sans', sans-serif;
}

.help-card .btn {
    background: #2c5aa0;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
}

.help-card .btn:hover {
    background: #1e3d6f;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Search Highlighting */
mark {
    background: #fff3cd;
    color: #856404;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 3rem !important;
    }
    
    .page-header p {
        font-size: 1.2rem !important;
    }
    
    .search-box h2 {
        font-size: 2rem;
    }
    
    .search-form .form-control {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .search-form .btn {
        padding: 15px 25px;
    }
    
    .category-filters {
        gap: 10px;
    }
    
    .category-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .faq-question {
        padding: 25px 30px;
    }
    
    .faq-question h3 {
        font-size: 1.2rem;
    }
    
    .faq-answer > div,
    .faq-answer {
        padding: 0 30px 30px;
    }
    
    .format-grid,
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .legal-compliance,
    .security-features,
    .pricing-summary,
    .support-channels {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .help-card {
        padding: 40px 30px;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding-top: 300px !important;
        padding-bottom: 60px !important;
    }
    
    .page-header h1 {
        font-size: 2.5rem !important;
    }
    
    .page-header p {
        font-size: 1.1rem !important;
    }
    
    .faq-search-section {
        padding: 60px 0;
    }
    
    .search-box h2 {
        font-size: 1.8rem;
    }
    
    .category-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .category-btn {
        width: 200px;
        justify-content: center;
    }
    
    .suggestion-tags {
        flex-direction: column;
        align-items: center;
    }
    
    .faq-question {
        padding: 20px 25px;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
    }
    
    .faq-answer > div,
    .faq-answer {
        padding: 0 25px 25px;
    }
    
    .help-card {
        padding: 30px 20px;
    }
    
    .help-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
}

/* Animation effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus states for accessibility */
.faq-question:focus {
    outline: 2px solid #2c5aa0;
    outline-offset: 2px;
}

.category-btn:focus,
.suggestion-tag:focus {
    outline: 2px solid #2c5aa0;
    outline-offset: 2px;
}

.search-form .form-control:focus {
    outline: 2px solid #2c5aa0;
    outline-offset: 2px;
}

.help-card:focus-within {
    outline: 2px solid #2c5aa0;
    outline-offset: 2px;
}

/* Loading states */
.faq-item.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Smooth transitions for category filtering */
.faq-item {
    transition: all 0.4s ease, opacity 0.6s ease, transform 0.6s ease;
}

.faq-item[style*="display: none"] {
    opacity: 0;
    transform: translateY(-20px);
}
