/**
 * Additional Custom Styles
 */

/* Gallery Section Styles */
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(35, 123, 181, 0.4) !important;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1 !important;
}

#lightbox-close:hover,
#lightbox-prev:hover,
#lightbox-next:hover {
    background: linear-gradient(135deg, #237BB5 0%, #F37021 100%) !important;
    transform: scale(1.1);
}

#lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1) !important;
}

#lightbox-next:hover {
    transform: translateY(-50%) scale(1.1) !important;
}

#gallery-lightbox {
    animation: fadeIn 0.3s ease;
}

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

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
        gap: 15px !important;
    }
    
    #lightbox-prev,
    #lightbox-next {
        width: 45px !important;
        height: 45px !important;
        font-size: 24px !important;
    }
    
    #lightbox-prev {
        left: 10px !important;
    }
    
    #lightbox-next {
        right: 10px !important;
    }
}

/* Technologies Slider Styles */
.technologies-slider-wrapper {
    position: relative;
}

/* Beautiful Content Styling for Safety and Exterior Sections */
.safety-content,
.exterior-content {
    color: #e5e7eb;
}

.safety-content h3,
.exterior-content h3 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.safety-content h3:first-child,
.exterior-content h3:first-child {
    margin-top: 0;
}

.safety-content h4,
.exterior-content h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #F37021;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    text-shadow: 0 2px 6px rgba(243, 112, 33, 0.3);
}

.safety-content p,
.exterior-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #d1d5db;
    text-align: justify;
}

.safety-content p:last-child,
.exterior-content p:last-child {
    margin-bottom: 0;
}

/* Beautiful List Styling for Safety and Exterior Sections */
.safety-content ul,
.safety-content ol,
.exterior-content ul,
.exterior-content ol {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.safety-content ul li,
.safety-content ol li,
.exterior-content ul li,
.exterior-content ol li {
    position: relative;
    padding: 1rem 0 1rem 3rem;
    margin-bottom: 0.75rem;
    color: #e5e7eb;
    font-size: 1.125rem;
    line-height: 1.75;
    transition: all 0.3s ease;
}

.safety-content ul li::before,
.safety-content ol li::before,
.exterior-content ul li::before,
.exterior-content ol li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #237BB5 0%, #F37021 100%);
    box-shadow: 0 0 15px rgba(35, 123, 181, 0.5);
    transition: all 0.3s ease;
}

.safety-content ul li:hover,
.safety-content ol li:hover,
.exterior-content ul li:hover,
.exterior-content ol li:hover {
    color: #ffffff;
    transform: translateX(5px);
    padding-left: 3.5rem;
}

.safety-content ul li:hover::before,
.safety-content ol li:hover::before,
.exterior-content ul li:hover::before,
.exterior-content ol li:hover::before {
    width: 12px;
    height: 12px;
    box-shadow: 0 0 25px rgba(243, 112, 33, 0.8);
    background: linear-gradient(135deg, #F37021 0%, #237BB5 100%);
}

.safety-content ul li:not(:last-child)::after,
.exterior-content ul li:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 3.5px;
    top: 2rem;
    width: 2px;
    height: calc(100% + 0.75rem);
    background: linear-gradient(180deg, rgba(35, 123, 181, 0.3) 0%, transparent 100%);
}

/* For ordered lists */
.safety-content ol,
.exterior-content ol {
    counter-reset: safety-exterior-counter;
}

.safety-content ol li,
.exterior-content ol li {
    counter-increment: safety-exterior-counter;
    padding-left: 4rem;
}

.safety-content ol li::before,
.exterior-content ol li::before {
    content: counter(safety-exterior-counter);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #237BB5 0%, #F37021 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.875rem;
    box-shadow: 0 4px 15px rgba(35, 123, 181, 0.4);
    transition: all 0.3s ease;
}

.safety-content ol li:hover::before,
.exterior-content ol li:hover::before {
    transform: translateY(-50%) scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(243, 112, 33, 0.6);
}

.safety-content strong,
.exterior-content strong {
    color: #F37021;
    font-weight: 600;
}

/* Beautiful List Styling for Technologies Section */
.technologies-slide-content ul,
.technologies-slide-content ol {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.technologies-slide-content ul li,
.technologies-slide-content ol li {
    position: relative;
    padding: 1rem 0 1rem 3rem;
    margin-bottom: 0.75rem;
    color: #e5e7eb;
    font-size: 1.125rem;
    line-height: 1.75;
    transition: all 0.3s ease;
}

.technologies-slide-content ul li::before,
.technologies-slide-content ol li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #237BB5 0%, #F37021 100%);
    box-shadow: 0 0 15px rgba(35, 123, 181, 0.5);
    transition: all 0.3s ease;
}

.technologies-slide-content ul li:hover,
.technologies-slide-content ol li:hover {
    color: #ffffff;
    transform: translateX(5px);
    padding-left: 3.5rem;
}

.technologies-slide-content ul li:hover::before,
.technologies-slide-content ol li:hover::before {
    width: 12px;
    height: 12px;
    box-shadow: 0 0 25px rgba(243, 112, 33, 0.8);
    background: linear-gradient(135deg, #F37021 0%, #237BB5 100%);
}

.technologies-slide-content ul li:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 3.5px;
    top: 2rem;
    width: 2px;
    height: calc(100% + 0.75rem);
    background: linear-gradient(180deg, rgba(35, 123, 181, 0.3) 0%, transparent 100%);
}

