/* ── FAQ Hero ── */
.faq-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 60px;
}
.faq-hero-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 60px;
    text-align: center;
}
.faq-hero-badge {
    display: inline-block;
    background: rgba(74, 108, 247, 0.1);
    color: #4a6cf7;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
}
.faq-hero-title {
    font-size: 64px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -2px;
    margin-bottom: 16px;
}
.faq-hero-subtitle {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 32px;
}
.faq-search-wrap {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}
.faq-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}
.faq-search {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: #1a1a2e;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    transition: all 0.25s ease;
    outline: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.faq-search:focus {
    border-color: #4a6cf7;
    box-shadow: 0 0 0 4px rgba(74, 108, 247, 0.08), 0 4px 20px rgba(0,0,0,0.06);
}
.faq-search::placeholder { color: #b0b8c9; }

/* ── FAQ Body ── */
.faq-body {
    padding: 60px 0 120px;
    background: #ffffff;
}
.faq-body-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 60px;
}

/* ── Category ── */
.faq-category {
    margin-bottom: 56px;
}
.faq-category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.faq-category-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(74, 108, 247, 0.12) 0%, rgba(74, 108, 247, 0.06) 100%);
    color: #4a6cf7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.faq-category-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
}

/* ── Accordion ── */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.faq-item {
    background: #f8faff;
    border: 1.5px solid #e8eef8;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item.open {
    border-color: #c7d5fc;
    box-shadow: 0 4px 16px rgba(74, 108, 247, 0.08);
}
.faq-item.hidden-by-search {
    display: none;
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    text-align: left;
}
.faq-question-text {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.4;
}
.faq-chevron {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #9ca3af;
    transition: transform 0.3s ease, color 0.2s ease;
}
.faq-item.open .faq-chevron {
    transform: rotate(180deg);
    color: #4a6cf7;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.faq-answer-inner {
    padding: 0 24px 20px;
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    border-top: 1px solid #edf0f7;
    padding-top: 16px;
}
.faq-answer-inner a {
    color: #4a6cf7;
    font-weight: 600;
    text-decoration: none;
}
.faq-answer-inner a:hover { text-decoration: underline; }

/* ── No results ── */
.faq-no-results {
    text-align: center;
    padding: 60px 0;
    display: none;
}
.faq-no-results p {
    font-size: 16px;
    color: #9ca3af;
    margin-bottom: 16px;
}

/* ── CTA bottom ── */
.faq-cta {
    background: linear-gradient(135deg, #4a6cf7 0%, #3b5bdb 100%);
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
    margin-top: 60px;
}
.faq-cta-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}
.faq-cta-sub {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 28px;
}
.btn-faq-cta {
    display: inline-block;
    background: #ffffff;
    color: #4a6cf7;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-faq-cta:hover {
    background: #f0f4ff;
    transform: translateY(-2px);
}

/* ═══════════════════════════════
   CHATBOT
═══════════════════════════════ */
.chatbot-bubble {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
}
.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a6cf7 0%, #3b5bdb 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(74, 108, 247, 0.4);
    transition: all 0.3s ease;
    color: #ffffff;
}
.chatbot-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 32px rgba(74, 108, 247, 0.5);
}
.chatbot-toggle .icon-chat,
.chatbot-toggle .icon-close { transition: opacity 0.2s ease, transform 0.2s ease; }
.chatbot-toggle .icon-close {
    position: absolute;
    opacity: 0;
    transform: rotate(-45deg);
}
.chatbot-bubble.open .chatbot-toggle .icon-chat { opacity: 0; transform: rotate(45deg); }
.chatbot-bubble.open .chatbot-toggle .icon-close { opacity: 1; transform: rotate(0deg); }

.chatbot-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: #e53e3e;
    border-radius: 50%;
    border: 2px solid #fff;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chatbot-badge.hidden { display: none; }

.chatbot-window {
    position: absolute;
    bottom: 76px;
    right: 0;
    width: 360px;
    max-height: 520px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.85) translateY(20px);
    transform-origin: bottom right;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.chatbot-bubble.open .chatbot-window {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
}

.chatbot-header {
    background: linear-gradient(135deg, #4a6cf7 0%, #3b5bdb 100%);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.chatbot-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.chatbot-header-info { flex: 1; }
.chatbot-header-name {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}
.chatbot-header-status {
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    display: flex;
    align-items: center;
    gap: 5px;
}
.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    display: inline-block;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}
.chatbot-messages::-webkit-scrollbar { width: 4px; }
.chatbot-messages::-webkit-scrollbar-track { background: transparent; }
.chatbot-messages::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 4px; }

.msg {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}
.msg.bot { justify-content: flex-start; }
.msg.user { justify-content: flex-end; }

.msg-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.5;
}
.msg.bot .msg-bubble {
    background: #f0f4ff;
    color: #1a1a2e;
    border-bottom-left-radius: 4px;
}
.msg.user .msg-bubble {
    background: #4a6cf7;
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.msg-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a6cf7, #3b5bdb);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}

/* Quick replies */
.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.quick-reply-btn {
    background: #ffffff;
    border: 1.5px solid #d0d8f0;
    color: #4a6cf7;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    padding: 6px 12px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.quick-reply-btn:hover {
    background: #4a6cf7;
    color: #ffffff;
    border-color: #4a6cf7;
}

/* Typing indicator */
.typing-indicator {
    display: none;
    align-items: center;
    gap: 8px;
}
.typing-indicator.show { display: flex; }
.typing-dots {
    background: #f0f4ff;
    padding: 10px 14px;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    display: flex;
    gap: 4px;
    align-items: center;
}
.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typing 1.2s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* Input area */
.chatbot-input-area {
    padding: 12px 16px;
    border-top: 1px solid #f0f4ff;
    display: flex;
    gap: 8px;
    align-items: center;
}
.chatbot-input {
    flex: 1;
    padding: 10px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    font-size: 13.5px;
    font-family: 'Inter', sans-serif;
    color: #1a1a2e;
    background: #f8faff;
    outline: none;
    transition: border-color 0.2s ease;
}
.chatbot-input:focus { border-color: #4a6cf7; background: #fff; }
.chatbot-input::placeholder { color: #b0b8c9; }
.chatbot-send {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #4a6cf7;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.chatbot-send:hover { background: #3b5bdb; transform: scale(1.05); }
.chatbot-send:disabled { background: #d0d8f0; cursor: not-allowed; transform: none; }

@media (max-width: 768px) {
    .faq-hero-title { font-size: 42px; }
    .faq-body-container, .faq-hero-container { padding: 0 24px; }
    .chatbot-window { width: calc(100vw - 56px); }
}
