body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    background: #f5f6fa;
    color: #2c3e50;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 270px;
    background: #fff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, .1);
    padding: 15px 18px;
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: auto;
    padding-bottom: 80px; /* space for bottom buttons */
}

    .sidebar h2 {
        color: #AD3628;
        font-size: 22px;
        text-align: center;
        border-bottom: 3px solid #AD3628;
        padding-bottom: 8px;
    }

label {
    display: block;
    margin-top: 10px;
    font-weight: 600
}

select,
input {
    width: 100%;
    padding: 7px;
    margin-top: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
    box-sizing: border-box
}

    input[type="number"].error {
        border-color: #e74c3c;
        background: #fdecea
    }

button {
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    background: #AD3628;
    color: #fff;
    font-size: 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: .2s
}

    button:hover {
        background: #d94c3c
    }

    button:disabled {
        opacity: .5;
        cursor: not-allowed
    }

/* Content */
.content {
    margin-left: 290px;
    padding: 20px 20px 120px
}

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px
}

    .header img {
        height: 70px
    }

.dashboard-title {
    font-size: 36px;
    color: #AD3628;
    font-weight: 800
}

/* Top panel */
.top-panel {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 0 12px rgba(0, 0, 0, .08);
    display: flex;
    gap: 10px;
    align-items: stretch;
    padding: 18px;
    margin-bottom: 20px;
    flex-wrap: wrap
}

.car-container {
    flex: 1 1 45%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fafafa;
    border-radius: 10px;
    overflow: hidden
}

    .car-container img {
        width: 100%;
        height: auto;
        object-fit: contain
    }

.specs {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    height: 95px;
    margin-bottom: 8px
}

    .logo-row img {
        max-height: 100%;
        max-width: 45%;
        object-fit: contain
    }

.specs h3 {
    background: #AD3628;
    color: #fff;
    padding: 9px;
    border-radius: 6px;
    text-align: center;
    font-size: 16px;
    margin: 0 0 8px
}

.features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px
}

    .features li {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        font-size: 16px;
        line-height: 1.45
    }

        .features li i {
            flex: 0 0 28px;
            height: 28px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: #f0d3cf; /* light tint of #AD3628 */
            color: #AD3628;
            box-shadow: 0 1px 2px rgba(0,0,0,.08) inset
        }

    .features .accent {
        color: #AD3628;
        font-weight: 800
    }


/* Results */
.results {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px
}

.card {
    flex: 1;
    min-width: 270px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .08);
    padding: 15px;
    transition: transform .25s, box-shadow .25s
}

    .card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 20px rgba(173, 54, 40, .25);
        cursor: pointer
    }

    .card h2 {
        color: #AD3628;
        font-size: 18px;
        margin-bottom: 10px
    }

th {
    color: #AD3628;
    text-align: left
}

td {
    padding: 4px 6px
}

.highlight {
    font-weight: 700;
    color: #AD3628
}

/* Footer Logo */
.footer-logo {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 270px);
    margin-left: 135px;
    text-align: center;
    z-index: 10
}

    .footer-logo img {
        height: 90px;
        opacity: .9
    }

/* ===== EazzyBot ===== */
:root {
    --eb-accent: #AD3628;
    --eb-bg: #f7f7f9;
    --eb-card: #ffffff;
    --eb-text: #222;
    --eb-shadow: 0 6px 14px rgba(0, 0, 0, .08);
    --eb-radius: 14px;
}

#eazzybot-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100%;
    background: var(--eb-card);
    box-shadow: -8px 0 18px rgba(0, 0, 0, .10);
    display: flex;
    flex-direction: column;
    transition: right .35s ease;
    border-left: 4px solid var(--eb-accent);
    z-index: 9999;
    border-left: none;
    background: #fff;
    box-shadow: -8px 0 18px rgba(0, 0, 0, .10);
}

    #eazzybot-panel.eb-open {
        right: 0
    }

#eazzybot-header {
    background: #fff;
    color: var(--eb-accent);
    border-bottom: none;
    position: relative;
    padding: 14px 16px 18px;
    text-align: center;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 0.2px;
}

    #eazzybot-header::after {
        content: "";
        display: block;
        width: 320px;
        height: 3px;
        background: var(--eb-accent);
        border-radius: 2px;
        margin: 8px auto 0;
    }

#eazzybot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    background: var(--eb-bg);
    display: flex;
    flex-direction: column;
    gap: 10px
}

