/* ==============================================================================
   KEYWALA - FREQUENTLY ASKED QUESTIONS (FAQ) MODERN STYLES
   ============================================================================== */

/* Hero Banner */
.faq-hero-section {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%);
    border-radius: 18px;
    padding: 44px 36px 36px 36px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px -5px rgba(6, 78, 59, 0.3);
}

.faq-hero-section::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, transparent 70%);
    pointer-events: none;
}

.faq-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
    backdrop-filter: blur(4px);
    color: #ecfdf5;
}

.faq-hero-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 10px;
    color: #ffffff;
}

.faq-hero-subtitle {
    font-size: 15.5px;
    color: #d1fae5;
    max-width: 720px;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Hero Search Bar */
.faq-search-box {
    position: relative;
    max-width: 680px;
    margin-bottom: 20px;
}

.faq-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #059669;
    pointer-events: none;
    z-index: 2;
}

.faq-search-input {
    width: 100%;
    height: 54px;
    padding: 12px 48px 12px 50px;
    background: #ffffff;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 15.5px;
    font-weight: 500;
    color: #0f172a;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.18);
    transition: all 0.2s ease;
}

.faq-search-input:focus {
    outline: none;
    border-color: #34d399;
    box-shadow: 0 12px 30px -5px rgba(16, 185, 129, 0.35);
}

.faq-search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.faq-search-clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: #f1f5f9;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    z-index: 2;
}

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

/* Search suggestions tags */
.faq-search-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #ecfdf5;
}

.faq-search-tags span.tag-label {
    opacity: 0.85;
    font-weight: 600;
}

.faq-tag-pill {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none !important;
}

.faq-tag-pill:hover {
    background: #ffffff;
    color: #065f46;
}

/* Quick Trust Highlights */
.faq-trust-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.faq-trust-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faq-trust-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.faq-trust-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #ecfdf5;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
}

.faq-trust-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 2px;
}

.faq-trust-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.35;
    margin: 0;
}

/* Category Filter Pills */
.faq-categories-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 10px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.faq-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 9px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.faq-cat-btn i {
    font-size: 14px;
    color: #059669;
}

.faq-cat-btn .badge-count {
    background: #e2e8f0;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 12px;
    margin-left: 2px;
    transition: all 0.2s ease;
}

.faq-cat-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.faq-cat-btn.active {
    background: #059669;
    border-color: #059669;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.28);
}

.faq-cat-btn.active i {
    color: #a7f3d0;
}

.faq-cat-btn.active .badge-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Live Search Results Header */
.faq-search-status {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    padding: 10px 16px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 600;
    color: #065f46;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-search-reset-btn {
    background: transparent;
    border: 1px solid #059669;
    color: #059669;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.faq-search-reset-btn:hover {
    background: #059669;
    color: #ffffff;
}

/* FAQ Card Item */
.faq-card-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    margin-bottom: 14px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.faq-card-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.faq-card-item.is-expanded {
    border-color: #10b981;
    box-shadow: 0 6px 18px -2px rgba(16, 185, 129, 0.12);
}

.faq-question-btn {
    width: 100%;
    padding: 18px 22px;
    background: transparent;
    border: none;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    font-family: inherit;
}

.faq-question-btn:focus {
    outline: none;
}

.faq-question-btn:hover {
    background: #f8fafc;
}

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

.faq-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.faq-card-item.is-expanded .faq-item-icon {
    background: #ecfdf5;
    color: #047857;
}

.faq-question-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.faq-item-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #059669;
}

.faq-question-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin: 0;
}

.faq-chevron {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease;
}

.faq-card-item.is-expanded .faq-chevron {
    transform: rotate(180deg);
    background: #ecfdf5;
    color: #059669;
}

/* FAQ Answer Body */
.faq-answer-collapse {
    border-top: 1px solid #f1f5f9;
}

.faq-answer-inner {
    padding: 20px 24px 24px 74px;
    font-size: 14.5px;
    line-height: 1.7;
    color: #334155;
    background: #ffffff;
}

.faq-answer-inner p {
    margin-bottom: 12px;
    color: #334155;
}

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

.faq-answer-inner strong {
    color: #0f172a;
    font-weight: 700;
}

