/**
 * Eva FAQ Smart Search & Concierge Assistant Styles
 * Eva Lendel Minimalist Luxury Aesthetic
 *
 * @package eva-lendel
 * @since   1.7.98
 */

/* ==========================================================================
   1. HERO SMART SEARCH BAR (ON /faq/ PAGE)
   ========================================================================== */
.eva-faq-hero-container {
    max-width: 900px;
    margin: 0 auto 40px auto;
    padding: 0 15px;
}

.eva-faq-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid rgba(32, 30, 30, 0.2);
    border-radius: 4px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.eva-faq-search-box:focus-within {
    border-color: #201E1E;
    box-shadow: 0 6px 24px rgba(32, 30, 30, 0.08);
}

.eva-faq-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #201E1E;
    opacity: 0.6;
    flex-shrink: 0;
}

.eva-faq-search-input {
    width: 100%;
    height: 48px;
    border: none !important;
    background: transparent !important;
    padding: 0 10px 0 0 !important;
    font-family: "Pangram", sans-serif !important;
    font-size: 15px !important;
    color: #201E1E !important;
    outline: none !important;
    box-shadow: none !important;
}

.eva-faq-search-input::placeholder {
    color: rgba(32, 30, 30, 0.45);
    font-weight: 400;
}

.eva-faq-search-clear {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 15px;
    color: rgba(32, 30, 30, 0.4);
    font-size: 18px;
    display: none;
    transition: color 0.2s;
}

.eva-faq-search-clear:hover {
    color: #201E1E;
}

/* Category Quick Pills / Chips */
.eva-faq-pills-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    justify-content: center;
}

.eva-faq-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: #F8F8F8;
    border: 1px solid rgba(32, 30, 30, 0.08);
    border-radius: 20px;
    font-family: "Pangram", sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #201E1E;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.eva-faq-pill:hover {
    background: #EEEEEE;
    border-color: rgba(32, 30, 30, 0.2);
}

.eva-faq-pill.active {
    background: #201E1E;
    color: #FFFFFF;
    border-color: #201E1E;
}

/* Highlight matching search terms */
.eva-faq-highlight {
    background: rgba(32, 30, 30, 0.08);
    color: #201E1E;
    font-weight: 600;
    padding: 0 2px;
    border-radius: 2px;
}

/* ==========================================================================
   2. FLOATING CONCIERGE WIDGET (LAUNCHER & MODAL DRAWER)
   ========================================================================== */
.eva-faq-widget-wrap {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    font-family: "Pangram", sans-serif;
}

/* Floating Trigger Button */
.eva-faq-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #201E1E;
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(32, 30, 30, 0.25);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.eva-faq-fab:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 30px rgba(32, 30, 30, 0.35);
}

.eva-faq-fab svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.eva-faq-fab.open svg {
    transform: rotate(90deg);
}

/* Badge dot */
.eva-faq-fab-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #22C55E;
    border: 2px solid #FFFFFF;
    border-radius: 50%;
}

/* Floating Drawer Card */
.eva-faq-drawer {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 30px);
    height: 540px;
    max-height: calc(100vh - 110px);
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 12px 45px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(32, 30, 30, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.96);
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.eva-faq-drawer.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Drawer Header */
.eva-faq-drawer-header {
    background: #201E1E;
    color: #FFFFFF;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.eva-faq-drawer-title-box h4 {
    margin: 0;
    font-family: "Presicav", sans-serif;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #FFFFFF;
}

.eva-faq-drawer-subtitle {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.eva-faq-online-dot {
    width: 6px;
    height: 6px;
    background: #22C55E;
    border-radius: 50%;
    display: inline-block;
}

.eva-faq-drawer-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s;
}

.eva-faq-drawer-close:hover {
    color: #FFFFFF;
}