.eb-msg {
    padding: 12px 14px;
    border-radius: 16px;
    max-width: 84%;
    line-height: 1.45;
    box-shadow: var(--eb-shadow);
    font-size: 15px
}

.eb-user {
    background: var(--eb-accent);
    color: #fff;
    align-self: flex-start;
    border-bottom-left-radius: 6px
}

.eb-bot {
    background: #fff;
    color: var(--eb-text);
    align-self: flex-end;
    border-bottom-right-radius: 6px
}

#eazzybot-inputbar {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 12px;
    border-top: 1px solid #eee;
    background: #fff
}

#eazzybot-input {
    flex: 1;
    height: 42px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    outline: none
}

#eazzybot-send {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--eb-accent);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer
}

#eazzybot-

{
    background: var(--eb-accent);
    color: #fff;
    font-size: 15px;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    border: none;
    margin: 12px auto 14px;
    border-radius: 5px;
    max-width: 380px;
    width: 78%;
}

#eazzybot-toggle {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    background: var(--eb-accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 18px rgba(0, 0, 0, .25);
    cursor: pointer;
    z-index: 10000;
    font-size: 20px;
}

/* --- Client popover (anchored in main content) --- */
.ec-popover {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
    display: block;
}

.ec-popover-panel {
    pointer-events: auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
    padding: 16px 16px 12px;
    position: absolute;
    top: 50%;
    left: calc(270px + 40px);
    transform: translateY(-50%);
    width: 820px;
    max-width: calc(100vw - 270px - 80px);
}

.ec-popover-header {
    font-weight: 800;
    color: #AD3628;
    font-size: 20px;
    margin-bottom: 8px;
    border-bottom: 3px solid #AD3628;
    padding-bottom: 6px;
}

.ec-popover-body {
    margin-top: 6px;
}

.ec-popover-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

    .ec-popover-table th {
        text-align: left;
        padding: 10px 12px;
        color: #AD3628;
        font-weight: 700;
    }

    .ec-popover-table td {
        padding: 10px 12px;
        vertical-align: top;
    }

    .ec-popover-table tbody tr + tr td {
        border-top: 1px solid #eee;
    }

    .ec-popover-table ul {
        margin: 0;
        padding-left: 18px;
    }

    .ec-popover-table li {
        margin: 4px 0;
    }

    .ec-popover-table tbody tr.active-row {
        background-color: transparent;
    }

/* Make the three results cards slightly shorter */
.results .card {
    padding: 10px 10px; /* was 15px */
}

    .results .card h2 {
        margin-bottom: 6px; /* was 10px */
        font-size: 17px; /* was 18px */
    }

    .results .card table {
        font-size: 14px; /* down 1px */
        line-height: 1.1; /* tighten rows a bit */
    }

    .results .card td,
    .results .card th {
        padding: 2px 4px; /* was 4px 6px */
    }

/* Prevent the fixed logo from blocking clicks on panels */
.footer-logo { pointer-events: none; }

