/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

/* Video Background Container - 80% height */
.video-background-container {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

/* Overlay content positioned in center */
.overlay-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-align: center;
}

.overlay-content h1 {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.overlay-content p {
  font-size: 1.4rem;
  color: #fff;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
  margin-bottom: 0;
}

/* Experience the Future text above button with proper spacing */
.future-text {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
  z-index: 4;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Request ride button FIXED at bottom center */
.request-ride-btn {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(45deg, #FF6B00, #ff812b);
  color: #fff;
  border: none;
  padding: 10px 35px;
  font-size: 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
  z-index: 4;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.request-ride-btn:hover {
  background: linear-gradient(45deg, #ff812b, #FF6B00);
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

.sound-toggle {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  padding: 12px;
  z-index: 4;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.sound-toggle:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Floating Form Styles - FIXED FOR HOVER AND CLICK */
#testRideForm {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Active state - form is visible */
#testRideForm.active {
  display: flex !important;
  opacity: 1;
  visibility: visible;
}

.form-content {
  background: #fff;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 450px;
  position: relative;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

#testRideForm.active .form-content {
  transform: scale(1);
}

.form-content h2 {
  margin-bottom: 25px;
  color: #333;
  font-size: 1.8rem;
  font-weight: 600;
}

.form-content input {
  width: 100%;
  padding: 15px;
  margin: 10px 0;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-content input:focus {
  outline: none;
  border-color: #FF6B00;
}

.form-content button[type="submit"] {
  background: linear-gradient(45deg, #FF6B00, #ff812b);
  color: #fff;
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  margin-top: 20px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: 100%;
  transition: background 0.3s ease;
}

.form-content button[type="submit"]:hover {
  background: linear-gradient(45deg, #ff812b, #FF6B00);
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 30px;
  color: #999;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 10;
}

.close-btn:hover {
  color: #FF6B00;
}

/* Ticker Bar - Seamless Loop */
.ticker-bar {
  width: 100%;
  background: linear-gradient(45deg, #333, #444);
  overflow: hidden;
  white-space: nowrap;
  padding: 20px 0;
  position: relative;
  border-top: 3px solid #FF6B00;
  border-bottom: 3px solid #FF6B00;
}

.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
  align-items: center;
}

.ticker-track span {
  display: inline-block;
  padding: 0 4rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  flex-shrink: 0;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Video section styles */
.video-section {
  width: 100%;
  height: auto;
  position: relative;
}

.background-video {
  width: 100%;
  height: auto;
  display: block;
}

iframe {
  width: 100%;
  height: 800px;
  border: none;
  display: block;
}

/* Dealer Modal */
#dealerModalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#dealerModalContent {
  background: #fff;
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
  padding: 30px 20px;
}

#dealerModalClose {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 30px;
  color: #999;
  cursor: pointer;
  z-index: 2;
  transition: color 0.3s ease;
}

#dealerModalClose:hover {
  color: #FF6B00;
}

/* RESPONSIVE DESIGN - 100% RESPONSIVE */

/* Large Desktop (1200px+) */
@media screen and (min-width: 1200px) {
  .overlay-content h1 { font-size: 4rem; }
  .overlay-content p { font-size: 1.6rem; }
  .future-text { font-size: 1.5rem; bottom: 140px; }
  .request-ride-btn { padding: 18px 40px; font-size: 1.3rem; bottom: 40px; }
  .ticker-track { font-size: 1.6rem; }
  .ticker-track span { padding: 0 5rem; }
}

/* Desktop (992px-1199px) */
@media screen and (max-width: 1199px) {
  .overlay-content h1 { font-size: 3.2rem; }
  .overlay-content p { font-size: 1.3rem; }
  .future-text { font-size: 1.4rem; bottom: 130px; }
  .request-ride-btn { padding: 16px 36px; font-size: 1.2rem; }
  .ticker-track { font-size: 1.4rem; }
}

/* Tablet (768px-991px) */
@media screen and (max-width: 991px) {
  .video-background-container { min-height: 350px; }
  .overlay-content h1 { font-size: 2.8rem; }
  .overlay-content p { font-size: 1.2rem; }
  .future-text { font-size: 1.2rem; bottom: 110px; }
  .request-ride-btn { padding: 14px 30px; font-size: 1.1rem; bottom: 30px; }
  .ticker-track { font-size: 1.2rem; }
  .ticker-track span { padding: 0 3rem; }
}

/* Tablet Portrait (768px and below) */
@media screen and (max-width: 768px) {
  .video-background-container { min-height: 320px; }
  .overlay-content h1 { font-size: 2.2rem; }
  .overlay-content p { font-size: 1.1rem; }
  .future-text { font-size: 1.1rem; bottom: 100px; }
  .request-ride-btn { padding: 12px 25px; font-size: 1rem; bottom: 25px; }
  .sound-toggle { bottom: 25px; right: 20px; width: 45px; height: 45px; }
  .form-content { padding: 30px 20px; margin: 10px; }
  .ticker-track { font-size: 1rem; }
  .ticker-track span { padding: 0 2.5rem; }
  iframe { height: 600px; }
}

/* Mobile (576px and below) */
@media screen and (max-width: 576px) {
  .video-background-container { min-height: 280px; }
  .overlay-content h1 { font-size: 1.8rem; }
  .overlay-content p { font-size: 1rem; }
  .future-text { font-size: 1rem; bottom: 85px; }
  .request-ride-btn { padding: 10px 20px; font-size: 0.9rem; bottom: 20px; }
  .sound-toggle { bottom: 20px; right: 15px; width: 40px; height: 40px; }
  .form-content { padding: 25px 15px; }
  .ticker-track { font-size: 0.9rem; }
  .ticker-track span { padding: 0 2rem; }
  iframe { height: 400px; }
}

/* Small Mobile (480px and below) */
@media screen and (max-width: 480px) {
  .video-background-container { min-height: 260px; }
  .overlay-content h1 { font-size: 1.5rem; }
  .overlay-content p { font-size: 0.9rem; }
  .future-text { font-size: 0.9rem; bottom: 75px; }
  .request-ride-btn { padding: 8px 18px; font-size: 0.85rem; bottom: 15px; }
  .sound-toggle { width: 35px; height: 35px; font-size: 1rem; }
  .ticker-track { font-size: 0.8rem; }
  .ticker-track span { padding: 0 1.5rem; }
}

/* Extra Small Mobile (360px and below) - CONTINUED */
@media screen and (max-width: 360px) {
  .video-background-container { min-height: 240px; }
  .overlay-content h1 { font-size: 1.3rem; }
  .overlay-content p { font-size: 0.8rem; }
  .future-text { font-size: 0.8rem; bottom: 65px; }
  .request-ride-btn { padding: 7px 15px; font-size: 0.8rem; bottom: 12px; }
  .ticker-track { font-size: 0.7rem; }
  .ticker-track span { padding: 0 1rem; }
}

/* Very Small Mobile (320px and below) */
@media screen and (max-width: 320px) {
  .video-background-container { min-height: 220px; }
  .overlay-content h1 { font-size: 1.2rem; }
  .overlay-content p { font-size: 0.75rem; }
  .future-text { font-size: 0.75rem; bottom: 55px; }
  .request-ride-btn { padding: 6px 12px; font-size: 0.75rem; bottom: 10px; }
  .ticker-track { font-size: 0.65rem; }
  .ticker-track span { padding: 0 0.8rem; }
}

/* Ultra-wide screens (1920px+) */
@media screen and (min-width: 1920px) {
  .video-background-container { min-height: 600px; }
  .overlay-content h1 { font-size: 4.5rem; }
  .overlay-content p { font-size: 1.8rem; }
  .future-text { font-size: 1.6rem; bottom: 160px; }
  .request-ride-btn { padding: 20px 45px; font-size: 1.4rem; bottom: 50px; }
  .ticker-track { font-size: 1.8rem; }
  .ticker-track span { padding: 0 6rem; }
}

/* 4K screens (2560px+) */
@media screen and (min-width: 2560px) {
  .overlay-content h1 { font-size: 5rem; }
  .overlay-content p { font-size: 2rem; }
  .future-text { font-size: 1.8rem; bottom: 180px; }
  .request-ride-btn { padding: 25px 50px; font-size: 1.6rem; bottom: 60px; }
  .ticker-track { font-size: 2rem; }
  .ticker-track span { padding: 0 7rem; }
}

/* Landscape orientation adjustments */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .video-background-container { min-height: 200px; }
  .overlay-content { transform: translate(-50%, -60%); }
  .overlay-content h1 { font-size: 1.8rem; margin-bottom: 0.3rem; }
  .overlay-content p { font-size: 1rem; }
  .future-text { font-size: 0.9rem; bottom: 50px; }
  .request-ride-btn { padding: 8px 20px; font-size: 0.9rem; bottom: 15px; }
  .sound-toggle { bottom: 15px; right: 15px; }
}

/* Very short screens */
@media screen and (max-height: 400px) {
  .video-background-container { min-height: 180px; }
  .overlay-content { transform: translate(-50%, -50%); }
  .overlay-content h1 { font-size: 1.5rem; margin-bottom: 0.2rem; }
  .overlay-content p { font-size: 0.9rem; }
  .future-text { font-size: 0.8rem; bottom: 45px; }
  .request-ride-btn { padding: 6px 16px; font-size: 0.8rem; bottom: 10px; }
}

/* Tablet landscape specific */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .future-text { font-size: 1.1rem; bottom: 90px; }
  .request-ride-btn { bottom: 25px; }
  .ticker-track { font-size: 1.1rem; }
  .ticker-track span { padding: 0 3rem; }
}

/* Mobile landscape specific */
@media screen and (max-width: 767px) and (orientation: landscape) {
  .video-background-container { min-height: 250px; }
  .overlay-content { transform: translate(-50%, -60%); }
  .overlay-content h1 { font-size: 1.8rem; margin-bottom: 0.3rem; }
  .overlay-content p { font-size: 1rem; }
  .future-text { font-size: 0.9rem; bottom: 55px; }
  .request-ride-btn { bottom: 20px; padding: 8px 20px; font-size: 0.9rem; }
  .ticker-track { font-size: 0.9rem; }
  .ticker-track span { padding: 0 2rem; }
}

/* iPhone specific optimizations */
@media screen and (max-width: 414px) {
  .video-background-container { min-height: 280px; }
  .overlay-content h1 { font-size: 1.6rem; line-height: 1.2; }
  .overlay-content p { font-size: 0.95rem; }
  .future-text { font-size: 0.85rem; bottom: 70px; }
  .request-ride-btn { padding: 8px 20px; font-size: 0.9rem; border-radius: 25px; }
  .ticker-track { font-size: 0.85rem; }
  .ticker-track span { padding: 0 1.5rem; }
}

/* iPhone SE and smaller */
@media screen and (max-width: 375px) {
  .overlay-content h1 { font-size: 1.4rem; }
  .overlay-content p { font-size: 0.9rem; }
  .future-text { font-size: 0.8rem; bottom: 65px; }
  .request-ride-btn { padding: 7px 18px; font-size: 0.85rem; }
  .ticker-track { font-size: 0.8rem; }
  .ticker-track span { padding: 0 1.3rem; }
}

/* Galaxy Fold and very narrow screens */
@media screen and (max-width: 280px) {
  .video-background-container { min-height: 200px; }
  .overlay-content h1 { font-size: 1.1rem; }
  .overlay-content p { font-size: 0.7rem; }
  .future-text { font-size: 0.6rem; bottom: 50px; }
  .request-ride-btn { padding: 6px 12px; font-size: 0.7rem; }
  .ticker-track { font-size: 0.6rem; }
  .ticker-track span { padding: 0 0.8rem; }
}

/* High DPI Displays */
@media screen and (-webkit-min-device-pixel-ratio: 2),
       screen and (min-resolution: 192dpi) {
  .overlay-content h1,
  .overlay-content p,
  .future-text {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  .ticker-track span {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
  }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
    transform: translateX(0);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .ticker-track span {
    padding: 0.5rem 1rem;
    margin: 0.25rem;
  }
  
  .request-ride-btn,
  .sound-toggle,
  .form-content button[type="submit"],
  .close-btn,
  #dealerModalClose,
  .form-content input,
  #testRideForm,
  .form-content {
    transition: none;
  }
}

/* Focus States for Accessibility */
.request-ride-btn:focus,
.sound-toggle:focus,
.form-content input:focus,
.form-content button:focus,
.close-btn:focus,
#dealerModalClose:focus {
  outline: 2px solid #FF6B00;
  outline-offset: 2px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .form-content {
    background: #2a2a2a;
    color: #fff;
  }
  
  .form-content h2 {
    color: #fff;
  }
  
  .form-content input {
    background: #3a3a3a;
    border-color: #555;
    color: #fff;
  }
  
  .form-content input::placeholder {
    color: #ccc;
  }
  
  .close-btn {
    color: #ccc;
  }
  
  .close-btn:hover {
    color: #FF6B00;
  }
  
  #dealerModalContent {
    background: #2a2a2a;
    color: #fff;
  }
  
  #dealerModalClose {
    color: #ccc;
  }
  
  #dealerModalClose:hover {
    color: #FF6B00;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .request-ride-btn,
  .sound-toggle,
  .close-btn,
  #dealerModalClose {
    min-height: 30px;
    min-width: 30px;
  }
  
  .form-content input {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Better touch targets for mobile */
  .request-ride-btn {
    padding: 12px 15px;
    font-size: 1rem;
  }
  
  .sound-toggle {
    width: 48px;
    height: 48px;
  }
  
  /* Improve ticker readability on touch devices */
  .ticker-track span {
    padding: 0 2rem;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .ticker-bar {
    background: #000;
    border-top: 3px solid #fff;
    border-bottom: 3px solid #fff;
  }
  
  .ticker-track {
    color: #fff;
  }
  
  .ticker-track span {
    text-shadow: none;
  }
  
  .request-ride-btn {
    background: #fff;
    color: #000;
    border: 2px solid #000;
  }
  
  .sound-toggle {
    background: #fff;
    color: #000;
    border: 2px solid #000;
  }
  
  .future-text {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
  }
}

/* Performance Optimizations */
.video-background {
  will-change: transform;
}

.ticker-track {
  will-change: transform;
  backface-visibility: hidden;
  perspective: 1000px;
  contain: layout style paint;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading State */
.video-background-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #333, #555);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-background-container.loading::before {
  opacity: 1;
}

/* Ticker performance optimizations */
.ticker-track {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
  -ms-transform: translateZ(0);
  -o-transform: translateZ(0);
}

/* Ensure ticker spans are properly spaced */
.ticker-track span + span {
  border-left: none;
}

/* Prevent layout shifts */
.ticker-bar {
  contain: layout style;
}

.video-background-container {
  contain: layout;
}

/* Browser specific fixes */
/* Firefox */
@-moz-document url-prefix() {
  .ticker-track {
    animation: ticker-scroll 40s linear infinite;
    -moz-animation: ticker-scroll 40s linear infinite;
  }
  
  .video-background {
    object-fit: cover;
  }

}
/* Safari */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  .ticker-track {
    -webkit-animation: ticker-scroll 40s linear infinite;
    animation: ticker-scroll 40s linear infinite;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);

  }    .video-background {
    -webkit-object-fit: cover;
    object-fit: cover; 
  }
}

/* Edge */
@supports (-ms-ime-align: auto) {
  .ticker-track {
    -ms-animation: ticker-scroll 40s linear infinite;
    animation: ticker-scroll 40s linear infinite;
  }
}

/* Internet Explorer fallback */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  .ticker-track {
    animation: none;
    text-align: center;
  }
  
  .ticker-track span {
    display: inline-block;
    margin: 0 2rem;
  }
  
  .video-overlay {
    background: rgba(0, 0, 0, 0.5);
  }
}

/* Fallback for older browsers */
@supports not (display: flex) {
  .ticker-track {
    display: block;
    text-align: center;
  }
  
  .ticker-track span {
    display: inline-block;
    margin: 0 2rem;
  }
  
  .video-overlay {
    display: block;
    text-align: center;
    padding-top: 20%;
  }
  
  #testRideForm {
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

/* Print Styles */
/* Print Styles - CONTINUED */
@media print {
  .video-background-container,
  .sound-toggle,
  #testRideForm,
  #dealerModalOverlay {
    display: none !important;
  }
  
  .ticker-bar {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #000 !important;
  }
  
  .ticker-track {
    animation: none !important;
    color: #000 !important;
    display: block !important;
    text-align: center !important;
  }
  
  .ticker-track span {
    display: inline !important;
    margin: 0 1rem !important;
    padding: 0 !important;
  }
}

/* Ensure smooth scrolling on all elements */
* {
  scroll-behavior: smooth;
}

/* Final ticker optimization */
.ticker-track span:nth-child(7n) {
  color: #FF6B00;
}

/* Retina display optimizations */
@media screen and (-webkit-min-device-pixel-ratio: 3) {
  .ticker-track span,
  .overlay-content h1,
  .overlay-content p,
  .future-text {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* GPU acceleration for smooth animations */
.ticker-track,
.future-text,
.request-ride-btn {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
}

/* Form input improvements */
.form-content input[type="text"],
.form-content input[type="email"],
.form-content input[type="tel"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-clip: padding-box;
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
  .form-content input {
    font-size: 16px !important; /* Prevent zoom on focus */
    transform: translateZ(0);
  }
  
  .video-background {
    -webkit-transform: translateZ(0);
     transform: translateZ(0);
  }
}

/* Android Chrome specific fixes */
@media screen and (-webkit-min-device-pixel-ratio: 1) and (max-width: 768px) {
  .form-content input:focus {
    zoom: 1;
  }
}

/* Hover effects for desktop only */
@media (hover: hover) and (pointer: fine) {
  .request-ride-btn:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.5);
  }
  
  .sound-toggle:hover {
    transform: scale(1.1);
  }
  
  .close-btn:hover,
  #dealerModalClose:hover {
    transform: scale(1.1);
  }
}

