.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%;
  }
}