/* Enhanced Modal Styles */
		.modal-overlay {
		  position: fixed;
		  top: 0;
		  left: 0;
		  width: 100%;
		  height: 100%;
		  background-color: rgba(0, 0, 0, 0.7);
		  z-index: 10000;
		  display: flex;
		  align-items: center;
		  justify-content: center;
		  padding: 20px;
		  overflow-y: auto;
		}

		.modal-content {
		  background: white;
		  border-radius: 12px;
		  max-width: 900px;
		  width: 92vw;
		  margin: 0 auto;
		  max-height: 90vh;
		  overflow-y: auto;
		  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
		  box-sizing: border-box;
		  padding: 24px 28px 30px;
		}

		.modal-header {
		  background: var(--primary);
		  color: white;
		  padding: 20px 30px;
		  border-radius: 12px 12px 0 0;
		  display: flex;
		  align-items: center;
		  justify-content: space-between;
		}

		.modal-header h2 {
		  margin: 0;
		  font-size: 1.4rem;
		  font-weight: 600;
		}

		.modal-logo {
		  height: 35px;
		  width: auto;
		}

		.modal-close {
		  background: none;
		  border: none;
		  color: white;
		  font-size: 1.8rem;
		  cursor: pointer;
		  padding: 5px;
		  width: 35px;
		  height: 35px;
		  display: flex;
		  align-items: center;
		  justify-content: center;
		  border-radius: 50%;
		  transition: background-color 0.3s ease;
		}

		.modal-close:hover {
		  background: rgba(255, 255, 255, 0.2);
		}

		.modal-body {
		  padding: 30px;
		}

		@media (max-width: 768px) {
		  .modal-overlay {
		    align-items: flex-start;
		  }
		  .modal-content {
		    max-height: none;
		    height: auto;
		    margin: 40px auto;
		  }
		}

		/* Vehicle Summary Section */
		.vehicle-summary {
		  margin-bottom: 30px;
		  text-align: center;
		}

		.vehicle-info {
		  display: flex;
		  flex-direction: column;
		  align-items: center;
		  gap: 15px;
		}

		.modal-vehicle-img {
		  width: 150px;
		  height: 100px;
		  object-fit: cover;
		  border-radius: 8px;
		}

		.vehicle-details h3 {
		  margin: 0 0 15px 0;
		  color: var(--gray-800);
		  font-size: 1.3rem;
		  font-weight: 600;
		}

		.logo-row {
		  display: flex;
		  justify-content: center;
		  gap: 20px;
		  align-items: center;
		}

		.modal-logo-small {
		  height: 35px;
		  width: auto;
		}

		/* Simulation Summary Section */
		.simulation-summary {
		  margin-bottom: 35px;
		}

		.simulation-summary h3 {
		  color: var(--gray-800);
		  margin-bottom: 20px;
		  font-size: 1.2rem;
		  font-weight: 600;
		}

		.summary-grid {
		  display: grid;
		  grid-template-columns: 1fr 1fr;
		  gap: 12px;
		  margin-bottom: 15px;
		}

		.summary-item {
		  display: flex;
		  justify-content: space-between;
		  align-items: center;
		  padding: 15px;
		  background: #f8f9fa;
		  border: 1px solid #e9ecef;
		  border-radius: 8px;
		}

		.summary-item.highlight {
		  background: #f8f9fa;
		  color: var(--gray-800);
		  font-weight: 600;
		  border-color: #e9ecef;
		}

		.summary-item .label {
		  font-weight: 500;
		  font-size: 0.9rem;
		}

		.summary-item .value {
		  font-weight: 700;
		  font-size: 1.05rem;
		  color: #1f2937;
		}

		/* Lead Form Section */
		.lead-form {
		  border-top: 1px solid #e9ecef;
		  padding-top: 25px;
		}

		.lead-form h3 {
		  color: var(--gray-800);
		  margin-bottom: 8px;
		  font-size: 1.2rem;
		  font-weight: 600;
		}

		.lead-form p {
		  color: var(--gray-600);
		  margin-bottom: 25px;
		  font-size: 0.95rem;
		  line-height: 1.4;
		}

		.form-group {
		  margin-bottom: 20px;
		}

		.form-group label {
		  display: block;
		  margin-bottom: 8px;
		  font-weight: 500;
		  color: var(--gray-700);
		  font-size: 0.95rem;
		}

		.form-group input {
		  width: 100%;
		  padding: 12px 15px;
		  border: 2px solid #e9ecef;
		  border-radius: 8px;
		  font-size: 1rem;
		  transition: all 0.3s ease;
		  background-color: white;
		  box-sizing: border-box;
		}

		.form-group input:focus {
		  outline: none;
		  border-color: var(--primary);
		  box-shadow: 0 0 0 3px rgba(173, 54, 40, 0.1);
		}

		.form-group input::placeholder {
		  color: #adb5bd;
		}

		.form-actions {
		  display: flex;
		  gap: 15px;
		  justify-content: flex-end;
		  margin-top: 30px;
		  padding-top: 20px;
		  border-top: 1px solid #e9ecef;
		}

		.btn-primary, .btn-secondary {
		  padding: 12px 25px;
		  border: none;
		  border-radius: 8px;
		  font-size: 1rem;
		  font-weight: 500;
		  cursor: pointer;
		  transition: all 0.3s ease;
		  min-width: 120px;
		}

		.btn-primary {
		  background: var(--primary);
		  color: white;
		}

		.btn-primary:hover {
		  background: var(--primary-dark);
		  transform: translateY(-1px);
		}

		.btn-secondary {
		  background: #f8f9fa;
		  color: var(--gray-700);
		  border: 1px solid #e9ecef;
		}

		.btn-secondary:hover {
		  background: #e9ecef;
		}

		/* Responsive Design */
		@media (max-width: 768px) {
		  .modal-content {
		    margin: 10px;
		    max-height: 95vh;
		  }
		  
		  .modal-body {
		    padding: 20px;
		  }
		  
		  .modal-header {
		    padding: 15px 20px;
		  }
		  
		  .summary-grid {
		    grid-template-columns: 1fr;
		  }
		  
		  .form-actions {
		    flex-direction: column;
		  }
		  
		  .btn-primary, .btn-secondary {
		    width: 100%;
		  }
		}

        .button-lead{
                width: 100%;
    margin-top: 12px;
    padding: 10px;
    background: #AD3628;
    color: #fff;
    font-size: 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: .2s;
        }


