/* Wrapper */
.aps-wrapper {
  max-width: 760px;
  margin: 24px auto;
  padding: 0 14px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Progress */
.aps-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0f1115;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.aps-progress-item {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.55;
  transition: opacity .2s ease;
}

.aps-progress-item.is-active,
.aps-progress-item.is-done {
  opacity: 1;
}

.aps-progress-item.is-done .aps-progress-label, 
.aps-progress-item.is-done .aps-progress-icon {
  color: #f9e306 !important;
}

.aps-progress-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
}

.aps-progress-label {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.aps-progress-line {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.10);
  border-radius: 999px;
}

/* Step container */
.aps-step {
  background: #12141a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
}

.aps-step h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 18px;
}

/* Fields */
.aps-field {
  margin-bottom: 12px;
}

.aps-field label {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 6px;
}

/* Input + icon */
.aps-input-icon {
  position: relative;
}

.aps-input-icon i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.70);
  pointer-events: none;
  font-size: 15px;
}

/* Make inputs feel clickable (esp date/time) */
#aps-booking-form input[type="date"],
#aps-booking-form input[type="time"] {
  cursor: pointer;
}

/* Base input styles */
#aps-booking-form input[type="text"],
#aps-booking-form input[type="email"],
#aps-booking-form input[type="tel"],
#aps-booking-form input[type="date"],
#aps-booking-form input[type="time"] {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 12px 12px 38px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #000;
  color: #fff;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

#aps-booking-form input::placeholder {
  color: rgba(255,255,255,0.45);
}

#aps-booking-form input:focus {
  border-color: rgba(207, 163, 16, 0.8);
  box-shadow: 0 0 0 3px rgba(207, 163, 16, 0.15);
}

/* === FIX: Chrome autofill turning input white === */
#aps-booking-form input:-webkit-autofill,
#aps-booking-form input:-webkit-autofill:hover,
#aps-booking-form input:-webkit-autofill:focus,
#aps-booking-form input:-webkit-autofill:active {
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff !important;
  transition: background-color 9999s ease-in-out 0s;
  box-shadow: 0 0 0px 1000px rgba(18,20,26,1) inset !important; /* keep dark */
  border: 1px solid rgba(255,255,255,0.12) !important;
}

/* Keep icon readable even on autofill */
#aps-booking-form input:-webkit-autofill ~ i,
#aps-booking-form input:-webkit-autofill:hover ~ i,
#aps-booking-form input:-webkit-autofill:focus ~ i {
  color: rgba(255,255,255,0.70) !important;
}

/* === Native date/time: make the *whole* field clickable + keep dark styling === */
#aps-booking-form input[type="date"],
#aps-booking-form input[type="time"] {
  position: relative;
  color-scheme: dark;
}

#aps-booking-form input[type="date"]::-webkit-calendar-picker-indicator,
#aps-booking-form input[type="time"]::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Make the right side clickable too and not tiny-feeling */
#aps-booking-form input[type="date"],
#aps-booking-form input[type="time"] {
  padding-right: 44px; /* space for picker indicator */
}

/* Grid helpers */
.aps-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 640px) {
  .aps-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Sticky total below each step */
.aps-sticky-total {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 14px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
}

.aps-sticky-total span {
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  font-weight: 600;
}

.aps-sticky-total strong {
  color: #000;
  font-size: 16px;
  background: #f9e306;
  padding: 3px 10px;
  border-radius: 10px;
}

/* Receipt */
.aps-receipt {
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: 16px;
  padding: 14px;
}

.aps-receipt-header {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  margin-bottom: 12px;
}

.aps-receipt-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(207, 163, 16, 0.15);
  border: 1px solid rgba(207, 163, 16, 0.35);
  color: #f9e306 ;
  font-size: 20px;
}

.aps-receipt-title {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.aps-receipt-sub {
  color: rgba(255,255,255,0.70);
  font-size: 12px;
  margin-top: 2px;
}

.aps-receipt-body {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.aps-receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.08);
}

.aps-receipt-row .k {
  color: rgba(255,255,255,0.70);
  font-size: 12px;
  font-weight: 700;
}

.aps-receipt-row .v {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.aps-receipt-voucher {
  margin-top: 8px;
  margin-bottom: 12px;
}

.aps-receipt-voucher label {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 6px;
}

.aps-receipt-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(207, 163, 16, 0.12);
  border: 1px solid rgba(207, 163, 16, 0.35);
  margin-bottom: 12px;
}

