/* UK Taxi Booking Wizard styles - self-contained, no Tailwind dependency
   (kept separate from admin.css/frontend markup so it never collides with
   the Tailwind CDN utility classes the legacy templates rely on).

   Visual language matches the "New Vialux.uk Booking Widget Workflow"
   mockup: thick black-bordered rounded card, amber "SAVE 10%" banner,
   orange address/distance bars in map mode, pill-shaped icon-prefixed
   fields, black/pale-blue pill buttons. */

:root {
  --uk-gold-1: #f7bb1e;
  --uk-gold-2: #e2940a;
  --uk-orange: #f19729;
  --uk-black: #101010;
  --uk-gray-disabled: #a6a6a6;
  --uk-paleblue: #eaf4f9;
  --uk-input-border: #e3e6ea;
  --uk-red-bg: #fdecec;
  --uk-red-text: #d92d2d;
  --uk-green: #159447;
  --uk-summary-bg: #eef3fa;
}

.uk-wizard {
  max-width: 640px;
  width: 100%;
  margin: 24px auto;
  font-family: Arial, Helvetica, sans-serif;
  color: #1a1a1a;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
}
.uk-wizard *,
.uk-wizard *::before,
.uk-wizard *::after {
  box-sizing: inherit;
  min-width: 0;
}

.uk-wizard-card {
  background: #fff;
  border: 6px solid var(--uk-black);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* ---------------- Header: banner / map / summary ---------------- */
.uk-wizard-header {
  min-height: 40px;
}

.uk-wizard-header-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 26px 20px 30px;
  background: linear-gradient(135deg, var(--uk-gold-1), var(--uk-gold-2));
}
.uk-wizard-banner-lead {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.uk-wizard-banner-save {
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.uk-wizard-banner-pct {
  color: #111;
  font-size: 58px;
  font-weight: 800;
  line-height: 1.1;
}
.uk-wizard-banner-sub {
  color: #1a1a1a;
  font-size: 15px;
  font-weight: 700;
}

/* Address bar + map + distance/duration bar - the shared "journey visual",
   used both standalone (map mode) and inside the summary panel. */
.uk-wizard-address-bar {
  display: flex;
  background: var(--uk-orange);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.uk-wizard-address-item {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.uk-wizard-address-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.uk-wizard-address-item + .uk-wizard-address-item {
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}
.uk-wizard-address-item i {
  flex-shrink: 0;
}

.uk-wizard-map-canvas {
  width: 100%;
  height: 200px;
  background: #eef2f6;
}

.uk-wizard-map-info {
  display: flex;
  flex-wrap: nowrap;
  background: var(--uk-orange);
  color: #fff;
}
/* Single row of 2 (Distance/Duration) or 3 (+ Date/Time once scheduled)
   items - item count varies, so borders are between-siblings rather than
   the old fixed 2x2 grid. */
.uk-wizard-map-info-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.uk-wizard-map-info-item:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.35);
}
.uk-wizard-map-info-item[hidden] {
  display: none;
}
.uk-wizard-map-info-item strong {
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Summary mode: toggle + collapsible journey visual + always-visible vehicle row */
.uk-wizard-summary-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--uk-orange);
  color: #1a1a1a;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 16px;
}
/* Collapsed = orange bar ("Show Journey Details"); expanded = white bar
   ("Hide Journey Details"), with the orange address bar taking over that
   role directly underneath it - matches the mockup's two toggle states. */
.uk-wizard-summary-toggle[aria-expanded="true"] {
  background: #fff;
  color: #1a1a1a;
  border-bottom: 1px solid #eee;
}
.uk-wizard-summary-toggle .uk-wizard-summary-caret {
  transition: transform 0.15s ease;
  font-size: 11px;
}
.uk-wizard-summary-toggle[aria-expanded="true"] .uk-wizard-summary-caret {
  transform: rotate(180deg);
}
.uk-wizard-summary-journey[hidden] {
  display: none;
}

.uk-wizard-vehicle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid #eee;
}
.uk-wizard-vehicle-row .uk-wizard-vehicle-icon {
  font-size: 28px;
  color: var(--uk-orange);
  line-height: 1;
  flex-shrink: 0;
}
.uk-wizard-vehicle-row .uk-wizard-vehicle-text {
  flex: 1;
  min-width: 0;
}
.uk-wizard-vehicle-row .uk-wizard-vehicle-name {
  font-weight: 700;
  font-size: 15px;
  color: #1a1a1a;
}
.uk-wizard-vehicle-row .uk-wizard-vehicle-meta {
  font-size: 12px;
  color: #9aa0a6;
  margin-top: 2px;
}
.uk-wizard-vehicle-row .uk-wizard-vehicle-meta i {
  margin-right: 3px;
}
.uk-wizard-vehicle-row .uk-wizard-vehicle-meta span + span {
  margin-left: 10px;
}
.uk-wizard-vehicle-row .uk-wizard-vehicle-price {
  font-weight: 800;
  font-size: 17px;
  color: var(--uk-orange);
  flex-shrink: 0;
}

