﻿

/* Dark theme adjustments */
[data-bs-theme="dark"] {
    --bs-primary-light: rgba(0, 121, 171, 0.45);
    --bs-primary-lighter: rgba(0, 121, 171, 0.25);
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --shadow-primary: 0 10px 40px -10px rgba(0, 121, 171, 0.45);
    --shadow-glow: 0 0 30px rgba(0, 121, 171, 0.25);
}

/* ========================================
   Base Typography & Resets
   ======================================== */
body {
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* ========================================
   Bootstrap Primary Color Override
   ======================================== */
.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-primary:focus-visible,
.btn-primary.disabled,
.btn-primary:disabled,
.btn-check:checked + .btn,
.show > .btn-primary.dropdown-toggle,
.active > .page-link, .page-link.active {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: #fff !important;
}

    .btn-primary:hover,
    .btn-primary:focus,
    .btn-primary:active,
    .btn-primary.active {
        background-color: var(--bs-primary-hover) !important;
        border-color: var(--bs-primary-hover) !important;
    }

.btn-outline-primary {
    color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

    .btn-outline-primary:hover,
    .btn-outline-primary:focus,
    .btn-outline-primary:active {
        background-color: var(--bs-primary) !important;
        border-color: var(--bs-primary) !important;
        color: #fff !important;
    }

.btn-check:checked+.btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check)+.btn:active {
    color: var(--bs-btn-active-color);
    background-color: var(--bs-btn-active-bg);
    border-color: var(--bs-btn-active-border-color);
}

a {
    color: var(--bs-primary) !important;
    text-decoration: none !important;
}

    a:hover {
        color: var(--bs-primary-hover) !important;
    }

.text-primary {
    color: var(--bs-primary) !important;
}

.bg-primary {
    background-color: var(--bs-primary) !important;
}

.badge.bg-primary {
    background-color: var(--bs-primary) !important;
}

/* Form controls */
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 0 0.25rem var(--bs-primary-light) !important;
}

.form-check-input:checked {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

.form-switch .form-check-input:checked {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

/* ========================================
   Layout & Spacing
   ======================================== */
main,
.main,
#main,
[role="main"] {
    padding-top: var(--header-height) !important;
    min-height: calc(100vh - var(--header-height));
}

.form-signin{
    width: 100%;
    max-width: 360px;
}

/* Logo - fixed height to prevent large logos from breaking layout */
.logo {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: filter 0.3s ease;
}

/* Grayscale only when logged in */
    .logo.grayscale {
        filter: grayscale(100%);
    }


@media (max-width: 768px) {
    main, .main, #main, [role="main"] {
        padding-top: var(--header-height-mobile) !important;
        min-height: calc(100vh - var(--header-height-mobile));
    }
}

.navbar-toggler.border-0:focus,
.navbar-toggler.border-0:active {
    outline: none;
    box-shadow: none;
}

ins.adsbygoogle {
    background: transparent !important;
}

/* ========================================
   ID-Based Styles (Preserved from original)
   ======================================== */

/* Vehicle Spinner */
#vehicleSpinner {
    display: none;
}

/* Back to Top Button */
#backToTop {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    cursor: pointer;
    background-color: var(--bs-primary);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    transition: all var(--transition-base) ease;
}

    #backToTop:hover {
        background-color: var(--bs-primary-hover);
        transform: translateY(-2px);
    }

/* Carousel */
#carousel-inner .carousel-item {
    min-height: 310px;
}

#carForm {
    min-height: 460px;
}

#indicators {
    position: static;
}

    #indicators img {
        height: 100%;
    }

        #indicators img.active {
            opacity: 1;
        }

/* Full Page Gallery */
#fullPageGallery {
    position: absolute;
    top: 5px;
    right: 10px;
    z-index: 10;
    display: flex;
    align-items: end;
    justify-content: end;
    width: 15%;
    padding: 0;
    color: #fff;
    text-align: right;
    background: 0 0;
    border: 0;
    opacity: .5;
    transition: opacity .15s ease;
}

    #fullPageGallery:hover {
        opacity: 0.9;
    }

/* Loading Info */
#loadInfo {
    position: fixed !important;
    z-index: 99999 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 100% !important;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(4px);
    display: none;
}

/* Sold Overlay */
#soldOverlay {
    position: fixed !important;
    z-index: 99999 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 100% !important;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(8px);
}

    #soldOverlay h1 {
        font-size: 4rem;
        text-shadow: 0 4px 6px rgba(220, 53, 69, 0.3);
        animation: pulse 2s infinite;
    }

/* ========================================
   Quote Page ID-Based Styles
   ======================================== */

/* Global overflow fix for the quote page */
#main-container {
    min-height: 100vh !important;
    overflow-x: hidden !important;
}

/* Ensure quote data section doesn't overflow */
#quoteData {
    overflow-x: hidden !important;
    max-width: 100%;
}

/* Vehicle Data Section */
#vehicleData {
    margin-bottom: 2rem;
}

/* Adjusted Price Wrapper */
#adjustedPrice-wrapper {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    margin: 1rem -1rem !important;
    padding: 1rem !important;
}

/* Rebate Wrapper */
#rebate_wrapper {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe0e0 100%);
    border-radius: 8px;
    padding: 1rem !important;
}

/* Final Price */
#final_price {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: var(--bs-primary);
}

/* Discount Wrapper */
#discount_wrapper {
    background: rgba(220, 53, 69, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin-top: 0.25rem;
}

#final_price_percent_discount {
    font-weight: 600;
}

/* Calculate Button */
#calculateBtn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-primary-hover) 100%);
    color: white !important;
    border-radius: 6px;
    font-weight: 600;
    transition: all 200ms ease;
    cursor: pointer;
    border: none;
}

    #calculateBtn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 6px -1px rgba(0, 121, 171, 0.3);
    }

    #calculateBtn .fa-calculator {
        color: white !important;
    }

/* TTL Data Section */
#ttlData {
    margin-bottom: 2rem;
}

/* OTD Price */
#otd_price {
    padding: 0.75rem 1.5rem;
    font-size: 1.25rem !important;
    font-weight: 800;
    border-radius: 8px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 4px 6px -1px rgba(40, 167, 69, 0.3);
    color: white;
}

/* Save Wrapper */
#save-wrapper {
    margin-bottom: 2rem;
}