/* Mobile Sidebar Toggle Button */
.sidebar-toggle {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 2000;
    background: var(--primary, #AD3628);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(173, 54, 40, 0.3);
    transition: all 0.3s ease;
    display: none;
}

.sidebar-toggle:hover {
    background: #8b2818;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(173, 54, 40, 0.4);
}

.sidebar-toggle i {
    margin-right: 8px;
}

/* Sidebar Header with Close Button */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #AD3628;
    cursor: pointer;
    padding: 5px;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.sidebar-close:hover {
    background: rgba(173, 54, 40, 0.1);
    border-radius: 6px;
    opacity: 0.9;
}

.sidebar-header h2 {
    margin: 0;
    flex: 1;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Show toggle button on mobile */
    .sidebar-toggle {
        display: flex !important;
        align-items: center;
        gap: 8px;
    }
    
    /* Hide sidebar by default on mobile */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1002;
        width: 85%;
        max-width: 320px;
        top: 70px;
        height: calc(100vh - 70px);
        max-height: calc(100vh - 70px);
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 100px;
        overscroll-behavior: contain;
    }
    
    /* Show sidebar when active */
    .sidebar.active {
        transform: translateX(0);
    }
    
    /* Show close button on mobile */
    .sidebar-close {
        display: block;
    }
    
    /* Adjust content area */
    .content {
        margin-left: 0 !important;
        padding: 80px 15px 15px 15px;
    }
    
    /* Sidebar backdrop */
    .sidebar-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1001;
    }
    
    .sidebar-backdrop.active {
        display: block;
    }
}

/* Hide toggle button on desktop */
@media (min-width: 769px) {
    .sidebar-toggle {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 90%;
    }
}


/* Mobile Simulate Button */
.mobile-simulate-container {
    display: none;
    padding: 20px;
    text-align: center;
    background: #fff;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-simulate-btn {
    width: 100%;
    max-width: 400px;
    padding: 15px 30px;
    background: #AD3628;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(173, 54, 40, 0.3);
}

.mobile-simulate-btn:hover {
    background: #8b2818;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(173, 54, 40, 0.4);
}

.mobile-simulate-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Show mobile simulate button only on mobile */
@media (max-width: 768px) {
    .mobile-simulate-container {
        display: block;
    }
    
    /* Ensure content doesn't overlap toggle button */
    .content .header {
        padding-top: 60px;
    }
}

/* Quick proceed modal (slides from top) */
.quick-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 11000;
}
.quick-modal.open {
    opacity: 1;
    pointer-events: auto;
}
.quick-modal__panel {
    width: min(420px, 90vw);
    background: #fff;
    border-radius: 14px;
    padding: 18px 20px 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    transform: translateY(-40px);
    transition: transform 0.25s ease;
}
.quick-modal.open .quick-modal__panel {
    transform: translateY(0);
}
.quick-modal__title {
    margin: 0 0 6px;
    color: #AD3628;
    font-size: 1.1rem;
    font-weight: 700;
}
.quick-modal__text {
    margin: 0 0 14px;
    color: #374151;
    font-size: 0.95rem;
}
.quick-modal__countdown {
    margin: 0 0 16px;
    color: #6b7280;
    font-size: 0.9rem;
}
.quick-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.quick-modal__btn {
    background: #AD3628;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}
.quick-modal__btn:hover {
    background: #8b2818;
}
.quick-modal__close {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    color: #9CA3AF;
    cursor: pointer;
    float: right;
}

@media (max-width: 480px) {
    .mobile-simulate-btn {
        font-size: 16px;
        padding: 12px 24px;
    }
}


/* Shake animation for Proceed button */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake-animation {
    animation: shake 0.6s ease-in-out infinite;
}

/* Stop shaking on hover */
.shake-animation:hover {
    animation: none;
}

@media (max-width: 768px) {
    #footerLogo { display: none !important; }
}