/* ---------------- Step dots (kept per client request) ---------------- */
.uk-wizard-steps {
  display: flex;
  gap: 5px;
  padding: 12px 20px 0;
}
.uk-wizard-step-dot {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: #ececec;
}
.uk-wizard-step-dot.is-complete,
.uk-wizard-step-dot.is-active {
  background: var(--uk-orange);
}

/* ---------------- Body / step content ---------------- */
.uk-wizard-body {
  padding: 22px 20px;
  min-height: 200px;
}
.uk-wizard-eyebrow {
  display: block;
  text-align: center;
  color: var(--uk-orange);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.uk-wizard-step-title {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 20px;
  color: #101010;
}

.uk-wizard-field {
  margin-bottom: 14px;
  position: relative;
}
.uk-wizard-field label.uk-wizard-field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #6b7280;
}

.uk-wizard-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border: 1px solid var(--uk-input-border);
  border-radius: 999px;
  background: #fff;
}
.uk-wizard-pill i.uk-wizard-pill-icon {
  color: #9aa0a6;
  font-size: 15px;
  flex-shrink: 0;
}
.uk-wizard-pill input,
.uk-wizard-pill select {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: #1a1a1a;
  height: 100%;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}
.uk-wizard-pill select {
  cursor: pointer;
}
.uk-wizard-pill input::placeholder {
  color: #b0b5bb;
}
.uk-wizard-pill i.uk-wizard-pill-chevron {
  color: #9aa0a6;
  font-size: 12px;
  flex-shrink: 0;
}
.uk-wizard-pill i.uk-wizard-pill-info {
  color: var(--uk-red-text);
  font-size: 14px;
  flex-shrink: 0;
  cursor: help;
}
.uk-wizard-pill.has-stepper {
  padding-right: 8px;
}
.uk-wizard-stepper {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}
.uk-wizard-stepper button {
  border: none;
  background: #f2f3f5;
  color: #4b5563;
  width: 22px;
  height: 18px;
  line-height: 1;
  font-size: 10px;
  cursor: pointer;
  border-radius: 4px;
}

/* Inline surcharge/warning icon + tooltip, anchored inside a pill field */
.uk-wizard-field-tooltip {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}
.uk-wizard-tooltip-bubble {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 220px;
  max-width: 60vw;
  background: var(--uk-red-bg);
  color: #7a1f1f;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 11px;
  line-height: 1.5;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  z-index: 20;
  text-align: left;
  white-space: normal;
}
.uk-wizard-tooltip-bubble strong {
  display: block;
  margin-bottom: 2px;
}
.uk-wizard-field-tooltip:hover .uk-wizard-tooltip-bubble,
.uk-wizard-field-tooltip:focus .uk-wizard-tooltip-bubble,
.uk-wizard-field-tooltip:focus-within .uk-wizard-tooltip-bubble {
  display: block;
}

/* Custom two-line dropdown (Trip Type) - native <select> can't show a
   label + subtitle per option, so this is a small listbox instead. */
.uk-wizard-pill-tall {
  height: auto;
  min-height: 52px;
  padding: 10px 18px;
  cursor: pointer;
}
.uk-wizard-custom-select-value {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.uk-wizard-custom-select-label {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
}
.uk-wizard-custom-select-sub {
  font-size: 11px;
  color: #9aa0a6;
}
.uk-wizard-custom-select-menu {
  /* Base (pre-JS) position; wizard.js's positionFixedMenu() switches this to
     position:fixed against the toggle's own viewport rect the moment it
     opens, flipping above the field when there isn't room below - escapes
     .uk-wizard-card's overflow:hidden instead of getting clipped by it. */
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: min(320px, 70vh);
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--uk-input-border);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  padding: 6px;
  z-index: 9999;
}
.uk-wizard-custom-select-option {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
}
.uk-wizard-custom-select-option:hover {
  background: #f9fafb;
}
.uk-wizard-custom-select-option.is-selected {
  background: #fef3e4;
}
.uk-wizard-custom-select-option.is-selected .uk-wizard-custom-select-label {
  color: var(--uk-orange);
}

/* International phone field (intl-tel-input) - reshape its default markup
   to sit inside our pill instead of its own bordered box. */