/* Quote Toast */
#quoteToast {
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

    #quoteToast.bg-success {
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    }

    #quoteToast .toast-body {
        padding: 1rem 1.5rem;
        font-weight: 600;
    }

#quote_id_text {
    color: white;
    font-weight: 800;
}

#quote_id {
    font-weight: 600;
}

#zip_code {
    max-width: 200px;
}

#total_cash {
    font-weight: 700;
    color: var(--bs-danger);
}

#rebate_expiry_date {
    color: var(--bs-gray-600);
}

#additional_discount {
    max-width: 120px;
}

/* ========================================
   Modern Card Styles
   ======================================== */
.card {
    border: none !important;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base) var(--ease-smooth);
    position: relative;
    background: var(--bs-card-bg, #fff);
}

.card-body {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
}

/* ========================================
   Utility Classes
   ======================================== */
.super-z {
    z-index: 999999;
}

.selected-vehicle {
    border: 2px solid var(--bs-primary) !important;
    box-shadow: var(--shadow-lg), var(--shadow-primary);
    animation: selectPulse 0.5s var(--ease-bounce);
}

.infoWindow {
    min-width: 480px;
    max-height: 300px;
    overflow: auto;
    background-color: var(--bs-card-bg, #fff);
    color: var(--bs-body-color, #000);
}

/* ========================================
   Form Enhancements
   ======================================== */
.form-check-switch {
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .form-check-switch .form-check-input {
        position: relative;
        width: 3rem;
        height: 1.5rem;
        margin-left: 0;
        margin-right: 0.5rem;
        cursor: pointer;
        background-color: #dee2e6;
        border: none;
        transition: all 200ms ease;
    }

        .form-check-switch .form-check-input:checked {
            background-color: var(--bs-primary);
            box-shadow: 0 0 0 0.2rem var(--bs-primary-lighter);
        }

    .form-check-switch .form-check-label {
        margin-bottom: 0;
        cursor: pointer;
        font-weight: 500;
        color: #495057;
        transition: color 200ms ease;
    }

    .form-check-switch:hover .form-check-label {
        color: var(--bs-primary);
    }

/* Info Icons */
.fa-circle-info {
    font-size: 0.75rem;
    color: #6c757d;
    cursor: pointer;
    transition: all 200ms ease;
}

    .fa-circle-info:hover {
        color: var(--bs-primary);
        transform: scale(1.2);
    }

/* ========================================
   Horizontal Tabs Component - Deal Scenarios
   ======================================== */
.deal-tabs-container {
    background: white;
    overflow: hidden;
    margin-bottom: 1.5rem;
    overflow-x: hidden;
}

.deal-tabs-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 1rem 1.5rem;
    border-bottom: 2px solid var(--bs-primary);
}

.deal-tabs-wrapper {
    padding: 0;
}

/* Tab Navigation */
.deal-tabs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    overflow-x: auto;
}

/* Tab Items */
.deal-tab-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: white;
    color: #6c757d;
    border: 2px solid transparent;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition-base) var(--ease-smooth);
    position: relative;
    min-width: fit-content;
}

    .deal-tab-item:hover {
        background: var(--bs-primary-lighter);
        color: var(--bs-primary);
        transform: translateY(-1px);
    }

    .deal-tab-item.active {
        background: var(--bs-primary);
        color: white;
        border-color: var(--bs-primary);
        box-shadow: var(--shadow-sm);
    }

        .deal-tab-item.active:hover {
            background: var(--bs-primary-hover);
            border-color: var(--bs-primary-hover);
            transform: none;
        }

    /* Tab Icons */
    .deal-tab-item i {
        font-size: 1rem;
        transition: transform var(--transition-base);
    }

    .deal-tab-item:hover i {
        transform: scale(1.1);
    }

    .deal-tab-item.active i {
        color: white;
    }

/* Tab Content Panels */
.deal-tab-content {
    padding: 1.5rem;
    min-height: 300px;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
}

.deal-tab-panel {
    display: none;
    animation: fadeInUp var(--transition-base) var(--ease-smooth);
    width: 100%;
    overflow-x: hidden;
}

    .deal-tab-panel.active {
        display: block;
    }

/* Empty State */
.deal-tab-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #6c757d;
}

    .deal-tab-empty i {
        font-size: 3rem;
        color: #dee2e6;
        margin-bottom: 1rem;
    }

    .deal-tab-empty h5 {
        color: #495057;
        margin-bottom: 0.5rem;
    }

    .deal-tab-empty p {
        margin: 0;
        font-size: 0.9rem;
    }

/* Incentives Grid within Tabs */
.deal-incentives-grid {
    display: grid;
    gap: 1rem;
    width: 100%;
    overflow: hidden;
}

.deal-incentive-category {
    background: #f8f9fa;
    border-radius: var(--border-radius-md);
    padding: 1rem;
    overflow: hidden;
}

    .deal-incentive-category h6 {
        color: var(--bs-primary);
        font-size: 0.9rem;
        font-weight: 600;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #dee2e6;
    }

/* Incentive List Container */
.incentive-list {
    overflow: hidden;
}

/* Incentive items */
.incentive-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
    overflow: hidden;
}

    .incentive-item:hover {
        background: var(--bs-gray-100);
        transform: translateX(2px);
    }

    .incentive-item.disabled {
        opacity: 0.5;
        pointer-events: none;
    }

    .incentive-item .form-check {
        flex: 1;
        overflow: hidden;
    }

    .incentive-item .form-check-input,
    .incentive-checkbox {
        margin-top: 0.125em !important;
        outline-offset: -2px !important;
    }

        .incentive-item .form-check-input:focus,
        .incentive-checkbox:focus {
            box-shadow: 0 0 0 0.1rem var(--bs-primary-light) !important;
        }

        .incentive-item .form-check-input:checked,
        .incentive-checkbox:checked {
            background-color: var(--bs-primary) !important;
            border-color: var(--bs-primary) !important;
        }

    .incentive-item .form-check-label {
        display: inline-flex;
        align-items: center;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: calc(100% - 3rem);
    }

    .incentive-item .info-btn {
        margin-left: 0.25rem;
        padding: 0;
        border: none;
        background: none;
        line-height: 1;
        vertical-align: middle;
    }

