/* FAQ Widget Styles */

.faq-section-wrapper {
    min-height: auto;
    background: transparent;
    padding: 0;
}

.faq-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Search */
.faq-search-wrapper {
    position: relative;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

.faq-search-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(249, 115, 22, 0.2), rgba(71, 85, 105, 0.2));
    border-radius: 16px;
    filter: blur(24px);
    opacity: 0.5;
}

.faq-search-container {
    position: relative;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    padding: 8px;
}

.faq-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--search-icon-color, #94a3b8);
    font-size: var(--search-icon-size, 20px);
}

.faq-search-icon svg,
.faq-search-icon i {
    width: var(--search-icon-size, 20px);
    height: var(--search-icon-size, 20px);
}

.faq-search-input {
    width: 100%;
    padding: 16px 16px 16px 52px;
    border: none;
    background: transparent;
    outline: none;
}

/* Categories */
.faq-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    column-gap: 8px;
    row-gap: 8px;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out 0.1s forwards;
}

.faq-category-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 9999px;
    font-weight: 500;
    background: white;
    color: #475569;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-category-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.faq-category-btn.active {
    background: var(--dark-color, #0f172a);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.25);
    border-color: var(--dark-color, #0f172a);
}

.faq-category-btn svg {
    width: 16px;
    height: 16px;
}

/* Desktop: Show full text, hide mobile text */
.faq-category-text {
    display: inline !important;
}

.faq-category-text-mobile {
    display: none !important;
}

/* Mobile/Tablet: 3-column grid with centered text */
@media (max-width: 768px) {
    .faq-categories {
        display: grid !important;
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 10px !important;
        width: 100% !important;
    }
    
    .faq-category-btn {
        width: 100% !important;
        justify-content: center !important;
        white-space: normal !important;
        text-align: center;
        padding: 12px 8px !important;
    }
    
    /* Mobile: Hide full text, show mobile text */
    .faq-category-text {
        display: none !important;
    }
    
    .faq-category-text-mobile {
        display: inline !important;
        font-size: 0.8125rem;
        font-weight: 500;
    }
}

/* FAQ Items */
.faq-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    opacity: 0;
    animation: fadeInUp 0.3s ease-out forwards;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.faq-item.open {
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

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

.faq-question-btn {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
}

.faq-question-text {
    font-weight: 500;
    color: #334155;
    transition: color 0.2s;
}

.faq-item:hover .faq-question-text,
.faq-item.open .faq-question-text {
    color: #0f172a;
}

.faq-toggle-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #64748b;
    transition: all 0.3s ease;
}

.faq-item:hover .faq-toggle-icon {
    color: var(--primary-color, #f97316);
}

.faq-item.open .faq-toggle-icon {
    background: var(--primary-color, #f97316);
    color: white;
    transform: rotate(180deg);
}

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

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

.faq-answer-divider {
    height: 1px;
    background: var(--divider-color, linear-gradient(to right, #fed7aa, #e2e8f0, transparent));
    margin-bottom: 16px;
}

.faq-answer-text {
    padding: 0 24px 24px;
    color: #475569;
    line-height: 1.75;
}

/* Link Styling */
.faq-answer-text a {
    color: var(--link-color, #2563eb);
    text-decoration: underline;
    text-decoration-color: var(--link-underline-color, #2563eb);
    transition: all 0.3s ease;
}

.faq-answer-text a:hover {
    color: var(--link-hover-color, #1d4ed8);
    text-decoration-color: var(--link-hover-color, #1d4ed8);
}

/* No Results */
.faq-no-results {
    text-align: center;
    padding: 32px 0;
}

.faq-no-results-icon {
    width: 64px;
    height: 64px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #94a3b8;
}

.faq-no-results h3 {
    font-size: 18px;
    font-weight: 500;
    color: #0f172a;
    margin-bottom: 8px;
}

.faq-no-results p {
    color: #64748b;
}

/* Show More Button */
.faq-show-more-container {
    text-align: left;
    padding: 32px 0 16px;
}

.faq-show-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: var(--primary-color, #f97316);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-show-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.faq-show-more-btn svg {
    transition: transform 0.3s ease;
}

.faq-show-more-btn:hover svg {
    transform: translateY(2px);
}

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

/* Responsive */
@media (max-width: 768px) {
    .faq-category-btn {
        padding: 8px 16px;
    }
    
    .faq-show-more-btn {
        width: 100%;
        justify-content: center;
    }
}