.uk-wizard-pill-phone {
  padding: 0 18px 0 0;
}
.uk-wizard-pill-phone .iti {
  flex: 1;
  min-width: 0;
  width: 100%;
  display: flex;
  align-items: center;
}
.uk-wizard-pill-phone .iti__flag-container {
  position: relative;
  left: 0;
  padding-left: 18px;
  flex-shrink: 0;
}
.uk-wizard-pill-phone .iti__selected-flag {
  padding: 0 6px 0 0;
  background: transparent !important;
}
.uk-wizard-pill-phone input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: #1a1a1a;
  font-family: inherit;
  padding-left: 6px !important;
}
.uk-wizard-pill-phone input::placeholder {
  color: #b0b5bb;
}
.uk-wizard-pill-phone .iti__country-list {
  font-size: 13px;
  border-radius: 14px;
  z-index: 25;
}

.uk-wizard-textarea {
  width: 100%;
  border: 1px solid var(--uk-input-border);
  border-radius: 20px;
  padding: 14px 18px;
  font-size: 14px;
  font-family: inherit;
  color: #1a1a1a;
  resize: vertical;
}
.uk-wizard-textarea::placeholder {
  color: #b0b5bb;
}

.uk-wizard-hint {
  font-size: 12px;
  color: #9aa0a6;
  margin: -8px 0 14px 18px;
}

.uk-wizard-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) {
  .uk-wizard-row {
    grid-template-columns: 1fr;
  }
}

.uk-wizard-checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #333;
  margin: 8px 0 18px;
  cursor: pointer;
}
.uk-wizard-checkbox-field .uk-wizard-checkbox-box {
  width: 18px;
  height: 18px;
  border: 2px solid var(--uk-input-border);
  border-radius: 5px;
  flex-shrink: 0;
  margin-top: 1px;
  position: relative;
}
.uk-wizard-checkbox-field input {
  position: absolute;
  opacity: 0;
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
}
.uk-wizard-checkbox-field input:checked ~ .uk-wizard-checkbox-box,
.uk-wizard-checkbox-field .uk-wizard-checkbox-box.is-checked {
  background: var(--uk-orange);
  border-color: var(--uk-orange);
}
.uk-wizard-checkbox-field a {
  color: inherit;
  text-decoration: underline;
}
.uk-wizard-terms-text {
  margin: -8px 0 14px 28px;
  max-height: 140px;
  overflow-y: auto;
  padding: 10px 12px;
  background: #f9fafb;
  border: 1px solid var(--uk-input-border);
  border-radius: 10px;
  font-size: 12px;
  color: #4b5563;
  line-height: 1.6;
}

.uk-wizard-alert {
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12px;
  margin-bottom: 14px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.uk-wizard-alert-warning {
  background: var(--uk-red-bg);
  color: var(--uk-red-text);
}
.uk-wizard-alert-error {
  background: var(--uk-red-bg);
  color: var(--uk-red-text);
}
.uk-wizard-alert strong {
  display: block;
}

/* ---------------- Available Vehicles ---------------- */
.uk-wizard-vehicle-list {
  margin: 0;
}
.uk-wizard-vehicle-list-item {
  border-bottom: 1px solid #eee;
}
.uk-wizard-vehicle-list-item:first-child {
  border-top: 1px solid #eee;
}
.uk-wizard-vehicle-summary-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 4px;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.uk-wizard-vehicle-summary-row .uk-wizard-vehicle-icon {
  font-size: 30px;
  color: var(--uk-orange);
  flex-shrink: 0;
}
.uk-wizard-vehicle-summary-row .uk-wizard-vehicle-text {
  flex: 1;
  min-width: 0;
}
.uk-wizard-vehicle-summary-row .uk-wizard-vehicle-name {
  font-weight: 700;
  font-size: 16px;
  color: #1a1a1a;
}
.uk-wizard-vehicle-summary-row .uk-wizard-vehicle-meta {
  font-size: 12px;
  color: #9aa0a6;
  margin-top: 2px;
}
.uk-wizard-vehicle-summary-row .uk-wizard-vehicle-meta span + span {
  margin-left: 10px;
}
.uk-wizard-vehicle-summary-row .uk-wizard-vehicle-price {
  font-weight: 800;
  font-size: 18px;
  color: var(--uk-orange);
  flex-shrink: 0;
}
.uk-wizard-vehicle-summary-row .uk-wizard-vehicle-chevron {
  color: #9aa0a6;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.uk-wizard-vehicle-list-item.is-expanded .uk-wizard-vehicle-chevron {
  transform: rotate(180deg);
}

.uk-wizard-vehicle-detail {
  padding: 0 4px 18px;
}
.uk-wizard-price-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #4b5563;
  padding: 4px 0;
}
.uk-wizard-price-row.is-red { color: var(--uk-red-text); }
.uk-wizard-price-row.is-green { color: var(--uk-green); }
.uk-wizard-price-row.is-total {
  font-weight: 800;
  color: #1a1a1a;
  font-size: 14px;
  border-top: 1px solid #eee;
  margin-top: 6px;
  padding-top: 10px;
}
.uk-wizard-price-row.is-total .uk-wizard-price-value {
  color: var(--uk-orange);
}

