/**
 * VikRentCar Car Details Page Styles
 * Matches clean, modern booking page design
 */

/* ============================================
   OVERALL PAGE LAYOUT
   ============================================ */

.vrc-cdetails-cinfo,
.vrc-cardetails-legend,
.vrc-avcals-container,
.vrc-cardetails-book-wrap {
  max-width: 900px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

.vrc-car-carats {
  max-width: 900px;
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
  display: block !important;
}

/* ============================================
   CAR INFO HEADER — image + name/desc
   ============================================ */

.vrc-cdetails-cinfo {
  display: flex !important;
  flex-direction: row !important;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 30px;
  padding-top: 40px;
}

/* Left column — car image */
.vrc-cdetails-img {
  flex: 0 0 420px;
  max-width: 420px;
  width: 100%;
}

.vrc-cdetails-cmainimg {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  background: #f0f0f0;
}

.vrc-cdetails-cmainimg img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

/* Thumbnail gallery row */
.cardetails_moreimages {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.cardetails_moreimages a {
  display: block;
  width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #e0e0e0;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.cardetails_moreimages a:hover {
  border-color: #5b9dd9;
  transform: scale(1.04);
}

.cardetails_moreimages img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Right column — car info */
.vrc-cdetails-infocar {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 8px;
}

.vrc-cdetails-cgroup {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vrc-cdetails-cgroup .vrc-car-name,
.vrc-cdetails-cgroup h4.vrc-car-name {
  font-size: 30px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  margin: 0 !important;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

.vrc-cdetails-cgroup .vrclistcarcat {
  display: inline-block;
  background: #eef4fb;
  color: #5b9dd9;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Car description */
.vrc-cdetails-cardesc {
  font-size: 15px;
  color: #555555;
  line-height: 1.6;
}

.vrc-cdetails-cardesc p {
  margin: 0 0 10px 0;
}

/* Price — "From € XX" */
.vrc-cdetails-cost {
  margin-top: 4px;
}

.vrc-cdetails-cost .vrcliststartfrom {
  font-size: 14px;
  color: #888888;
  margin-right: 6px;
}

.vrc-cdetails-cost .car_cost {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
}

.vrc-cdetails-cost .vrc_currency {
  font-size: 16px;
  color: #666666;
}

/* Request Info button (if enabled) */
.vrc-reqinfo-cont .vrc-reqinfo-opener {
  display: inline-block;
  padding: 8px 18px;
  background: #5b9dd9;
  color: #ffffff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}

.vrc-reqinfo-cont .vrc-reqinfo-opener:hover {
  background: #4a8cc8;
}

/* ============================================
   CHARACTERISTICS STRIP
   ============================================ */

.vrc-car-carats {
  background: #f7f9fc;
  border-radius: 10px;
  padding: 18px 24px;
  margin-bottom: 24px;
  border: 1px solid #eee;
}

.vrc-car-carats .vrccaratsdiv {
  display: flex !important;
  flex-wrap: wrap;
  gap: 18px !important;
  align-items: center;
  justify-content: center;
}

.vrc-car-carats .vrccarcarat {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.vrc-car-carats .vrc-carat-cont {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px;
  color: #444444 !important;
  font-size: 14px;
  font-weight: 500;
}

.vrc-car-carats .vrc-expl {
  color: #444444 !important;
}

i.fa-solid {
  color: #dc3545 !important;
}

/* FontAwesome icons inside characteristics on details page — dark color */
.vrc-car-carats i.fa-solid,
.vrc-car-carats i.fa-sharp,
.vrc-car-carats .vrc-expl i {
  color: #dc3545 !important;
  font-size: 18px !important;
  width: 22px;
  text-align: center;
}

/* Show images in characteristics on this page (they're hidden on listing) */
.vrc-car-carats .vrc-carat-cont img,
.vrc-car-carats .vrc-expl img,
.vrc-car-carats .vrccarcarat img {
  display: inline-block !important;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Separator dots between characteristics */
.vrc-car-carats .vrccarcarat:not(:last-child)::after {
  content: "•";
  color: #cccccc;
  margin-left: 18px;
  font-size: 14px;
}

/* ============================================
   AVAILABILITY CALENDAR SECTION
   ============================================ */

.vrc-cardetails-legend {
  margin-bottom: 24px;
  text-align: center;
}

.vrc-cardetails-legend h4,
.vrc-cardetails-book-wrap h4 {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 16px 0;
  text-align: center;
}

/* Month dropdown form wrapper */
form[name="vrcmonths"],
.vrc-cardetails-legend form {
  text-align: center;
}

/* Month dropdown */
select.vrcselectm {
  display: inline-block;
  margin: 0 auto 18px auto;
  padding: 8px 14px;
  font-size: 15px;
  color: #333333;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  appearance: auto;
}

select.vrcselectm:focus {
  outline: none;
  border-color: #5b9dd9;
  box-shadow: 0 0 0 3px rgba(91, 157, 217, 0.2);
}

/* Legend items */
.vrclegendediv {
  display: flex !important;
  justify-content: center;
  gap: 24px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.vrclegenda {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #666666;
}

.vrclegfree {
  width: 18px;
  height: 18px;
  background: #d4edda;
  border-radius: 3px;
  display: inline-block;
}

.vrclegbusy {
  width: 18px;
  height: 18px;
  background: #dc3545;
  border-radius: 3px;
  display: inline-block;
}

.vrclegwarning {
  width: 18px;
  height: 18px;
  background: #ffc107;
  border-radius: 3px;
  display: inline-block;
}

/* Calendar container — flex row for side-by-side months */
.vrc-avcals-container {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 30px;
  margin-bottom: 30px;
}

.vrccaldivcont {
  flex: 0 1 320px;
}

/* Calendar table */
table.vrccal {
  width: 100%;
  border-collapse: separate;
  border-spacing: 4px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

table.vrccal tr td {
  text-align: center;
  padding: 8px 4px;
  font-size: 14px;
  color: #444444;
  border-radius: 6px;
  cursor: default;
  transition: background 0.15s;
}

/* Calendar header — month/year title */
table.vrccal tr:first-child td {
  background: #1a1a1a !important;
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 600;
  padding: 14px;
  border-radius: 12px 12px 0 0;
}

table.vrccal tr:first-child td:hover {
  background: #1a1a1a !important;
}

/* Day-of-week headers */
table.vrccal .vrccaldays td {
  font-weight: 700;
  color: #888888;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eeeeee;
}

/* Free / available days */
table.vrccal tr td.vrctdfree {
  background: #ffffff;
  color: #333333;
}

table.vrccal tr td.vrctdfree:hover {
  background: #eef4fb;
}

/* Busy / booked days */
table.vrccal tr td.vrctdbusy {
  background: #f8d7da !important;
  color: #721c24 !important;
}

table.vrccal tr td.vrctdbusy:hover {
  background: #f8d7da !important;
}

table.vrccal tr td.vrctdbusy a {
  color: #721c24 !important;
}

/* Partly reserved */
table.vrccal tr td.vrctdwarning {
  background: #fff3cd !important;
  color: #856404 !important;
}

/* Past dates */
table.vrccal tr td.vrctdpast {
  color: #bbbbbb !important;
  cursor: not-allowed;
}

/* Clickable day spans */
table.vrccal .vrc-cdetails-cal-pickday {
  cursor: pointer;
  color: #333333;
  font-weight: 500;
  border-radius: 6px;
  padding: 2px 6px;
  transition: background 0.15s;
}

table.vrccal .vrc-cdetails-cal-pickday:hover {
  background: #d6eaf8;
  color: #2980b9;
}

/* Clickable day links */
table.vrccal tr td a {
  color: #333333 !important;
  text-decoration: none;
  font-weight: 500;
}

table.vrccal tr td a:hover {
  color: #2980b9 !important;
  text-decoration: none;
}

/* ============================================
   BOOKING FORM — override hero search styles
   ============================================ */

/* Reset the dark "Book a Car" hero styles on this page */
.vrc-cardetails-book-wrap .vrcdivsearch {
  background: transparent !important;
  border-radius: 0 !important;
  max-width: 100% !important;
  padding: 0 !important;
}

/* Hide the "Book a Car" pseudo-element header on details page */
.vrc-cardetails-book-wrap .vrcdivsearch::before {
  display: none !important;
}

/* Inner form container */
.vrc-cardetails-book-wrap .vrcdivsearch-inner {
  background: #ffffff !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  padding: 32px !important;
  border: 1px solid #eee;
}

/* Section labels */
.vrc-cardetails-book-wrap .vrcsfentrycont {
  margin-bottom: 16px !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vrc-cardetails-book-wrap .vrcsfentrycont label {
  font-size: 14px;
  font-weight: 600;
  color: #444444;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Selects */
.vrc-cardetails-book-wrap .vrcsfentryselect select,
.vrc-cardetails-book-wrap .vrcsfentrycont select {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  color: #333333;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
  appearance: auto;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.vrc-cardetails-book-wrap .vrcsfentryselect select:focus,
.vrc-cardetails-book-wrap .vrcsfentrycont select:focus {
  outline: none;
  border-color: #5b9dd9;
  box-shadow: 0 0 0 3px rgba(91, 157, 217, 0.2);
  background: #fff;
}

/* Date inputs */
.vrc-cardetails-book-wrap .vrcsfentrydate input[type="text"],
.vrc-cardetails-book-wrap .vrcsfentrycont input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  color: #333333;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.vrc-cardetails-book-wrap .vrcsfentrydate input[type="text"]:focus,
.vrc-cardetails-book-wrap .vrcsfentrycont input[type="text"]:focus {
  outline: none;
  border-color: #5b9dd9;
  box-shadow: 0 0 0 3px rgba(91, 157, 217, 0.2);
  background: #fff;
}

/* Calendar trigger icon (inside date field) */
.vrc-cardetails-book-wrap .vrcsfentrydate .vrc-caltrigger,
.vrc-cardetails-book-wrap .vrcsfentrydate i {
  color: #5b9dd9;
  font-size: 16px;
  cursor: pointer;
  margin-left: -30px;
  position: relative;
  z-index: 1;
}

/* Date row — pick-up and drop-off side by side */
.vrc-cardetails-book-wrap .vrc-searchf-section-datetimes {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.vrc-cardetails-book-wrap .vrc-searchf-section-datetimes .vrcsfentrycont {
  flex: 1;
  min-width: 200px;
}

/* Location row — pick-up and return side by side */
.vrc-cardetails-book-wrap .vrc-searchf-section-locations {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.vrc-cardetails-book-wrap .vrc-searchf-section-locations .vrcsfentrycont {
  flex: 1;
  min-width: 200px;
}

/* Time selectors — inline */
.vrc-cardetails-book-wrap .vrc-sf-time-container {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vrc-cardetails-book-wrap .vrc-sf-time-container select {
  width: auto !important;
  padding: 8px 10px !important;
  min-width: 60px;
}

.vrc-cardetails-book-wrap .vrctimesep {
  color: #888888;
  font-weight: 600;
  font-size: 14px;
}

/* Label + select in same row for time */
.vrc-cardetails-book-wrap .vrcsfentrylabsel {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.vrc-cardetails-book-wrap .vrcsfentrylabsel label {
  min-width: 50px;
}

/* Submit button — "Book This Car" */
.vrc-cardetails-book-wrap .vrc-searchf-section-sbmt {
  margin-top: 24px;
}

.vrc-cardetails-book-wrap .vrcsfentrysubmit {
  text-align: center;
}

.vrc-cardetails-book-wrap .vrcdetbooksubmit {
  width: 100% !important;
  max-width: 360px;
  padding: 14px 32px !important;
  background: #5b9dd9 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition:
    background 0.25s,
    transform 0.15s;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

.vrc-cardetails-book-wrap .vrcdetbooksubmit:hover {
  background: #4a8cc8 !important;
  transform: translateY(-1px);
}

.vrc-cardetails-book-wrap .vrcdetbooksubmit:active {
  transform: translateY(0);
}

/* Locations map link */
.vrc-cardetails-book-wrap .vrclocationsbox {
  margin-top: 12px;
  text-align: center;
}

.vrc-cardetails-book-wrap .vrclocationsbox a {
  color: #5b9dd9;
  font-size: 14px;
  text-decoration: none;
}

.vrc-cardetails-book-wrap .vrclocationsbox a:hover {
  text-decoration: underline;
}

/* ============================================
   HOURLY CALENDAR (if enabled)
   ============================================ */

.vrc-hourlycal-container {
  max-width: 900px;
  margin: 0 auto 24px auto;
  overflow-x: auto;
}

.vrc-hourlycal-container h4.vrc-medium-header {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 12px;
}

table.vrc-hourly-cal {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

table.vrc-hourly-cal td {
  padding: 8px 4px;
  border: 1px solid #eee;
  text-align: center;
  min-width: 38px;
}

table.vrc-hourly-cal .vrc-hourlycal-rowavail td.vrctdfree {
  background: #d4edda;
}

table.vrc-hourly-cal .vrc-hourlycal-rowavail td.vrctdbusy {
  background: #f8d7da !important;
}

/* ============================================
   REQUEST INFO DIALOG OVERLAY
   ============================================ */

#vrcdialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vrcdialog-inner {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  position: relative;
}

.vrcdialog-inner h3 {
  font-size: 20px;
  color: #1a1a1a;
  margin-top: 0;
  margin-bottom: 18px;
}

.vrcdialog-reqinfo-formentry {
  margin-bottom: 14px;
}

.vrcdialog-reqinfo-formentry label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  margin-bottom: 4px;
}

.vrcdialog-reqinfo-formentry input[type="text"],
.vrcdialog-reqinfo-formentry textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

.vrcdialog-reqinfo-formentry textarea {
  min-height: 80px;
  resize: vertical;
}

.vrcdialog-reqinfo-formentry-ckbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vrcdialog-reqinfo-formsubmit {
  text-align: center;
  margin-top: 20px;
}

.vrcdialog-reqinfo-formsubmit button.btn {
  padding: 10px 28px;
  background: #5b9dd9;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.vrcdialog-reqinfo-formsubmit button.btn:hover {
  background: #4a8cc8;
}

.vrcdialog-overlay-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 22px;
  color: #888;
  cursor: pointer;
  text-decoration: none;
}

.vrcdialog-overlay-close:hover {
  color: #333;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .vrc-cdetails-cinfo {
    flex-direction: column !important;
    gap: 24px;
  }

  .vrc-cdetails-img {
    flex: none;
    max-width: 100%;
  }

  .vrc-cardetails-book-wrap .vrc-searchf-section-datetimes,
  .vrc-cardetails-book-wrap .vrc-searchf-section-locations {
    flex-direction: column;
  }

  .vrc-cardetails-book-wrap .vrcdivsearch-inner {
    padding: 20px !important;
  }

  .vrc-avcals-container {
    flex-direction: column;
    align-items: center;
  }

  .vrc-cdetails-cgroup .vrc-car-name,
  .vrc-cdetails-cgroup h4.vrc-car-name {
    font-size: 24px !important;
  }
}

@media (max-width: 480px) {
  .vrc-cdetails-cmainimg img {
    height: 200px;
  }

  .cardetails_moreimages a {
    width: 60px;
    height: 48px;
  }

  .vrc-cardetails-book-wrap .vrcdetbooksubmit {
    max-width: 100%;
  }
}

/* ============================================
   BOOKING WIZARD
   ============================================ */

.booking-wizard {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 60px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

/* ---- Progress Bar ---- */
.wizard-progress {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 20px;
  margin-bottom: 50px;
  padding-bottom: 20px;
  position: relative;
  border-bottom: 1px solid #e0e0e0;
}

.wizard-step-indicator {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
}

/* Step name with number */
.step-name {
  padding: 15px 10px 0 0;
  text-align: left;
  border-bottom: 6px solid #e0e0e0;
  transition: border-color 0.3s ease;
}

.step-text {
  font-size: 14px;
  color: #999999;
  font-weight: 500;
  transition: color 0.3s ease;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #dc3545 !important;
  color: #dc3545;
  font-size: 14px;
  font-weight: 700;
  margin-right: 8px;
  transition: all 0.3s ease;
  vertical-align: middle;
}

/* Icon area below */
.step-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0px;
  margin-top: 30px;
  padding-right: 20px;
  min-height: 200px;
  transition: background 0.3s ease;
  border-right: 1px solid #e0e0e0;
}

.wizard-step-indicator[data-step="4"] .step-inner {
  border-right: none;
  padding-right: 10px;
}

.step-inner svg {
  width: 60px;
  height: 60px;
  color: #d0d0d0;
  transition: color 0.3s ease;
}

.step-car-image {
  max-width: 100%;
  max-height: 260px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.step-car-name {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 15px 0 5px 0;
  text-align: center;
}

.step-car-category {
  font-size: 14px;
  color: #666666;
  margin: 0;
  text-align: center;
}

/* Step inner summary text styles */
.step-inner p,
.step-inner table,
.step-inner .estimated-total {
  align-self: flex-start;
  width: 100%;
}

.step-inner p {
  margin: 3px 0;
  font-size: 13px;
  line-height: 1.4;
  color: #333333;
}

.step-inner .text-red {
  color: #dc3545;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  margin-top: 10px;
}

.step-inner .text-red:first-child {
  display: flex !important;
  line-height: 1 !important;
  margin-top: 20px;
}

.step-inner .bigger {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}

.step-inner .mtop2 {
  margin-top: 20px;
}

/* Pricing tables in step indicators */
.step-inner table.prices {
  width: 100%;
  font-size: 12px;
  border-collapse: collapse;
  margin-bottom: 15px;
}

.step-inner table.prices th {
  padding: 6px 0;
  text-align: left;
  font-weight: 500;
  color: #333333;
  border-bottom: 1px dotted #ddd;
}

.step-inner table.prices th:last-child {
  text-align: right;
  font-weight: 600;
}

.step-inner table.prices .full-dots span {
  position: relative;
}

.step-inner table.prices th {
  line-height: 1 !important;
}

.step-inner table.extras th {
  font-weight: 400;
}

.step-inner .estimated-total {
  padding: 10px;
  background: #f8f8f8;
  border-radius: 4px;
  font-size: 12px;
  color: #666666;
  display: flex;
  flex-direction: column;
  min-width: 100% !important;
  justify-content: space-between;
  align-items: left;
}

.step-inner .total-price {
  text-align: right;
}

.elementor-kit-5 input:focus:not([type="button"]):not([type="submit"]),
.elementor-kit-5 textarea:focus {
  color: black !important;
}

.step-inner .total-price .bigger {
  font-size: 12px;
  
  line-height: 1 !important;
  color: #dc3545;
  margin-top: 0px;
  margin-left: 5px;
  display: block;
}

.step-inner .estimated-total {
  line-height: 1.2 !important;
}

.step-inner .text-right {
  text-align: right;
}

/* Active state */
.wizard-step-indicator.active .step-name {
  border-bottom-color: #dc3545;
}

.wizard-step-indicator.active .step-text {
  color: #dc3545;
  font-weight: 600;
}

.wizard-step-indicator.active .step-number {
  background: #dc3545;
  border-color: #dc3545;
  color: #ffffff;
}

.wizard-step-indicator.active .step-inner {
  background: #ffffff;
}

.wizard-step-indicator.active .step-inner svg {
  color: #666666;
}

/* Completed state */
.wizard-step-indicator.completed .step-name {
  border-bottom-color: #dc3545;
}

.wizard-step-indicator.completed .step-number {
  background: #dc3545;
  border-color: #dc3545;
  color: #ffffff;
}

.wizard-step-indicator.completed .step-text {
  color: #666666;
}

/* Progress bar (hidden, using border-bottom instead) */
.wizard-progress-bar {
  display: none;
}

/* ---- Step Panels ---- */
.wizard-step {
  display: none;
  animation: wizardFadeIn 0.3s ease;
}

.wizard-step.active {
  display: block;
}

@keyframes wizardFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wizard-step-title {
  font-size: 28px;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0 0 24px 0;
  text-align: center;
}

/* ---- Form Layout ---- */
/* Step 1 specific layout */
.wizard-step1-layout {
  display: flex;
  max-width: 98%;
  gap: 30px;
  margin-bottom: 20px;
}

.wizard-step1-left,
.wizard-step1-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.wizard-datetime-row {
  display: flex;
  gap: 20px;
}

.wizard-datetime-row input[type="date"] {
  flex: 0 0 80%;
}

.wizard-datetime-row select {
  flex: 0 0 calc(20% - 12px);
}

/* Custom dropdown arrow positioning for time and location selects */
.wizard-datetime-row select,
.wizard-step1-left select {
  padding-left: 16px !important;
  padding-right: 36px !important;
  background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23666666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3e%3cpolyline points="6 9 12 15 18 9"%3e%3c/polyline%3e%3c/svg%3e') !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 16px !important;
  background-color: #ffffff !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
}

.wizard-datetime-row select {
  text-align: center;
}

/* General form rows for other steps */
.wizard-form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 18px;
}

.wizard-form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wizard-form-group-full {
  flex-basis: 100%;
}

.wizard-form-group label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2 !important;
  margin-bottom: 4px;
  color: #1a1a1a;
  text-transform: none;
  letter-spacing: 0;
}

.wizard-required {
  color: #dc3545;
}

.wizard-optional {
  color: #999999;
  text-transform: none;
  font-weight: 400;
  letter-spacing: 0;
}

.wizard-form-group input,
.wizard-form-group select,
.wizard-form-group textarea {
  padding: 14px 16px;
  font-size: 15px;
  color: #1a1a1a;
  border: 1px solid #d4d4d4 !important;
  border-radius: 4px;
  background: #ffffff;
  box-sizing: border-box;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  font-family: inherit;
}

.wizard-form-group input::placeholder,
.wizard-form-group textarea::placeholder {
  color: #999999;
  font-size: 15px;
}

.wizard-form-group input:focus,
.wizard-form-group select:focus,
.wizard-form-group textarea:focus {
  outline: none;
  border-color: #5b9dd9;
  box-shadow: 0 0 0 3px rgba(91, 157, 217, 0.15);
  background: #ffffff;
}

.wizard-form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Error state on fields */
.wizard-form-group input.wizard-error,
.wizard-form-group select.wizard-error {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.wizard-cars-grid.wizard-error {
  outline: 2px solid #dc3545;
  outline-offset: 4px;
  border-radius: 8px;
}

/* ---- Step 2: Car Cards ---- */
.wizard-cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  padding: 4px;
}

.booking-wizard .wizard-step[data-step="2"] .car_result {
  border: 2px solid #e8e8e8 !important;
  border-radius: 12px !important;
  overflow: hidden;
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.15s;
  background: #fff;
}

.booking-wizard .wizard-step[data-step="2"] .car_result:hover {
  border: 2px solid #c5dff0 !important;
  box-shadow: 0 2px 10px rgba(91, 157, 217, 0.15) !important;
}

.booking-wizard .wizard-step[data-step="2"] .car_result.selected {
  border: 2px solid #dc3545 !important;
  box-shadow: 0 3px 14px rgba(220, 53, 69, 0.3) !important;
  background: #f0f7fd !important;
}

.wizard-car-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f0f0f0;
}

.wizard-car-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.wizard-car-info {
  padding: 16px;
}

.wizard-car-info h4 {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 8px 0;
}

.wizard-car-specs {
  display: flex;
  line-height: 1 !important;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.wizard-car-spec {
  font-size: 12px;
  color: #666666;
  background: #f5f5f5;
  padding: 3px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.wizard-car-spec i {
  color: #dc3545 !important;
  font-size: 13px;
}

.booking-wizard .wizard-step[data-step="2"] .car_result.selected .wizard-car-spec {
  background: #ffffff;
}

.wizard-car-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.wizard-car-price-label {
  font-size: 12px;
  color: #999999;
}

.wizard-car-price-value {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
}

/* ---- Step 3: Extras ---- */
.wizard-extras-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wizard-extra-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 16px 20px;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.wizard-extra-item:has(input:checked) {
  border-color: #5b9dd9;
  background: #f0f7fd;
}

.wizard-extra-checkbox {
  flex-shrink: 0;
  position: relative;
  width: 24px;
  height: 24px;
}

.wizard-extra-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  margin: 0;
}

.wizard-extra-checkbox label {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border: 2px solid #ddd;
  border-radius: 6px;
  background: #fff;
  transition: all 0.2s;
  cursor: pointer;
}

.wizard-extra-checkbox input:checked + label {
  background: #5b9dd9;
  border-color: #5b9dd9;
}

.wizard-extra-checkbox input:checked + label::after {
  content: "✓";
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  position: absolute;
  top: 1px;
  left: 5px;
}

.wizard-extra-details {
  flex: 1;
}

.wizard-extra-details h4 {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 2px 0;
}

.wizard-extra-details p {
  font-size: 13px;
  color: #777777;
  margin: 0;
}

.wizard-extra-price {
  text-align: right;
  flex-shrink: 0;
}

.wizard-extra-price-value {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
}

.wizard-extra-price-label {
  display: block;
  font-size: 12px;
  color: #999999;
}

.wizard-extras-total {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #eee;
}

.wizard-extras-total-label {
  font-size: 14px;
  font-weight: 600;
  color: #444444;
}

.wizard-extras-total-value {
  font-size: 18px;
  font-weight: 700;
  color: #5b9dd9;
}

.wizard-no-extras {
  text-align: center;
  color: #888888;
  padding: 40px 0;
}

/* ---- Navigation Buttons ---- */
.wizard-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.wizard-btn {
  padding: 13px 36px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.3px;
}

.wizard-btn-back {
  background: #f0f0f0;
  border-radius: 8px !important;
  color: #444444;
}

.wizard-btn-back:hover {
  background: #dc3545 !important;
  border: #dc3545 !important;
}

.wizard-btn-next {
  background: #dc3545;
  color: #ffffff;
  min-width: 140px;
  border-radius: 8px !important;
}

.wizard-btn-next:hover {
  background: #dc3545 !important;
  border: #dc3545 !important;
  opacity: 0.9 !important;
  box-shadow: 0 3px 10px rgba(91, 157, 217, 0.3) !important;
}

.wizard-btn-submit {
  background: #dc3545;
  color: #ffffff;
  border-radius: 8px !important;
  min-width: 220px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.wizard-btn-submit:hover {
  background: #dc3545 !important;
  border: #dc3545 !important;
  box-shadow: 0 3px 12px rgba(91, 157, 217, 0.35);
}

.wizard-btn-submit:disabled {
  background: #a0c8e8;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---- Success / Error Messages ---- */
.wizard-message {
  text-align: center;
  padding: 60px 20px;
  max-width: 500px;
  margin: 0 auto;
}

.wizard-message-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  margin: 0 auto 24px auto;
}

.wizard-message-success .wizard-message-icon {
  background: #d4edda;
  color: #155724;
}

.wizard-message-error .wizard-message-icon {
  background: #f8d7da;
  color: #721c24;
}

.wizard-message h3 {
  font-size: 22px;
  color: #1a1a1a;
  margin: 0 0 10px 0;
}

.wizard-message p {
  font-size: 15px;
  color: #666666;
  line-height: 1.5;
  margin: 0;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .wizard-step1-layout {
    flex-direction: column;
    gap: 30px;
  }

  .wizard-datetime-row {
    flex-direction: row;
  }

  .wizard-datetime-row input[type="date"] {
    flex: 0 0 65%;
  }

  .wizard-datetime-row select {
    flex: 0 0 calc(35% - 12px);
  }
}

@media (max-width: 600px) {
  .booking-wizard {
    padding: 24px 12px;
  }

  .wizard-form-row {
    flex-direction: column;
    gap: 12px;
  }

  .wizard-cars-grid {
    grid-template-columns: 1fr;
  }

  .wizard-step-label {
    font-size: 10px;
  }

  .wizard-step-num {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .wizard-progress::before {
    top: 15px;
  }

  .wizard-extra-item {
    flex-wrap: wrap;
  }

  .wizard-extra-price {
    text-align: left;
    width: 100%;
  }
}

/* Hide comments, sidebar, footer and edit link on booking wizard pages */
body:has(.booking-wizard) .comments-area,
body:has(.booking-wizard) #secondary,
body:has(.booking-wizard) .site-footer,
body:has(.booking-wizard) .entry-footer,
body:has(.booking-wizard) #colophon {
  display: none !important;
}