/* =========================================================================
 * Araç Rezervasyon — Modern, mobile-first booking form theme (avaz.digital)
 * Overrides the legacy Bootstrap-3 look with a clean, contemporary UI.
 * ====================================================================== */

.aracrez-booking-form1 {
  --arz-radius: 14px;
  --arz-border: #e6e8ec;
  --arz-bg: #ffffff;
  --arz-muted: #6b7280;
  --arz-text: #1f2430;
  --arz-shadow: 0 10px 30px rgba(20, 25, 40, 0.08);
  --arz-shadow-sm: 0 2px 8px rgba(20, 25, 40, 0.06);

  max-width: 1080px;
  margin: 0 auto;
  color: var(--arz-text);
  font-family: inherit; /* use the active theme font (e.g. Poppins) to match the site */
  -webkit-font-smoothing: antialiased;
}

.aracrez-booking-form1 * { box-sizing: border-box; }

/* ---- Step indicator -------------------------------------------------- */
.aracrez-booking-form1 .aracrez-cart-steps { margin: 0 0 22px; }
.aracrez-booking-form1 .aracrez-cart-steps ul {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.aracrez-booking-form1 .aracrez-cart-steps li {
  flex: 1;
  width: auto !important;
  float: none !important;
  background: var(--arz-bg);
  border: 1px solid var(--arz-border);
  border-radius: var(--arz-radius);
  padding: 0;
  box-shadow: var(--arz-shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}
.aracrez-booking-form1 .aracrez-cart-steps li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--arz-muted);
  font-weight: 600;
}
.aracrez-booking-form1 .aracrez-cart-steps .aracrez-section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #eef1f6;
  color: var(--arz-muted);
  font-weight: 700;
  flex: 0 0 auto;
}
.aracrez-booking-form1 .aracrez-cart-steps li.active { border-color: transparent; }
.aracrez-booking-form1 .aracrez-cart-steps li.active a { color: var(--arz-text); }
.aracrez-booking-form1 .aracrez-section-title { font-size: 14px; }

/* ---- Cards / panels -------------------------------------------------- */
.aracrez-booking-form1 .aracrez-input-group,
.aracrez-booking-form1 .aracrez-trip-preview,
.aracrez-booking-form1 .aracrez-vehicle-item {
  background: var(--arz-bg);
  border: 1px solid var(--arz-border);
  border-radius: var(--arz-radius);
  box-shadow: var(--arz-shadow-sm);
  padding: 20px;
  margin-bottom: 18px;
}

.aracrez-booking-form1 .aracrez-header,
.aracrez-booking-form1 .aracrez-trip-preview-header {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 14px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--arz-border);
}
.aracrez-booking-form1 .aracrez-header-row { margin: 0; }

/* ---- Inputs ---------------------------------------------------------- */
.aracrez-booking-form1 .aracrez-input-row { margin: 0 0 16px; position: relative; }
.aracrez-booking-form1 .control-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--arz-muted);
  margin: 0 0 6px;
}
.aracrez-booking-form1 .aracrez-required { color: #e23d3d; }

.aracrez-booking-form1 .aracrez-form-input,
.aracrez-booking-form1 input.form-control,
.aracrez-booking-form1 select.form-control {
  width: 100%;
  height: auto;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--arz-text);
  background: #fff;
  border: 1.5px solid var(--arz-border);
  border-radius: 10px;
  box-shadow: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
.aracrez-booking-form1 select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.aracrez-booking-form1 .aracrez-form-input:focus,
.aracrez-booking-form1 .form-control:focus {
  outline: none;
  border-color: var(--arz-primary, #2b6cb0);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}
.aracrez-booking-form1 .aracrez-field-error {
  border-color: #e23d3d !important;
  box-shadow: 0 0 0 3px rgba(226, 61, 61, 0.12) !important;
}

/* ---- "Use my location" button + map hint ---------------------------- */
.aracrez-booking-form1 .aracrez-use-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #2b2f38;
  background: #f3f4f6;
  border: 1px solid #e2e4e8;
  border-radius: 9px;
  cursor: pointer;
  transition: background .15s;
}
.aracrez-booking-form1 .aracrez-use-location:hover { background: #e9eaee; }
.aracrez-booking-form1 .aracrez-map-hint {
  font-size: 12.5px;
  color: var(--arz-muted);
  margin: 8px 2px 0;
}

/* ---- Autocomplete dropdown (modernised) ----------------------------- */
.aracrez-booking-form1 .aracrez-autocomplete-list {
  border: 1px solid var(--arz-border);
  border-radius: 0 0 10px 10px;
  box-shadow: var(--arz-shadow);
  margin-top: -2px;
}
.aracrez-booking-form1 .aracrez-autocomplete-list li { font-size: 13.5px; }

/* ---- Map ------------------------------------------------------------- */
.aracrez-booking-form1 .aracrez-form-map {
  height: 420px;
  border-radius: var(--arz-radius);
  overflow: hidden;
  border: 1px solid var(--arz-border);
  box-shadow: var(--arz-shadow-sm);
}

/* ---- Journey stats --------------------------------------------------- */
.aracrez-booking-form1 .aracrez-journey-stats { margin-top: 14px; }
.aracrez-booking-form1 .aracrez-map-stats-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #f7f9fc;
  border: 1px solid var(--arz-border);
  border-radius: 10px;
  padding: 12px 14px;
}
.aracrez-booking-form1 .aracrez-map-stat-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--arz-muted);
  font-weight: 700;
}
.aracrez-booking-form1 .aracrez-map-stat-text { font-size: 18px; font-weight: 700; }