.uk-wizard-tier-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9fafb;
  border: 1px solid var(--uk-input-border);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
  color: #333;
  cursor: pointer;
  margin: 10px 0;
}
.uk-wizard-tier-list {
  list-style: disc;
  margin: 0 0 12px 18px;
  padding: 10px 8px;
  font-size: 12px;
  color: #4b5563;
  background: #f9fafb;
  border-radius: 10px;
}

.uk-wizard-book-now-btn {
  width: 100%;
  border: none;
  border-radius: 999px;
  background: var(--uk-black);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  padding: 14px;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.uk-wizard-book-now-btn .uk-wizard-save-highlight {
  color: var(--uk-orange);
}
.uk-wizard-book-now-btn:disabled {
  background: var(--uk-gray-disabled);
  cursor: not-allowed;
}

/* ---------------- Choose Payment Method ---------------- */
.uk-wizard-payment-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.uk-wizard-payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--uk-input-border);
  border-radius: 999px;
  padding: 14px 18px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}
.uk-wizard-payment-option i {
  color: #9aa0a6;
  font-size: 16px;
  flex-shrink: 0;
}
.uk-wizard-payment-option input {
  accent-color: var(--uk-orange);
  flex-shrink: 0;
}
.uk-wizard-payment-option.is-selected {
  border-color: var(--uk-orange);
  background: #fef3e4;
  color: #1a1a1a;
}
.uk-wizard-payment-option.is-selected i {
  color: var(--uk-orange);
}

.uk-wizard-bank-instructions {
  background: #f9fafb;
  border: 1px solid var(--uk-input-border);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 12px;
  color: #333;
  margin-bottom: 14px;
  position: relative;
}
.uk-wizard-file-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--uk-input-border);
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 13px;
  color: #6b7280;
  cursor: pointer;
  position: relative;
  margin-bottom: 6px;
}
.uk-wizard-file-pill input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.uk-wizard-file-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.uk-wizard-file-pill #wizardPaymentSlipText {
  flex: 1;
  min-width: 0;
}
/* File-type help text lives inside the pill, right-aligned next to the
   placeholder/filename - swapped out for the green check once a file is
   chosen (design: hint only shows in the empty state). */
.uk-wizard-file-pill-hint {
  flex-shrink: 0;
  margin-left: 10px;
  font-size: 11px;
  color: #9aa0a6;
}
.uk-wizard-file-pill .fa-circle-check {
  color: var(--uk-green);
  margin-left: 10px;
  flex-shrink: 0;
}

.uk-wizard-card-element {
  border: 1px solid var(--uk-input-border);
  border-radius: 999px;
  padding: 16px 18px;
  background: #fff;
}

/* ---------------- Booking Confirmed ---------------- */
.uk-wizard-confirmation {
  text-align: center;
}
.uk-wizard-confirmation-title {
  color: var(--uk-orange);
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 10px;
}
.uk-wizard-confirmation-intro {
  font-size: 14px;
  color: #333;
  margin: 0 0 18px;
}
.uk-wizard-confirmation-box {
  background: var(--uk-summary-bg);
  border-radius: 16px;
  padding: 18px 20px;
  font-size: 14px;
  color: #1a1a1a;
  margin-bottom: 18px;
}
.uk-wizard-confirmation-box p {
  margin: 4px 0;
}
.uk-wizard-confirmation-box .uk-wizard-confirmation-ref {
  font-weight: 800;
  margin-bottom: 8px;
}
.uk-wizard-confirmation-box .uk-wizard-confirmation-arrow {
  color: #9aa0a6;
  margin: 2px 0;
}
.uk-wizard-confirmation-outro {
  font-size: 13px;
  color: #333;
  margin-bottom: 10px;
}
.uk-wizard-confirmation-contact {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
}

/* ---------------- Navigation ---------------- */
.uk-wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 20px 22px;
}
.uk-wizard-btn {
  border: none;
  border-radius: 999px;
  padding: 15px 26px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.uk-wizard-btn:disabled {
  background: var(--uk-gray-disabled) !important;
  color: #fff !important;
  cursor: not-allowed;
}
.uk-wizard-btn-back {
  background: var(--uk-paleblue);
  color: #101010;
}
.uk-wizard-btn-next {
  background: var(--uk-black);
  color: #fff;
  margin-left: auto;
}
.uk-wizard-btn-back[hidden] {
  visibility: hidden;
}
