/* Taxi Booking plugin styles — polished */
:root {
  --tb-radius: 18px;
  --tb-shadow: 0 8px 30px rgba(17, 24, 39, .08);
  --tb-text: #0f172a;
  --tb-muted: #64748b;
  --tb-line: #e2e8f0;
  --tb-bg-soft: #f8fafc;
  --tb-pil: #f1f5f9;
  --tb-accent: var(--tb-accent, #ff6a3a);
}

.tb-card {
  font-size: var(--tb-size-base, 16px);
  --tw: var(--tb-text);
  max-width: 660px;
  background: #fff;
  border-radius: var(--tb-radius);
  box-shadow: var(--tb-shadow);
  padding: 22px;
  color: var(--tw);
  font-family: var(--tb-font-family, "Manrope"), ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  letter-spacing: .1px;
}

/* Header & tabs */
.tb-header h2 {
  margin: 0 0 14px 0;
  font-size: var(--tb-size-h2, 30px);
  font-weight: 800;
  letter-spacing: .2px;
}

.tb-tabs {
  background: var(--tb-bg-soft);
  border-radius: 14px;
  padding: 5px;
  display: grid;
  grid-auto-flow: column;
  gap: 6px;
  width: fit-content;
}

.tb-tab {
  appearance: none; border: 0; background: transparent;
  padding: 9px 16px; border-radius: 12px;
  font-weight: 800; color: #334155; cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s, transform .04s;
}
.tb-tab.is-active {
  background: #fff; color: #0f172a;
  box-shadow: 0 6px 14px rgba(2,6,23,.08);
}

/* Form */
.tb-form { display: grid; gap: 14px; margin-top: 10px; }
.tb-label { display: grid; gap: 8px; font-size: 14px; color: #334155; font-weight: 700; }
.tb-label input[type="text"], .tb-label input[type="date"], .tb-label input[type="time"], .tb-label input[type="number"] {
  width: 100%; padding: 14px 14px;
  border: 1.5px solid var(--tb-line); border-radius: 12px; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  font-size: var(--tb-size-input, 16px); font-weight: 600; color: var(--tb-text); background: #fff;
}
.tb-label input::placeholder { color: #94a3b8; font-weight: 500; }
.tb-label input:focus {
  border-color: color-mix(in oklab, var(--tb-accent) 70%, #0000);
  box-shadow: 0 0 0 5px color-mix(in oklab, var(--tb-accent) 20%, #0000);
}

/* Date grid */
.tb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Checkbox (custom) */
.tb-checkbox { display: grid; grid-auto-flow: column; grid-template-columns: 22px 1fr; gap: 10px; align-items: center; font-weight: 700; color: var(--tb-text); }

.tb-checkbox input {
  appearance: none; width: 16px; height: 16px; border-radius: 6px;
  border: 2px solid #cbd5e1; display: grid; place-items: center; cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.tb-checkbox input:checked {
  background: linear-gradient(90deg, var(--tb-accent), color-mix(in oklab, var(--tb-accent) 60%, #ff2f6a));
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
}
.tb-checkbox input:checked::after {
  content: "✓"; color: #fff; font-weight: 900; font-size: 13px; transform: translateY(-1px);
}

/* Note box */
.tb-note {
  font-size: 14px; color: var(--tb-muted);
  background: #f9fafb; border: 1px solid #eef2f7; padding: 10px 12px; border-radius: 12px;
  font-weight: 700;
}

/* Map */
.tb-map { height: 260px; border-radius: 14px; overflow: hidden; border: 1px solid var(--tb-line); }

/* Actions */
.tb-actions { margin-top: 6px; display: flex; justify-content: center; }
.tb-primary {
  appearance: none; border: 0; border-radius: 14px; padding: 15px 24px;
  font-weight: 900; letter-spacing: .2px; color: #fff; width: 100%;
  background: linear-gradient(90deg, var(--tb-accent), color-mix(in oklab, var(--tb-accent) 60%, #ff2f6a));
  cursor: pointer; box-shadow: 0 12px 26px rgba(2,6,23,.12);
  transition: transform .06s ease, filter .2s;
}
.tb-primary:hover { filter: brightness(1.05); }
.tb-primary:active { transform: translateY(1px); }

.tb-secondary {
  appearance: none; border: 2px solid var(--tb-line); background: #fff;
  color: var(--tb-text); font-weight: 800; border-radius: 12px; padding: 12px 16px; cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.tb-secondary:hover { border-color: #cbd5e1; background: #f8fafc; }

.tb-toast {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  padding: 12px 16px; background: #111827; color: #fff; border-radius: 10px;
  font-size: 14px; display: none; box-shadow: var(--tb-shadow); z-index: 9999;
}

/* Stops */
.tb-add-stop { background: transparent; border: 0; color: #3b82f6; font-weight: 900; display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; cursor: pointer; }
.tb-add-stop span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; background: #e0f2fe; color: #2563eb; font-weight: 1000; }
.tb-stop-row { position: relative; display: grid; gap: 6px; margin: 8px 0 2px; }
.tb-stop-remove { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #ef4444; font-size: 22px; line-height: 1; cursor: pointer; }

/* Wizard */
.tb-wizard { margin-top: 18px; }
.tb-steps {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 18px;
}
.tb-step {
  text-align: center; font-weight: 1000; color: #475569; padding: 10px 12px;
  border-radius: 999px; background: var(--tb-pil); border: 2px solid transparent;
}
.tb-step.is-active {
  background: #fff; color: var(--tb-text);
  border-color: color-mix(in oklab, var(--tb-accent) 60%, #0000);
  box-shadow: 0 10px 20px rgba(2,6,23,.08);
}
.tb-step.completed { color: #0f172a; background: #ecfdf5; border-color: #34d39933; }

.tb-ride-summary {
  background: #f5f7fb; border-radius: 14px; padding: 16px;
  border: 1px solid var(--tb-line); margin-bottom: 14px;
  font-weight: 800; color: var(--tb-text);
}
.tb-ride-summary .tb-when { font-weight: 1000; font-size: var(--tb-size-summary-when, 16px); margin-bottom: 6px; }
.tb-ride-summary .tb-route { font-size: var(--tb-size-summary-route, 22px); font-weight: 1000; }
.tb-ride-summary .tb-meta { margin-top: 6px; color: var(--tb-muted); font-weight: 800; font-size: var(--tb-size-summary-meta, 14px); }

.tb-h3 { font-size: 18px; margin: 10px 0 6px; font-weight: 1000; }
.tb-sub { color: #94a3b8; margin: 0 0 12px; font-weight: 800; }
.tb-banner { background: #f3f4f6; color: #334155; padding: 10px 12px; border-radius: 12px; font-size: 14px; margin-bottom: 12px; font-weight: 800; }

/* Vehicle list */
.tb-vehicles { display: grid; gap: 12px; }
.tb-vehicle {
  display: grid; grid-template-columns: 1fr auto; gap: 10px;
  border: 2px solid transparent; border-radius: 18px; padding: 14px;
  background: #fff; box-shadow: 0 1px 0 #eee, 0 10px 18px rgba(2,6,23,.06); cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .06s;
}
.tb-vehicle:hover { border-color: #e2e8f0; }
.tb-vehicle.is-selected {
  border-color: color-mix(in oklab, var(--tb-accent) 70%, #0000);
  box-shadow: 0 12px 30px rgba(2,6,23,.12);
  transform: translateY(-1px);
}
.tb-vehicle .tb-right { font-weight: 1000; font-size: 18px; align-self: center; }
.tb-vehicle .tb-title { font-weight: 1000; margin-bottom: 2px; font-size: var(--tb-size-vehicle-title, 22px); letter-spacing: .2px; }
.tb-vehicle .tb-subline { color: var(--tb-muted); font-size: 13px; font-weight: 800; }
.tb-vehicle .tb-attrs { color: #1f2937; font-size: 13px; display: flex; gap: 12px; margin-top: 4px; font-weight: 900; }

/* Map pins */
.tb-pin { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; font-weight: 900; font-size: 13px; color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.25); border: 2px solid #fff; }
.tb-pin--start { background: #10b981; }
.tb-pin--stop  { background: #3b82f6; }
.tb-pin--end   { background: #ef4444; }
.leaflet-interactive.tb-path { stroke-linecap: round; stroke-linejoin: round; }

/* Checkbox label text size */
.tb-checkbox span { font-size: var(--tb-size-base, 16px); font-weight: 700; line-height: 1.25; }


/* Hide trip tabs inside wizard view */
.tb-card.is-wizard .tb-header .tb-tabs { display: none; }

/* Compact stepper style (small text, subtle dots) */
.tb-steps { grid-template-columns: repeat(5, auto); column-gap: 22px; align-items: center; }
.tb-step {
  background: transparent;
  padding: 0;
  color: #64748b;
  font-weight: 800;
  font-size: var(--tb-size-step, 14px);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tb-step::before {
  content: "";
  width: 10px; height: 10px; border-radius: 999px; background: #cbd5e1;
  box-shadow: 0 0 0 2px #e2e8f0 inset;
}
.tb-step.is-active { color: #0f172a; }
.tb-step.is-active::before { background: color-mix(in oklab, var(--tb-accent) 85%, #0000); box-shadow: 0 0 0 3px color-mix(in oklab, var(--tb-accent) 25%, #0000); }
.tb-step.completed { color: #0f172a; }
.tb-step.completed::before { background: #22c55e; box-shadow: 0 0 0 2px #d1fae5 inset; }

/* Wizard actions on a single line: back left, continue right */
.tb-wizard-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
.tb-wizard-actions .tb-primary { width: auto; min-width: 200px; }
.tb-wizard-actions .tb-secondary { min-width: 120px; }
@media (max-width: 520px) {
  .tb-wizard-actions { flex-wrap: wrap; }
  .tb-wizard-actions .tb-primary { flex: 1 1 auto; }
}

/* Hide wizard when marked hidden */
.tb-wizard[hidden]{display:none !important;}


/* Compact dot stepper — remove pill/rounded background completely */
.tb-steps { grid-template-columns: repeat(5, auto); column-gap: 22px; align-items: center; }
.tb-step {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: #64748b;
  font-weight: 800;
  font-size: var(--tb-size-step, 14px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tb-step::before {
  content: "";
  width: 10px; height: 10px; border-radius: 999px;
  background: #cbd5e1; box-shadow: 0 0 0 2px #e2e8f0 inset;
}
.tb-step.is-active { color: #0f172a; }
.tb-step.is-active::before {
  background: color-mix(in oklab, var(--tb-accent) 85%, #0000);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--tb-accent) 25%, #0000);
}
.tb-step.completed { color: #0f172a; }
.tb-step.completed::before { background: #22c55e; box-shadow: 0 0 0 2px #d1fae5 inset; }

/* Disabled state for primary button */
.tb-primary:disabled {
  opacity: .45;
  cursor: not-allowed;
  filter: grayscale(30%);
  box-shadow: none;
}

/* Radio group for booking-for */
.tb-radio-box { display: grid; gap: 10px; margin: 10px 0 6px; }
.tb-radio { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.tb-radio input[type="radio"] { width: 16px; height: 16px; }


/* --- Pickup Info refinements --- */
.tb-label textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  font-size: var(--tb-size-input, 16px);
  font-weight: 600;
  color: var(--tb-text);
  resize: vertical;
}
.tb-label textarea::placeholder { color: #94a3b8; font-weight: 500; }

/* make inputs a touch lighter as well */
.tb-label input[type="text"], .tb-label input[type="email"], .tb-label input[type="tel"] {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
.tb-label input[type="text"]:focus, .tb-label input[type="email"]:focus, .tb-label input[type="tel"]:focus,
.tb-label textarea:focus {
  border-color: color-mix(in oklab, var(--tb-accent) 50%, #0000);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--tb-accent) 18%, #0000);
  background: #fff;
}

/* section spacing lines */
.tb-h3 { margin-top: 18px; margin-bottom: 8px; position: relative; }
.tb-h3 + .tb-sub { margin-top: -4px; }
.tb-h3::after {
  content: "";
  display: block;
  height: 1px;
  background: #eef2f7;
  margin-top: 10px;
}


/* Floating field style (label inside the box) */
.tb-field {
  position: relative;
  border: 1px solid #cfd8e3;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 0 #eef2f7;
}
.tb-field + .tb-field { margin-top: 12px; }
.tb-field input, .tb-field textarea {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  padding: 28px 16px 14px 16px;
  font-size: var(--tb-size-input, 16px);
  font-weight: 600;
  color: var(--tb-text);
}
.tb-field textarea { min-height: 120px; padding-top: 40px; resize: vertical; }
.tb-field-label {
  position: absolute; top: 10px; left: 16px;
  color: #6b7280; font-weight: 800; pointer-events: none;
}
.tb-field:focus-within {
  border-color: color-mix(in oklab, var(--tb-accent) 50%, #0000);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--tb-accent) 18%, #0000);
}


/* --- Pickup Info spacing & compact fields --- */
.tb-radio-box { margin-bottom: 14px; }

/* Align two-column fields and make them compact */
.tb-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
.tb-grid .tb-field { margin: 0; } /* no extra margin inside grid */
.tb-grid + .tb-field { margin-top: 12px; } /* space between grid and next row */

/* Compact floating fields */
.tb-field { border-radius: 12px; }
.tb-field input, .tb-field textarea {
  padding: 20px 14px 12px 14px; /* was 28px top */
}
.tb-field textarea { min-height: 96px; padding-top: 36px; }

/* Vertical rhythm for stacked fields */
.tb-field + .tb-field { margin-top: 12px; }


/* --- Equal height & perfect alignment for two-column floating fields --- */
:root { --tb-field-h: 64px; }
.tb-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
.tb-grid .tb-field { margin: 0; min-height: var(--tb-field-h); display: block; box-sizing: border-box; }
.tb-field, .tb-field * { box-sizing: border-box; }
.tb-grid .tb-field input { height: calc(var(--tb-field-h) - 2px); /* minus borders */ padding-top: 24px; padding-bottom: 12px; }
.tb-field-label { line-height: 1; } /* prevent label height differences */
.tb-field input { line-height: 1.35; } /* consistent input line height */

/* Space between the grid row and the next field (phone) */
.tb-grid + .tb-field { margin-top: 14px; }

/* Textarea keeps its own comfortable height */
.tb-field textarea { min-height: 112px; padding-top: 36px; height: auto; }


/* Extra spacing between 'Provide additional information' fields */
#tb-step-2 .tb-label { margin-top: 10px; margin-bottom: 14px; display: grid; gap: 8px; }
#tb-step-2 .tb-label + .tb-label { margin-top: 14px; }
#tb-step-2 .tb-label textarea { min-height: 140px; }

/* left icon for flight number in Pickup Info */
.tb-input-icon { position: relative; }
.tb-input-icon .tb-ico-left { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #6b7280; display: inline-flex; width: 16px; height: 16px; }
.tb-input-icon .tb-svg { width: 16px; height: 16px; display: block; }
.tb-input-icon input { padding-left: 40px; }

/* Inline icon next to 'Flight number' label */
.tb-label-inline .tb-label-row{display:flex;align-items:center;gap:8px;}
.tb-label-inline .tb-ico-inline{display:inline-flex;align-items:center;justify-content:center;color:#4b5563;}
.tb-label-inline .tb-ico-inline .tb-svg{width:16px;height:16px;display:block;}


/* Force icons and numbers to sit side-by-side */
body .tb-attrs{display:flex !important; gap:14px !important; align-items:center !important; flex-wrap:nowrap !important;}
body .tb-attr{display:inline-flex !important; align-items:center !important; gap:6px !important; white-space:nowrap !important;}
body .tb-attr .tb-ico, body .tb-attr .tb-svg{display:inline-block !important; width:16px !important; height:16px !important; vertical-align:middle !important;}
body .tb-attr .tb-num{display:inline-block !important; line-height:1 !important; vertical-align:middle !important;}
