/* Font Awesome fallback icons */
.fa-robot:before { content: "🤖"; }
.fa-broom:before { content: "🧹"; }
.fa-times:before { content: "✕"; }
.fa-comment-dots:before { content: "💬"; }
.fa-pound-sign:before { content: "£"; }
.fa-car:before { content: "🚗"; }
.fa-suv:before { content: "🚙"; }
.fa-tachometer-alt:before { content: "📊"; }
.fa-calendar-plus:before { content: "📅"; }
.fa-gas-pump:before { content: "⛽"; }
.fa-cog:before { content: "⚙️"; }
.fa-money-bill-wave:before { content: "💰"; }
.fa-car-side:before { content: "🚘"; }
.fa-shuttle-van:before { content: "🚐"; }
.fa-sedan:before { content: "🚙"; }
.fa-paper-plane:before { content: "➤"; }
.fa-chevron-down:before { content: "▼"; }
.fa-chevron-up:before { content: "▲"; }
.fa-calendar-check:before { content: "📅✓"; }
.fa-user:before { content: "👤"; }
.fa-phone:before { content: "📞"; }
.fa-envelope:before { content: "✉️"; }
.fa-clock:before { content: "🕐"; }
.fa-map-marker-alt:before { content: "📍"; }
.fa-sticky-note:before { content: "📝"; }
.fa-shield-alt:before { content: "🛡️"; }
.fa-check-circle:before { content: "✅"; }
.fa-info-circle:before { content: "ℹ️"; }
.fa-exclamation-triangle:before { content: "⚠️"; }
.fa-exclamation:before { content: "❗"; }
.fa-spinner:before { content: "🔄"; }
.fa-redo:before { content: "↻"; }
.fa-question-circle:before { content: "❓"; }
.fa-id-card:before { content: "🆔"; }
.fa-tag:before { content: "🏷️"; }
.fa-star:before { content: "⭐"; }
.fa-history:before { content: "🕰️"; }
.fa-cogs:before { content: "⚙️⚙️"; }
.fa-info-circle:before { content: "ℹ️"; }
.fa-calendar-alt:before { content: "📅"; }
.fa-chevron-right:before { content: "▶"; }

/* === LAYOUT STABILITY FIXES === */

/* 1. Prevent width changes when scrollbar appears */
:root {
    scrollbar-gutter: stable;
    --chatbot-primary: var(--snh-red);
    --chatbot-primary-dark: var(--snh-red-dark);
    --chatbot-primary-hover: var(--snh-red);
    --chatbot-primary-rgb: var(--snh-red-rgb);
    --chatbot-primary-dark-rgb: 183, 28, 28;
    --chatbot-gradient: var(--snh-red);
    --chatbot-gradient-soft: rgba(var(--snh-red-rgb), 0.1);
}
/* 2. Ensure no margin/padding issues */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    min-height: -webkit-fill-available; /* iOS Safari */
}

/* 3. Fix for mobile viewport */
@viewport {
    width: device-width;
    zoom: 1.0;
}

/* 4. Prevent text size adjustment on iOS */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* 5. Smooth scrolling for chat body */
.chat-body {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overflow-anchor: none; /* Prevents scroll jump */
}



/* 7. Hide scrollbar when not needed */
.chat-body::-webkit-scrollbar {
    width: 6px;
    background: transparent;
}

.chat-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

/* 8. Prevent unwanted animations */
@media (prefers-reduced-motion: reduce) {
    .chatbot-container,
    .chatbot-window,
    .chatbot-toggle {
        transition: none !important;
    }
}
/* ===== CHATBOT FIXED STYLES ===== */
.chatbot-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.chatbot-window,
.chatbot-window * {
    contain: layout style paint;
    isolation: isolate;
}

/* ===== CHATBOT CONTAINER ===== */
.chatbot-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 2147483647;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: auto;
    height: auto;
    overflow: visible;
    pointer-events: none;
}

