/* =====================================================================
   TAS Chauffeurs – Uber-style skin for Taxi Dispatch Pro ([taxi_booking])
   Loaded by the TAS Chauffeurs Core plugin. Selectors start with
   "html body" so they win over the dispatch plugin's !important rules
   and survive plugin updates.
   ===================================================================== */

/* ---------- Header: keep "Book Now" readable on its own page ---------- */
html body #page-container #top-menu li.tas-menu-cta a,
html body #page-container #top-menu li.tas-menu-cta.current-menu-item a { color: #000 !important; }

/* ---------- Booking section: black, like Uber's "Go anywhere" ---------- */
html body .et_pb_section.tas-booking { background: #000 !important; background-image: radial-gradient(800px 420px at 15% 0%, rgba(39,110,241,.16), transparent 60%) !important; }
html body .tas-booking .et_pb_text h2,
html body .tas-booking .et_pb_text h3,
html body .tas-booking .et_pb_text li,
html body .tas-booking .et_pb_text strong { color: #fff !important; }
html body .tas-booking .et_pb_text p { color: rgba(255,255,255,.72) !important; }
html body .tas-booking .et_pb_text a { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; }
html body .tas-booking .tas-eyebrow { color: #9fbfff !important; }
html body .tas-booking .tas-booking-card { background: transparent !important; box-shadow: none !important; padding: 0 !important; }
html body .tas-booking .et_pb_row { display: flex; align-items: center; flex-wrap: wrap; }
@media (max-width: 980px) { html body .tas-booking .et_pb_row { display: block; } }

/* ---------- Form root ---------- */
html body .tdp {
	--tdp-primary: #000 !important; --tdp-accent: #276EF1 !important; --tdp-ink: #000 !important; --tdp-surface: transparent !important;
	--tdp-radius: 14px !important; --tdp-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
	--tdp-fg: #000 !important; --tdp-card: #fff !important; --tdp-field: #f3f3f3 !important; --tdp-line: #e9e9e9 !important;
	--tdp-muted: #5e5e5e !important; --tdp-deep: #000 !important; --tdp-on-accent: #fff !important; --tdp-link: #000 !important; --tdp-r-in: 10px !important;
	background: transparent !important; padding: 0 !important; max-width: none !important; color: #000 !important;
}
html body .tdp h2 { font-size: clamp(26px, 2.6vw, 34px) !important; font-weight: 700 !important; letter-spacing: -.02em !important; margin-bottom: 18px !important; color: #000 !important; }
html body .tdp .tdp-panel:not(.tdp-done) > h2::before { display: none !important; }
html body .tdp .tdp-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) !important; gap: 20px !important; }

/* Progress: minimal, on the dark background */
html body .tdp .tdp-steps { margin-bottom: 22px !important; }
html body .tdp .tdp-steps li { color: rgba(255,255,255,.5) !important; font-weight: 500 !important; }
html body .tdp .tdp-steps li.is-active { color: #fff !important; font-weight: 600 !important; }
html body .tdp .tdp-node { background: #000 !important; border: 2px solid rgba(255,255,255,.3) !important; }
html body .tdp .tdp-node::after { color: rgba(255,255,255,.7) !important; }
html body .tdp .tdp-steps li.is-active .tdp-node { background: #fff !important; border-color: #fff !important; box-shadow: 0 0 0 5px rgba(255,255,255,.14) !important; }
html body .tdp .tdp-steps li.is-active .tdp-node::after { color: #000 !important; }
html body .tdp .tdp-steps li.is-done .tdp-node { background: #276EF1 !important; border-color: #276EF1 !important; }
html body .tdp .tdp-steps li + li::before { background: repeating-linear-gradient(90deg, rgba(255,255,255,.22) 0 8px, transparent 8px 14px) !important; }
html body .tdp .tdp-steps li.is-done + li::before, html body .tdp .tdp-steps li.is-active::before { background: #276EF1 !important; }

/* White ride panel */
html body .tdp .tdp-main { background: #fff !important; border-radius: 18px !important; padding: clamp(20px, 2.4vw, 30px) !important; box-shadow: 0 30px 70px rgba(0,0,0,.45) !important; }

/* One way / Return chip */
html body .tdp .tdp-trip { background: #f3f3f3 !important; padding: 4px !important; margin-bottom: 18px !important; }
html body .tdp .tdp-trip span { color: #000 !important; font-weight: 600 !important; padding: 10px 20px !important; }
html body .tdp .tdp-trip input:checked + span { background: #000 !important; color: #fff !important; }

/* Pickup / drop-off: grey fields with Uber markers and a joining line */
html body .tdp .tdp-routecard { border: 0 !important; background: transparent !important; padding: 0 !important; margin: 0 0 14px !important; }
html body .tdp .tdp-routecard::before { left: 24px !important; top: 28px !important; bottom: 28px !important; width: 2px !important; background: #000 !important; z-index: 2 !important; }
html body .tdp .tdp-field--place { padding-left: 0 !important; margin-bottom: 10px !important; }
html body .tdp .tdp-field--place > label { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
html body .tdp .tdp-field--place::before { left: 18px !important; top: 28px !important; transform: translateY(-50%) !important; width: 14px !important; height: 14px !important; border: 4px solid #000 !important; background: #fff !important; border-radius: 50% !important; z-index: 3 !important; }
html body .tdp .tdp-field--place[data-role="dropoff"]::before { border-radius: 2px !important; background: #fff !important; }
html body .tdp .tdp-stop::before { border-color: #276EF1 !important; background: #fff !important; }
html body .tdp .tdp-field--place input[type=text], html body .tdp .tdp-field--place gmp-place-autocomplete { padding-left: 48px !important; }
html body .tdp .tdp-add-stop { background: transparent !important; color: #000 !important; padding: 2px 0 !important; margin: 0 0 10px 48px !important; font-weight: 600 !important; font-size: 14px !important; text-decoration: underline !important; text-underline-offset: 3px !important; border-radius: 0 !important; }
html body .tdp .tdp-x { background: #f3f3f3 !important; border: 0 !important; }

/* Inputs */
html body .tdp input[type=text], html body .tdp input[type=email], html body .tdp input[type=tel],
html body .tdp input[type=date], html body .tdp input[type=time], html body .tdp select, html body .tdp textarea {
	background: #f3f3f3 !important; border: 2px solid transparent !important; border-radius: 10px !important;
	min-height: 56px !important; color: #000 !important; font-weight: 500 !important; box-shadow: none !important;
}
html body .tdp input[type=date], html body .tdp input[type=time] { height: 56px !important; }
html body .tdp input:hover, html body .tdp textarea:hover { border-color: #d6d6d6 !important; }
html body .tdp input:focus, html body .tdp input:focus-visible, html body .tdp textarea:focus, html body .tdp textarea:focus-visible {
	background: #fff !important; border-color: #000 !important; outline: none !important;
}
html body .tdp input::placeholder, html body .tdp textarea::placeholder { color: #6b6b6b !important; opacity: 1 !important; }
html body .tdp .tdp-field > label, html body .tdp .tdp-lbl, html body .tdp legend { color: #5e5e5e !important; font-weight: 500 !important; font-size: 13px !important; }
html body .tdp .tdp-iw .tdp-svg, html body .tdp .tdp-stepval .tdp-svg { color: #000 !important; }

/* Passenger / bag steppers */
html body .tdp .tdp-stepper { background: #f3f3f3 !important; border: 0 !important; border-radius: 10px !important; min-height: 56px !important; }
html body .tdp .tdp-step { background: #fff !important; color: #000 !important; border-radius: 8px !important; width: 40px !important; height: 40px !important; }
html body .tdp .tdp-step:hover:not(:disabled) { background: #000 !important; color: #fff !important; }

/* Buttons: solid black, no arrow */
html body .tdp .tdp-btn { background: #000 !important; color: #fff !important; box-shadow: none !important; border-radius: 10px !important; font-weight: 600 !important; min-height: 56px !important; filter: none !important; }
html body .tdp .tdp-btn:hover { background: #333 !important; transform: none !important; }
html body .tdp .tdp-btn::after { display: none !important; }
html body .tdp .tdp-btn--ghost { background: #fff !important; color: #000 !important; box-shadow: inset 0 0 0 2px #000 !important; }
html body .tdp .tdp-link { color: #000 !important; }

/* Map card */
html body .tdp .tdp-mapcard { border-radius: 18px !important; background: #151515 !important; border: 1px solid #262626 !important; box-shadow: none !important; }
html body .tdp .tdp-map { height: clamp(260px, 30vw, 400px) !important; }
html body .tdp .tdp-map-hint { background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.75)) !important; font-weight: 600 !important; }
html body .tdp .tdp-meter { background: #151515 !important; border-top: 1px solid #262626 !important; }
html body .tdp .tdp-meter > div + div { border-left: 1px solid #262626 !important; }
html body .tdp .tdp-meter-k { color: rgba(255,255,255,.6) !important; font-weight: 500 !important; }
html body .tdp .tdp-meter-v { color: #fff !important; font: 700 24px/1.1 'Inter', sans-serif !important; text-shadow: none !important; letter-spacing: -.01em !important; }

/* ---------- Vehicle options: Uber-style ride list ---------- */
html body .tdp .tdp-vehicles { gap: 10px !important; }
html body .tdp .tdp-vehicle {
	grid-template-columns: 84px minmax(0, 1fr) !important; align-items: center !important; gap: 10px 16px !important;
	padding: 12px 16px !important; background: #fff !important; border: 2px solid #f0f0f0 !important; border-radius: 14px !important; box-shadow: none !important;
}
html body .tdp .tdp-vehicle:hover, html body .tdp .tdp-vehicle:focus-within { border-color: #000 !important; box-shadow: none !important; }
html body .tdp .tdp-vehicle.is-best { border-color: #f0f0f0 !important; box-shadow: none !important; }
html body .tdp .tdp-badge { display: none !important; }
html body .tdp .tdp-vmedia { background: #f3f3f3 !important; border-radius: 10px !important; aspect-ratio: 4 / 3 !important; color: #000 !important; }
html body .tdp .tdp-vmedia .tdp-ico { color: #000 !important; }
html body .tdp .tdp-vmedia .tdp-ico path { opacity: .9 !important; }
html body .tdp .tdp-vehicle h3 { font-size: 18px !important; font-weight: 700 !important; margin-bottom: 2px !important; }
html body .tdp .tdp-caps { color: #5e5e5e !important; font-weight: 500 !important; font-size: 14px !important; margin: 0 0 6px !important; }
html body .tdp .tdp-ico { color: #000 !important; }
html body .tdp .tdp-feats li { background: #f3f3f3 !important; font-size: 12px !important; font-weight: 500 !important; }
html body .tdp .tdp-fare summary { color: #000 !important; font-weight: 600 !important; }
html body .tdp .tdp-vbuy { grid-column: 1 / -1 !important; flex-direction: row !important; justify-content: space-between !important; align-items: center !important; border-top: 1px solid #f0f0f0 !important; padding-top: 12px !important; gap: 8px !important; }
html body .tdp .tdp-price { font: 700 20px/1 'Inter', sans-serif !important; color: #000 !important; }
html body .tdp .tdp-vbuy .tdp-btn { min-height: 40px !important; padding: 8px 18px !important; border-radius: 999px !important; font-size: 14px !important; }

/* Summary ticket */
html body .tdp .tdp-summary { background: #fff !important; border: 0 !important; border-top: 0 !important; border-radius: 18px !important; box-shadow: none !important; padding: 20px !important; }
html body .tdp .tdp-route li::before { border-color: #000 !important; }
html body .tdp .tdp-route li.is-to::before { background: #fff !important; border-radius: 2px !important; }
html body .tdp .tdp-route li.is-via::before { border-color: #276EF1 !important; }
html body .tdp .tdp-total { background: #000 !important; border-left: 0 !important; border-radius: 10px !important; }
html body .tdp .tdp-total strong { color: #fff !important; font: 700 22px/1 'Inter', sans-serif !important; }

/* Checkout */
html body .tdp .tdp-choice { border: 2px solid #f0f0f0 !important; border-radius: 12px !important; }
html body .tdp .tdp-choice:has(input:checked) { border-color: #000 !important; background: #fff !important; box-shadow: none !important; }
html body .tdp .tdp-choice:has(input:checked)::after { border-color: #000 !important; background: radial-gradient(circle, #000 0 40%, transparent 44%) !important; }
html body .tdp .tdp-choice-ico { background: #f3f3f3 !important; color: #000 !important; }
html body .tdp .tdp-secure .tdp-svg { color: #000 !important; }

/* Done */
html body .tdp .tdp-check { background: #276EF1 !important; color: #fff !important; box-shadow: 0 0 0 10px rgba(39,110,241,.18) !important; }
html body .tdp .tdp-ref { background: #000 !important; color: #fff !important; font-family: 'Inter', sans-serif !important; }
html body .tdp .tdp-done.tdp-done--success, html body .tdp .tdp-done.tdp-done--pending, html body .tdp .tdp-done.tdp-done--cancel { border-radius: 18px !important; }

@media (max-width: 900px) {
	html body .tdp .tdp-layout { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 600px) {
	html body .tdp .tdp-main { padding: 18px !important; border-radius: 16px !important; }
	html body .tdp .tdp-vehicle { grid-template-columns: 72px minmax(0, 1fr) !important; }
	html body .tdp .tdp-steplabel { color: inherit !important; }
}

/* ---------- Step-aware layout: focus on the journey first (like Uber) ---------- */
html body .tdp { margin: 0 !important; }
/* Step 1 – journey details: no map, one focused column */
html body .tdp:has(.tdp-panel[data-panel="1"].is-active) { max-width: 640px !important; }
html body .tdp:has(.tdp-panel[data-panel="1"].is-active) .tdp-layout { grid-template-columns: minmax(0, 1fr) !important; }
html body .tdp:has(.tdp-panel[data-panel="1"].is-active) .tdp-side {
	position: absolute !important; left: -10000px !important; top: 0 !important; width: 420px !important; visibility: hidden !important; /* kept rendered so the route fits when it appears */
}
/* Step 2 – vehicles: map + route alongside */
/* Step 3+ – checkout / payment / done: trip summary only */
html body .tdp:has(.tdp-panel[data-panel="3"].is-active) .tdp-mapcard,
html body .tdp:has(.tdp-panel[data-panel="4"].is-active) .tdp-mapcard,
html body .tdp:has(.tdp-panel[data-panel="5"].is-active) .tdp-mapcard { display: none !important; }

/* ---------- Mobile menu: sub-menus open on tap ---------- */
html body #main-header .et_mobile_menu li.menu-item-has-children > ul.sub-menu { display: none !important; }
html body #main-header .et_mobile_menu li.menu-item-has-children.tas-open > ul.sub-menu { display: block !important; }
html body #main-header .et_mobile_menu li.menu-item-has-children > a { position: relative !important; padding-right: 52px !important; font-weight: 600 !important; background: transparent !important; }
html body #main-header .et_mobile_menu li.menu-item-has-children > a::after {
	content: '' !important; position: absolute !important; right: 22px !important; top: 50% !important; width: 8px !important; height: 8px !important;
	border-right: 2px solid #fff !important; border-bottom: 2px solid #fff !important; transform: translateY(-70%) rotate(45deg) !important; transition: transform .2s !important;
}
html body #main-header .et_mobile_menu li.tas-open > a::after { transform: translateY(-25%) rotate(-135deg) !important; }
html body #main-header .et_mobile_menu ul.sub-menu { padding-left: 0 !important; background: #111 !important; border-radius: 10px !important; margin: 4px 0 8px !important; }
html body #main-header .et_mobile_menu ul.sub-menu li { padding-left: 0 !important; }
html body #main-header .et_mobile_menu ul.sub-menu li a { padding: 12px 18px !important; font-size: 15px !important; color: rgba(255,255,255,.82) !important; border-bottom-color: #1e1e1e !important; }
html body #main-header .et_mobile_menu li.tas-view-all a { color: #9fbfff !important; font-weight: 600 !important; }

/* ---------- Tables always fit the phone screen ---------- */
@media (max-width: 600px) {
	html body table.tas-table { table-layout: fixed !important; width: 100% !important; }
	html body table.tas-table th, html body table.tas-table td { overflow-wrap: anywhere !important; word-break: normal !important; padding: 10px 8px !important; font-size: 13px !important; }
}
