/**
 * ==========================================================================
 * Common Reusable FAQ Accordion Styles
 * File: public/modules/dothwebsite/css/faq-accordion.css
 * Supports both .rdsp-custom-faq and general .custom-faq-accordion classes
 * ==========================================================================
 */

.rdsp-custom-faq,
.custom-faq-accordion {
    margin-top: 25px;
}

.rdsp-faq-item,
.faq-accordion-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rdsp-faq-item:hover,
.faq-accordion-item:hover {
    border-color: #fca5a5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.rdsp-faq-header,
.faq-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    font-weight: 700;
    color: #111827;
    font-size: 1.02rem;
    cursor: pointer;
    user-select: none;
    background: #ffffff;
    transition: background 0.2s ease, color 0.2s ease;
}

.rdsp-faq-header:hover,
.faq-accordion-header:hover {
    background: #fff5f5;
    color: #e82128;
}

.rdsp-faq-header.active,
.faq-accordion-header.active {
    color: #e82128;
    background: #fff5f5;
    border-bottom: 1px solid #fed7d7;
}

.rdsp-faq-icon,
.faq-accordion-icon {
    font-size: 1.3rem;
    transition: transform 0.25s ease;
    color: #e82128;
    flex-shrink: 0;
    margin-left: 10px;
}

.rdsp-faq-header.active .rdsp-faq-icon,
.faq-accordion-header.active .faq-accordion-icon {
    transform: rotate(180deg);
}

.rdsp-faq-body,
.faq-accordion-body {
    color: #4b5563;
    line-height: 1.7;
    font-size: 0.98rem;
    padding: 18px 20px;
    background: #ffffff;
}

/* Mobile Responsive Optimizations */
@media (max-width: 767px) {
    .rdsp-faq-header,
    .faq-accordion-header {
        padding: 14px 16px !important;
        font-size: 0.95rem !important;
    }
    .rdsp-faq-body,
    .faq-accordion-body {
        padding: 14px 16px !important;
        font-size: 0.92rem !important;
    }
}