.faq-answer-inner ul, .faq-answer-inner ol {
    margin-bottom: 14px;
    padding-left: 20px;
}

.faq-answer-inner li {
    margin-bottom: 6px;
    color: #334155;
}

/* Callout Highlights inside answers */
.faq-alert {
    border-radius: 10px;
    padding: 12px 16px;
    margin-top: 12px;
    margin-bottom: 12px;
    font-size: 13.5px;
    line-height: 1.55;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.faq-alert-icon {
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.faq-alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.faq-alert-info .faq-alert-icon {
    color: #2563eb;
}

.faq-alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.faq-alert-success .faq-alert-icon {
    color: #059669;
}

.faq-alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.faq-alert-warning .faq-alert-icon {
    color: #d97706;
}

.faq-step-list {
    list-style: none;
    padding-left: 0 !important;
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-step-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: #334155;
}

.faq-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #059669;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Empty Search State */
.faq-empty-state {
    background: #ffffff;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
    margin-bottom: 20px;
}

.faq-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    font-size: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.faq-empty-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.faq-empty-desc {
    font-size: 14px;
    color: #64748b;
    max-width: 440px;
    margin: 0 auto 16px auto;
}

/* Sidebar Styles */
.faq-sidebar {
    position: sticky;
    top: 24px;
}

.faq-support-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
}

.faq-support-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.faq-support-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #059669, #10b981);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.3);
}

.faq-support-title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 2px;
}

.faq-support-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #059669;
}

.faq-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
}

.faq-support-desc {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.55;
    margin-bottom: 18px;
}

.faq-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25d366;
    color: #ffffff !important;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.28);
    margin-bottom: 12px;
}

.faq-whatsapp-btn:hover {
    background: #1ebd5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

.faq-support-contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.faq-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #334155;
    text-decoration: none !important;
    padding: 8px 10px;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.faq-contact-item:hover {
    background: #f8fafc;
    color: #059669;
}

.faq-contact-item i {
    width: 20px;
    font-size: 15px;
    color: #059669;
    text-align: center;
}

/* Step Card Guide */
.faq-guide-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
}

.faq-guide-title {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-guide-title i {
    color: #059669;
}

.faq-guide-timeline {
    position: relative;
    padding-left: 24px;
}

.faq-guide-timeline::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: #e2e8f0;
}

.faq-timeline-step {
    position: relative;
    margin-bottom: 14px;
}

.faq-timeline-step:last-child {
    margin-bottom: 0;
}

.faq-step-bullet {
    position: absolute;
    left: -24px;
    top: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 800;
    color: #059669;
}

.faq-step-heading {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 2px;
}

.faq-step-desc {
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.35;
    margin: 0;
}

/* Trust Entity Card */
.faq-entity-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    font-size: 12px;
    color: #475569;
    line-height: 1.5;
}

.faq-entity-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.faq-entity-title i {
    color: #059669;
}

/* Responsive Media Queries */
@media (max-width: 991px) {
    .faq-hero-section {
        padding: 32px 24px 28px 24px;
    }
    
    .faq-hero-title {
        font-size: 26px;
    }
    
    .faq-sidebar {
        position: static;
        margin-top: 30px;
    }
    
    .faq-answer-inner {
        padding: 18px 20px 20px 20px;
    }
}

@media (max-width: 576px) {
    .faq-hero-section {
        padding: 24px 18px;
        border-radius: 14px;
    }
    
    .faq-hero-title {
        font-size: 22px;
    }
    
    .faq-hero-subtitle {
        font-size: 14px;
    }
    
    .faq-search-input {
        height: 48px;
        font-size: 14px;
        padding-left: 44px;
    }
    
    .faq-search-icon {
        left: 14px;
        font-size: 16px;
    }
    
    .faq-trust-bar {
        grid-template-columns: 1fr;
    }
    
    .faq-categories-wrapper {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }
    
    .faq-cat-btn {
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .faq-question-btn {
        padding: 14px 16px;
    }
    
    .faq-question-title {
        font-size: 14.5px;
    }
    
    .faq-item-icon {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .faq-answer-inner {
        padding: 16px 16px 18px 16px;
        font-size: 14px;
    }
}