.chatbot-container.open {
    transform: translateY(0);
    pointer-events: auto;
}

.chatbot-launcher,
.chatbot-launcher * {
    contain: none;
}

.chatbot-prompt,
.chatbot-prompt * {
    transform: none;
}

/* ===== CHATBOT LAUNCHER (prompt + toggle) ===== */
.chatbot-launcher {
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    z-index: 2147483647;
    pointer-events: auto;
    overflow: visible;
}

.chatbot-prompt {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    margin: 0;
    padding: 10px 14px;
    width: max-content;
    max-width: 220px;
    min-width: 140px;
    background: #ffffff;
    color: #1a1a1a;
    border: 1px solid rgba(var(--chatbot-primary-rgb), 0.25);
    border-radius: 14px 14px 4px 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    font-family: inherit;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: normal;
    text-align: right;
    white-space: normal;
    word-wrap: break-word;
    cursor: pointer;
    flex-shrink: 0;
    transition: box-shadow 0.25s ease, opacity 0.25s ease;
    animation: chatbotPromptAttention 2.5s ease-in-out infinite;
}

.chatbot-prompt-text {
    display: block;
    width: 100%;
    color: #555;
    font-weight: 500;
    line-height: 1.35;
}

.chatbot-prompt strong {
    display: block;
    width: 100%;
    color: var(--chatbot-primary);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.chatbot-prompt:hover {
    box-shadow: 0 8px 24px rgba(var(--chatbot-primary-rgb), 0.2);
}

.chatbot-container.open .chatbot-prompt {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    animation: none;
}

@keyframes chatbotPromptAttention {
    0%, 100% {
        margin-bottom: 0;
    }
    50% {
        margin-bottom: 4px;
    }
}

/* ===== CHATBOT TOGGLE BUTTON ===== */
.chatbot-toggle {
    width: 65px;
    height: 65px;
    background: var(--chatbot-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: none;
    border: none;
    outline: none;
    color: white;
    font-size: 26px;
    transition: transform 0.3s ease, filter 0.3s ease;
    position: relative;
    bottom: auto;
    right: auto;
    z-index: 2147483647;
    pointer-events: auto;
    flex-shrink: 0;
    overflow: visible;
    -webkit-appearance: none;
    appearance: none;
}

.chatbot-toggle:hover {
    transform: scale(1.05);
    filter: brightness(1.08);
    box-shadow: none;
}

.chatbot-toggle:focus {
    outline: none;
    box-shadow: none;
}

.chatbot-toggle.pulse {
    animation: none;
}

/* ===== CHATBOT WINDOW ===== */
.chatbot-window {
    width: 480px;
    max-width: calc(100vw - 50px);
    height: 680px;
    max-height: calc(100vh - 100px);
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    position: absolute;
    bottom: 75px;
    right: 0;
    border: none;
    z-index: 2147483646;
    pointer-events: none;
}

.chatbot-container.open .chatbot-window {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* ===== CHAT HEADER - FIXED SYMMETRY ===== */
.chat-header {
    background: var(--chatbot-gradient);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    min-height: 70px;
}

.chat-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
}

.bot-avatar {
    width: 42px;
    height: 42px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.bot-avatar i {
    font-size: 20px;
    background: var(--chatbot-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chatbot-container .chat-header .header-text h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    color: #ffffff;
}

.chatbot-container .chat-header .header-text p {
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.92);
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    white-space: nowrap;
    margin-left: 12px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.92);
}

.chatbot-container .chat-header .chat-status,
.chatbot-container .chat-header .chat-status span {
    color: rgba(255, 255, 255, 0.92);
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    animation: blink 2s infinite;
    flex-shrink: 0;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== HEADER ACTIONS ===== */
.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: 10px;
    flex-shrink: 0;
}

.header-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 14px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.header-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.clear-chat-btn:hover {
    transform: scale(1.1) rotate(-15deg);
}

.close-btnn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 14px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.close-btnn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* ===== CONFIRMATION MODAL ===== */
.confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2147483647;
    animation: fadeIn 0.3s ease;
}

.confirmation-modal.hidden {
    display: none;
}

.confirmation-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.confirmation-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.confirmation-icon i {
    color: white;
    font-size: 24px;
}

.confirmation-content h4 {
    margin: 0 0 10px 0;
    color: #2d3748;
    font-size: 18px;
    font-weight: 700;
}

.confirmation-content p {
    margin: 0 0 25px 0;
    color: #4a5568;
    font-size: 14px;
    line-height: 1.5;
}

.confirmation-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-btn, .cancel-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    min-width: 100px;
}