/* Drawer Search Bar */
.eva-faq-drawer-search {
    padding: 12px 16px;
    background: #FDFDFD;
    border-bottom: 1px solid rgba(32, 30, 30, 0.06);
    flex-shrink: 0;
}

.eva-faq-drawer-search input {
    width: 100%;
    height: 38px;
    border: 1px solid rgba(32, 30, 30, 0.15) !important;
    border-radius: 6px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    font-family: "Pangram", sans-serif !important;
    background: #FFFFFF !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.2s;
}

.eva-faq-drawer-search input:focus {
    border-color: #201E1E !important;
}

/* Drawer Content Body */
.eva-faq-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #FFFFFF;
    scroll-behavior: smooth;
}

/* Greeting Bubble */
.eva-faq-greeting {
    background: #F8F8F8;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 3px solid #201E1E;
}

.eva-faq-greeting p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #201E1E;
}

/* Quick Topic Pills in Drawer */
.eva-faq-drawer-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.eva-faq-chip {
    background: #F2F2F2;
    border: none;
    border-radius: 14px;
    padding: 5px 11px;
    font-size: 11px;
    font-family: "Pangram", sans-serif;
    color: #201E1E;
    cursor: pointer;
    transition: all 0.2s;
}

.eva-faq-chip:hover {
    background: #E4E4E4;
}

/* Q&A Accordion Cards in Drawer */
.eva-faq-card {
    border: 1px solid rgba(32, 30, 30, 0.08);
    border-radius: 6px;
    margin-bottom: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
    background: #FFFFFF;
}

.eva-faq-card:hover {
    border-color: rgba(32, 30, 30, 0.2);
}

.eva-faq-card-question {
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #201E1E;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    line-height: 1.4;
    transition: background 0.15s;
}

.eva-faq-card-question:hover {
    background: #FAFAFA;
}

.eva-faq-card-arrow {
    width: 8px;
    height: 8px;
    border-right: 1.5px solid #201E1E;
    border-bottom: 1.5px solid #201E1E;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
    flex-shrink: 0;
    margin-left: 10px;
}

.eva-faq-card.open .eva-faq-card-arrow {
    transform: rotate(-135deg);
}

.eva-faq-card-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 14px;
    background: #FDFDFD;
    font-size: 12.5px;
    line-height: 1.6;
    color: rgba(32, 30, 30, 0.8);
    transition: max-height 0.3s ease, padding 0.3s ease;
    border-top: 0px solid transparent;
}

.eva-faq-card.open .eva-faq-card-answer {
    max-height: 500px;
    padding: 10px 14px 14px 14px;
    border-top: 1px solid rgba(32, 30, 30, 0.05);
}

/* Category header divider in results */
.eva-faq-group-title {
    font-family: "Presicav", sans-serif;
    font-size: 10.5px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(32, 30, 30, 0.45);
    margin: 14px 0 6px 4px;
}

/* Fallback Escalation Box */
.eva-faq-fallback {
    margin-top: 20px;
    padding: 16px;
    background: #F8F8F8;
    border-radius: 8px;
    text-align: center;
    border: 1px dashed rgba(32, 30, 30, 0.15);
}

.eva-faq-fallback p {
    margin: 0 0 10px 0;
    font-size: 12.5px;
    color: rgba(32, 30, 30, 0.7);
}

.eva-faq-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: #201E1E;
    color: #FFFFFF !important;
    border-radius: 4px;
    font-family: "Presicav", sans-serif;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: opacity 0.2s;
    cursor: pointer;
    border: none;
}

.eva-faq-contact-btn:hover {
    opacity: 0.85;
}

/* Responsive on Mobile */
@media (max-width: 600px) {
    .eva-faq-widget-wrap {
        bottom: 20px;
        right: 20px;
    }

    .eva-faq-drawer {
        width: 100vw;
        max-width: 100vw;
        height: 75vh;
        max-height: 80vh;
        bottom: 0;
        right: -20px;
        border-radius: 16px 16px 0 0;
    }
}
