/* =========================================================
   KRUIZLY BOOKING / TRIP DETAILS (css/booking.css)
   Complete Styling for booking.html & trip overview
   STRICTLY ZERO GRADIENTS | UNIFIED CYAN ACCENT
   ========================================================= */

@import url('base.css');
@import url('components.css');

.booking-main {
  padding: 24px 0 80px;
  position: relative;
  z-index: var(--kr-z-content);
}

.booking-container {
  width: 100%;
  max-width: var(--kr-container-max);
  margin-inline: auto;
  padding-inline: 40px;
}

@media (max-width: 992px) {
  .booking-container { padding-inline: 24px; }
}

@media (max-width: 768px) {
  .booking-container { padding-inline: 16px; }
}

/* Intro */
.booking-hero {
  margin-bottom: 24px;
}

.booking-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--kr-text-secondary);
  margin-bottom: 10px;
  transition: color 160ms ease;
  text-decoration: none;
}

.booking-back:hover {
  color: var(--kr-cyan);
}

.booking-step {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--kr-cyan);
  margin-bottom: 6px;
  margin-left: 8px;
}

.booking-title {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: #ffffff;
}

.booking-subtitle {
  font-size: 14px;
  color: var(--kr-text-secondary);
}

/* Layout Grid */
.booking-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  align-items: start;
}

.booking-card {
  background-color: var(--kr-surface);
  backdrop-filter: blur(var(--kr-glass-blur));
  -webkit-backdrop-filter: blur(var(--kr-glass-blur));
  border: 1px solid var(--kr-border);
  box-shadow: var(--kr-shadow);
  border-radius: var(--kr-radius-lg);
  padding: 28px;
}

.booking-card h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: #ffffff;
}

.booking-card p {
  font-size: 13.5px;
  color: var(--kr-text-secondary);
  margin-bottom: 20px;
}

/* Date Grid */
.booking-date-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.booking-field input[type="datetime-local"],
.booking-field input[type="date"] {
  color-scheme: dark;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  padding: 0 14px;
  cursor: pointer;
}

.booking-field input[type="datetime-local"]::-webkit-calendar-picker-indicator,
.booking-field input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-calendar-picker-indicator {
  display: block !important;
  opacity: 1 !important;
  cursor: pointer !important;
  width: 20px !important;
  height: 20px !important;
  padding: 0 !important;
  margin-right: 2px !important;
  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='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 18px 18px !important;
  filter: none !important;
  -webkit-filter: none !important;
  transition: transform 160ms ease, opacity 160ms ease;
}

.booking-field input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover,
.booking-field input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover,
input[type="date"]::-webkit-calendar-picker-indicator:hover {
  transform: scale(1.15);
  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='%234fd7ff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E") !important;
}

.booking-date-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kr-text-muted);
}

.booking-time-reset {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--kr-radius-xs);
  background: var(--kr-surface-control);
  border: 1px solid var(--kr-border);
  color: var(--kr-text-secondary);
  cursor: pointer;
  transition: all 160ms ease;
}

.booking-time-reset:hover {
  background: var(--kr-surface-control-hover);
  color: var(--kr-cyan);
  border-color: var(--kr-cyan-border);
}

.booking-time-reset svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Driver Add-on */
.booking-driver {
  margin-bottom: 20px;
}

.booking-driver-label {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background-color: var(--kr-surface-control);
  border: 1px solid var(--kr-border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 180ms ease;
}

.booking-driver-label:hover {
  background-color: var(--kr-surface-control-hover);
  border-color: var(--kr-border-strong);
}

.booking-driver-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--kr-cyan);
  cursor: pointer;
}

.booking-driver-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.booking-driver-copy strong {
  font-size: 14px;
  color: #ffffff;
}

.booking-driver-copy small {
  font-size: 12px;
  color: var(--kr-text-muted);
}

/* Coupon Box */
.booking-coupon-box {
  margin-bottom: 24px;
}

.booking-coupon-box label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kr-text-muted);
  display: block;
  margin-bottom: 6px;
}

.booking-coupon-field {
  display: flex;
  gap: 10px;
  align-items: center;
}

.booking-coupon-field input {
  flex: 1;
}

.booking-coupon-btn,
#couponApplyBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--kr-input-height);
  padding: 0 24px;
  background-color: var(--kr-cyan);
  color: #041017;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--kr-radius-pill);
  border: none;
  cursor: pointer;
  box-shadow: var(--kr-shadow-btn);
  transition: all 180ms ease;
  white-space: nowrap;
}

.booking-coupon-btn:hover,
#couponApplyBtn:hover {
  background-color: var(--kr-cyan-hover);
  transform: translateY(-1px);
}

.booking-coupon-msg {
  font-size: 13px;
  margin-top: 6px;
}

.booking-coupon-msg.success {
  color: #34d399;
}

.booking-coupon-msg.error {
  color: #f87171;
}

/* Applied Multi-Coupons Badges */
.applied-coupons-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.applied-coupon-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(79, 215, 255, 0.12);
  border: 1px solid rgba(79, 215, 255, 0.35);
  color: #4fd7ff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--kr-radius-pill);
  animation: fadeIn 0.2s ease;
}

.applied-coupon-tag .remove-coupon-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  transition: color 0.15s ease;
}

.applied-coupon-tag .remove-coupon-btn:hover {
  color: #f87171;
}

/* Available Coupon Suggestions */
.coupon-suggestions-box {
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
}

.coupon-suggestions-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--kr-text-secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.coupon-suggestions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.suggested-coupon-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.suggested-coupon-chip:hover {
  background: rgba(79, 215, 255, 0.15);
  border-color: rgba(79, 215, 255, 0.4);
  transform: translateY(-1px);
}