/* Prevent text selection on UI elements */
.request-ride-btn,
.sound-toggle,
.close-btn,
#dealerModalClose,
.ticker-track {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Improve form accessibility */
.form-content input:invalid {
  border-color: #ff4444;
}

.form-content input:valid {
  border-color: #44ff44;
}

/* Loading animation for form */
.form-content.loading {
  pointer-events: none;
  opacity: 0.7;
}

.form-content.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #FF6B00;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Improved button states */
.request-ride-btn:active {
  transform: translateX(-50%) translateY(1px);
  box-shadow: 0 2px 10px rgba(255, 107, 0, 0.3);
}

.form-content button[type="submit"]:active {
  transform: translateY(1px);
}

/* Better focus indicators */
.request-ride-btn:focus-visible,
.sound-toggle:focus-visible,
.form-content button:focus-visible {
  outline: 3px solid #FF6B00;
  outline-offset: 3px;
}

/* Improved contrast for better readability */
.future-text {
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 16px;
  border-radius: 25px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* Enhanced ticker animation performance */
@media (prefers-reduced-motion: no-preference) {
  .ticker-track {
    animation-timing-function: linear;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
  }
}

/* Improved video overlay gradient */
.video-overlay {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
}

/* Enhanced form shadow and depth */
.form-content {
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Improved ticker visual hierarchy */
.ticker-track span:nth-child(odd) {
  opacity: 0.9;
}

.ticker-track span:nth-child(even) {
  opacity: 1;
}

/* Enhanced mobile touch targets */
@media (max-width: 768px) {
  .request-ride-btn {
    min-height: 48px;
    min-width: 120px;
  }
  
  .sound-toggle {
    min-height: 48px;
    min-width: 48px;
  }
  
  .close-btn {
    min-height: 44px;
    min-width: 44px;
    padding: 7px;
  }
}

/* Improved form validation styles */
.form-content input:focus:invalid {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.form-content input:focus:valid {
  border-color: #51cf66;
  box-shadow: 0 0 0 3px rgba(81, 207, 102, 0.1);
}

/* Enhanced button gradients */
.request-ride-btn {
  background: linear-gradient(
    135deg,
    #FF6B00 0%,
    #ff812b 25%,
    #FF6B00 50%,
    #ff812b 75%,
    #FF6B00 100%
  );
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Disable animation on reduced motion */
@media (prefers-reduced-motion: reduce) {
  .request-ride-btn {
    animation: none;
    background: linear-gradient(45deg, #FF6B00, #ff812b);
  }
}

/* Enhanced ticker performance */
.ticker-bar {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Improved form transitions */
#testRideForm {
  transition: 
    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-content {
  transition: 
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Better video loading state */
.video-background {
  background: linear-gradient(45deg, #333, #555);
}

/* Enhanced sound toggle */
.sound-toggle {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Improved dealer modal */
#dealerModalContent {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Final optimizations */
.video-background-container,
.ticker-bar,
#testRideForm {
  contain: layout style paint;
}

/* Ensure proper stacking context */
.video-background-container {
  isolation: isolate;
}

#testRideForm {
  isolation: isolate;
}

#dealerModalOverlay {
  isolation: isolate;
}

/* End of CSS */