/* For ordered lists, use numbers with gradient */
.technologies-slide-content ol {
    counter-reset: tech-counter;
}

.technologies-slide-content ol li {
    counter-increment: tech-counter;
    padding-left: 4rem;
}

.technologies-slide-content ol li::before {
    content: counter(tech-counter);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #237BB5 0%, #F37021 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.875rem;
    box-shadow: 0 4px 15px rgba(35, 123, 181, 0.4);
    transition: all 0.3s ease;
}

.technologies-slide-content ol li:hover::before {
    transform: translateY(-50%) scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(243, 112, 33, 0.6);
}

/* Nested lists */
.technologies-slide-content ul ul,
.technologies-slide-content ol ol {
    margin-top: 0.5rem;
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.technologies-slide-content ul ul li::before,
.technologies-slide-content ol ol li::before {
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #F37021 0%, #237BB5 100%);
}

/* List item with icons (if needed) */
.technologies-slide-content ul li strong,
.technologies-slide-content ol li strong {
    color: #F37021;
    font-weight: 600;
    display: inline-block;
    margin-right: 0.5rem;
}

.technologies-slider {
    position: relative;
    min-height: 400px;
}

.technologies-slide {
    display: none;
    animation: fadeIn 0.6s ease-in-out;
}

.technologies-slide:first-child {
    display: block;
}

.technologies-slider-prev,
.technologies-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: linear-gradient(135deg, rgba(35, 123, 181, 0.9) 0%, rgba(35, 123, 181, 0.7) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(35, 123, 181, 0.4), 0 0 0 0 rgba(35, 123, 181, 0.4);
}

.technologies-slider-prev:hover,
.technologies-slider-next:hover {
    background: linear-gradient(135deg, #237BB5 0%, #F37021 100%);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 12px 48px rgba(243, 112, 33, 0.6), 0 0 0 8px rgba(35, 123, 181, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.technologies-slider-prev:active,
.technologies-slider-next:active {
    transform: translateY(-50%) scale(1.05);
}

.technologies-slider-prev {
    left: -80px;
}

.technologies-slider-next {
    right: -80px;
}

/* Responsive adjustments for navigation arrows */
@media (max-width: 1280px) {
    .technologies-slider-prev {
        left: 10px;
    }
    .technologies-slider-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .technologies-slider-prev,
    .technologies-slider-next {
        width: 48px;
        height: 48px;
    }
    
    .technologies-slider-prev {
        left: 5px;
    }
    
    .technologies-slider-next {
        right: 5px;
    }
    
    .technologies-slider-prev svg,
    .technologies-slider-next svg {
        width: 24px;
        height: 24px;
    }
}

/* Pagination Dots */
.technologies-slider-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
}

.technologies-slider-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.technologies-slider-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.technologies-slider-dot.active {
    background: linear-gradient(135deg, #237BB5 0%, #F37021 100%);
    border-color: rgba(255, 255, 255, 0.5);
    width: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(35, 123, 181, 0.6);
}

.technologies-slider-dot.active::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

/* Interior Slider Styles */
.interior-slider-wrapper {
    position: relative;
}

.interior-slider {
    position: relative;
    min-height: 400px;
}

.interior-slide {
    display: none;
    animation: fadeIn 0.6s ease-in-out;
}

.interior-slide:first-child {
    display: block;
}

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

.interior-slider-prev,
.interior-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: linear-gradient(135deg, rgba(35, 123, 181, 0.9) 0%, rgba(35, 123, 181, 0.7) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(35, 123, 181, 0.4), 0 0 0 0 rgba(35, 123, 181, 0.4);
}

.interior-slider-prev:hover,
.interior-slider-next:hover {
    background: linear-gradient(135deg, #237BB5 0%, #F37021 100%);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 12px 48px rgba(243, 112, 33, 0.6), 0 0 0 8px rgba(35, 123, 181, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.interior-slider-prev:active,
.interior-slider-next:active {
    transform: translateY(-50%) scale(1.05);
}

.interior-slider-prev {
    left: -80px;
}

.interior-slider-next {
    right: -80px;
}

/* Responsive adjustments for navigation arrows */
@media (max-width: 1280px) {
    .interior-slider-prev {
        left: 10px;
    }
    .interior-slider-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .interior-slider-prev,
    .interior-slider-next {
        width: 48px;
        height: 48px;
    }
    
    .interior-slider-prev {
        left: 5px;
    }
    
    .interior-slider-next {
        right: 5px;
    }
    
    .interior-slider-prev svg,
    .interior-slider-next svg {
        width: 24px;
        height: 24px;
    }
}

/* Pagination Dots */
.interior-slider-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
}

.interior-slider-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.interior-slider-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.interior-slider-dot.active {
    background: linear-gradient(135deg, #237BB5 0%, #F37021 100%);
    border-color: rgba(255, 255, 255, 0.5);
    width: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(35, 123, 181, 0.6);
}

.interior-slider-dot.active::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Admin Bar Spacing */
.admin-bar-top {
    top: 0;
}

body.admin-bar .admin-bar-top {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .admin-bar-top {
        top: 46px;
    }
}

/* Hero Section Spacing - No gap between header and banner */
.hero-section-spacing {
    margin-top: 0 !important;
    padding-top: 70px;
}

body.admin-bar .hero-section-spacing {
    padding-top: 102px; /* 70px header + 32px admin bar */
}

@media screen and (max-width: 782px) {
    body.admin-bar .hero-section-spacing {
        padding-top: 116px; /* 70px header + 46px admin bar */
    }
}

/* Page Content Spacing */
.page-content-spacing {
    padding-top: 80px;
}

/* Models Page Specific Spacing */
.models-showcase-page.page-content-spacing {
    padding-top: 70px !important;
}

body.admin-bar .page-content-spacing {
    padding-top: 112px; /* 80px + 32px admin bar */
}

@media screen and (max-width: 782px) {
    body.admin-bar .page-content-spacing {
        padding-top: 126px; /* 80px + 46px admin bar */
    }
}

/* Header Scroll Effect */
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .main-navigation.active {
        max-height: 500px;
    }

    .main-navigation ul {
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }

    .main-navigation li {
        width: 100%;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .header-cta {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .header-cta .btn {
        width: 100%;
    }
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Car Card Hover Effects */
.car-card {
    position: relative;
    overflow: hidden;
}

.car-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.car-card:hover::before {
    left: 100%;
}

/* Form Focus States */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(200, 16, 46, 0.2);
}

/* Smooth Transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .btn,
    .test-drive-form {
        display: none;
    }

    .car-details-hero {
        page-break-after: always;
    }
}

/* Accessibility Improvements */
.btn:focus {
    /* outline: 3px solid var(--accent-color); */
    outline-offset: 2px;
}

/* Remove focus outline from navigation links */
nav a:focus,
nav a:active,
.main-navigation a:focus,
.main-navigation a:active,
.sticky-nav-bar a:focus,
.sticky-nav-bar a:active,
.site-header a:focus,
.site-header a:active,
.menu-item a:focus,
.menu-item a:active,
header a:focus,
header a:active,
ul.menu a:focus,
ul.menu a:active,
.wp-block-navigation a:focus,
.wp-block-navigation a:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Skip to Content Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease both;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-400 {
    animation-delay: 0.4s;
}

/* Hero Test Drive Form Styles */
.hero-test-drive-form-wrapper {
    width: 100%;
    max-width: 450px;
    margin-left: auto;
}

.hero-test-drive-form {
    background: rgba(30, 30, 30, 0.3);
    backdrop-filter: blur(15px);
    padding: 40px 35px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-test-drive-form .form-title {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-test-drive-form .form-group {
    margin-bottom: 20px;
}

.hero-test-drive-form input[type="text"],
.hero-test-drive-form input[type="email"],
.hero-test-drive-form input[type="tel"],
.hero-test-drive-form select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(50, 50, 50, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    color: #ffffff;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.hero-test-drive-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.hero-test-drive-form input:focus,
.hero-test-drive-form select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(60, 60, 60, 0.4);
}

.hero-test-drive-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.hero-test-drive-form .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 25px;
}

.hero-test-drive-form input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #F37021;
}

.hero-test-drive-form .checkbox-group label {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
    margin: 0;
}

.hero-test-drive-form .form-submit-btn,
.hero-test-drive-form button[type="submit"],
#hero-test-drive-form .form-submit-btn,
#hero-test-drive-form button[type="submit"] {
    width: 100% !important;
    padding: 16px !important;
    background: #F37021 !important;
    background-color: #F37021 !important;
    border: none !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(243, 112, 33, 0.4) !important;
    position: relative !important;
    overflow: hidden !important;
}

.hero-test-drive-form .form-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.hero-test-drive-form .form-submit-btn:hover,
.hero-test-drive-form button[type="submit"]:hover,
#hero-test-drive-form .form-submit-btn:hover,
#hero-test-drive-form button[type="submit"]:hover {
    background: #d65a0e !important;
    background-color: #d65a0e !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(243, 112, 33, 0.6) !important;
}

.hero-test-drive-form .form-submit-btn:hover::before {
    left: 100%;
}

.hero-test-drive-form .form-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(200, 16, 46, 0.4);
}

.hero-test-drive-form .form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
}

.hero-test-drive-form .form-message.success {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.5);
}

.hero-test-drive-form .form-message.error {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.5);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero-test-drive-form-wrapper {
        max-width: 100%;
        margin: 30px auto 0;
    }
    
    .hero-content-wrapper .grid {
        grid-template-columns: 1fr;
    }
    
    .hero-text-column {
        text-align: center;
    }
    
    .hero-text-column h1,
    .hero-text-column p {
        text-align: center !important;
    }
    
    .hero-text-column .flex {
        justify-content: center;
    }
}