/* Incentive value */
.incentive-value {
    font-weight: 700;
    color: var(--bs-success);
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: 1rem;
}

    .incentive-value.selected {
        color: var(--bs-primary);
        font-weight: 800;
    }

    .incentive-value.disabled {
        opacity: 0.5;
    }

/* ========================================
   Quote Page Component Styles
   ======================================== */
.quote-header-card {
    background: white;
    border-radius: var(--border-radius-md);
    padding: 0.75rem 1.5rem;
    box-shadow: var(--shadow-sm);
}

.zip-input-wrapper .input-group {
    max-width: 200px;
}

.vehicle-card,
.pricing-card,
.ttl-card,
.action-card {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-header-custom {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 1.25rem 1.5rem;
    border-bottom: 2px solid var(--bs-primary);
}

.section-subtitle {
    color: var(--bs-primary);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.detail-item,
.fee-item,
.pricing-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.final-price-wrapper {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-rebates {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rebate-amount {
    font-size: 1.25rem;
    font-weight: 700;
}

.otd-price-box {
    background: var(--bs-primary);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.otd-amount {
    font-size: 2rem;
    font-weight: 800;
    color: white;
}

.disclaimer-box {
    background: #f8f9fa;
    border-radius: var(--border-radius-md);
    padding: 1rem;
    margin-top: 1rem;
}

.disclaimer-title {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.disclaimer-text {
    color: #6c757d;
    font-size: 0.8rem;
    line-height: 1.5;
}

/* Tab Loading Overlay */
.tab-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    min-height: 300px;
    animation: fadeIn var(--transition-fast) ease-out;
}

    .tab-loading-overlay .spinner-border {
        width: 3rem;
        height: 3rem;
        border-width: 0.3rem;
    }

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes selectPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .deal-tabs {
        padding: 0.5rem;
        gap: 0.25rem;
    }

    .deal-tab-item {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

        .deal-tab-item i {
            font-size: 0.9rem;
        }

    .deal-tab-content {
        padding: 1rem;
    }

    .deal-tab-badge {
        display: none;
    }
}

/* ========================================
   Payment Results Styling
   ======================================== */
.payment-results-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-result-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius-md);
    padding: 1rem;
    transition: all var(--transition-fast);
    position: relative;
}

    .payment-result-item:hover {
        border-color: var(--bs-primary);
        transform: translateX(2px);
        box-shadow: var(--shadow-sm);
    }

    .payment-result-item.best-rate {
        background: linear-gradient(135deg, #f0fff4 0%, #ffffff 100%);
    }

    /* Selected payment option styling */
    .payment-result-item.selected {
        border: 2px solid var(--bs-primary);
        background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
        box-shadow: 0 0 0 3px rgba(0, 121, 171, 0.1);
    }

        .payment-result-item.selected::before {
            content: '✓';
            position: absolute;
            top: 0.5rem;
            right: 0.5rem;
            width: 24px;
            height: 24px;
            background: var(--bs-primary);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            font-weight: bold;
            animation: checkmarkPop 250ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

@keyframes checkmarkPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.payment-result-item[data-manually-modified="true"] {
    border-left: 3px solid #17a2b8;
    padding-left: calc(1rem - 2px); /* Adjust padding to compensate for border */
}

    /* When modified payment is also selected */
    .payment-result-item[data-manually-modified="true"].selected {
        border-left: 3px solid #17a2b8;
    }

/* Payment value update animation */
.payment-value.updating {
    animation: valuePulse 350ms ease-in-out;
}

@keyframes valuePulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
        color: var(--bs-success);
    }
}

    /* When an item is both best-rate and selected */
    .payment-result-item.best-rate.selected {
        border-color: var(--bs-primary);
        background: linear-gradient(135deg, #e6f7ff 0%, #f0fff4 50%, #ffffff 100%);
    }

.payment-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.payment-institution {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tier-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 400;
}

.payment-result-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.payment-primary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.monthly-payment {
    display: flex;
    flex-direction: column;
}

.payment-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bs-primary);
    line-height: 1;
}

.rate-details {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.payment-summary {
    background: #f8f9fa;
    border-radius: var(--border-radius-md);
    padding: 1rem;
    margin-top: 1rem;
}

.summary-details {
    display: flex;
    flex-direction: column;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #dee2e6;
}

    .summary-item:last-child {
        border-bottom: none;
    }

    .summary-item span {
        color: #6c757d;
    }

    .summary-item strong {
        color: #212529;
        font-weight: 600;
    }



/* Mobile responsive for payment results */
@media (max-width: 768px) {
    .payment-primary {
        flex-direction: column;
        align-items: flex-start;
    }

    .payment-value {
        font-size: 1.25rem;
    }

    .rate-details {
        margin-top: 0.5rem;
    }
}

/* Best Payment Card */
.best-payment-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: var(--border-radius-md);
    padding: 1rem;
    border: 2px solid var(--bs-primary);
}

.best-payment-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--bs-primary);
    line-height: 1;
}

/* Calculator Card (matching other cards) */
.calculator-card {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

/* Modal adjustments */


/* Finance/Lease Modal Side-by-Side Layout */
#incentivesModal .col-lg-7 {
    border-left: 2px solid #dee2e6;
    padding-left: 1.5rem;
    min-height: 400px;
}

#incentivesModal .col-lg-5 {
    padding-right: 1.5rem;
}

/* Make payment items more compact in modal */
#incentivesModal .payment-result-item {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

#incentivesModal .payment-value {
    font-size: 1.25rem;
}

/* Ensure columns stay side-by-side until medium breakpoint */
@media (max-width: 991px) {
    #incentivesModal .col-lg-5,
    #incentivesModal .col-lg-7 {
        max-width: 100%;
        flex: 0 0 100%;
    }

    #incentivesModal .col-lg-7 {
        border-left: none;
        border-top: 2px solid #dee2e6;
        padding-left: 15px;
        padding-top: 1rem;
        margin-top: 1rem;
    }
}

/* ========================================
   Inventory Page Layout - Final Complete CSS Additions
   ======================================== */

/* Filter Sidebar - Desktop */
.filter-sidebar {
    background: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bs-primary);
}

    .filter-header h5 {
        margin: 0;
        color: var(--bs-primary);
        font-weight: 600;
    }

