.hero-section {
  position: relative;
  overflow: hidden;
  background-image: url(/assets/hero-9ce2f9ffc8904aa1cb95acfe385825fb2905b538a79fd4df85f49c082238679a.jpg);
  background-size: cover;
  background-position: center;
  will-change: auto;
  contain: layout style;
  transform: translateZ(0);
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(58, 99, 99, 0.85), rgba(58, 99, 99, 0.75), rgba(58, 99, 99, 0.85));
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
}

/* Form Input Optimization */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
  color: #1f2937 !important;
  background-color: white !important;
  caret-color: #00B4D8;
  will-change: auto;
  -webkit-appearance: none;
  appearance: none;
  transform: translateZ(0);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder,
input[type="number"]::placeholder {
  color: #9ca3af !important;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #00B4D8 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.1) !important;
}

/* Form Container */
.bg-white.rounded-xl.shadow-2xl {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Disable transitions on form elements */
input,
textarea,
select {
  transition: none !important;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* Flatpickr Calendar Fixes for Modal - More Specific */
.modal .flatpickr-calendar {
  z-index: 99999 !important;
}

/* Ensure flatpickr calendar is visible in modals */
.flatpickr-calendar {
  z-index: 99999 !important;
}

/* Modal-specific flatpickr styling */
.modal .flatpickr-calendar.open {
  display: block !important;
  z-index: 99999 !important;
}

/* Ensure modal backdrop doesn't interfere */
.modal-backdrop {
  z-index: 9998 !important;
}

.modal {
  z-index: 9999 !important;
}

/* Test style to verify CSS is loading */
.test-css-loading {
  background: red !important;
  color: white !important;
  padding: 10px !important;
  margin: 10px !important;
  border-radius: 5px !important;
}

/* Only keep cursor and text-decoration for disabled dates */
.flatpickr-day.flatpickr-disabled {
  text-decoration: none !important;
  cursor: not-allowed !important;
}

/* Modal overlay and scrollable content for Terms & Conditions */
#terms-modal {
  display: flex;
  align-items: center;
  justify-content: center;
}

#terms-modal .max-h-64 {
  max-height: 16rem;
  overflow-y: auto;
}

#terms-modal .bg-white {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

#terms-modal .rounded-lg {
  border-radius: 0.75rem;
}

#terms-modal .shadow-lg {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

#terms-modal .bg-indigo-600:hover {
  background-color: #3a6363;
}

/* Swiper styles for car images slider */
.swiper-container {
  width: 100%;
  height: 22rem;
  margin-bottom: 2rem;
}

.swiper-slide img {
  max-width: 100%;
  max-height: 20rem;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
}

.swiper-button-next,
.swiper-button-prev {
  color: #3a6363;
  top: 50%;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
  transition: background 0.2s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: #3a6363;
  color: #fff;
}

.swiper-pagination-bullet {
  background: #3a6363;
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  opacity: 1;
}

.navbar-link:hover {
  color: #3a6363 !important;
}

.navbar-button:hover {
  background-color: #2d5555 !important;
}

.mobile-menu-button:hover {
  color: #3a6363 !important;
}

/* Background helpers */
.bg-cover-center {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Fades background (or element) to transparent at the bottom */
.bg-fade-bottom {
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
}

/* Fades element to transparent on the right side */
.fade-right {
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 65%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 65%, rgba(0, 0, 0, 0) 100%);
}

/* Override Bootstrap carousel-item to work with Tailwind carousel */
.carousel-item {
  position: relative !important;
  display: block !important;
  float: none !important;
  width: 25% !important;
  margin-right: 0 !important;
  backface-visibility: visible !important;
  transition: none !important;
}

.carousel-track {
  display: flex;
  transition: transform 0.3s ease;
}

.carousel-container {
  overflow: hidden;
  /* Hide cards outside the viewport */
  width: 100%;
}

.car-card {
  flex: 0 0 25%;
  /* Each card is exactly 25% of the CONTAINER, not the track */
  max-width: 25%;
  box-sizing: border-box;
}

.carousel-container,
.carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.3s ease;
}

.carousel-item,
.car-card {
  flex-shrink: 0;
  box-sizing: border-box;
  /* Width will be set by JavaScript */
}

/* Custom responsive width class to avoid using fractions in HAML */
@media (min-width: 1024px) {
  .lg_w-33 {
    width: 33.333333%;
  }
}

/* Thank You Page Animations */
.transition-all-500 {
  transition: all 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-all-800 {
  transition: all 800ms cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes float-1 {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

@keyframes float-2 {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-15px) rotate(-5deg);
  }
}

@keyframes float-3 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(15px, 15px) scale(1.1);
  }
}

@keyframes float-4 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-15px, 10px) scale(0.9);
  }
}

.animate-float-1 {
  animation: float-1 6s ease-in-out infinite;
}

.animate-float-2 {
  animation: float-2 8s ease-in-out infinite;
}

.animate-float-3 {
  animation: float-3 10s ease-in-out infinite;
}

.animate-float-4 {
  animation: float-4 12s ease-in-out infinite;
}

.animate-float-slow {
  animation: float-1 12s ease-in-out infinite;
}

.animate-float-slow-2 {
  animation: float-2 15s ease-in-out infinite;
}

/* High-End Aesthetic Polish */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 25px 50px -12px rgba(58, 99, 99, 0.15);
}

.text-gradient-teal {
  background: linear-gradient(135deg, #3a6363 0%, #2a4a4a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes blob-bounce {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -50px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

.animate-blob {
  animation: blob-bounce 25s infinite alternate ease-in-out;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

.bg-teal-gradient {
  background: radial-gradient(circle at center, rgba(58, 99, 99, 0.05) 0%, transparent 70%);
}
