.vehicle-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: none;
}

.vehicle-modal.is-open {
  display: block;
}

.vehicle-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.vehicle-modal-dialog {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100vw - 28px));
  margin: 70px auto;
  padding: 26px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(16, 16, 16, 0.98) 0%, rgba(7, 7, 7, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.32);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.vehicle-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.vehicle-modal-head {
  margin-bottom: 20px;
  flex-shrink: 0;
}

.vehicle-modal-badge {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--vip-gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.vehicle-modal-head h3 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 800;
}

.vehicle-modal-text {
  margin: 0;
  color: #d3d3d3;
  line-height: 1.7;
}

.vehicle-modal-selected {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.18);
}

.vehicle-modal-selected strong {
  color: #fff;
  font-size: 18px;
}

.vehicle-modal-selected span,
.vehicle-modal-capacity-note {
  color: #bfbfbf;
  font-size: 13px;
}

.input-icon-wrap {
  position: relative;
}

.input-icon-wrap .form-control {
  padding-right: 46px;
}

.input-icon {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  pointer-events: auto;
  cursor: pointer;
  z-index: 3;
}

.vehicle-modal .booking-form .form-control,
.vehicle-modal .form-select {
  min-height: 54px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background-color: rgba(20, 20, 20, 0.96);
  color: #fff;
  box-shadow: none;
}

.vehicle-modal .booking-form .form-control::placeholder {
  color: #a7a7a7;
}

.vehicle-modal .booking-form .form-control:focus,
.vehicle-modal .form-select:focus {
  border-color: rgba(212, 175, 55, 0.46);
  background-color: rgba(16, 16, 16, 0.98);
  color: #fff;
  box-shadow: 0 0 0 0.22rem rgba(212, 175, 55, 0.14);
}

.vehicle-modal .form-select {
  padding-right: 48px;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-size: 18px 18px;
  background-repeat: no-repeat;
  appearance: none;
}

.vehicle-modal .booking-form input[type="date"],
.vehicle-modal .booking-form input[type="time"],
.route-vehicle-modal-dialog .booking-form input[type="date"],
.route-vehicle-modal-dialog .booking-form input[type="time"] {
  padding-right: 46px;
  color-scheme: dark;
}

.route-modal-icon-input .form-control {
  padding-right: 46px;
}

.vehicle-modal .booking-form input[type="date"]::-webkit-calendar-picker-indicator,
.vehicle-modal .booking-form input[type="time"]::-webkit-calendar-picker-indicator,
.route-vehicle-modal-dialog .booking-form input[type="date"]::-webkit-calendar-picker-indicator,
.route-vehicle-modal-dialog .booking-form input[type="time"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  position: relative;
  z-index: 2;
  cursor: pointer;
}

.vehicle-modal .booking-form input[type="date"]::-webkit-datetime-edit,
.vehicle-modal .booking-form input[type="time"]::-webkit-datetime-edit,
.route-vehicle-modal-dialog .booking-form input[type="date"]::-webkit-datetime-edit,
.route-vehicle-modal-dialog .booking-form input[type="time"]::-webkit-datetime-edit {
  color: #fff;
}

.vehicle-modal .booking-form input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.vehicle-modal .booking-form input[type="time"]::-webkit-datetime-edit-fields-wrapper,
.route-vehicle-modal-dialog .booking-form input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.route-vehicle-modal-dialog .booking-form input[type="time"]::-webkit-datetime-edit-fields-wrapper {
  color: #fff;
}

.route-modal-icon-input input[type="date"]::-webkit-calendar-picker-indicator,
.route-modal-icon-input input[type="time"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  position: relative;
  z-index: 2;
  cursor: pointer;
}

.route-modal-icon-input .input-icon {
  color: #fff;
}

.vehicle-modal .booking-form input[type="number"] {
  padding-right: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='8.5' cy='7' r='4'/%3E%3Cpath d='M20 8v6'/%3E%3Cpath d='M23 11h-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px 18px;
}

.vehicle-modal .booking-form input[type="number"]::-webkit-outer-spin-button,
.vehicle-modal .booking-form input[type="number"]::-webkit-inner-spin-button {
  opacity: 0;
  margin: 0;
}

.vehicle-modal .booking-form input[type="number"] {
  appearance: textfield;
}

body.vehicle-modal-open {
  overflow: hidden;
}

.vehicle-modal .booking-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.vehicle-modal .booking-form .row {
  margin-right: 0;
  margin-left: 0;
}

@media (max-width: 767.98px) {
  .vehicle-modal .booking-form .row {
    gap: 10px !important;
  }

  .vehicle-modal .booking-form .col-md-6 {
    flex: 1;
  }
}

@media (max-width: 767.98px) {
  .vehicle-modal-dialog {
    width: calc(100vw - 18px);
    margin: 12px auto;
    padding: 20px 16px;
    border-radius: 18px;
    max-height: calc(100vh - 24px);
  }

  .vehicle-modal-head h3 {
    font-size: 22px;
  }

  .vehicle-modal {
    overflow: auto;
  }
}