/* Filter Form Styles */
.filter-form {
    max-height: calc(100vh - 250px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.5rem;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.filter-actions {
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

/* Results Header */
.results-header {
    background: white;
    border-radius: var(--border-radius-md);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-sm);
}

.results-count {
    color: #495057;
}

/* Custom Layout Classes */
.inventory-sidebar {
    /* Mobile hiding handled by d-none d-lg-block */
}

.inventory-content {
    width: 100%;
}

/* Vehicle Grid - Base */
#vehicleContainer,
.vehicle-grid {
    display: grid !important;
    gap: 1.5rem;
    max-width: 100%;
}

    /* Override Bootstrap column classes if present */
    #vehicleContainer > .col,
    #vehicleContainer > [class*="col-"] {
        max-width: 100% !important;
        flex: none !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

/* Vehicle Card Styles */
.card,
.vehicle-card {
    background: white;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid rgba(0,0,0,.125);
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .card:hover,
    .vehicle-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

    /* Fix image sizing in vehicle cards */
    .card .ratio img {
        object-fit: cover !important;
        width: 100%;
        height: 100%;
    }

        .card .ratio img.lazy {
            object-fit: cover !important;
            width: 100%;
            height: 100%;
        }

.card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Vehicle Details Typography */
.vehicle-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.vehicle-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bs-primary);
    margin-bottom: 0.75rem;
}

.vehicle-specs {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
    flex-wrap: wrap;
}

/* Offcanvas Filter Styles for Mobile */
#mobileFilters .offcanvas-body {
    padding: 1rem;
}

#mobileFilters .filter-form {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

#mobileFilterActions {
    position: sticky;
    bottom: 0;
    background: white;
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Loading State */
.vehicle-container-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    background: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

/* Empty State */
.vehicle-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

    .vehicle-empty-state i {
        font-size: 4rem;
        color: #dee2e6;
        margin-bottom: 1rem;
    }

    .vehicle-empty-state h4 {
        color: #495057;
        margin-bottom: 0.5rem;
    }

    .vehicle-empty-state p {
        color: #6c757d;
        margin: 0;
    }

/* Responsive Layouts */

/* Mobile: 1 column */
@media (max-width: 767px) {
    .logo {
        height: 32px;
        max-width: 150px;
    }

    #vehicleContainer,
    .vehicle-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .results-header .row {
        gap: 1rem;
    }

    .results-header .d-flex {
        justify-content: center !important;
    }
}

/* Tablet: 2 columns, no sidebar */
@media (min-width: 768px) and (max-width: 991px) {
    #vehicleContainer,
    .vehicle-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Desktop: 33% sidebar + 2 cars */
@media (min-width: 992px) {
    .inventory-sidebar {
        flex: 0 0 30%;
        max-width: 30%;
    }

    .inventory-content {
        flex: 0 0 70%;
        max-width: 70%;
    }

    #vehicleContainer,
    .vehicle-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Large screens: 25% sidebar + 3 cars */
@media (min-width: 1600px) {
    .inventory-sidebar {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .inventory-content {
        flex: 0 0 75%;
        max-width: 75%;
    }

    #vehicleContainer,
    .vehicle-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Extra small screens adjustments */
@media (max-width: 575px) {
    .results-header {
        padding: 0.75rem 1rem;
    }

    .results-count {
        font-size: 1rem;
        text-align: center;
    }

    .input-group-sm {
        width: 100% !important;
        margin-bottom: 0.5rem;
    }

    #vehicleContainer,
    .vehicle-grid {
        gap: 0.75rem;
    }
}

/* Sticky sidebar on desktop */
@media (min-width: 992px) {
    .sticky-lg-top {
        position: sticky;
        top: 1rem;
        z-index: 10;
    }
}

/* Full width when no sidebar */
.inventory-content.no-sidebar {
    flex: 0 0 100%;
    max-width: 100%;
}

    /* Adjust grid for more columns when full width */
    .inventory-content.no-sidebar #vehicleContainer,
    .inventory-content.no-sidebar .vehicle-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

/* Responsive adjustments for no-sidebar */
@media (min-width: 1200px) {
    .inventory-content.no-sidebar #vehicleContainer,
    .inventory-content.no-sidebar .vehicle-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Keep mobile/tablet responsive */
@media (max-width: 991px) {
    .inventory-content.no-sidebar #vehicleContainer,
    .inventory-content.no-sidebar .vehicle-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 767px) {
    .inventory-content.no-sidebar #vehicleContainer,
    .inventory-content.no-sidebar .vehicle-grid {
        grid-template-columns: 1fr !important;
    }
}

#tradeForm .filter-form {
    max-height: none; /* Remove height restriction for trade forms */
    overflow: visible;
}

.password-change {
    max-width: 420px;
    margin:0 auto;
}

/* deal jacket */
/* ========================================
   Deal Status UI Component Styles
   Add this to site.css
   ======================================== */

.deal-status-wrapper {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    transition: all var(--transition-base) var(--ease-smooth);
}

.deal-status-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base) var(--ease-smooth);
}

    .deal-status-card.collapsed .status-steps {
        max-height: 0;
        opacity: 0;
        margin-top: 0;
        overflow: hidden;
    }

    .deal-status-card.collapsed .collapse-toggle i {
        transform: rotate(180deg);
    }

/* Welcome Section */
.status-welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bs-primary);
}

.welcome-text h5 {
    color: #212529;
    font-weight: 600;
}

    .welcome-text h5 span {
        color: var(--bs-primary);
    }

.welcome-text p {
    margin-top: 0.25rem;
}

/* Progress Circle */
.overall-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-circle {
    position: relative;
    width: 60px;
    height: 60px;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle-bg {
    fill: none;
    stroke: #e9ecef;
    stroke-width: 4;
}

.progress-ring-circle {
    fill: none;
    stroke: var(--bs-primary);
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s var(--ease-smooth);
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--bs-primary);
}

/* Status Steps */
.status-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    transition: all var(--transition-base) var(--ease-smooth);
    margin-bottom: 1.25rem;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: var(--border-radius-md);
    border: 2px solid transparent;
    transition: all var(--transition-base) var(--ease-smooth);
    position: relative;
}

    .step-item.completed {
        background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
        border-color: var(--bs-primary);
    }

        .step-item.completed .step-icon {
            background: var(--bs-primary);
            color: white;
        }

        .step-item.completed .step-check {
            opacity: 1;
            transform: scale(1);
            animation: checkmarkPop 0.5s var(--ease-bounce);
        }

        .step-item.completed .step-title {
            color: var(--bs-primary);
            font-weight: 600;
        }

    .step-item.pending .step-icon {
        background: #e9ecef;
        color: #6c757d;
    }

    .step-item.pending .step-check {
        opacity: 0;
        transform: scale(0);
    }

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: all var(--transition-base) var(--ease-smooth);
}