/* Mega Menu Styles */
.mega-menu-parent {
    position: relative;
}

.mega-menu {
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.mega-menu .grid {
    display: grid;
    gap: 20px;
}

.mega-menu .grid.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

.mega-menu .grid.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.mega-menu .grid.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.mega-menu-item {
    text-align: center;
}

.mega-menu-item a {
    text-decoration: none;
    display: block;
}

.mega-menu-item img {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.mega-menu-item:hover img {
    transform: scale(1.05);
}

.mega-menu-item h3 {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.mega-menu-item:hover h3 {
    color: var(--accent-color, #c8102e) !important;
}

/* Ensure mega menu stays visible on hover */
.mega-menu-parent:hover .mega-menu {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Mobile: Convert mega menu to simple list */
@media (max-width: 768px) {
    .mega-menu {
        position: static !important;
        transform: none !important;
        min-width: auto !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 15px !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
    }
    
    .mega-menu .grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .mega-menu-item {
        text-align: left;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        padding-bottom: 15px;
    }
    
    .mega-menu-item:last-child {
        border-bottom: none;
    }
    
    .mega-menu-item a {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .mega-menu-item img,
    .mega-menu-item > div {
        width: 80px !important;
        height: 60px !important;
        flex-shrink: 0;
        margin-bottom: 0 !important;
    }
    
    .mega-menu-item h3 {
        margin-top: 0 !important;
        text-align: left !important;
    }
}

/* Navigation Dropdown Menu Styles */
nav ul li {
    position: relative;
}

/* Desktop Dropdown */
nav ul li.menu-item-has-children > ul,
nav ul li.has-submenu > ul,
nav ul li .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 8px 0;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

nav ul li.menu-item-has-children:hover > ul,
nav ul li.has-submenu:hover > ul,
nav ul li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

nav ul li .sub-menu li {
    width: 100%;
    padding: 0;
    border-bottom: none;
}

nav ul li .sub-menu li a {
    display: block;
    padding: 10px 20px;
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    text-transform: none;
    letter-spacing: normal;
}

nav ul li .sub-menu li a:hover {
    background-color: #f5f5f5;
    color: var(--accent-color, #c8102e);
    padding-left: 25px;
}

/* Mobile Dropdown */
@media (max-width: 768px) {
    nav ul li.menu-item-has-children > ul,
    nav ul li.has-submenu > ul,
    nav ul li .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding: 0;
        margin: 0;
        margin-top: 8px;
        margin-left: 20px;
    }
    
    nav ul li .sub-menu li a {
        padding: 8px 0;
        font-size: 14px;
    }
    
    nav ul li .sub-menu li a:hover {
        padding-left: 5px;
    }
}

/* Full Width Section Styles */
.interior-section,
.safety-section,
.exterior-section,
.technologies-section {
    overflow-x: hidden;
}

/* Enhanced Background Section Styles */
.interior-section .prose,
.technologies-section .prose {
    color: rgba(255, 255, 255, 0.95) !important;
}

.safety-section .prose,
.exterior-section .prose {
    color: rgba(255, 255, 255, 0.95) !important;
    text-align: left;
    background: rgba(0, 0, 0, 0.5);
}

.interior-section .prose p,
.safety-section .prose p,
.exterior-section .prose p,
.technologies-section .prose p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.interior-section .prose h2,
.interior-section .prose h3,
.safety-section .prose h2,
.safety-section .prose h3,
.exterior-section .prose h2,
.exterior-section .prose h3,
.technologies-section .prose h2,
.technologies-section .prose h3 {
    color: #ffffff !important;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.interior-section .prose ul,
.interior-section .prose ol,
.safety-section .prose ul,
.safety-section .prose ol,
.exterior-section .prose ul,
.exterior-section .prose ol,
.technologies-section .prose ul,
.technologies-section .prose ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.interior-section .prose li,
.technologies-section .prose li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.safety-section .prose li,
.exterior-section .prose li {
    margin-bottom: 0.75rem;
    line-height: 0;
    font-weight: bold;
}

.interior-section .prose strong,
.safety-section .prose strong,
.exterior-section .prose strong,
.technologies-section .prose strong {
    color: #F37021;
    font-weight: 700;
}

/* Smooth transitions for background sections */
.interior-section,
.safety-section,
.exterior-section,
.technologies-section {
    transition: all 0.3s ease;
}

/* Responsive adjustments for background sections */
@media (max-width: 768px) {
    .interior-section .prose p,
    .safety-section .prose p,
    .exterior-section .prose p,
    .technologies-section .prose p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .interior-section h2,
    .safety-section h2,
    .exterior-section h2,
    .technologies-section h2 {
        font-size: 2rem !important;
    }
}

/* Safety & Exterior Slider Styles */
.safety-slider-wrapper,
.exterior-slider-wrapper {
    position: relative;
}

.safety-slider,
.exterior-slider {
    position: relative;
    min-height: 400px;
}

.safety-slide,
.exterior-slide {
    display: none;
    animation: fadeIn 0.6s ease-in-out;
}

.safety-slide:first-child,
.exterior-slide:first-child {
    display: block;
}

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

/* Safety Slider Navigation Arrows */
.safety-slider-prev,
.safety-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: linear-gradient(135deg, rgba(35, 123, 181, 0.9) 0%, rgba(35, 123, 181, 0.7) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(35, 123, 181, 0.4), 0 0 0 0 rgba(35, 123, 181, 0.4);
}

.safety-slider-prev:hover,
.safety-slider-next:hover {
    background: linear-gradient(135deg, #237BB5 0%, #F37021 100%);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 12px 48px rgba(243, 112, 33, 0.6), 0 0 0 8px rgba(35, 123, 181, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.safety-slider-prev:active,
.safety-slider-next:active {
    transform: translateY(-50%) scale(1.05);
}

.safety-slider-prev {
    left: -80px;
}

.safety-slider-next {
    right: -80px;
}

/* Exterior Slider Navigation Arrows */
.exterior-slider-prev,
.exterior-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: linear-gradient(135deg, rgba(243, 112, 33, 0.9) 0%, rgba(243, 112, 33, 0.7) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(243, 112, 33, 0.4), 0 0 0 0 rgba(243, 112, 33, 0.4);
}

.exterior-slider-prev:hover,
.exterior-slider-next:hover {
    background: linear-gradient(135deg, #F37021 0%, #237BB5 100%);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 12px 48px rgba(35, 123, 181, 0.6), 0 0 0 8px rgba(243, 112, 33, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.exterior-slider-prev:active,
.exterior-slider-next:active {
    transform: translateY(-50%) scale(1.05);
}

.exterior-slider-prev {
    left: -80px;
}

.exterior-slider-next {
    right: -80px;
}

/* Responsive adjustments for navigation arrows */
@media (max-width: 1280px) {
    .safety-slider-prev,
    .exterior-slider-prev {
        left: 10px;
    }
    .safety-slider-next,
    .exterior-slider-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .safety-slider-prev,
    .safety-slider-next,
    .exterior-slider-prev,
    .exterior-slider-next {
        width: 48px;
        height: 48px;
    }
    
    .safety-slider-prev,
    .exterior-slider-prev {
        left: 5px;
    }
    
    .safety-slider-next,
    .exterior-slider-next {
        right: 5px;
    }
    
    .safety-slider-prev svg,
    .safety-slider-next svg,
    .exterior-slider-prev svg,
    .exterior-slider-next svg {
        width: 24px;
        height: 24px;
    }
}

/* Safety & Exterior Pagination Dots */
.safety-slider-pagination,
.exterior-slider-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
}

.safety-slider-dot,
.exterior-slider-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.safety-slider-dot:hover,
.exterior-slider-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.safety-slider-dot.active {
    background: linear-gradient(135deg, #237BB5 0%, #F37021 100%);
    border-color: rgba(255, 255, 255, 0.5);
    width: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(35, 123, 181, 0.6);
}

.exterior-slider-dot.active {
    background: linear-gradient(135deg, #F37021 0%, #237BB5 100%);
    border-color: rgba(255, 255, 255, 0.5);
    width: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(243, 112, 33, 0.6);
}

.safety-slider-dot.active::after,
.exterior-slider-dot.active::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .safety-slide-image img,
    .exterior-slide-image img {
        max-width: 100% !important;
    }
    
    .safety-slide-content,
    .exterior-slide-content {
        padding: 0 1rem;
    }
}

/* Enhanced Test Drive Form Styles */
.test-drive-section {
    position: relative;
    overflow: hidden;
}

.test-drive-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(200, 16, 46, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(243, 112, 33, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.test-drive-section > * {
    position: relative;
    z-index: 1;
}

.test-drive-form-enhanced {
    position: relative;
}

.test-drive-form-enhanced .form-group-enhanced {
    margin-bottom: 0;
}

.test-drive-form-enhanced input,
.test-drive-form-enhanced textarea {
    transition: all 0.3s ease;
}

.test-drive-form-enhanced input:focus,
.test-drive-form-enhanced textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 112, 33, 0.3);
    background: rgba(30, 30, 30, 0.9) !important;
}

.test-drive-form-enhanced input,
.test-drive-form-enhanced textarea {
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    background: rgba(20, 20, 20, 0.8) !important;
    color: #ffffff !important;
}

.test-drive-form-enhanced input:focus,
.test-drive-form-enhanced textarea:focus {
    border-color: rgba(243, 112, 33, 0.5) !important;
}

/* Date picker icon visibility */
.test-drive-form-enhanced input[type="date"],
.test-drive-form-enhanced .date-input-custom {
    color-scheme: dark;
    padding-right: 3rem !important;
    position: relative;
}

.test-drive-form-enhanced input[type="date"]:focus,
.test-drive-form-enhanced .date-input-custom:focus {
    padding-right: 3rem !important;
}

/* Hide native calendar icon */
.test-drive-form-enhanced input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0 !important;
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.test-drive-form-enhanced input[type="date"]::-moz-calendar-picker-indicator {
    opacity: 0 !important;
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

/* Custom calendar icon overlay */
.calendar-icon-overlay {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.calendar-icon-overlay svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.form-group-enhanced:hover .calendar-icon-overlay svg {
    stroke: #F37021;
    transform: scale(1.1);
}


.test-drive-form-enhanced input::placeholder,
.test-drive-form-enhanced textarea::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    opacity: 1;
}

.test-drive-form-enhanced input::-webkit-input-placeholder,
.test-drive-form-enhanced textarea::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.test-drive-form-enhanced input::-moz-placeholder,
.test-drive-form-enhanced textarea::-moz-placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    opacity: 1;
}

.test-drive-form-enhanced input:-ms-input-placeholder,
.test-drive-form-enhanced textarea:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.test-drive-form-enhanced button[type="submit"] {
    position: relative;
    overflow: hidden;
}

.test-drive-form-enhanced button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.test-drive-form-enhanced button[type="submit"]:hover::before {
    left: 100%;
}

.form-message-enhanced {
    padding: 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-message-enhanced.success {
    background: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
    border: 2px solid rgba(76, 175, 80, 0.3);
}

.form-message-enhanced.error {
    background: rgba(244, 67, 54, 0.1);
    color: #c62828;
    border: 2px solid rgba(244, 67, 54, 0.3);
}

/* Enhanced Technologies Section Styles */
.technologies-section .technologies-image img {
    transition: transform 0.5s ease;
}

.technologies-section .technologies-image:hover img {
    transform: scale(1.05);
}

.technologies-content {
    line-height: 1.8;
}

.technologies-content h3,
.technologies-content h4 {
    color: #1a1a1a;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.technologies-content p {
    color: #4a4a4a;
    margin-bottom: 1rem;
}

.technologies-content ul,
.technologies-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.technologies-content li {
    margin-bottom: 0.5rem;
    color: #4a4a4a;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .test-drive-form-enhanced .grid {
        grid-template-columns: 1fr !important;
    }
    
    .test-drive-section {
        padding: 2rem 0 !important;
    }
    
    .test-drive-section h2 {
        font-size: 2rem !important;
    }
}

/* Dark Mode Styles for Model Details Page */
.car-details-dark-mode {
    color: #e5e7eb;
}

.car-details-dark-mode h1,
.car-details-dark-mode h2,
.car-details-dark-mode h3,
.car-details-dark-mode h4 {
    color: #ffffff;
}

.car-details-dark-mode .spec-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.car-details-dark-mode .spec-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(243, 112, 33, 0.3);
    transform: translateY(-2px);
}

.car-details-dark-mode .spec-item-value {
    color: #F37021;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.car-details-dark-mode .spec-item-label {
    color: #9ca3af;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.car-details-dark-mode .car-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.car-details-dark-mode .technologies-content h3,
.car-details-dark-mode .technologies-content h4 {
    color: #ffffff !important;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.car-details-dark-mode .technologies-content p {
    color: #e5e7eb !important;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

/* Beautiful UL and LI styling for dark background */
.car-details-dark-mode .technologies-content ul,
.car-details-dark-mode .technologies-content ol {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.car-details-dark-mode .technologies-content ol {
    counter-reset: item;
}

.car-details-dark-mode .technologies-content ul li,
.car-details-dark-mode .technologies-content ol li {
    color: #ffffff !important;
    padding: 1.25rem 1.5rem 1.25rem 3.5rem;
    margin-bottom: 0.75rem;
    position: relative;
    line-height: 1.8;
    font-size: 1.125rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid transparent;
    border-radius: 0.5rem;
}

.car-details-dark-mode .technologies-content ul li::before {
    content: '✓';
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #F37021;
    font-weight: bold;
    font-size: 1.25rem;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(243, 112, 33, 0.15);
    border-radius: 50%;
    border: 2px solid rgba(243, 112, 33, 0.3);
    transition: all 0.3s ease;
}

.car-details-dark-mode .technologies-content ul li:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.06);
    border-left-color: #F37021;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.car-details-dark-mode .technologies-content ul li:hover::before {
    color: #F37021;
    background: rgba(243, 112, 33, 0.25);
    border-color: #F37021;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 15px rgba(243, 112, 33, 0.4);
}

.car-details-dark-mode .technologies-content ol li {
    counter-increment: item;
    padding-left: 3.5rem;
}

.car-details-dark-mode .technologies-content ol li::before {
    content: counter(item);
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #F37021;
    font-weight: 700;
    font-size: 1rem;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(243, 112, 33, 0.15);
    border-radius: 50%;
    border: 2px solid rgba(243, 112, 33, 0.3);
    transition: all 0.3s ease;
}

.car-details-dark-mode .technologies-content ol li:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.06);
    border-left-color: #F37021;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.car-details-dark-mode .technologies-content ol li:hover::before {
    background: rgba(243, 112, 33, 0.25);
    border-color: #F37021;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 15px rgba(243, 112, 33, 0.4);
}

.car-details-dark-mode input::placeholder,
.car-details-dark-mode textarea::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.car-details-dark-mode input:focus,
.car-details-dark-mode textarea:focus {
    background: rgba(30, 30, 30, 0.9) !important;
    box-shadow: 0 0 0 3px rgba(243, 112, 33, 0.3) !important;
    outline: none !important;
}

.car-details-dark-mode textarea {
    border: none !important;
    background: rgba(20, 20, 20, 0.8) !important;
    color: #ffffff !important;
}

/* Date picker icon styling */
.car-details-dark-mode input[type="date"] {
    color-scheme: dark;
    position: relative;
    padding-right: 3rem !important;
}

.car-details-dark-mode input[type="date"]:focus {
    padding-right: 3rem !important;
}

.car-details-dark-mode input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(2) contrast(1.5);
    cursor: pointer;
    opacity: 1 !important;
    width: 24px !important;
    height: 24px !important;
    margin-left: 8px;
    padding: 2px;
    background: transparent !important;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.car-details-dark-mode input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1 !important;
    filter: invert(1) sepia(1) saturate(5) hue-rotate(10deg) brightness(2.5);
    background: rgba(243, 112, 33, 0.1) !important;
    transform: scale(1.1);
}

/* Firefox date picker */
.car-details-dark-mode input[type="date"]::-moz-calendar-picker-indicator {
    filter: invert(1) brightness(2) contrast(1.5);
    cursor: pointer;
    opacity: 1 !important;
    width: 24px !important;
    height: 24px !important;
    padding: 2px;
    background: transparent !important;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.car-details-dark-mode input[type="date"]::-moz-calendar-picker-indicator:hover {
    opacity: 1 !important;
    filter: invert(1) sepia(1) saturate(5) hue-rotate(10deg) brightness(2.5);
    background: rgba(243, 112, 33, 0.1) !important;
    transform: scale(1.1);
}

.car-details-dark-mode .test-drive-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f172a 100%) !important;
}

/* Overview Section Styling */
.overview-section {
    position: relative;
}

.overview-section .spec-card {
    transition: all 0.3s ease;
    flex: 1 1 auto;
}

@media (min-width: 640px) {
    .overview-section .spec-card {
        min-width: 220px;
    }
}

@media (min-width: 768px) {
    .overview-section .spec-card {
        min-width: 240px;
    }
}

@media (min-width: 1024px) {
    .overview-section .spec-card {
        min-width: 260px;
    }
}

.overview-section .spec-card:hover {
    transform: translateY(-5px);
    border-color: rgba(243, 112, 33, 0.3) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Overview Section Color Swatches */
.overview-section .color-swatch-img,
.overview-section .color-swatch-div {
    border: none !important;
    outline: none !important;
}

.overview-section .color-option-item {
    border: none !important;
    outline: none !important;
}

.overview-section .color-option-item:hover {
    transform: translateY(-5px);
}

.overview-section .color-option-item:hover .color-swatch-img,
.overview-section .color-option-item:hover .color-swatch-div {
    box-shadow: 0 6px 20px rgba(243, 112, 33, 0.4) !important;
    transform: scale(1.1);
}

.overview-section .color-option-item:hover .color-name-label {
    color: #d4af37 !important;
}

.overview-section .color-option-item.active .color-swatch-img,
.overview-section .color-option-item.active .color-swatch-div {
    box-shadow: 0 6px 20px rgba(243, 112, 33, 0.4) !important;
}

/* Active label color is set dynamically via JavaScript, so no fixed color here */

.overview-section .color-name-label {
    color: #e5e7eb !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Allow JavaScript to override color */
.overview-section .color-option-item.active .color-name-label {
    color: inherit !important;
}

/* ============================================
   Models Showcase Page Styles
   ============================================ */

.models-showcase-page {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%) !important;
    min-height: 100vh !important;
}

/* Hero Header Section */
.models-hero-header {
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #1a1a1a 100%) !important;
    padding: 80px 0 60px !important;
    position: relative !important;
    overflow: hidden !important;
}

.models-hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(243, 112, 33, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.models-header-content {
    position: relative;
    z-index: 1;
}

.models-main-title {
    font-size: 3.5rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin-bottom: 20px !important;
    letter-spacing: -0.02em !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

@media (min-width: 768px) {
    .models-main-title {
        font-size: 4.5rem;
    }
}

@media (min-width: 1024px) {
    .models-main-title {
        font-size: 5.5rem;
    }
}

.models-title-underline {
    width: 120px !important;
    height: 4px !important;
    background: linear-gradient(90deg, #0ea5e9 0%, #F37021 100%) !important;
    margin: 0 auto 24px !important;
    border-radius: 2px !important;
    box-shadow: 0 2px 10px rgba(14, 165, 233, 0.5) !important;
}

.models-subtitle {
    font-size: 1.25rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 300 !important;
    letter-spacing: 0.5px !important;
}

@media (min-width: 768px) {
    .models-subtitle {
        font-size: 1.5rem;
    }
}

/* Models Grid Section */
.models-grid-section {
    padding: 60px 0 !important;
}

.models-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
}

@media (min-width: 768px) {
    .models-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 40px !important;
    }
}

@media (min-width: 1024px) {
    .models-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 48px !important;
    }
}

/* Model Card */
.model-card {
    background: #ffffff !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.model-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, rgba(243, 112, 33, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.model-card:hover {
    transform: translateY(-12px) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}

.model-card:hover::before {
    opacity: 1;
}

.model-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Model Card Image */
.model-card-image-wrapper {
    position: relative !important;
    height: 320px !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;
}

@media (min-width: 768px) {
    .model-card-image-wrapper {
        height: 360px;
    }
}

.model-card-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.model-card:hover .model-card-image {
    transform: scale(1.15) !important;
}

.model-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.model-card:hover .model-card-overlay {
    opacity: 1;
}

.model-card-badge {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    color: #0f172a;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.model-card:hover .model-card-badge {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.model-card-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.model-card:hover .model-card-arrow {
    transform: translateX(4px);
}

/* Model Card Content */
.model-card-content {
    padding: 28px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    z-index: 1 !important;
}

.model-card-title {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 12px !important;
    line-height: 1.3 !important;
    transition: color 0.3s ease !important;
}

.model-card:hover .model-card-title {
    color: #0ea5e9 !important;
}

.model-card-price {
    font-size: 2rem !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    margin-bottom: 20px !important;
    letter-spacing: -0.02em !important;
}

/* Model Card Specs */
.model-card-specs {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
    margin-top: auto !important;
    padding-top: 20px !important;
    border-top: 1px solid #e5e7eb !important;
}

.model-spec-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 12px !important;
    background: #f8f9fa !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
}

.model-card:hover .model-spec-item {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    transform: translateY(-2px);
}

.model-spec-icon {
    width: 24px;
    height: 24px;
    color: #0ea5e9;
    margin-bottom: 4px;
}

.model-spec-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.model-spec-value {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

/* Empty State */
.models-empty-state {
    text-align: center;
    padding: 100px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.models-empty-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 32px;
    color: #cbd5e1;
    opacity: 0.5;
}

.models-empty-icon svg {
    width: 100%;
    height: 100%;
}

.models-empty-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.models-empty-text {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.6;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .models-hero-header {
        padding: 60px 0 40px;
    }
    
    .models-main-title {
        font-size: 2.5rem;
    }
    
    .models-grid-section {
        padding: 40px 0;
    }
    
    .models-grid {
        gap: 24px;
    }
    
    .model-card-image-wrapper {
        height: 280px;
    }
    
    .model-card-content {
        padding: 20px;
    }
    
    .model-card-specs {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .model-spec-item {
        padding: 10px;
    }
}

/* Hide Our Collection Section on Home Page */
.our-collection-section {
    display: none !important;
}

/* Parallax Section Styles */
.parallax-section {
    position: relative;
    overflow: hidden;
}

.parallax-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    will-change: transform;
}

.parallax-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Video Hero Section */
.video-hero-section {
    position: relative;
    overflow: hidden;
    padding: 75px 0px;
}

.video-hero-section video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
}

@media (max-width: 768px) {
    .video-hero-section {
        min-height: 60vh;
    }
    
    .video-hero-section h2 {
        font-size: 2rem !important;
    }
    
    .video-hero-section p {
        font-size: 1rem !important;
    }
}

/* Scroll Animations */
.scroll-animate, 
.scroll-animate-left, 
.scroll-animate-right, 
.scroll-animate-scale {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.scroll-animate { transform: translateY(50px); }
.scroll-animate-left { transform: translateX(-50px); }
.scroll-animate-right { transform: translateX(50px); }
.scroll-animate-scale { transform: scale(0.9); }

.scroll-animate.animated,
.scroll-animate-left.animated,
.scroll-animate-right.animated,
.scroll-animate-scale.animated {
    opacity: 1 !important;
    transform: translate(0) scale(1) !important;
}

.banner-video-overlay-text {
    font-family: 'Exo 2', 'Bebas Neue', 'Oswald', 'Rajdhani', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1;
    color: #ffffff;
    text-align: left;
    z-index: 20;
    pointer-events: none;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.6);
    opacity: 0;
    /* Transformation is partially handled inline for the wide effect */
    transition: all 1.2s cubic-bezier(0.2, 1, 0.3, 1);
    display: inline-block;
    position: relative;
}

.banner-video-overlay-text.animated {
    animation: bannerTextReveal 1.5s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

/* Beautiful reveal animation with glow effect */
@keyframes bannerTextReveal {
    0% {
        opacity: 0;
        transform: translateX(-60px) scale(0.9);
        letter-spacing: -0.1em;
        filter: blur(10px) drop-shadow(0 10px 20px rgba(0,0,0,0.5));
    }
    50% {
        opacity: 0.8;
        filter: blur(2px) drop-shadow(0 10px 20px rgba(0,0,0,0.5)) drop-shadow(0 0 30px rgba(255, 255, 255, 0.5));
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
        letter-spacing: 0.1em;
        filter: blur(0) drop-shadow(0 10px 20px rgba(0,0,0,0.5));
    }
}

/* Add subtle breathing animation after reveal */
.banner-video-overlay-text.animated::after {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    animation: textGlow 3s ease-in-out 1.5s infinite;
    z-index: -1;
}

@keyframes textGlow {
    0%, 100% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.1);
    }
}

.banner-video-overlay-container {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: flex-end; /* Bottom alignment */
    justify-content: flex-start; /* Left alignment */
    padding: 0 0 8% 10%; /* Slightly adjusted for better balance */
    pointer-events: none;
}

@media (max-width: 768px) {
    .banner-video-overlay-container {
        padding: 0 0 12% 8%;
    }
    .banner-video-overlay-text {
        letter-spacing: 0.1em;
    }
}
.born-to-play-section {
    position: relative;
    overflow: hidden;
    background: #000;
}

.born-to-play-text-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    min-height: 600px;
}

.born-to-play-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.born-to-play-text {
    font-size: clamp(5rem, 18vw, 15rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1;
    margin: 0;
    padding: 0;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    z-index: 2;
    text-align: center;
    width: 100%;
    white-space: nowrap;
    pointer-events: none;
    /* Video shows through text */
    color: transparent;
    background: #fff;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.2);
    text-stroke: 2px rgba(255, 255, 255, 0.2);
    mix-blend-mode: multiply;
}

/* Apply video as background to text */
.born-to-play-text-wrapper {
    background: #000;
    isolation: isolate;
}

.born-to-play-video-bg {
    mix-blend-mode: screen;
}

.born-to-play-text {
    color: #000;
    background: #fff;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    mix-blend-mode: multiply;
}

.born-to-play-toggle {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    color: white;
    backdrop-filter: blur(10px);
}

.born-to-play-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateX(-50%) scale(1.1);
}

.born-to-play-toggle svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .born-to-play-text {
        font-size: clamp(3rem, 20vw, 8rem);
    }
    
    .born-to-play-toggle {
        width: 50px;
        height: 50px;
        bottom: 1rem;
    }
    
    .born-to-play-toggle svg {
        width: 20px;
        height: 20px;
    }
}