.suggested-coupon-chip.is-applied {
  background: rgba(52, 211, 153, 0.15);
  border-color: rgba(52, 211, 153, 0.4);
  color: #34d399;
  cursor: default;
}

.suggested-coupon-chip strong {
  color: #4fd7ff;
  font-weight: 800;
}

.suggested-coupon-chip.is-applied strong {
  color: #34d399;
}

.suggested-coupon-chip .chip-sub {
  color: var(--kr-text-secondary);
  font-size: 11px;
}

/* Payment Plans */
.booking-payment-options {
  border: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.booking-payment-options legend {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kr-text-muted);
  margin-bottom: 10px;
}

.booking-payment-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background-color: var(--kr-surface-control);
  border: 1px solid var(--kr-border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 180ms ease;
}

.booking-payment-option:hover {
  background-color: var(--kr-surface-control-hover);
  border-color: var(--kr-border-strong);
}

.booking-payment-option:has(input:checked),
.booking-payment-option--selected {
  border-color: var(--kr-cyan);
  background-color: var(--kr-cyan-soft);
}

.booking-payment-option input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--kr-cyan);
  cursor: pointer;
}

.booking-payment-option span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.booking-payment-option strong {
  font-size: 14px;
  color: #ffffff;
}

.booking-payment-option small {
  font-size: 12px;
  color: var(--kr-text-muted);
}

/* Submit CTA */
.booking-submit,
#bookingSubmitBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 50px;
  background-color: var(--kr-cyan);
  color: #041017;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--kr-radius-pill);
  border: none;
  cursor: pointer;
  box-shadow: var(--kr-shadow-btn);
  transition: all 180ms ease;
}

.booking-submit:hover,
#bookingSubmitBtn:hover {
  background-color: var(--kr-cyan-hover);
  transform: translateY(-1px);
}

/* Vehicle Summary Card */
.booking-car-card {
  position: sticky;
  top: calc(var(--kr-nav-height) + 20px);
}

.booking-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--kr-cyan);
  margin-bottom: 12px;
}

.booking-vehicle-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 220px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6;
  border-radius: var(--kr-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.10);
  padding: 0;
  margin-bottom: 16px;
  box-sizing: border-box;
}

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

.booking-vehicle-info h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.booking-vehicle-info p {
  font-size: 13px;
  color: var(--kr-text-muted);
  margin-bottom: 16px;
}

/* Vehicle Specs Grid */
.booking-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.booking-spec {
  padding: 12px 6px;
  background-color: var(--kr-surface-control);
  border: 1px solid var(--kr-border);
  border-radius: var(--kr-radius-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 72px;
  gap: 6px;
  box-sizing: border-box;
}

.booking-spec span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--kr-text-muted);
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 24px;
}

.booking-spec strong {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

/* Location Box */
.booking-location {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background-color: var(--kr-surface-control);
  border: 1px solid var(--kr-border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 18px;
}

.booking-location-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kr-text-muted);
}

.booking-location strong {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}

/* Price Breakdown & Totals Box */
.booking-totals {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 18px;
  margin-top: 14px;
}

.booking-totals__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--kr-border);
  margin-bottom: 6px;
}

.booking-totals__header span:first-child {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kr-text-muted);
}

.booking-totals__header span:last-child {
  font-size: 12px;
  font-weight: 700;
  color: var(--kr-cyan);
}

.booking-total-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13.5px;
  color: var(--kr-text-secondary);
}

.booking-total-row span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.booking-total-row span small {
  font-size: 11.5px;
  color: var(--kr-text-muted);
  line-height: 1.3;
}

.booking-total-row strong {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  text-align: right;
  white-space: nowrap;
}

.booking-total-row--grand {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--kr-border);
  align-items: center;
}

.booking-total-row--grand span {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

.booking-total-row--grand strong {
  font-size: 17px;
  font-weight: 900;
  color: #ffffff;
}

.booking-total-row--payment {
  margin-top: 8px;
  border: 1px solid var(--kr-cyan-border);
  background-color: var(--kr-cyan-soft);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.booking-total-row--payment span {
  font-size: 12.5px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.booking-total-row--payment span small {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.70);
  text-transform: none;
  letter-spacing: normal;
  margin-top: 2px;
}

.booking-total-row--payment strong {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--kr-cyan);
  text-align: right;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 1023px) {
  .booking-layout {
    grid-template-columns: 1fr;
  }

  .booking-car-card {
    position: static;
  }
}

@media (max-width: 767px) {
  .booking-main {
    padding: 16px 0 60px;
  }

  .booking-date-grid {
    grid-template-columns: 1fr;
  }

  .booking-specs {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .booking-card {
    padding: 20px 16px;
  }
}

@media (max-width: 480px) {
  .booking-main {
    padding: 12px 0 50px;
  }

  .booking-title {
    font-size: 1.6rem;
  }

  .booking-card {
    padding: 16px 12px;
    border-radius: 14px;
  }

  .booking-specs {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .booking-total-row--payment {
    padding: 12px 10px;
  }

  .booking-total-row--payment strong {
    font-size: 1.3rem;
  }
}

/* =========================================================
   GLOBAL WHITE CALENDAR & TIME PICKER ICONS
   ========================================================= */
input[type="date"],
input[type="datetime-local"],
input[type="time"] {
  color-scheme: dark !important;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input::-webkit-calendar-picker-indicator {
  display: block !important;
  opacity: 1 !important;
  cursor: pointer !important;
  width: 18px !important;
  height: 18px !important;
  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='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 18px 18px !important;
  filter: none !important;
  -webkit-filter: none !important;
  transition: transform 140ms ease, opacity 140ms ease !important;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover,
input::-webkit-calendar-picker-indicator:hover {
  transform: scale(1.15) !important;
  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='%234fd7ff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E") !important;
}