.step-content {
    flex: 1;
    min-width: 0;
}

.step-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.125rem;
    transition: all var(--transition-fast);
}

.step-subtitle {
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1.2;
}

.step-check {
    width: 24px;
    height: 24px;
    background: var(--bs-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
    transition: all var(--transition-base) var(--ease-smooth);
}

/* Collapse Toggle */
.collapse-toggle {
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 2px solid #dee2e6;
    border-bottom: none;
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
    padding: 0.25rem 1rem;
    color: #6c757d;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.875rem;
    z-index: 10;
}

    .collapse-toggle:hover {
        background: var(--bs-primary);
        color: white;
        border-color: var(--bs-primary);
    }

    .collapse-toggle i {
        transition: transform var(--transition-base);
    }

/* All Complete State */
.deal-status-wrapper.all-complete .deal-status-card {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
}

.deal-status-wrapper.all-complete .status-welcome {
    border-bottom-color: #28a745;
}

.deal-status-wrapper.all-complete .welcome-text h5 {
    color: #28a745;
}

.deal-status-wrapper.all-complete .progress-ring-circle {
    stroke: #28a745;
}

.deal-status-wrapper.all-complete .progress-text {
    color: #28a745;
}

/* Hover effects */
.step-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.step-item.completed:hover {
    box-shadow: var(--shadow-md);
}

/* Responsive Design */
@media (max-width: 1199px) {
    .status-steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .deal-status-card {
        padding: 1rem;
    }

    .status-welcome {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .overall-progress {
        width: 100%;
        justify-content: center;
    }

    .status-steps {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .step-item {
        padding: 0.75rem;
    }

    .step-icon {
        width: 36px;
        height: 36px;
        font-size: 1.125rem;
    }

    .step-title {
        font-size: 0.8125rem;
    }

    .step-subtitle {
        font-size: 0.6875rem;
    }
}

@media (max-width: 575px) {
    .deal-status-wrapper {
        padding: 0.75rem 0;
    }

    .welcome-text h5 {
        font-size: 1.125rem;
    }
}
/* end deal jacket */

/* welcome modal */
/* ========================================
   Welcome Modal Styles
   Add this to site.css
   ======================================== */

#welcomeModal .modal-content {
    border: none;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-2xl);
}

#welcomeModal .modal-header {
    padding: 2rem 2rem 1rem 2rem;
}

#welcomeModal .modal-body {
    padding: 1rem 2rem 2rem 2rem;
}

#welcomeModal h2 {
    font-size: 1.875rem;
    line-height: 1.2;
}

.welcome-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #495057;
}

    .welcome-content p {
        text-align: justify;
    }

#welcomeModal .modal-footer {
    padding: 1.5rem 2rem 2rem 2rem;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.welcome-signature {
    font-size: 1rem;
}

    .welcome-signature p {
        margin: 0;
        line-height: 1.5;
    }

.welcome-logo-footer img {
    max-width: 120px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Mobile Responsive */
@media (max-width: 767px) {
    #welcomeModal .modal-dialog {
        margin: 0.5rem;
    }

    #welcomeModal .modal-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }

    #welcomeModal .modal-body {
        padding: 1rem 1.5rem 1.5rem 1.5rem;
    }

    #welcomeModal .modal-footer {
        padding: 1rem 1.5rem 1.5rem 1.5rem;
    }

    #welcomeModal h2 {
        font-size: 1.5rem;
    }

    .welcome-content {
        font-size: 0.95rem;
    }

    .welcome-logo-footer img {
        max-width: 80px;
    }

    .welcome-signature {
        font-size: 0.9rem;
    }
}

@media (max-width: 575px) {
    #welcomeModal .modal-header {
        padding: 1rem;
    }

    #welcomeModal .modal-body {
        padding: 1rem;
    }

    #welcomeModal .modal-footer {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }

        #welcomeModal .modal-footer .d-flex {
            flex-direction: column;
            align-items: flex-start !important;
            gap: 1rem;
        }

    #welcomeModal h2 {
        font-size: 1.375rem;
    }

    .welcome-content {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}
/* end welcome modal */

/* quote carousel */
/* ========================================
   Vehicle Carousel Styles
   ======================================== */

/* Carousel Container */
#vehicleCarouselContainer {
    position: relative;
}

#vehicleCarousel {
    position: relative;
}

    #vehicleCarousel .carousel-inner {
        border-radius: var(--border-radius-md);
        overflow: hidden;
        background: #f8f9fa;
    }

    #vehicleCarousel .carousel-item {
        transition: transform 0.6s ease-in-out;
    }

        #vehicleCarousel .carousel-item .ratio {
            background: white;
        }

        #vehicleCarousel .carousel-item img {
            object-fit: cover;
            width: 100%;
            height: 100%;
        }

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 48px;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        opacity: 1;
    }

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 32px;
    height: 32px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
}

/* Thumbnail Container - Horizontal Scroll */
.thumbnails-container {
    position: relative;
    margin-top: 0.75rem;
}

.thumbnails-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

    /* Hide scrollbar but keep functionality */
    .thumbnails-scroll::-webkit-scrollbar {
        height: 4px;
    }

    .thumbnails-scroll::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }

    .thumbnails-scroll::-webkit-scrollbar-thumb {
        background: var(--bs-primary);
        border-radius: 4px;
    }

        .thumbnails-scroll::-webkit-scrollbar-thumb:hover {
            background: var(--bs-primary-hover);
        }

/* Thumbnail Buttons */
.thumbnail-btn {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    padding: 0;
    margin: 0;
    border: 3px solid transparent;
    border-radius: var(--border-radius-sm);
    opacity: 0.5;
    transition: all var(--transition-fast);
    background: white;
    cursor: pointer;
    overflow: hidden;
    display: block;
    position: relative;
}

    .thumbnail-btn:hover {
        opacity: 0.8;
        transform: scale(1.05);
        border-color: var(--bs-primary);
    }

    .thumbnail-btn.active {
        opacity: 1 !important;
        border-color: var(--bs-primary);
        box-shadow: 0 0 0 2px var(--bs-primary-lighter);
    }

    .thumbnail-btn img {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        object-fit: cover;
        object-position: center;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
    }