/* ---- Buttons --------------------------------------------------------- */
.aracrez-booking-form1 .aracrez-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  border-radius: 20px; /* matches the site's button radius */
  cursor: pointer;
  text-decoration: none;
  font-family: inherit; /* use the theme font (Poppins) like the rest of the site */
  border: 2px solid var(--arz-primary, #2b6cb0);
  background: var(--arz-primary, #2b6cb0);
  color: var(--arz-secondary, #fff);
  transition: filter .15s, transform .05s;
}
.aracrez-booking-form1 .aracrez-button:hover { filter: brightness(0.95); }
.aracrez-booking-form1 .aracrez-button:active { transform: translateY(1px); }
.aracrez-booking-form1 .aracrez-button.-inverted {
  background: transparent;
  color: var(--arz-primary, #2b6cb0);
}
.aracrez-booking-form1 .aracrez-booking-form1-section1-submit {
  width: 100%;
  margin-top: 6px;
}
@media (min-width: 768px) {
  .aracrez-booking-form1 .aracrez-booking-form1-section1-submit {
    width: auto;
    min-width: 220px;
  }
}

/* ---- Vehicle result cards (clean, consistent, image-optional) -------- */
.aracrez-booking-form1 .aracrez-vehicles-list { display: flex; flex-direction: column; gap: 16px; }

.aracrez-booking-form1 .aracrez-vehicle-item {
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid var(--arz-border);
  border-radius: var(--arz-radius);
  background: #fff;
  box-shadow: var(--arz-shadow-sm);
  transition: box-shadow .2s, transform .1s;
}
.aracrez-booking-form1 .aracrez-vehicle-item:hover { box-shadow: var(--arz-shadow); transform: translateY(-2px); }

/* Stack image over details (consistent on every screen, single-column list) */
.aracrez-booking-form1 .aracrez-vehicle-item .row { display: block; margin: 0; }

.aracrez-booking-form1 .aracrez-vehicle-image-column {
  width: 100% !important;
  padding: 0 !important;
  background: #f6f7f9;
  border-bottom: 1px solid var(--arz-border);
  text-align: center;
}
.aracrez-booking-form1 .aracrez-vehicle-image-column img {
  width: 100%;
  height: 180px;
  object-fit: contain;     /* product car shots: show whole car, never crop */
  padding: 12px;
  display: block;
}

.aracrez-booking-form1 .aracrez-vehicle-details-column {
  width: 100% !important;
  padding: 16px 18px !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.aracrez-booking-form1 .aracrez-vehicle-name { font-size: 18px; font-weight: 800; color: var(--arz-text); }
.aracrez-booking-form1 .aracrez-vehicle-icons { display: flex; gap: 18px; color: var(--arz-muted); }
.aracrez-booking-form1 .aracrez-vehicle-icon { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.aracrez-booking-form1 .aracrez-vehicle-features { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.aracrez-booking-form1 .aracrez-vehicle-features li { font-size: 13px; color: var(--arz-muted); }
.aracrez-booking-form1 .aracrez-vehicle-features:empty { display: none; }

/* footer: price (left) + BOEK NU (right) */
.aracrez-booking-form1 .aracrez-book-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid var(--arz-border);
}
.aracrez-booking-form1 .aracrez-vehicle-price { font-size: 22px; font-weight: 800; color: var(--arz-text); margin: 0; }
.aracrez-booking-form1 .aracrez-book-container .aracrez-vehicle-book-button { padding: 11px 26px; flex: 0 0 auto; width: auto; }
.aracrez-booking-form1 .pull-right { float: none; }

/* ---- Trip preview (step 2 sidebar) — larger, more readable -----------
 * Uses the .aracrez-trip-preview ancestor to match (and, loading later, beat)
 * form1.css's 3-class rules that set tiny 0.8rem text. */
.aracrez-booking-form1 .aracrez-trip-preview .aracrez-trip-preview-header { font-size: 19px; }
.aracrez-booking-form1 .aracrez-trip-preview .aracrez-trip-preview-title {
  font-size: 13px; text-transform: uppercase; letter-spacing: .03em;
  color: var(--arz-muted); font-weight: 700; margin-top: 16px; margin-bottom: 2px;
}
.aracrez-booking-form1 .aracrez-trip-preview .aracrez-trip-preview-text {
  font-size: 16px; line-height: 1.5; color: var(--arz-text); font-weight: 500;
}
.aracrez-booking-form1 .aracrez-back-button-container { margin-top: 14px; }

/* ---- Error alert ----------------------------------------------------- */
.aracrez-booking-form1 .alert-danger {
  background: #fdecec;
  border: 1px solid #f5c2c2;
  color: #a12626;
  border-radius: 10px;
  padding: 12px 16px;
}

/* ---- Responsive ------------------------------------------------------ */
@media (max-width: 767px) {
  /* Step indicator stacks */
  .aracrez-booking-form1 .aracrez-cart-steps ul { flex-direction: column; }
  .aracrez-booking-form1 .aracrez-section-title { font-size: 13px; }

  /* Reclaim full mobile width: drop Bootstrap row/column + section gutters */
  .aracrez-booking-form1 .form-section { padding-left: 8px; padding-right: 8px; }
  .aracrez-booking-form1 .row { margin-left: 0; margin-right: 0; }
  .aracrez-booking-form1 [class*="col-"] { padding-left: 0; padding-right: 0; float: none; width: 100%; }

  /* Tighter cards */
  .aracrez-booking-form1 .aracrez-input-group,
  .aracrez-booking-form1 .aracrez-trip-preview { padding: 16px; margin-bottom: 14px; }
  .aracrez-booking-form1 .aracrez-header,
  .aracrez-booking-form1 .aracrez-trip-preview-header { font-size: 16px; }

  /* Map */
  .aracrez-booking-form1 .aracrez-form-map { height: 300px; margin-top: 4px; }

  /* Bigger touch targets; 16px font prevents iOS focus-zoom */
  .aracrez-booking-form1 .aracrez-form-input,
  .aracrez-booking-form1 input.form-control,
  .aracrez-booking-form1 select.form-control { padding: 13px 14px; font-size: 16px; }
  .aracrez-booking-form1 input.aracrez-form-starting-address,
  .aracrez-booking-form1 input.aracrez-form-destination-address,
  .aracrez-booking-form1 input.aracrez-form-waypoint { padding-left: 42px; }

  /* Full-width buttons + comfortable autocomplete rows */
  .aracrez-booking-form1 .aracrez-button { width: 100%; }
  .aracrez-booking-form1 .aracrez-autocomplete-list li { padding: 12px; font-size: 14px; }

  /* Vehicle result cards stack */
  .aracrez-booking-form1 .aracrez-vehicle-image-column,
  .aracrez-booking-form1 .aracrez-vehicle-details-column { width: 100%; }
  .aracrez-booking-form1 .aracrez-vehicle-image-column { min-height: 160px; }
  .aracrez-booking-form1 .aracrez-vehicle-price { font-size: 22px; }
  .aracrez-booking-form1 .aracrez-book-container { justify-content: space-between; width: 100%; }
}

/* ---- Address inputs: search icon + autocomplete polish ---------------- */
.aracrez-booking-form1 input.aracrez-form-starting-address,
.aracrez-booking-form1 input.aracrez-form-destination-address,
.aracrez-booking-form1 input.aracrez-form-waypoint {
  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='%239aa3b2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
  padding-left: 42px;
}
.aracrez-booking-form1 .aracrez-autocomplete-list li.-active {
  background: #eef4fb;
}
.aracrez-booking-form1 .aracrez-autocomplete-list li::before {
  content: "📍";
  margin-right: 8px;
  opacity: .6;
}

/* The active theme wraps <select> in .wbc-select-wrap and adds its own arrow
 * box (.wbc-select-arrow) that depends on the theme's icon font. Our selects
 * already render a clean SVG chevron, so hide the theme's arrow box to avoid
 * an empty/garbled square inside the form. */
.aracrez-booking-form1 .wbc-select-arrow { display: none !important; }
.aracrez-booking-form1 .wbc-select-wrap { position: relative; }
.aracrez-booking-form1 .wbc-select-wrap select { width: 100%; }

/* ---------------------------------------------------------------------------
 * Step indicator — deterministic layout + consistent casing (avaz.digital)
 * Overrides legacy/theme rules that shrink the link and leave the number and
 * label spread apart, and normalises mixed-case translations to one style.
 * ------------------------------------------------------------------------- */
.aracrez-booking-form1 .aracrez-cart-steps li a {
  display: flex !important;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  text-align: left;
}
.aracrez-booking-form1 .aracrez-cart-steps .aracrez-section-number {
  margin: 0 !important;
  flex: 0 0 auto;
}
.aracrez-booking-form1 .aracrez-cart-steps .aracrez-section-title {
  flex: 1 1 auto;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}

/* jQuery UI datepicker is appended to <body> with an inline z-index:1, which
 * sits behind the Leaflet map (panes z-index 400+). Float it above everything. */
#ui-datepicker-div.ui-datepicker,
.ui-datepicker {
  z-index: 100000 !important;
}
