/* ==========================================================================
   FAQ PAGE REDESIGN STYLESHEET
   Matching target reference design with dynamic search, accordions & empty state
   ========================================================================== */

/* Main FAQ Container */
.faq-redesign-section {
    padding: 95px 0 20px 0 !important;
    background: #F8FAFC;
}

/* Banner Card Header using user-provided background image */
.faq-banner-card-bg {
    background-color: #FFFFFF !important;
    background-repeat: no-repeat !important;
    background-position: right center !important;
    background-size: cover !important;
    border-radius: 20px;
    padding: 55px 60px;
    min-height: 310px !important;
    border: 1px solid #FFEBEF;
    margin-bottom: 35px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.faq-banner-content {
    max-width: 480px;
    z-index: 2;
}

.faq-banner-title {
    font-size: 46px;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.faq-banner-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: #D92635;
    line-height: 1.5;
    margin: 0;
}

/* Search Bar Container */
.faq-search-wrapper {
    position: relative;
    margin-bottom: 35px;
    width: 100%;
}

.faq-search-input {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    padding: 16px 60px 16px 22px;
    font-size: 15px;
    width: 100%;
    color: #1E293B;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.faq-search-input:focus {
    border-color: #D92635;
    box-shadow: 0 4px 20px rgba(217, 38, 53, 0.1);
}

.faq-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #D92635;
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 16px;
}

.faq-search-btn:hover {
    background: #B91C1C;
}

/* Category Accordion Card Box */
.faq-cat-box {
    background: #FFFFFF;
    border: 1px solid #EFEFEF;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    margin-bottom: 24px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-cat-box:last-child {
    margin-bottom: 0px !important;
}

.faq-cat-box:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
}

.faq-cat-header {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    user-select: none;
    background: #FFFFFF;
    width: 100%;
    border: none;
    text-align: left;
}

.faq-cat-badge {
    width: 38px;
    height: 38px;
    background: #D92635;
    color: #FFFFFF;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    margin-right: 14px;
}

.faq-cat-title {
    font-size: 17px;
    font-weight: 700;
    color: #1E293B;
    margin: 0;
    flex: 1;
}

.faq-cat-pill {
    background: #FFF0F2;
    color: #D92635;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    flex-shrink: 0;
    margin-right: 14px;
}

.faq-cat-chevron {
    font-size: 14px;
    color: #94A3B8;
    transition: transform 0.25s ease, color 0.25s ease;
    flex-shrink: 0;
}

.faq-cat-box.open .faq-cat-chevron {
    transform: rotate(180deg);
    color: #D92635;
}

.faq-cat-body {
    padding: 0 24px 20px 24px;
}

/* Question List & Items */
.faq-question-item {
    border-top: 1px solid #F1F5F9;
    padding: 16px 0;
    transition: all 0.2s ease;
}

.faq-question-item:first-child {
    border-top: 1px solid #E2E8F0;
}

.faq-question-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    text-align: left;
    cursor: pointer;
    outline: none;
    font-size: 15px;
    font-weight: 600;
    color: #334155;
    transition: color 0.2s ease;
}

.faq-question-btn:hover {
    color: #D92635;
}

.faq-question-left {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding-right: 16px;
}

.faq-num {
    color: #D92635;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

.faq-question-text {
    line-height: 1.45;
}

.faq-q-chevron {
    font-size: 12px;
    color: #94A3B8;
    transition: transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.faq-question-item.active .faq-question-btn {
    color: #D92635 !important;
    font-weight: 700;
}

.faq-question-item.active .faq-q-chevron {
    transform: rotate(180deg);
    color: #D92635;
}

.faq-answer {
    display: none;
    padding-top: 12px;
    font-size: 14px;
    color: #64748B;
    line-height: 1.65;
    padding-left: 32px;
    animation: faqAnswerFade 0.2s ease forwards;
}

.faq-question-item.active .faq-answer {
    display: block;
}

@keyframes faqAnswerFade {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Meaningful No Results Empty State */
.faq-no-results {
    background: #FFFFFF;
    border: 1.5px dashed #CBD5E1;
    border-radius: 16px;
    padding: 50px 30px;
    text-align: center;
    margin: 30px 0;
}

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

.faq-no-results-title {
    font-size: 18px;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 6px;
}

.faq-no-results-text {
    font-size: 14px;
    color: #64748B;
    margin-bottom: 20px;
}

.faq-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #D92635;
    color: #FFFFFF !important;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.2s ease;
}

.faq-reset-btn:hover {
    background: #B91C1C;
}

/* Still Have Questions Box */
.faq-support-box {
    background: #FFF0F2;
    border-radius: 16px;
    padding: 26px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 35px;
    border: 1px solid #FFE5E8;
}

.faq-support-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.faq-support-icon {
    width: 48px;
    height: 48px;
    background: #D92635;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(217, 38, 53, 0.2);
}

.faq-support-title {
    font-size: 17px;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 2px 0;
}

.faq-support-subtitle {
    font-size: 13.5px;
    color: #64748B;
    margin: 0;
}

.faq-support-btn {
    background: #FFFFFF;
    color: #D92635 !important;
    border: 1.5px solid #D92635;
    border-radius: 8px;
    padding: 10px 22px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.faq-support-btn:hover {
    background: #D92635;
    color: #FFFFFF !important;
}

/* Responsive Modes (< 768px) */
@media screen and (max-width: 767px) {
    .faq-redesign-section {
        padding: 105px 0 40px 0 !important;
    }
    .faq-banner-card-bg {
        background-size: cover !important;
        background-position: right center !important;
        padding: 35px 25px !important;
        min-height: 220px !important;
    }
    .faq-banner-card {
        flex-direction: column;
        padding: 30px 24px;
        text-align: center;
    }
    .faq-banner-content {
        max-width: 100%;
        margin-bottom: 24px;
    }
    .faq-banner-title {
        font-size: 32px;
    }
    .faq-support-box {
        flex-direction: column;
        gap: 18px;
        text-align: center;
        padding: 24px;
    }
    .faq-support-left {
        flex-direction: column;
    }
}