/* Mobile Responsive */
/* ========================================
   Vehicle Carousel Styles
   ======================================== */

/* Carousel Container */
#vehicleCarouselContainer {
    position: relative;
}

#vehicleCarousel {
    position: relative;
    margin-bottom: 0.75rem;
}

    /* Carousel Inner */
    #vehicleCarousel .carousel-inner {
        border-radius: var(--border-radius-md);
        overflow: hidden;
        background: white;
    }

    #vehicleCarousel .carousel-item {
        transition: transform 0.6s ease-in-out;
    }

        #vehicleCarousel .carousel-item .ratio {
            background: white;
        }

        #vehicleCarousel .carousel-item img {
            object-fit: cover;
            width: 100%;
            height: 100%;
        }

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 48px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        opacity: 1;
    }

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 32px;
    height: 32px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
}

/* Thumbnail Container */
.thumbnails-container {
    position: relative;
    margin-top: 0.75rem;
}

.thumbnails-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

    .thumbnails-scroll::-webkit-scrollbar {
        height: 4px;
    }

    .thumbnails-scroll::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }

    .thumbnails-scroll::-webkit-scrollbar-thumb {
        background: var(--bs-primary);
        border-radius: 4px;
    }

        .thumbnails-scroll::-webkit-scrollbar-thumb:hover {
            background: var(--bs-primary-hover);
        }

/* Thumbnail Buttons */
.thumbnail-btn {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    padding: 0;
    margin: 0;
    border: 3px solid transparent;
    border-radius: var(--border-radius-sm);
    background: white;
    cursor: pointer;
    overflow: hidden;
    display: block;
    position: relative;
    transition: all 0.2s ease;
}

    .thumbnail-btn:not(.active) {
        opacity: 0.5;
    }

        .thumbnail-btn:not(.active):hover {
            opacity: 0.8;
            transform: scale(1.05);
            border-color: var(--bs-primary);
        }

    .thumbnail-btn.active {
        opacity: 1;
        border-color: var(--bs-primary);
        box-shadow: 0 0 0 2px var(--bs-primary-lighter);
    }

    .thumbnail-btn img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
    }

/* Mobile Responsive */
@media (max-width: 991px) {
    .vehicle-card .card-body {
        padding: 0.75rem;
    }

    #vehicleCarousel {
        margin-bottom: 0.5rem;
    }

    .thumbnails-container {
        margin-top: 0.5rem;
    }
}

@media (max-width: 768px) {
    .thumbnail-btn {
        width: 60px;
        height: 60px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 576px) {
    .thumbnail-btn {
        width: 50px;
        height: 50px;
        border-width: 2px;
    }

    .thumbnails-scroll {
        gap: 0.375rem;
    }
}
/* end quote carousel */

/* contact css */
/* Floating Contact Button Group */
#contactFloat {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 98;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    border-radius: 50px;
    overflow: hidden;
}

    #contactFloat .btn {
        padding: 0.75rem 1rem;
        font-weight: 600;
        border: none;
        transition: all 0.3s ease;
    }

        #contactFloat .btn:hover {
            background-color: #218838;
            transform: translateY(-2px);
        }

        #contactFloat .btn:first-child {
            border-right: 1px solid rgba(255, 255, 255, 0.3);
        }

@media (max-width: 767px) {
    #contactFloat {
        bottom: 10px;
        right: 10px;
        left: 10px;
    }

        #contactFloat .btn {
            flex: 1;
            padding: 0.875rem 0.75rem;
        }

            #contactFloat .btn span {
                display: inline !important;
            }
}
/* end contact css */

/* nav css fixes */
/* ========================================
   Navigation Menu - Mobile Optimization (NEW - NO DUPLICATES)
   ======================================== */

/* Enhanced nav items - more specific than existing */
.navbar-nav .nav-item {
    margin: 0;
}

.navbar-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

    .navbar-nav .nav-link i {
        width: 24px;
        text-align: center;
        flex-shrink: 0;
    }

/* Top Navigation (Header) - Offcanvas Mobile */
@media (max-width: 991px) {
    #topNav.offcanvas {
        max-width: 280px;
    }

    #topNav .offcanvas-body {
        padding: 1rem 0;
    }

    #topNav .navbar-nav {
        width: 100%;
    }

    #topNav .nav-item {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

        #topNav .nav-item:last-child {
            border-bottom: none;
        }

    #topNav .nav-link {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

        #topNav .nav-link i {
            font-size: 1.125rem;
            margin-right: 0.75rem;
        }
}

/* Bottom Navigation (Footer) - Mobile ONLY */
@media (max-width: 991px) {
    footer.footer {
        padding: 1.5rem 0 5rem;
        margin-bottom: 0;
    }

    footer .navbar {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1rem 0;
    }

    footer .navbar-brand {
        margin: 0 auto 1rem;
        display: block;
        text-align: center;
    }

    footer #bottomNav {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
        margin: 0;
    }

        footer #bottomNav .nav-item {
            width: 100%;
            text-align: left;
            border-bottom: 1px solid #f0f0f0;
        }

            footer #bottomNav .nav-item:last-child {
                border-bottom: none;
            }

        footer #bottomNav .nav-link {
            padding: 0.875rem 1rem;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            border-radius: 0;
            transition: all 0.2s ease;
            font-size: 0.95rem;
        }

            footer #bottomNav .nav-link:hover,
            footer #bottomNav .nav-link.active {
                background: var(--bs-primary-lighter);
                padding-left: 1.25rem;
            }

            footer #bottomNav .nav-link i {
                width: 28px;
                text-align: center;
                margin-right: 0.75rem;
                flex-shrink: 0;
            }
}

@media (max-width: 767px) {
    footer.footer {
        padding: 1rem 0 6rem;
    }

    #topNav .nav-link {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }

        #topNav .nav-link i {
            font-size: 1rem;
        }

    footer #bottomNav .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

        footer #bottomNav .nav-link i {
            width: 24px;
            font-size: 0.95rem;
        }
}

