/**
 * FAQ Plugin Frontend Styles - NO COLORS JUST ACCORDION
 */

/* Category accordion functionality */
.faq-category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-category-section.active .faq-category-content {
    max-height: 5000px;
}

.faq-category-section.active .faq-category-icon {
    transform: rotate(180deg);
}

/* FAQ item accordion functionality */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 2000px;
    opacity: 1;
}

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

.faq-answer.hidden {
    display: block !important;
}

/* Remove ALL blue colors - force gray */
.faq-item,
.faq-item:hover,
.faq-item:focus,
.faq-question,
.faq-question:hover,
.faq-question:focus,
.faq-category-section,
.faq-category-section:hover,
.faq-category-section.active,
.faq-category-header,
.faq-category-header:hover {
    border-color: #e5e7eb !important;
    background-color: transparent !important;
}

.faq-category-header {
    background-color: #fafafa !important;
}

.faq-category-header h2 {
    font-size: 1.125rem !important;
    line-height: 1.75rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

.faq-item {
    background-color: #ffffff !important;
}

/* Colored border when FAQ is open */
.faq-item.active {
    border-color: #9f62fb !important;
    box-shadow: 0 0 0 1px #9f62fb;
}

/* Help center links styling */
.faq-link {
    color: #9f62fb;
    transition: color 0.2s ease;
}

.faq-link:hover {
    color: #8b4fd9;
    text-decoration: underline;
}

/* Elementor overrides - Force proper typography */
.faq-section-wrapper * {
    box-sizing: border-box !important;
}

.faq-section-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* Category headers - force normal font size */
.faq-category-header h2,
.faq-category-header h2 * {
    font-size: 1.125rem !important;
    line-height: 1.75rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* FAQ question text - force normal font size */
.faq-question span,
.faq-question span * {
    font-size: 0.875rem !important;
    line-height: 1.25rem !important;
    font-weight: 500 !important;
}

/* FAQ answer text - force normal font size and responsive */
.faq-answer,
.faq-answer * {
    font-size: 0.875rem !important;
    line-height: 1.5rem !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
}

.faq-answer p {
    margin: 0 0 0.5rem 0 !important;
}

.faq-answer p:last-child {
    margin-bottom: 0 !important;
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
    .faq-category-header h2,
    .faq-category-header h2 * {
        font-size: 1rem !important;
        line-height: 1.5rem !important;
    }

    .faq-question span,
    .faq-question span * {
        font-size: 0.8125rem !important;
        line-height: 1.25rem !important;
    }

    .faq-answer,
    .faq-answer * {
        font-size: 0.8125rem !important;
        line-height: 1.375rem !important;
    }

    .faq-item {
        margin-bottom: 0.5rem !important;
    }
}