.aps-receipt-total span {
  color: rgba(255,255,255,0.85);
  font-weight: 800;
}

.aps-receipt-total strong {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

/* Payment button */
.aps-pay-btn {
  width: 100%;
  border: none;
  cursor: pointer;
  padding: 14px 14px;
  border-radius: 14px;
  font-weight: 900;
  color: #111;
  background: #f9e306;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.aps-pay-btn:hover {
  filter: brightness(1.05);
}

.aps-wrapper input[type="radio"],
.aps-wrapper input[type="checkbox"],
.aps-wrapper input[type="date"],
.aps-wrapper input[type="time"]{
    accent-color:#f5d600;
}

/* Small inline validation message (JS will insert) */
.aps-inline-msg {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 80, 80, 0.10);
  border: 1px solid rgba(255, 80, 80, 0.30);
}

.aps-voucher-row{
  display:flex;
  gap:12px;
  align-items:stretch;
  margin-top:8px;
}

.aps-voucher-input{ flex:1; }

.aps-apply-btn{
  border:1px solid rgba(255,255,255,0.15);
  background:rgba(255,255,255,0.06);
  color:#fff;
  padding:10px 16px;
  border-radius:14px;
  cursor:pointer;
  font-weight:800;
  white-space:nowrap;
}

.aps-apply-btn:hover{ filter:brightness(1.08); }

.aps-voucher-status{
  margin-top:10px;
  margin-left:10px;
  font-size:12px;
  color:rgba(255,255,255,0.8);
}

/* Payment method + confirmations */
.aps-receipt-paymethod{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.aps-paymethod-title{
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  font-weight: 700;
  margin-bottom: 8px;
}

.aps-paymethod-options{
  display: grid;
  gap: 10px;
}

.aps-radio{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
}

.aps-radio input{
  margin: 0;
}

.aps-radio span{
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}

.aps-radio i{ color: rgba(255,255,255,0.85); margin-right: 6px; }

.aps-receipt-checks{
  margin: 15px 0;
  display: grid;
  gap: 10px;
}

.aps-check{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0px 12px;
}

.aps-check input{ margin-top: 2px; }

.aps-check span{
  color: rgba(255,255,255,0.9);
  font-size: 12.5px;
  line-height: 1.35;
}

.aps-check a{ color: #f9e306; text-decoration: none; }
.aps-check a:hover{ text-decoration: underline; }

.quotePrice, .quote .vehicleDetails, .quote .hidden{
	display: none;
}

.quote .quotePrice{
	display: block;
}

#showVehicle{
	margin-top: 20px;
    padding: 10px 30px;
    border: none;
    border-radius: 50px;
    background: #f9e306;
	width: 100%;
}


/* Input shell */
.aps-input-icon {
  position: relative;
}

.aps-input-icon i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #d4af37;
  z-index: 2;
  pointer-events: none;
}

.aps-input-icon input {
  width: 100%;
  height: 52px;
  padding: 0 14px 0 44px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 10px;
  background: #1b1b1b;
  color: #fff;
  font-size: 15px;
  box-sizing: border-box;
}

.aps-input-icon input:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

/* Flatpickr popup */
.flatpickr-calendar {
  background: #1f1f1f;
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  border-radius: 14px;
  color: #fff;
}

.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
  color: #fff;
  fill: #fff;
}

.flatpickr-weekdays {
  background: transparent;
}

span.flatpickr-weekday {
  color: #d4af37;
  font-weight: 600;
}

.flatpickr-day {
  color: #eaeaea;
  border-radius: 8px;
}

.flatpickr-day:hover {
  background: rgba(212, 175, 55, 0.14);
  border-color: transparent;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover {
  background: #f9e306 !important;
  border-color: #f9e306 !important;
  color: #111 !important;
}

.flatpickr-day.today {
  border-color: #f9e306 !important;
}

.flatpickr-time input,
.flatpickr-time .flatpickr-am-pm {
  color: #fff;
  background: transparent;
}

.flatpickr-time input:hover,
.flatpickr-time .flatpickr-am-pm:hover,
.numInputWrapper:hover {
  background: rgba(212, 175, 55, 0.08);
}

.flatpickr-prev-month svg,
.flatpickr-next-month svg {
  fill: #d4af37;
}