@media (max-width: 576px) {
    footer.footer {
        padding: 0.75rem 0 6.5rem;
    }

    #topNav .nav-link {
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
    }

    footer #bottomNav .nav-link {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }

        footer #bottomNav .nav-link i {
            width: 22px;
            font-size: 0.9rem;
            margin-right: 0.5rem;
        }
}
/* end nav css fixes */

/* ========================================
   BUYER'S ORDER STYLES - Clean Print Style
   ======================================== */

.buyers-order-card {
    background: white;
    border: 1px solid #adb5bd;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.bo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: white;
    border-bottom: 2px solid #dee2e6;
}

.bo-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #212529;
}

.bo-header .btn {
    background: white;
    color: #495057;
    font-weight: 600;
    border: 1px solid #adb5bd;
}

    .bo-header .btn:hover {
        background: #f8f9fa;
        color: #212529;
        border-color: #495057;
    }

.bo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
    background: white;
}

.bo-column {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 2rem;
}

    .bo-column:first-child {
        border-right: 1px solid #dee2e6;
    }

.bo-section {
    background: white;
    padding: 0 0 1.5rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

    .bo-section:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

.bo-section-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #adb5bd;
}

/* Info Grid */
.bo-info-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.bo-info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dotted #dee2e6;
}

    .bo-info-row:last-child {
        border-bottom: none;
    }

.bo-label {
    font-weight: 500;
    color: #6c757d;
    font-size: 0.9rem;
}

.bo-value {
    font-weight: 600;
    color: #212529;
    text-align: right;
    font-size: 0.9rem;
}

/* Price Table */
.bo-price-table {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.bo-price-row {
    display: flex;
    justify-content: space-between;
    padding: 0.625rem 0.25rem;
    border-bottom: 1px dotted #dee2e6;
    font-size: 0.9rem;
}

    .bo-price-row:last-child {
        border-bottom: none;
    }

.bo-subtotal,
.bo-ttl-total,
.bo-amount-to-finance,
.bo-rebates-total {
    background: #f8f9fa;
    padding: 0.75rem 0.5rem;
    margin: 0.5rem 0;
    border-top: 1px solid #adb5bd;
    border-bottom: 1px solid #adb5bd;
    font-size: 1rem;
}

/* Rebates Section */
.bo-rebates-section {
    background: #f8fff9;
    padding: 0.75rem 0;
    margin: 0.5rem 0;
    border: 1px solid #d4edda;
    padding: 1rem;
}

.bo-rebates-header {
    font-weight: 600;
    font-size: 0.875rem;
    color: #495057;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.bo-rebate-line {
    padding: 0.375rem 0.25rem;
    border-bottom: 1px dotted #e9ecef;
    font-size: 0.875rem;
}

    .bo-rebate-line:last-of-type {
        border-bottom: 1px solid #dee2e6;
        margin-bottom: 0.5rem;
    }

/* Selected Payment */
.bo-payment-selected {
    background: #fffef5;
    border: 1px solid #ffc107;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

    .bo-payment-selected .bo-section-title {
        border-bottom: 1px solid #ffc107;
        color: #856404;
    }

.bo-payment-highlight {
    background: #fff9e6;
    padding: 0.75rem;
    margin-top: 0.5rem;
    border: 1px solid #ffc107;
    border-bottom: 1px solid #ffc107 !important;
    font-size: 1rem;
}

/* OTD Section */
.bo-otd-section {
    background: #f0f9ff;
    border: 2px solid #0d6efd;
    padding: 1.5rem;
}

.bo-otd-box {
    text-align: center;
}

.bo-otd-label {
    font-size: 1rem;
    font-weight: 700;
    color: #084298;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bo-otd-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0d6efd;
    line-height: 1;
    font-family: 'Courier New', monospace;
}

.bo-otd-payment {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: #495057;
    border-top: 1px solid #9ec5fe;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

/* No TTL State */
.bo-no-ttl {
    background: #f8f9fa;
    border: 1px dashed #dee2e6;
    padding: 1.5rem;
}

    .bo-no-ttl .alert {
        background: white;
        border: 1px solid #cfe2ff;
        color: #084298;
    }

/* Disclaimer */
.bo-disclaimer {
    background: white;
    border: none;
    padding-top: 1rem;
}

    .bo-disclaimer p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

/* Print-only elements (hidden on screen) */
.bo-print-footer {
    display: none;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    /* Hide everything except buyer's order */
    body * {
        visibility: hidden;
    }

    #buyersOrderPrint,
    #buyersOrderPrint * {
        visibility: visible;
    }

    #buyersOrderPrint {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }

    /* Show print-only elements */
    .bo-print-footer {
        display: block;
        margin-top: 3rem;
        padding-top: 2rem;
        border-top: 2px solid #000;
    }

    .bo-print-signatures {
        display: flex;
        justify-content: space-around;
        margin-bottom: 2rem;
    }

    .bo-sig-box {
        text-align: center;
        flex: 1;
    }

    .bo-sig-line {
        width: 250px;
        border-bottom: 2px solid #000;
        margin: 3rem auto 0.5rem;
    }

    .bo-print-info {
        text-align: center;
        padding-top: 1rem;
        border-top: 1px solid #000;
    }

    /* Adjust for print */
    .buyers-order-card {
        box-shadow: none;
        page-break-inside: avoid;
        border: 2px solid #000;
    }

    .bo-header {
        background: white !important;
        color: #000 !important;
        border-bottom: 3px double #000;
    }

        .bo-header .btn {
            display: none;
        }

    /* Stronger borders for print */
    .bo-section-title {
        border-bottom: 2px solid #000;
        color: #000 !important;
    }

    .bo-subtotal,
    .bo-ttl-total,
    .bo-amount-to-finance,
    .bo-rebates-total {
        border-top: 2px solid #000;
        border-bottom: 2px solid #000;
    }
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .bo-content {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .bo-column {
        padding: 1.5rem;
    }

        .bo-column:first-child {
            border-right: none;
            border-bottom: 1px solid #dee2e6;
        }

    .bo-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .bo-otd-price {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .bo-content {
        padding: 0;
    }

    .bo-column {
        padding: 1rem;
    }

    .bo-title {
        font-size: 1.25rem;
    }

    .bo-section {
        padding: 0 0 1rem 0;
    }
}

/* ========================================
   Enhanced Vehicle Cards - COPY ALL THIS AND ADD TO END OF site.css
   ======================================== */

/* Increase spacing between vehicle cards */
#vehicleContainer,
.vehicle-grid {
    gap: 2.5rem !important;
}

/* Vehicle cards with taller images */
.vehicle-card-enhanced {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.08), 0 8px 16px rgba(0, 0, 0, 0.12) !important;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

    .vehicle-card-enhanced:hover {
        box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1), 0 12px 24px rgba(0, 0, 0, 0.15) !important;
        transform: translateY(-2px);
    }

    .vehicle-card-enhanced .ratio-16x9 {
        --bs-aspect-ratio: 66.67%;
    }

.vehicle-image-container {
    position: relative;
    overflow: hidden;
}

/* Vehicle unavailable state - keep image visible */
.vehicle-unavailable {
    opacity: 0.9;
}

/* Vehicle Overlays - Simple single layer */
.vehicle-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Sold Overlay - Simple red tint */
.sold-overlay {
    background: rgba(220, 53, 69, 0.3);
}

/* Deleted Overlay - Simple gray tint */
.deleted-overlay {
    background: rgba(108, 117, 125, 0.3);
}

/* Overlay text badge - simple and clean */
.overlay-badge {
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sold-overlay .overlay-badge {
    color: #dc3545;
    border: 2px solid #dc3545;
}

.deleted-overlay .overlay-badge {
    color: #6c757d;
    border: 2px solid #6c757d;
}

/* Vehicle Feedback Section */
.vehicle-feedback-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: var(--border-radius-md);
    padding: 0.75rem;
    margin: 0 -0.5rem -0.5rem -0.5rem;
}

.feedback-btn {
    font-weight: 600;
    transition: all var(--transition-base);
    border-width: 2px;
}

    .feedback-btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-sm);
    }

    .feedback-btn i {
        transition: transform var(--transition-base);
    }

    .feedback-btn:hover i {
        transform: scale(1.2);
    }

/* Feedback Modal Styling */
#vehicleFeedbackModal .modal-content {
    border: none;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-2xl);
}

