/* Mobile FAQ Interactive Page Custom Styles */

/* FAQ Search Enhancements */
.faq-search-container {
    position: relative;
    transition: all 0.3s ease;
}

.faq-search-container:focus-within {
    transform: scale(1.02);
}

#faq-search {
    transition: all 0.3s ease;
    border: 2px solid #E5E7EB;
}

#faq-search:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

/* FAQ Category Cards */
.faq-category-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.faq-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.faq-category-card:hover::before {
    left: 100%;
}

.faq-category-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #3B82F6;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

.faq-category-icon {
    transition: all 0.3s ease;
}

.faq-category-card:hover .faq-category-icon {
    transform: scale(1.2) rotate(5deg);
    color: #1D4ED8;
}

/* FAQ Accordion Styling */
.faq-accordion-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #F3F4F6;
    position: relative;
}

.faq-accordion-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, #3B82F6 0%, #1D4ED8 100%);
    transition: height 0.4s ease;
}

.faq-accordion-item:hover::after {
    height: 100%;
}

.faq-accordion-item:hover {
    border-color: #3B82F6;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.1);
    transform: translateX(8px);
}

.faq-accordion-item.active {
    border-color: #3B82F6;
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.15);
}

.faq-accordion-item.active::after {
    height: 100%;
}

/* FAQ Header Styling */
.faq-accordion-header {
    transition: all 0.3s ease;
    position: relative;
}

.faq-accordion-header:hover {
    background: linear-gradient(90deg, #F8FAFC 0%, #F0F9FF 100%);
    padding-left: 2rem;
}

/* FAQ Question Styling */
.faq-question {
    transition: color 0.3s ease;
}

.faq-accordion-item:hover .faq-question {
    color: #1D4ED8;
}

/* FAQ Icon Animation */
.faq-accordion-icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-accordion-item.active .faq-accordion-icon {
    transform: rotate(180deg) scale(1.1);
    color: #1D4ED8;
}

.faq-accordion-item:hover .faq-accordion-icon {
    color: #3B82F6;
    transform: scale(1.1);
}

/* FAQ Content Animation */
.faq-accordion-content {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.faq-accordion-item.active .faq-accordion-content {
    opacity: 1;
    animation: slideInContent 0.5s ease-out;
}

@keyframes slideInContent {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* FAQ Tags Styling */
.faq-tag {
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
    color: #1E40AF;
    border: 1px solid #93C5FD;
    transition: all 0.3s ease;
}

.faq-tag:hover {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    color: white;
    transform: translateY(-1px);
}

/* Search Highlight Animation */
.search-highlight {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border-radius: 4px;
    padding: 2px 4px;
    animation: highlightPulse 2s infinite;
}

@keyframes highlightPulse {
    0%, 100% {
        background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    }
    50% {
        background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 100%);
    }
}

/* No Results Styling */
.no-results-container {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Form Enhancements */
.contact-form {
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
    transition: all 0.3s ease;
}

.contact-form:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.form-field {
    transition: all 0.3s ease;
    border: 2px solid #E5E7EB;
}

.form-field:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: scale(1.02);
}

.form-field:hover {
    border-color: #9CA3AF;
}

/* Submit Button Animation */
.submit-button {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.submit-button:hover::before {
    width: 300px;
    height: 300px;
}

.submit-button:hover {
    background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.3);
}

/* Contact Information Cards */
.contact-info-item {
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 8px;
}

.contact-info-item:hover {
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    transform: translateX(8px);
}

.contact-info-icon {
    transition: all 0.3s ease;
}

.contact-info-item:hover .contact-info-icon {
    transform: scale(1.2) rotate(5deg);
    color: #1D4ED8;
}

/* Business Advantages Cards */
.advantage-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3B82F6 0%, #1D4ED8 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.advantage-card:hover::before {
    transform: scaleX(1);
}

.advantage-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: #3B82F6;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

.advantage-icon {
    transition: all 0.3s ease;
}

.advantage-card:hover .advantage-icon {
    transform: scale(1.2) rotate(-5deg);
    color: #1D4ED8;
}

/* Loading Animation */
.faq-loading {
    background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
    background-size: 400% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

/* Filter Active State */
.category-filter-active {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    color: white;
    border-color: #1D4ED8;
}

.category-filter-active:hover {
    background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .faq-category-card:hover {
        transform: translateY(-4px);
    }

    .faq-accordion-item:hover {
        transform: translateX(4px);
    }

    .advantage-card:hover {
        transform: translateY(-5px);
    }

    .contact-form:hover {
        transform: none;
    }

    .submit-button:hover {
        transform: translateY(-2px);
    }
}

/* Focus States for Accessibility */
.faq-accordion-header:focus {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

.faq-category-card:focus {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

/* Custom Scrollbar */
.faq-content::-webkit-scrollbar {
    width: 6px;
}

.faq-content::-webkit-scrollbar-track {
    background: #F1F5F9;
    border-radius: 3px;
}

.faq-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    border-radius: 3px;
}

.faq-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
}

/* Print Styles */
@media print {
    .faq-accordion-content {
        max-height: none !important;
        opacity: 1 !important;
    }

    .search-highlight {
        background: #FFEB3B !important;
        color: #000 !important;
    }

    .faq-category-card,
    .advantage-card {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }

    .submit-button {
        background: #3B82F6 !important;
        color: white !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .faq-accordion-item {
        background: #1F2937;
        border-color: #374151;
        color: #F9FAFB;
    }

    .faq-category-card {
        background: #1F2937;
        border-color: #374151;
        color: #F9FAFB;
    }

    .advantage-card {
        background: #1F2937;
        border-color: #374151;
        color: #F9FAFB;
    }

    .contact-form {
        background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
        color: #F9FAFB;
    }
}