/* =====================================================================
   Arrtha Motors – Frequently Asked Questions (FAQ) Stylesheet
   Signature Luxury Purple Accent: rgb(171, 24, 231)
   ===================================================================== */

.faq-page-wrap {
    background-color: #f8fafc;
    min-height: 100vh;
}

/* ---------- Breadcrumb Bar ---------- */
.faq-breadcrumb-bar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 0;
    font-size: 14px;
}

.faq-breadcrumb-bar a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.faq-breadcrumb-bar a:hover {
    color: rgb(171, 24, 231);
}

.faq-breadcrumb-bar .sep {
    margin: 0 10px;
    color: #cbd5e1;
}

.faq-breadcrumb-bar .active {
    color: rgb(171, 24, 231);
    font-weight: 600;
}

/* ---------- Hero / Header Section ---------- */
.faq-hero-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 56px 0 36px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.faq-hero-section::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(circle, rgba(171, 24, 231, 0.12) 0%, rgba(171, 24, 231, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.faq-hero-content {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
}

.faq-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(171, 24, 231, 0.08);
    color: rgb(171, 24, 231);
    border: 1px solid rgba(171, 24, 231, 0.25);
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.faq-main-title {
    font-size: 44px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.6px;
}

.faq-main-title .highlight-purple {
    color: rgb(171, 24, 231);
    background: linear-gradient(135deg, rgb(171, 24, 231) 0%, #8e0fc1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.faq-main-subtitle {
    font-size: 16.5px;
    color: #64748b;
    line-height: 1.65;
    margin: 0 auto 32px;
    max-width: 720px;
}

/* ---------- Search Bar ---------- */
.faq-search-box {
    max-width: 620px;
    margin: 0 auto 20px;
    position: relative;
}

.faq-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.faq-search-icon {
    position: absolute;
    left: 20px;
    font-size: 18px;
    color: rgb(171, 24, 231);
    pointer-events: none;
}

.faq-search-input {
    width: 100%;
    height: 56px;
    padding: 12px 50px 12px 54px;
    font-size: 15.5px;
    color: #0f172a;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 9999px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    outline: none;
    transition: all 0.25s ease;
}

.faq-search-input:focus {
    border-color: rgb(171, 24, 231);
    box-shadow: 0 10px 30px rgba(171, 24, 231, 0.18);
}

.faq-search-clear {
    position: absolute;
    right: 18px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 16px;
    cursor: pointer;
    display: none;
    padding: 6px;
    transition: color 0.2s;
}

.faq-search-clear:hover {
    color: #0f172a;
}

.faq-search-stats {
    font-size: 13.5px;
    color: #64748b;
    margin-top: 10px;
}

.faq-search-stats strong {
    color: rgb(171, 24, 231);
}

/* ---------- Category Filter Pills ---------- */
.faq-filter-section {
    padding: 0 0 24px;
}

.faq-filter-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 980px;
    margin: 0 auto;
}

.faq-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    color: #475569;
    padding: 10px 20px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.faq-filter-btn i {
    font-size: 14px;
    color: #94a3b8;
    transition: color 0.22s;
}

.faq-filter-btn:hover {
    border-color: rgb(171, 24, 231);
    color: rgb(171, 24, 231);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(171, 24, 231, 0.12);
}

.faq-filter-btn:hover i {
    color: rgb(171, 24, 231);
}

.faq-filter-btn.active {
    background: linear-gradient(135deg, rgb(171, 24, 231) 0%, #8e0fc1 100%);
    border-color: rgb(171, 24, 231);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(171, 24, 231, 0.35);
}

.faq-filter-btn.active i {
    color: #ffffff;
}

.faq-filter-count {
    background: rgba(0, 0, 0, 0.06);
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 11.5px;
    font-weight: 700;
}

.faq-filter-btn.active .faq-filter-count {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

/* ---------- Main FAQ Content Area ---------- */
.faq-content-section {
    padding: 30px 0 80px;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Accordion Item Card */
.faq-item {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.faq-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.faq-item.active {
    border-color: rgba(171, 24, 231, 0.5);
    box-shadow: 0 8px 26px rgba(171, 24, 231, 0.12);
}

/* Accordion Header */
.faq-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.faq-header:hover {
    background: #fafafa;
}

.faq-item.active .faq-header {
    background: #fcf9fe;
}

.faq-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.faq-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 9px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    white-space: nowrap;
}

.faq-category-tag.tag-ev {
    background: #e0f2fe;
    color: #0369a1;
}

.faq-category-tag.tag-buying {
    background: #fef3c7;
    color: #b45309;
}

.faq-category-tag.tag-service {
    background: #ecfdf5;
    color: #047857;
}

.faq-category-tag.tag-finance {
    background: #f3e8ff;
    color: #7e22ce;
}

.faq-category-tag.tag-warranty {
    background: #ffe4e6;
    color: #be123c;
}

.faq-question-title {
    font-size: 17.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.45;
    margin: 0;
    transition: color 0.2s;
}

.faq-item.active .faq-question-title {
    color: rgb(171, 24, 231);
}

.faq-toggle-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #64748b;
    font-size: 14px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover .faq-toggle-icon {
    background: rgba(171, 24, 231, 0.1);
    color: rgb(171, 24, 231);
}

.faq-item.active .faq-toggle-icon {
    background: rgb(171, 24, 231);
    color: #ffffff;
    transform: rotate(180deg);
}

/* Accordion Body */
.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
}

.faq-body-inner {
    padding: 0 24px 24px;
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
    border-top: 1px dashed rgba(171, 24, 231, 0.2);
    margin-top: 4px;
    padding-top: 18px;
}

.faq-body-inner p {
    margin-bottom: 12px;
}

.faq-body-inner p:last-child {
    margin-bottom: 0;
}

.faq-body-inner ul {
    margin: 10px 0 14px 20px;
    padding: 0;
}

.faq-body-inner li {
    margin-bottom: 6px;
    line-height: 1.6;
}

.faq-highlight-box {
    background: #f8fafc;
    border-left: 3px solid rgb(171, 24, 231);
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    margin: 14px 0;
    font-size: 14px;
    color: #334155;
}

.faq-action-row {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.faq-mini-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.faq-mini-btn-purple {
    background: rgba(171, 24, 231, 0.1);
    color: rgb(171, 24, 231);
    border: 1px solid rgba(171, 24, 231, 0.3);
}

.faq-mini-btn-purple:hover {
    background: rgb(171, 24, 231);
    color: #ffffff;
}

.faq-mini-btn-green {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.faq-mini-btn-green:hover {
    background: #16a34a;
    color: #ffffff;
}

/* Empty search result notice */
.faq-empty-state {
    display: none;
    text-align: center;
    padding: 48px 24px;
    background: #ffffff;
    border-radius: 16px;
    border: 1.5px dashed #cbd5e1;
}

.faq-empty-state i {
    font-size: 42px;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.faq-empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.faq-empty-state p {
    font-size: 14.5px;
    color: #64748b;
    margin-bottom: 20px;
}

/* ---------- Quick Highlights Cards ---------- */
.faq-highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 48px;
}

.faq-highlight-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px 18px;
    text-align: center;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.faq-highlight-card:hover {
    transform: translateY(-3px);
    border-color: rgba(171, 24, 231, 0.35);
    box-shadow: 0 8px 24px rgba(171, 24, 231, 0.1);
}

.faq-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(171, 24, 231, 0.08);
    color: rgb(171, 24, 231);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 auto 12px;
}

.faq-card-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.faq-card-desc {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.4;
    margin: 0;
}

/* ---------- "Still Have Questions?" Help Box ---------- */
.faq-help-card {
    margin-top: 56px;
    background: linear-gradient(135deg, #100820 0%, #1d0f36 100%);
    border: 1.5px solid rgba(171, 24, 231, 0.4);
    border-radius: 24px;
    padding: 44px 40px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(16, 8, 32, 0.35), 0 0 30px rgba(171, 24, 231, 0.15);
}

.faq-help-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(171, 24, 231, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.faq-help-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.faq-help-title {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.3;
}

.faq-help-desc {
    font-size: 15px;
    color: #cbd5e1;
    line-height: 1.65;
    margin-bottom: 24px;
}

.faq-help-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.faq-help-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-help-contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(171, 24, 231, 0.25);
    border: 1px solid rgba(171, 24, 231, 0.5);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.faq-help-contact-lbl {
    font-size: 11px;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.faq-help-contact-val {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}

.faq-help-contact-val:hover {
    color: #c084fc;
}

.faq-help-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}

.faq-help-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.faq-help-btn-primary {
    background: linear-gradient(135deg, rgb(171, 24, 231) 0%, #8e0fc1 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(171, 24, 231, 0.4);
}

.faq-help-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(171, 24, 231, 0.6);
    color: #ffffff;
}

.faq-help-btn-whatsapp {
    background: #25d366;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

.faq-help-btn-whatsapp:hover {
    background: #20ba59;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(37, 211, 102, 0.5);
    color: #ffffff;
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 991px) {
    .faq-main-title {
        font-size: 36px;
    }
    .faq-highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .faq-help-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 767px) {
    .faq-hero-section {
        padding: 40px 0 24px;
    }
    .faq-main-title {
        font-size: 28px;
    }
    .faq-main-subtitle {
        font-size: 15px;
    }
    .faq-header {
        padding: 16px 18px;
        gap: 12px;
    }
    .faq-header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .faq-question-title {
        font-size: 15.5px;
    }
    .faq-body-inner {
        padding: 0 18px 20px;
        font-size: 14px;
    }
    .faq-filter-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
    .faq-help-card {
        padding: 30px 22px;
    }
    .faq-help-title {
        font-size: 22px;
    }
    .faq-highlights-grid {
        grid-template-columns: 1fr;
    }
}