#vehicleFeedbackModal .modal-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 1.5rem 2rem;
}

#vehicleFeedbackModal .modal-body {
    padding: 1.5rem 2rem;
}

#feedbackTypeIndicator {
    padding: 1rem;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-base);
}

    #feedbackTypeIndicator.like-feedback {
        background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
        border: 2px solid #28a745;
    }

        #feedbackTypeIndicator.like-feedback .feedback-icon {
            color: #28a745;
        }

    #feedbackTypeIndicator.dislike-feedback {
        background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
        border: 2px solid #dc3545;
    }

        #feedbackTypeIndicator.dislike-feedback .feedback-icon {
            color: #dc3545;
        }

/* Feedback Reasons Checkboxes */
#feedbackReasonsContainer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feedback-reason-option {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius-md);
    padding: 0.75rem 1rem;
    transition: all var(--transition-fast);
    cursor: pointer;
}

    .feedback-reason-option:hover {
        background: #f8f9fa;
        border-color: var(--bs-primary);
        transform: translateX(4px);
    }

    .feedback-reason-option .form-check-input {
        cursor: pointer;
        width: 1.25rem;
        height: 1.25rem;
        margin-top: 0;
    }

    .feedback-reason-option .form-check-label {
        cursor: pointer;
        font-weight: 500;
        margin-left: 0.5rem;
    }

    .feedback-reason-option .form-check-input:checked ~ .form-check-label {
        color: var(--bs-primary);
        font-weight: 600;
    }

/* Mobile Responsive */
@media (max-width: 991px) {
    .vehicle-card-enhanced {
        min-height: 500px;
    }
}

@media (max-width: 767px) {
    .vehicle-card-enhanced {
        min-height: 450px;
    }

    .overlay-badge {
        font-size: 1rem;
        padding: 0.4rem 1.2rem;
        letter-spacing: 1px;
    }

    .vehicle-feedback-section {
        padding: 0.5rem;
    }

    .feedback-btn {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
}

/* Status Tracker Container */
.status-tracker {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 1rem;
}

.status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

/* Semi-Circle Base */
.status-semicircle {
    width: 100px;
    height: 50px;
    border-radius: 100px 100px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    opacity: 0.3; /* Enhanced visibility when inactive */
}

    /* Active status is more visible */
    .status-semicircle.active {
        opacity: 1;
        transform: scale(1.15);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    }

/* Checkmark icon - HIDDEN BY DEFAULT */
.status-check {
    font-size: 4.5rem; /* Double the thickness */
    font-weight: 900;
    display: none !important; /* FORCE HIDDEN for non-active */
    color: #ffffff; /* White */
    -webkit-text-stroke: 1px #000000; /* 1px black border */
    text-stroke: 1px #000000;
}

/* Show checkmark ONLY when active */
.status-semicircle.active .status-check {
    display: block !important; /* Only show on active */
}

/* Status Colors - MORE SATURATED/VISIBLE WHEN INACTIVE */
.status-semicircle.under-review {
    background-color: #ffc9dd; /* More visible light pink */
}

.status-semicircle.active.under-review {
    background-color: #ff9abe; /* Even bolder when active */
}

.status-semicircle.pending {
    background-color: #ffd999; /* More visible light orange */
}

.status-semicircle.active.pending {
    background-color: #ffc75c; /* Even bolder when active */
}

.status-semicircle.lenders-available {
    background-color: #b8e6ba; /* More visible light green */
}

.status-semicircle.active.lenders-available {
    background-color: #81c784; /* Even bolder when active */
}

/* Status Label */
.status-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #b0b5ba; /* More visible when inactive */
    text-align: center;
    transition: all 0.3s ease;
}

.status-item:has(.active) .status-label {
    color: #212529;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .status-tracker {
        gap: 1rem;
    }

    .status-semicircle {
        width: 80px;
        height: 40px;
    }

    .status-check {
        font-size: 3rem;
        -webkit-text-stroke: 1px #000000;
        text-stroke: 1px #000000;
    }
}

/* ========================================
   APPLICATION STATUS CARD - HIDE FOOTER ON MOBILE
   ======================================== */

.status-card-footer {
     /*Default: visible on desktop */
}

@media (max-width: 991px) {
    .status-card-footer {
        display: none !important;
    }
}