.confirm-btn {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
}

.confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 101, 101, 0.3);
}

.cancel-btn {
    background: #e2e8f0;
    color: #4a5568;
}

.cancel-btn:hover {
    background: #cbd5e0;
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== TOAST NOTIFICATION ===== */
.chatbot-toast {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: white;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 2147483647;
    animation: slideInRight 0.3s ease, slideOutRight 0.3s ease 2.7s;
    max-width: 350px;
    border-left: 4px solid var(--chatbot-primary);
}

.chatbot-toast-success {
    border-left-color: #4ade80;
}

.chatbot-toast-error {
    border-left-color: #f56565;
}

.chatbot-toast-info {
    border-left-color: #3b82f6;
}

.toast-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--chatbot-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chatbot-toast-success .toast-icon {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
}

.chatbot-toast-error .toast-icon {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
}

.chatbot-toast-info .toast-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.toast-icon i {
    color: white;
    font-size: 14px;
}

.toast-message {
    flex: 1;
    color: #2d3748;
    font-size: 14px;
    font-weight: 500;
}

.toast-close {
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.toast-close:hover {
    color: #2d3748;
    background: #f1f5f9;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* ===== CHAT BODY ===== */
.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-behavior: smooth;
    min-height: 0;
}

/* ===== WELCOME MESSAGE ===== */
.welcome-message {
    background: white;
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    margin-bottom: 10px;
}

.welcome-message h4 {
    font-size: clamp(18px, 3vw, 20px);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #2d3748;
    flex-wrap: wrap;
}

.welcome-message p {
    font-size: clamp(13px, 2vw, 14px);
    margin-bottom: 15px;
    color: #4a5568;
    line-height: 1.5;
}

/* ===== MESSAGES ===== */
.message {
    max-width: 85%;
    padding: 15px 18px;
    border-radius: 18px;
    line-height: 1.5;
    position: relative;
    animation: fadeInUp 0.3s ease forwards;
    opacity: 0;
    transform: translateY(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    word-wrap: break-word;
    word-break: break-word;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-message {
    align-self: flex-end;
    background: var(--chatbot-gradient);
    color: white;
    border-bottom-right-radius: 6px;
    margin-left: auto;
    animation-delay: 0.1s;
}

.bot-message {
    align-self: flex-start;
    background: white;
    color: #2d3748;
    border-bottom-left-radius: 6px;
    border: 1px solid #e2e8f0;
    animation-delay: 0.2s;
}

/* ===== TYPING INDICATOR ===== */
.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 15px 18px;
    background: white;
    border-radius: 18px;
    border-bottom-left-radius: 6px;
    width: fit-content;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    align-items: center;
    border: 1px solid #e2e8f0;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--chatbot-primary);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

.typing-text {
    font-size: 13px;
    color: #718096;
    margin-left: 8px;
    white-space: nowrap;
}

/* ===== VEHICLE RESULTS SECTION ===== */
.vehicle-results-section {
    margin-top: 15px;
    background: white;
    border-radius: 14px;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    width: 100%;
    overflow: hidden;
}

.vehicle-count-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--chatbot-gradient);
    color: white;
    padding: 10px 16px;
    border-radius: 14px 14px 0 0;
    font-size: 13px;
    font-weight: 600;
}

.vehicle-count-badge i {
    font-size: 14px;
}

/* ===== VEHICLE MAKE GROUPS ===== */
.vehicle-make-group {
    border-bottom: 1px solid #e2e8f0;
    width: 100%;
}

.vehicle-make-group:last-child {
    border-bottom: none;
}

.make-header {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    background: #f8fafc;
    width: 100%;
}

.make-header:hover {
    background: #edf2f7;
}

.make-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.make-header h4 i {
    color: var(--chatbot-primary);
}

.vehicle-count {
    font-size: 12px;
    font-weight: 500;
    color: #718096;
    background: white;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    white-space: nowrap;
}

.toggle-icon {
    color: #a0aec0;
    transition: transform 0.3s ease;
    font-size: 12px;
    flex-shrink: 0;
}

.make-vehicles {
    padding: 0 16px 16px 16px;
    display: none;
    width: 100%;
}

/* ===== VEHICLE CARDS ===== */
.vehicle-card {
    background: #f8fafc;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    width: 100%;
}

.vehicle-card:hover {
    background: white;
    box-shadow: 0 6px 20px rgba(var(--chatbot-primary-rgb), 0.1);
    transform: translateY(-2px);
    border-color: rgba(var(--chatbot-primary-rgb), 0.3);
}

.vehicle-basic-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.vehicle-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.vehicle-title-row h5 {
    margin: 0;
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 700;
    color: #2d3748;
    flex: 1;
    min-width: 200px;
}

.vehicle-price {
    font-size: clamp(16px, 2.5vw, 18px);
    font-weight: 700;
    color: var(--chatbot-primary);
    white-space: nowrap;
    margin-left: 12px;
}

.vehicle-quick-details {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(8px, 2vw, 15px);
    font-size: clamp(12px, 1.5vw, 13px);
    color: #718096;
}

.vehicle-quick-details span {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.vehicle-quick-details i {
    color: var(--chatbot-primary);
    width: 14px;
    text-align: center;
}

/* ===== VEHICLE FULL DETAILS ===== */
.vehicle-full-details {
    margin-top: 16px;
    padding: 16px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    width: 100%;
    overflow: hidden;
}

.details-loading {
    text-align: center;
    padding: 16px;
    color: #718096;
    font-size: 13px;
}

.details-loading i {
    margin-right: 8px;
    color: var(--chatbot-primary);
}

.details-content {
    display: none;
    width: 100%;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
}

.details-section h6 {
    font-size: 13px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.details-section h6 i {
    color: var(--chatbot-primary);
}

.details-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.details-section li {
    margin-bottom: 6px;
    font-size: 13px;
    color: #4a5568;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    flex-wrap: wrap;
}

.details-section li strong {
    color: #2d3748;
    font-weight: 600;
    min-width: 100px;
}

.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.feature-tag {
    background: #edf2f7;
    color: #4a5568;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.feature-tag:hover {
    background: var(--chatbot-primary);
    color: white;
    transform: translateY(-1px);
}

/* ===== VEHICLE ACTIONS - REMOVED INQUIRE BUTTON ===== */
.vehicle-actions {
    display: flex;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px dashed #e2e8f0;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;
    min-width: 120px;
    padding: 10px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #4a5568;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.action-btn:hover {
    transform: translateY(-2px);
}

.test-drive-btn:hover {
    background: var(--chatbot-primary-hover);
    color: white;
    border-color: var(--chatbot-primary-hover);
}

/* ===== STATS SUMMARY ===== */
.stats-summary {
    background: linear-gradient(135deg, rgba(var(--chatbot-primary-rgb), 0.1) 0%, rgba(var(--chatbot-primary-dark-rgb), 0.1) 100%);
    border-left: 3px solid var(--chatbot-primary);
    padding: 16px;
    margin: 16px 0;
    border-radius: 0 10px 10px 0;
}

.stats-summary h6 {
    font-size: 14px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-summary ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stats-summary li {
    margin-bottom: 6px;
    font-size: 13px;
    color: #4a5568;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* ===== CHAT FOOTER ===== */
.chat-footer {
    padding: 16px;
    background: white;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
    width: 100%;
}

.message-input-container {
    flex: 1;
    position: relative;
    min-width: 0;
}

.message-input {
    width: 100%;
    padding: 14px 18px;
    padding-right: 45px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    background: #f8fafc;
    color: #2d3748;
    min-width: 0;
}

.message-input:focus {
    border-color: var(--chatbot-primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(var(--chatbot-primary-rgb), 0.1);
}

.message-input::placeholder {
    color: #a0aec0;
}

.input-icons {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 8px;
    align-items: center;
}

.input-icon {
    background: none;
    border: none;
    color: #a0aec0;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.input-icon:hover {
    color: var(--chatbot-primary);
}

.send-btn {
    width: 48px;
    height: 48px;
    background: var(--chatbot-gradient);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.send-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 8px 20px rgba(var(--chatbot-primary-rgb), 0.4);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ===== DESKTOP STYLING - KEEP SAME ===== */
.suggestions-container {
    padding: 12px 16px;
    background: white;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
    max-height: 200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Scrollable area for filters */
.suggestions-scrollable {
    flex: 1;
    overflow-y: auto;
    position: relative;
}

.suggestions-title {
    font-size: 12px;
    color: #718096;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    position: sticky;
    top: 0;
    background: linear-gradient(to bottom, white 80%, transparent);
    padding: 4px 0 8px 0;
    z-index: 1;
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 6px;
    width: 100%;
    padding-bottom: 5px; /* Space at bottom */
}

.suggestion-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 32px;
    width: 100%;
    min-width: 0;
    text-align: center;
}

.suggestion-btn i {
    font-size: 10px;
    flex-shrink: 0;
}

.suggestion-btn:hover {
    background: var(--chatbot-gradient);
    color: white;
    border-color: var(--chatbot-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(var(--chatbot-primary-rgb), 0.2);
}

.hidden-suggestions {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 6px;
    width: 100%;
    padding-top: 5px;
    padding-bottom: 5px;
}

.hidden-suggestions.active {
    display: grid;
}

/* ===== ALWAYS VISIBLE SHOW MORE BUTTON ===== */
.show-more-btn {
    width: 100%;
    background: var(--chatbot-gradient);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(var(--chatbot-primary-rgb), 0.2);
}

.show-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--chatbot-primary-rgb), 0.3);
}

/* ===== MOBILE RESPONSIVE ADJUSTMENTS ===== */
@media screen and (max-width: 768px) {
    .suggestions-title {
        display: none;
    }

    .suggestions-container {
        padding: 8px 10px;
        max-height: 150px;
        gap: 6px;
    }

    .suggestions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
        padding-bottom: 4px;
    }

    .suggestions-grid > .suggestion-btn:nth-child(3) {
        display: none;
    }

    .hidden-suggestions.active .suggestion-btn:nth-child(3) {
        display: flex;
    }

    .hidden-suggestions.active {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }

    .suggestion-btn {
        padding: 4px 6px;
        font-size: 10px;
        height: 28px;
    }

    .suggestion-btn i {
        font-size: 9px;
    }

    .show-more-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
}

@media screen and (max-width: 480px) {
    .suggestions-container {
        padding: 6px 8px;
        max-height: 140px;
    }

    .suggestion-btn {
        padding: 3px 4px;
        font-size: 9px;
        height: 26px;
    }

    .suggestion-btn i {
        font-size: 8px;
    }

    .show-more-btn {
        padding: 5px 8px;
        font-size: 10px;
        height: 30px;
    }
}
/* ===== TEST DRIVE FORM STYLES - IMPROVED LAYOUT ===== */
.test-drive-form-container {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    margin: 10px 0;
    width: 100%;
    overflow: visible;
    position: relative;
}

.test-drive-form-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: nowrap;
    gap: 15px;
}

.test-drive-form-header h4 {
    margin: 0;
    color: #2d3748;
    font-size: clamp(16px, 2.5vw, 18px);
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

/* Cancel button positioned top-right */
.test-drive-form-header .close-form-btn {
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    font-size: 18px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: -5px;
    margin-right: -5px;
}

.close-form-btn:hover {
    background: #f1f5f9;
    color: #f56565;
}
.test-drive-vehicle-info {
    background: linear-gradient(135deg, rgba(var(--chatbot-primary-rgb), 0.1) 0%, rgba(var(--chatbot-primary-dark-rgb), 0.1) 100%);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.test-drive-vehicle-info p {
    margin: 0;
    font-size: 14px;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.form-grid-2col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
    width: 100%;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.form-label i {
    color: var(--chatbot-primary);
    width: 14px;
    flex-shrink: 0;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--chatbot-primary);
    box-shadow: 0 0 0 3px rgba(var(--chatbot-primary-rgb), 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
    width: 100%;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.submit-btn {
    flex: 1;
    min-width: 120px;
    background: var(--chatbot-gradient);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--chatbot-primary-rgb), 0.3);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cancel-btn {
    flex: 1;
    min-width: 120px;
    background: white;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e0;
}

.security-note {
    font-size: 12px;
    color: #718096;
    margin-top: 15px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.security-note i {
    color: #4ade80;
}

/* ===== ENHANCED BOOKING CONFIRMATION ===== */
.booking-success {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.1) 0%, rgba(34, 197, 94, 0.1) 100%);
    border-left: 4px solid #4ade80;
    padding: 20px;
    border-radius: 16px;
    margin: 10px 0;
    width: 100%;
    overflow: hidden;
}

.success-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.success-icon {
    background: #4ade80;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.success-icon i {
    color: white;
    font-size: 20px;
}

.success-content {
    flex: 1;
    min-width: 200px;
}

.success-content h5 {
    margin: 0;
    color: #2d3748;
    font-size: clamp(16px, 2.5vw, 18px);
    font-weight: 700;
}

.success-content p {
    margin: 5px 0 0 0;
    color: #4a5568;
    font-size: clamp(12px, 1.5vw, 14px);
}

.booking-details {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    width: 100%;
    overflow: hidden;
}

.info-line {
    margin: 0 0 10px 0;
    color: #4a5568;
    font-size: clamp(12px, 1.5vw, 14px);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info-line i {
    color: var(--chatbot-primary);
    width: 16px;
    margin-top: 0;
    flex-shrink: 0;
}

.info-line strong {
    color: #2d3748;
    font-weight: 600;
    min-width: 140px;
    flex-shrink: 0;
}

.info-line span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
    white-space: nowrap;
}

.status-pending { background: #fef3c7; color: #92400e; }
.status-confirmed { background: #d1fae5; color: #065f46; }
.status-cancelled { background: #fee2e2; color: #991b1b; }
.status-completed { background: #dbeafe; color: #1e40af; }

/* ===== LOADING SPINNER ===== */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

/* ===== SCROLLBAR ===== */
.chat-body::-webkit-scrollbar {
    width: 6px;
}

.chat-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.chat-body::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.chat-body::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.suggestions-container::-webkit-scrollbar {
    width: 4px;
}

.suggestions-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 2px;
}

.suggestions-container::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 2px;
}

.suggestions-container::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 768px) {
    .chatbot-container {
        right: 15px;
        bottom: 15px;
    }

    .chatbot-window {
        width: calc(100vw - 30px);
        height: calc(100vh - 100px);
        max-height: 600px;
        bottom: 70px;
    }

    .chat-header {
        padding: 12px 15px;
        min-height: 65px;
    }

    .chat-body {
        padding: 15px;
    }

    .suggestions-grid,
    .hidden-suggestions.active {
        grid-template-columns: repeat(3, 1fr);
    }

    .vehicle-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .vehicle-price {
        margin-left: 0;
        align-self: flex-start;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .details-section li {
        flex-direction: column;
        gap: 2px;
    }

    .details-section li strong {
        min-width: auto;
    }

    .vehicle-actions {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
    }

    .form-grid-2col {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .submit-btn,
    .cancel-btn {
        width: 100%;
    }

    .chatbot-toast {
        right: 15px;
        left: 15px;
        bottom: 90px;
        max-width: none;
        animation: slideInUp 0.3s ease, slideOutDown 0.3s ease 2.7s;
    }

    .info-line {
        flex-wrap: wrap;
        white-space: normal;
    }

    .info-line strong {
        min-width: 100%;
        margin-bottom: 2px;
    }

    .info-line span {
        flex: none;
        width: 100%;
        white-space: normal;
    }

    @keyframes slideInUp {
        from {
            opacity: 0;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes slideOutDown {
        from {
            opacity: 1;
            transform: translateY(0);
        }
        to {
            opacity: 0;
            transform: translateY(100%);
        }
    }
}

@media screen and (max-width: 480px) {
    .chatbot-container {
        right: 10px;
        bottom: 10px;
    }

    .chatbot-window {
        width: calc(100vw - 20px);
        height: calc(100vh - 80px);
        max-height: 500px;
        bottom: 60px;
    }

    .chatbot-prompt {
        max-width: 168px;
        min-width: 120px;
        padding: 8px 12px;
        font-size: 11px;
    }

    .chatbot-prompt strong {
        font-size: 12px;
    }

    .chatbot-toggle {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }

    .suggestions-grid,
    .hidden-suggestions.active {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }

    .suggestion-btn {
        font-size: 10px;
        padding: 4px 6px;
        height: 30px;
    }

    .vehicle-quick-details {
        flex-direction: column;
        gap: 8px;
    }

    .message {
        max-width: 95%;
    }

    .send-btn {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    .header-actions {
        gap: 6px;
    }

    .header-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .confirmation-content {
        padding: 20px;
    }

    .confirmation-actions {
        flex-direction: column;
        gap: 10px;
    }

    .confirm-btn, .cancel-btn {
        width: 100%;
    }
}

/* ===== HIGH ZOOM LEVEL FIXES ===== */
@media screen and (max-width: 320px) {
    .chatbot-window {
        width: calc(100vw - 10px);
        right: 5px;
    }

    .chat-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .header-text {
        order: 2;
        width: 100%;
    }

    .chat-status {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .header-actions {
        order: 1;
        width: 100%;
        justify-content: flex-end;
        margin-left: 0;
        margin-bottom: 8px;
    }

    .suggestions-grid,
    .hidden-suggestions.active {
        grid-template-columns: 1fr;
    }

    .vehicle-title-row h5 {
        min-width: auto;
        width: 100%;
    }
}

/* ===== WEBSITE COMPATIBILITY FIXES ===== */
body.chat-open {
    overflow: hidden !important;
    width: 100%;
    height: 100%;
    position: relative;
}

/* Ensure inputs don't zoom on iOS */
.message-input {
    font-size: 16px !important;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .suggestion-btn,
    .action-btn,
    .send-btn,
    .header-btn {
        min-height: 44px;
    }

    .suggestion-btn:active,
    .action-btn:active {
        transform: scale(0.98);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .chatbot-window {
        background: #1a202c;
        color: #e2e8f0;
    }

    .bot-message {
        background: #2d3748;
        color: #e2e8f0;
    }

    .suggestion-btn {
        background: #2d3748;
        color: #e2e8f0;
    }
}

/* Print styles */
@media print {
    .chatbot-container {
        display: none !important;
    }
}
