/* =============================================================
   Blacktop Limo Booking — Moovs-style 3-step form
   v2.1.0 — Theme-aware, dark-mode compatible
   ============================================================= */

/* Default (light) variables */
.afb-booking {
	--afb-primary: #c9933a;
	--afb-primary-dark: #8b5e3c;
	--afb-on-primary: #ffffff;
	--afb-text: #1a202c;
	--afb-muted: #6b7280;
	--afb-border: #d9dee5;
	--afb-bg: transparent;
	--afb-surface: #ffffff;
	--afb-surface-2: #f5f7fb;
	--afb-input-bg: #ffffff;
	--afb-input-text: #1a202c;
	--afb-input-border: #d9dee5;
	--afb-input-label: #6b7280;
	--afb-active-bg: #fdf6e9;
	--afb-active-text: #8b5e3c;
	--afb-success: #10b981;
	--afb-danger: #dc2626;
	--afb-radius: 6px;
	--afb-card-radius: 10px;
	--afb-shadow: 0 1px 3px rgba(0,0,0,.06);

	font-family: inherit;
	color: var(--afb-text);
	font-size: 15px;
	line-height: 1.45;
	max-width: 1140px;
	margin: 0 auto;
	padding: 20px;
	box-sizing: border-box;
}

/* ---------- THEME: dark ---------- */
/* Auto: prefers-color-scheme dark */
@media (prefers-color-scheme: dark) {
	.afb-booking.afb-theme-auto {
		--afb-text: #f3f4f6;
		--afb-muted: #d1d5db;
		--afb-border: #3a3a40;
		--afb-surface: #1f1f24;
		--afb-surface-2: #16161a;
		--afb-input-bg: #2a2a31;
		--afb-input-text: #f9fafb;
		--afb-input-border: #4b4b54;
		--afb-input-label: #d1d5db;
		--afb-active-bg: #3a2c14;
		--afb-active-text: #f3d68a;
	}
}

/* Explicit dark theme */
.afb-booking.afb-theme-dark {
	--afb-text: #f3f4f6;
	--afb-muted: #d1d5db;
	--afb-border: #3a3a40;
	--afb-surface: #1f1f24;
	--afb-surface-2: #16161a;
	--afb-input-bg: #2a2a31;
	--afb-input-text: #f9fafb;
	--afb-input-border: #4b4b54;
	--afb-input-label: #d1d5db;
	--afb-active-bg: #3a2c14;
	--afb-active-text: #f3d68a;
}

/* Inherit from parent: pulls text color from page, keeps inputs readable */
.afb-booking.afb-theme-inherit {
	color: inherit;
	--afb-text: currentColor;
	--afb-muted: currentColor;
}

/* Blacktop brand (espresso/gold/cream from user's design system) */
.afb-booking.afb-theme-blacktop {
	--afb-primary: #c9933a;
	--afb-primary-dark: #8b5e3c;
	--afb-on-primary: #2b1e12;
	--afb-text: #faf6f0;
	--afb-muted: #c9c0b0;
	--afb-border: #3a2f23;
	--afb-surface: #2b1e12;
	--afb-surface-2: #1c130a;
	--afb-input-bg: #faf6f0;
	--afb-input-text: #2b1e12;
	--afb-input-border: #c9933a;
	--afb-input-label: #8b5e3c;
	--afb-active-bg: #c9933a;
	--afb-active-text: #2b1e12;
}

.afb-booking *, .afb-booking *::before, .afb-booking *::after { box-sizing: border-box; }
.afb-booking button { font-family: inherit; }
.afb-booking strong, .afb-booking b, .afb-booking h1, .afb-booking h2, .afb-booking h3, .afb-booking h4 { color: var(--afb-text); }

/* ---------- Stepper ---------- */
.afb-stepper {
	display: flex; align-items: center; justify-content: center;
	gap: 8px; margin: 8px 0 28px;
}
.afb-step-pill {
	display: flex; align-items: center; gap: 8px;
	padding: 4px 4px 4px 0;
	color: var(--afb-muted); font-weight: 500; font-size: 14px;
}
.afb-step-pill .afb-step-num {
	width: 26px; height: 26px; border-radius: 50%;
	background: var(--afb-muted); color: var(--afb-surface);
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 13px; font-weight: 600;
}
.afb-step-pill.is-active { color: var(--afb-primary); }
.afb-step-pill.is-active .afb-step-num { background: var(--afb-primary); color: var(--afb-on-primary); }
.afb-step-pill.is-done .afb-step-num { background: var(--afb-primary-dark); color: var(--afb-on-primary); }
.afb-step-pill.is-done .afb-step-num::after { content: "✓"; }
.afb-step-pill.is-done .afb-step-num span { display: none; }
.afb-step-bar {
	flex: 0 0 60px; height: 3px; background: var(--afb-border); border-radius: 2px;
}
.afb-step-bar.is-filled { background: var(--afb-primary); }

/* ---------- Form structure ---------- */
.afb-form-title { margin: 0 0 16px; font-size: 26px; font-weight: 700; color: var(--afb-text); }
.afb-section { margin-bottom: 22px; }
.afb-section-label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 14px; color: var(--afb-text); }
.afb-section-label.afb-inline-lbl { display: inline-block; margin: 0; margin-right: 14px; }

/* ---------- Trip Type buttons ---------- */
.afb-trip-types { display: flex; gap: 0; border: 1px solid var(--afb-input-border); border-radius: var(--afb-radius); overflow: hidden; max-width: 520px; }
.afb-tt-btn {
	flex: 1; background: var(--afb-input-bg); border: none; padding: 12px 12px; cursor: pointer;
	display: flex; align-items: center; justify-content: center; gap: 6px;
	color: var(--afb-input-text); font-size: 14px; font-weight: 500;
	border-right: 1px solid var(--afb-input-border);
}
.afb-tt-btn:last-child { border-right: none; }
.afb-tt-btn.is-active { background: var(--afb-primary); color: var(--afb-on-primary); font-weight: 600; }
.afb-tt-ic { width: 16px; height: 16px; display: inline-block; }
.afb-tt-ic-hourly::before     { content: "🕒"; }
.afb-tt-ic-one_way::before    { content: "→"; }
.afb-tt-ic-round_trip::before { content: "⇄"; }

/* ---------- Floating label inputs ---------- */
.afb-floating { position: relative; margin-top: 8px; }
.afb-floating input,
.afb-floating select,
.afb-floating textarea {
	width: 100%;
	padding: 14px 14px 8px 14px;
	font-size: 15px;
	border: 1px solid var(--afb-input-border);
	border-radius: var(--afb-radius);
	background: var(--afb-input-bg);
	outline: none;
	transition: border-color .15s;
	font-family: inherit;
	color: var(--afb-input-text);
	-webkit-appearance: none; appearance: none;
}
.afb-floating select {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%236b7280' d='M6 8L0 0h12z'/></svg>");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
}
.afb-floating input:focus,
.afb-floating select:focus,
.afb-floating textarea:focus { border-color: var(--afb-primary); }
.afb-floating label {
	position: absolute;
	left: 12px; top: 14px;
	padding: 0 4px;
	font-size: 15px;
	color: var(--afb-input-label);
	background: var(--afb-input-bg);
	pointer-events: none;
	transition: all .15s;
}
.afb-floating input:focus + label,
.afb-floating input:not(:placeholder-shown) + label,
.afb-floating select:focus + label,
.afb-floating select:not([value=""]):not(:invalid) + label,
.afb-floating textarea:focus + label,
.afb-floating textarea:not(:placeholder-shown) + label {
	top: -8px;
	font-size: 12px;
	color: var(--afb-primary);
}
.afb-floating select:not([value=""]) + label { top: -8px; font-size: 12px; color: var(--afb-primary); }

.afb-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.afb-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-top: 8px; }

/* ---------- Calendar icon in datetime ---------- */
.afb-dt-wrap .afb-cal-ic {
	position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
	pointer-events: none; color: var(--afb-input-label);
}
.afb-addr-wrap .afb-drag-ic {
	position: absolute; left: -28px; top: 50%; transform: translateY(-50%);
	color: var(--afb-muted); user-select: none; font-weight: bold;
}
.afb-addr-wrap { margin-left: 28px; }

/* ---------- Toggle pair Address/Airport ---------- */
.afb-addr-head { display: flex; align-items: center; margin-bottom: 8px; gap: 12px; flex-wrap: wrap; }
.afb-toggle-pair {
	display: inline-flex; border: 1px solid var(--afb-input-border); border-radius: var(--afb-radius); overflow: hidden;
}
.afb-toggle-btn {
	background: var(--afb-input-bg); border: none; padding: 8px 16px; cursor: pointer;
	font-size: 13px; font-weight: 600; color: var(--afb-input-text); text-transform: uppercase; letter-spacing: .04em;
}
.afb-toggle-btn.is-active { background: var(--afb-primary); color: var(--afb-on-primary); }

/* ---------- Airport sub-fields (Airline / Flight / Arrival) ---------- */
.afb-airport-fields { margin-top: 10px; padding: 12px; background: var(--afb-surface-2); border: 1px dashed var(--afb-input-border); border-radius: var(--afb-radius); }
.afb-airport-fields .afb-floating { margin-top: 12px; }
.afb-airport-fields .afb-floating:first-child { margin-top: 0; }
.afb-airport-fields .afb-airport-help { font-size: 12px; color: var(--afb-muted); margin: 0 0 6px; }

/* Autocomplete results dropdown */
.afb-ac-list {
	position: absolute; z-index: 50; top: 100%; left: 0; right: 0;
	background: var(--afb-input-bg); border: 1px solid var(--afb-input-border);
	border-radius: var(--afb-radius); max-height: 240px; overflow-y: auto;
	box-shadow: 0 4px 12px rgba(0,0,0,.15); margin-top: 2px;
}
.afb-ac-item { padding: 8px 12px; cursor: pointer; color: var(--afb-input-text); font-size: 14px; border-bottom: 1px solid var(--afb-input-border); }
.afb-ac-item:last-child { border-bottom: none; }
.afb-ac-item:hover, .afb-ac-item.is-active { background: var(--afb-active-bg); color: var(--afb-active-text); }
.afb-ac-meta { font-size: 12px; color: var(--afb-muted); }

/* ---------- Add stop ---------- */
.afb-link-btn { background: none; border: none; color: var(--afb-primary); cursor: pointer; padding: 6px 0; font-size: 14px; font-weight: 500; }
.afb-link-btn:hover { text-decoration: underline; }
.afb-add-stop-row { text-align: center; position: relative; padding: 8px 0; }
.afb-add-stop-row::before, .afb-add-stop-row::after {
	content: ""; position: absolute; top: 50%; width: 32%; height: 1px; background: var(--afb-border);
}
.afb-add-stop-row::before { left: 0; } .afb-add-stop-row::after { right: 0; }
.afb-stop-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; margin-top: 10px; }
.afb-stop-row .afb-drag-ic-out { color: var(--afb-muted); cursor: grab; }
.afb-stop-del { background: none; border: none; color: var(--afb-danger); cursor: pointer; font-size: 16px; }

/* ---------- Passenger counter ---------- */
.afb-pax-row { display: flex; justify-content: space-between; align-items: center; }
.afb-counter { display: inline-flex; align-items: center; gap: 6px; }
.afb-counter-btn { width: 36px; height: 36px; border-radius: var(--afb-radius); border: 1px solid var(--afb-input-border); background: var(--afb-primary); color: var(--afb-on-primary); font-size: 18px; cursor: pointer; font-weight: 600; }
.afb-counter input { width: 64px; text-align: center; padding: 8px; border: 1px solid var(--afb-input-border); border-radius: var(--afb-radius); background: var(--afb-input-bg); color: var(--afb-input-text); font-family: inherit; }

/* ---------- Buttons ---------- */
.afb-btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 12px 22px; border-radius: var(--afb-radius);
	border: 1px solid transparent; cursor: pointer; font-size: 15px; font-weight: 600;
	font-family: inherit; transition: filter .15s;
}
.afb-btn:hover:not(:disabled) { filter: brightness(0.95); }
.afb-btn:disabled { opacity: .55; cursor: not-allowed; }
.afb-btn-primary { background: var(--afb-primary); color: var(--afb-on-primary); }
.afb-btn-secondary { background: transparent; color: var(--afb-text); border-color: var(--afb-input-border); }
.afb-btn-flat { background: var(--afb-primary); color: var(--afb-on-primary); border: none; }
.afb-btn-pay { width: 100%; background: var(--afb-primary); color: var(--afb-on-primary); padding: 14px; font-size: 16px; margin-top: 12px; }
.afb-veh-choose { background: var(--afb-primary); color: var(--afb-on-primary); border: none; padding: 10px 18px; border-radius: var(--afb-radius); font-weight: 600; cursor: pointer; }
.afb-actions { margin-top: 18px; }
.afb-actions-right { text-align: right; }
.afb-actions-split { display: flex; justify-content: space-between; align-items: center; }

/* ---------- Error ---------- */
.afb-error { color: var(--afb-danger); padding: 8px 12px; border: 1px solid var(--afb-danger); border-radius: var(--afb-radius); margin: 10px 0; background: rgba(220,38,38,.08); }

/* ---------- Step 2 summary banner ---------- */
.afb-summary-banner { background: var(--afb-surface); border: 1px solid var(--afb-border); border-radius: var(--afb-card-radius); padding: 16px; margin-bottom: 18px; color: var(--afb-text); }
.afb-sb-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.afb-sb-head h3 { margin: 0; font-size: 16px; }
.afb-sb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; font-size: 13px; }
.afb-sb-grid > div { display: flex; flex-direction: column; gap: 2px; }
.afb-sb-lbl { font-size: 11px; font-weight: 700; color: var(--afb-muted); letter-spacing: .04em; }
.afb-sb-grid > div span:not(.afb-sb-lbl) { font-weight: 500; color: var(--afb-text); }

/* ---------- Step 2: Vehicles ---------- */
.afb-vehicles-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.afb-vehicles-head h3 { margin: 0; color: var(--afb-text); }
.afb-veh-tools { display: flex; gap: 10px; align-items: center; }
.afb-chip { background: var(--afb-active-bg); color: var(--afb-active-text); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 500; }
.afb-filters-btn { background: none; border: none; cursor: pointer; color: var(--afb-primary); font-weight: 500; }

.afb-vehicles { display: flex; flex-direction: column; gap: 0; }
.afb-veh-card {
	display: grid; grid-template-columns: 280px 1fr 220px;
	gap: 20px;
	padding: 22px 0; border-top: 1px solid var(--afb-border);
	color: var(--afb-text);
}
.afb-veh-card:first-child { border-top: none; }
.afb-veh-img { width: 100%; height: 170px; background: var(--afb-surface-2); border-radius: 8px; overflow: hidden; }
.afb-veh-img img { width: 100%; height: 100%; object-fit: cover; }
.afb-veh-body h4 { margin: 0 0 4px; font-size: 19px; color: var(--afb-text); }
.afb-veh-class { color: var(--afb-muted); font-size: 14px; margin-bottom: 8px; }
.afb-veh-pax { color: var(--afb-muted); font-size: 13px; margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.afb-veh-stock { font-size: 12px; color: var(--afb-muted); margin-bottom: 8px; }
.afb-veh-stock.is-low { color: #f59e0b; }
.afb-veh-stock.is-out { color: var(--afb-danger); }
.afb-veh-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; font-size: 12px; }
.afb-veh-feat-group .afb-fg-title { font-size: 11px; font-weight: 700; color: var(--afb-muted); letter-spacing: .05em; margin-bottom: 6px; }
.afb-veh-feat-group ul { list-style: none; margin: 0; padding: 0; }
.afb-veh-feat-group li { display: flex; align-items: center; gap: 4px; padding: 2px 0; color: var(--afb-text); }
.afb-veh-feat-group li::before { content: "•"; color: var(--afb-primary); }
.afb-veh-side { background: var(--afb-surface-2); border-radius: 6px; padding: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.afb-veh-price { font-size: 22px; font-weight: 700; color: var(--afb-text); }
.afb-veh-choose { width: 100%; }
.afb-loading, .afb-no-vehicles { text-align: center; padding: 40px; color: var(--afb-muted); }

/* ---------- Step 3: Confirm ---------- */
.afb-confirm-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--afb-border); margin-bottom: 18px; }
.afb-confirm-header h2 { margin: 0; font-size: 26px; color: var(--afb-text); }
.afb-confirm-tags { display: flex; gap: 10px; align-items: center; }
.afb-tag-occasion { color: var(--afb-muted); display: inline-flex; align-items: center; gap: 6px; }
.afb-tag-occasion::before { content: "📍"; }
.afb-tag-reservation { background: var(--afb-primary); color: var(--afb-on-primary); padding: 4px 12px; border-radius: 14px; font-size: 11px; font-weight: 700; letter-spacing: .04em; }

.afb-rr-title { margin: 0 0 18px; font-size: 20px; color: var(--afb-text); }

.afb-confirm-grid { display: grid; grid-template-columns: 1fr 360px; gap: 20px; }
.afb-card {
	background: var(--afb-surface); border: 1px solid var(--afb-border); border-radius: var(--afb-card-radius);
	padding: 18px; margin-bottom: 16px; color: var(--afb-text);
}
.afb-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.afb-card-head h4 { margin: 0; color: var(--afb-text); }
.afb-card-head-meta { color: var(--afb-muted); font-size: 13px; display: flex; gap: 10px; align-items: center; }
.afb-card-title { margin: 0 0 12px; font-size: 16px; color: var(--afb-text); }
.afb-trip-row { display: grid; grid-template-columns: 1fr 220px; gap: 20px; }
.afb-trip-text > div + div { margin-top: 10px; }
.afb-trip-lbl { font-size: 11px; font-weight: 700; color: var(--afb-muted); letter-spacing: .04em; }
.afb-trip-val { font-weight: 600; margin-bottom: 8px; color: var(--afb-text); }
.afb-trip-pin { display: flex; gap: 10px; padding-left: 4px; align-items: flex-start; position: relative; color: var(--afb-text); }
.afb-pin { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.afb-pin-orange { background: #f59e0b; }
.afb-pin-purple { background: #a855f7; }
.afb-trip-eta { color: var(--afb-muted); font-size: 13px; padding-left: 22px; margin-top: 6px; }
.afb-trip-map { width: 100%; height: 200px; border-radius: 8px; background: var(--afb-surface-2); }
.afb-divider { height: 1px; background: var(--afb-border); margin: 16px 0; }
.afb-info-title { margin: 0 0 12px; font-size: 16px; display: flex; justify-content: space-between; align-items: center; color: var(--afb-text); }
.afb-info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.afb-info-grid > div { font-size: 13px; color: var(--afb-text); }
.afb-info-input { width: 100%; border: none; border-bottom: 1px solid transparent; padding: 2px 0; background: transparent; font-family: inherit; font-size: 14px; color: var(--afb-text); }
.afb-info-input:focus { outline: none; border-bottom-color: var(--afb-primary); }
.afb-info-num { font-weight: 600; }

.afb-veh-mini { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; color: var(--afb-text); }
.afb-veh-mini img { width: 60px; height: 40px; object-fit: cover; border-radius: 4px; }
.afb-veh-mini .afb-vm-name { font-weight: 600; color: var(--afb-text); }
.afb-veh-mini .afb-vm-class { color: var(--afb-muted); font-size: 13px; }
.afb-veh-mini .afb-vm-feats { display: flex; gap: 14px; color: var(--afb-muted); font-size: 13px; align-items: center; }

/* ---------- Price overview ---------- */
.afb-price-block { margin-bottom: 14px; }
.afb-price-section { font-weight: 700; margin-bottom: 8px; color: var(--afb-text); }
.afb-price-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; color: var(--afb-text); }
.afb-price-row.is-total { font-weight: 700; padding-top: 8px; border-top: 1px solid var(--afb-border); margin-top: 4px; }

.afb-promo { display: flex; gap: 0; margin-top: 10px; }
.afb-promo input { flex: 1; padding: 10px 12px; border: 1px solid var(--afb-input-border); border-right: none; border-radius: var(--afb-radius) 0 0 var(--afb-radius); font-family: inherit; background: var(--afb-input-bg); color: var(--afb-input-text); }
.afb-promo .afb-btn-flat { border-radius: 0 var(--afb-radius) var(--afb-radius) 0; padding: 10px 18px; }
.afb-promo-msg { font-size: 12px; margin-top: 4px; min-height: 16px; }
.afb-promo-msg.is-ok { color: var(--afb-success); }
.afb-promo-msg.is-err { color: var(--afb-danger); }

/* ---------- Gratuity ---------- */
.afb-grat-block { margin: 18px 0; }
.afb-grat-title { font-size: 11px; font-weight: 700; color: var(--afb-muted); letter-spacing: .05em; text-align: center; margin-bottom: 10px; }
.afb-grat-tiles { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-bottom: 6px; }
.afb-grat-tile, .afb-grat-fullbtn {
	background: var(--afb-primary); border: 1px solid var(--afb-primary); border-radius: var(--afb-radius);
	padding: 10px 6px; cursor: pointer; font-family: inherit; font-size: 13px; text-align: center; color: var(--afb-on-primary);
}
.afb-grat-fullbtn { display: block; width: 100%; margin-top: 6px; padding: 12px; font-weight: 500; }
.afb-grat-tile { display: flex; flex-direction: column; gap: 2px; }
.afb-gt-top { font-weight: 700; font-size: 15px; color: var(--afb-on-primary); }
.afb-gt-bot { color: var(--afb-on-primary); opacity: .85; font-size: 12px; }
.afb-grat-tile.is-active, .afb-grat-fullbtn.is-active { background: var(--afb-primary-dark); border-color: var(--afb-primary-dark); }
.afb-grat-custom-wrap input { width: 100%; padding: 10px 12px; border: 1px solid var(--afb-input-border); border-radius: var(--afb-radius); margin-top: 6px; font-family: inherit; background: var(--afb-input-bg); color: var(--afb-input-text); }

/* ---------- Phone with intl-tel-input ---------- */
.afb-phone-wrap { position: relative; }
.afb-phone-wrap .iti { width: 100%; display: block; }
.afb-phone-wrap input { width: 100%; padding-left: 92px !important; }
.afb-phone-wrap .iti--separate-dial-code .iti__selected-flag { background: var(--afb-input-bg); border-right: 1px solid var(--afb-input-border); border-top-left-radius: var(--afb-radius); border-bottom-left-radius: var(--afb-radius); }
.afb-phone-wrap .iti__country-list { background: var(--afb-input-bg); color: var(--afb-input-text); }
/* When iti is initialised, the wrapper gets the .iti class — hide the floating label
   to avoid overlap with the dial-code chip, and rely on placeholder/aria-label. */
.afb-phone-wrap .iti + label,
.afb-phone-wrap label { left: 96px; }
.afb-phone-wrap input:focus + label,
.afb-phone-wrap input:not(:placeholder-shown) + label { left: 92px; }

/* v2.2.0: Disable floating-label behaviour on selects that already have a
   visible section label above (e.g. Order Type). */
.afb-floating.afb-no-floating-label label { display: none; }
.afb-floating.afb-no-floating-label select { padding: 12px 36px 12px 14px; }

/* v2.2.0: Address autocomplete dropdown (USA Nominatim). */
.afb-addr-wrap { position: relative; }
.afb-addr-suggest {
	position: absolute; z-index: 60; top: 100%; left: 0; right: 0; margin-top: 2px;
	background: var(--afb-input-bg); border: 1px solid var(--afb-input-border);
	border-radius: var(--afb-radius); max-height: 280px; overflow-y: auto;
	box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.afb-addr-suggest-item {
	padding: 10px 12px; cursor: pointer; color: var(--afb-input-text); font-size: 14px;
	border-bottom: 1px solid var(--afb-border); line-height: 1.35;
}
.afb-addr-suggest-item:last-child { border-bottom: none; }
.afb-addr-suggest-item:hover,
.afb-addr-suggest-item.is-active { background: var(--afb-active-bg); color: var(--afb-active-text); }
.afb-addr-suggest-line2 { display: block; font-size: 12px; color: var(--afb-muted); margin-top: 2px; }
.afb-addr-suggest-empty { padding: 10px 12px; color: var(--afb-muted); font-size: 13px; font-style: italic; }
.afb-addr-loading { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--afb-muted); pointer-events: none; }

/* ---------- Payment tabs / radio ---------- */
.afb-pay-tabs { display: flex; gap: 6px; margin: 12px 0; flex-wrap: wrap; }
.afb-pay-tab {
	flex: 1; min-width: 110px; background: var(--afb-input-bg); border: 1px solid var(--afb-input-border); border-radius: var(--afb-radius);
	padding: 10px 8px; cursor: pointer; font-size: 13px; font-family: inherit; color: var(--afb-input-text);
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.afb-pay-tab .afb-radio-dot {
	width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--afb-input-border); display: inline-block; flex-shrink: 0;
}
.afb-pay-tab.is-active { background: var(--afb-active-bg); color: var(--afb-active-text); border-color: var(--afb-primary); font-weight: 600; }
.afb-pay-tab.is-active .afb-radio-dot { border-color: var(--afb-primary); background: var(--afb-primary); box-shadow: inset 0 0 0 2px var(--afb-input-bg); }
.afb-stripe-mount { border: 1px solid var(--afb-input-border); border-radius: var(--afb-radius); padding: 12px; margin-bottom: 8px; background: var(--afb-input-bg); }
.afb-stripe-err { color: var(--afb-danger); font-size: 13px; min-height: 16px; }
.afb-pay-note { color: var(--afb-muted); font-size: 13px; margin: 8px 0; }

/* Wire transfer pane */
.afb-bank-details { background: var(--afb-surface-2); border: 1px solid var(--afb-border); border-radius: var(--afb-card-radius); padding: 14px; margin-top: 8px; }
.afb-bank-title { font-size: 13px; font-weight: 700; color: var(--afb-primary); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.afb-bank-body { background: var(--afb-input-bg); color: var(--afb-input-text); border: 1px solid var(--afb-input-border); border-radius: var(--afb-radius); padding: 12px; margin: 0 0 10px; font-family: Menlo, Consolas, monospace; font-size: 13px; white-space: pre-wrap; overflow-x: auto; }
.afb-wire-upload { margin-top: 10px; }
.afb-wire-upload-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--afb-primary); color: var(--afb-on-primary); border-radius: var(--afb-radius); cursor: pointer; font-weight: 600; font-size: 13px; }
.afb-wire-upload-btn input[type="file"] { display: none; }
.afb-wire-receipt-name { font-size: 13px; color: var(--afb-text); margin-top: 8px; min-height: 18px; }
.afb-wire-receipt-name a { color: var(--afb-primary); margin-left: 6px; }
.afb-captcha { margin: 12px 0; }
.afb-sms-consent { color: var(--afb-muted); font-size: 12px; line-height: 1.5; margin-top: 12px; }

.afb-help {
	margin-top: 14px; padding: 14px;
	background: var(--afb-surface); border: 1px solid var(--afb-border); border-radius: var(--afb-card-radius);
	display: flex; gap: 10px; align-items: center; color: var(--afb-text);
}
.afb-help-lbl { font-size: 11px; font-weight: 700; color: var(--afb-muted); letter-spacing: .04em; }
.afb-help a { color: var(--afb-primary); text-decoration: none; font-weight: 500; }

/* ---------- Success ---------- */
.afb-success {
	background: var(--afb-surface); border: 1px solid var(--afb-success); color: var(--afb-text);
	padding: 30px; border-radius: var(--afb-card-radius); text-align: center;
}
.afb-success-icon {
	width: 56px; height: 56px; border-radius: 50%; background: var(--afb-success); color: #fff;
	margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.afb-success h3 { margin: 0 0 10px; color: var(--afb-text); }
.afb-success-note { margin-top: 12px; padding: 10px; background: rgba(245,158,11,.12); border-radius: var(--afb-radius); color: var(--afb-text); font-size: 13px; }

/* ---------- Modal (time-confirm, etc) ---------- */
.afb-modal-overlay {
	position: fixed; top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0,0,0,.5); z-index: 9998; display: flex; align-items: center; justify-content: center; padding: 20px;
}
.afb-modal {
	background: var(--afb-surface); color: var(--afb-text);
	border-radius: var(--afb-card-radius); padding: 24px; max-width: 420px; width: 100%;
	box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.afb-modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.afb-modal-head h3 { margin: 0; font-size: 18px; }
.afb-modal-close { background: none; border: none; color: var(--afb-muted); font-size: 20px; cursor: pointer; }
.afb-modal-body { margin-bottom: 16px; }
.afb-modal-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* Analog clock */
.afb-clock { display: flex; flex-direction: column; align-items: center; margin: 12px 0; }
.afb-clock-face { position: relative; width: 200px; height: 200px; border-radius: 50%; background: var(--afb-input-bg); border: 4px solid var(--afb-primary); }
.afb-clock-num { position: absolute; font-size: 14px; font-weight: 700; color: var(--afb-input-text); width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; }
.afb-clock-hand { position: absolute; left: 50%; bottom: 50%; transform-origin: bottom center; background: var(--afb-text); border-radius: 4px; }
.afb-clock-hand.hour { width: 4px; height: 50px; margin-left: -2px; }
.afb-clock-hand.minute { width: 3px; height: 75px; margin-left: -1.5px; background: var(--afb-primary); }
.afb-clock-center { position: absolute; top: 50%; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--afb-primary); transform: translate(-50%, -50%); }
.afb-clock-time { margin-top: 12px; font-size: 22px; font-weight: 700; color: var(--afb-text); }

/* Flatpickr dark fix */
.afb-booking.afb-theme-dark .flatpickr-calendar,
.afb-booking.afb-theme-blacktop .flatpickr-calendar,
.afb-booking.afb-theme-auto .flatpickr-calendar {
	background: var(--afb-surface); color: var(--afb-text); border: 1px solid var(--afb-border);
}
.flatpickr-day.afb-fully-booked,
.flatpickr-day.afb-fully-booked.disabled {
	background: rgba(220,38,38,.15) !important; color: var(--afb-danger) !important;
	text-decoration: line-through; cursor: not-allowed !important;
}
.flatpickr-day.afb-low-stock { background: rgba(245,158,11,.15) !important; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
	.afb-confirm-grid { grid-template-columns: 1fr; }
	.afb-veh-card { grid-template-columns: 1fr; }
	.afb-veh-img { height: 200px; }
	.afb-sb-grid { grid-template-columns: 1fr 1fr; }
	.afb-info-grid { grid-template-columns: 1fr 1fr; }
	.afb-trip-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.afb-booking { padding: 12px; font-size: 14px; }
	.afb-step-label { display: none; }
	.afb-step-bar { flex-basis: 30px; }
	.afb-trip-types { max-width: none; }
	.afb-row-2, .afb-row-3 { grid-template-columns: 1fr; }
	.afb-sb-grid, .afb-info-grid { grid-template-columns: 1fr; }
	.afb-grat-tiles { grid-template-columns: 1fr; }
}


/* ---------- v2.2.4 Confirmation Modal ---------- */
.afb-modal {
	position: fixed; inset: 0; z-index: 999999;
	display: flex; align-items: center; justify-content: center; padding: 16px;
}
.afb-modal-backdrop {
	position: absolute; inset: 0; background: rgba(15,23,42,.65);
	backdrop-filter: blur(2px); cursor: pointer;
}
.afb-modal-dialog {
	position: relative; z-index: 1;
	background: var(--afb-surface, #fff); color: var(--afb-text, #111827);
	border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.35);
	width: 100%; max-width: 560px; max-height: 90vh;
	display: flex; flex-direction: column;
	border: 1px solid var(--afb-border, #e5e7eb);
}
.afb-modal-head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 18px 22px; border-bottom: 1px solid var(--afb-border, #e5e7eb);
}
.afb-modal-head h3 { margin: 0; font-size: 18px; font-weight: 700; }
.afb-modal-close {
	background: transparent; border: 0; font-size: 20px; line-height: 1;
	cursor: pointer; color: var(--afb-text-muted, #6b7280); padding: 4px 8px;
}
.afb-modal-close:hover { color: var(--afb-text, #111827); }
.afb-modal-body { padding: 18px 22px; overflow-y: auto; flex: 1; }
.afb-modal-foot {
	display: flex; gap: 10px; justify-content: flex-end;
	padding: 14px 22px; border-top: 1px solid var(--afb-border, #e5e7eb);
	background: var(--afb-surface-2, #f9fafb); border-radius: 0 0 14px 14px;
}
.afb-modal-foot .afb-btn { min-width: 130px; }
.afb-confirm-section { margin-bottom: 16px; }
.afb-confirm-section:last-child { margin-bottom: 0; }
.afb-confirm-section h4 {
	margin: 0 0 8px; font-size: 12px; text-transform: uppercase;
	letter-spacing: .06em; color: var(--afb-text-muted, #6b7280); font-weight: 700;
}
.afb-confirm-section dl {
	margin: 0; display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; font-size: 14px;
}
.afb-confirm-section dt { color: var(--afb-text-muted, #6b7280); font-weight: 500; }
.afb-confirm-section dd { margin: 0; font-weight: 600; word-break: break-word; }
.afb-confirm-total {
	display: flex; justify-content: space-between; align-items: center;
	padding: 12px 14px; margin-top: 8px;
	background: var(--afb-brand, #c9933a); color: #fff;
	border-radius: 8px; font-weight: 700; font-size: 16px;
}
@media (max-width: 560px) {
	.afb-modal-dialog { max-height: 95vh; border-radius: 10px; }
	.afb-confirm-section dl { grid-template-columns: 1fr; gap: 2px 0; }
	.afb-confirm-section dd { margin-bottom: 6px; }
	.afb-modal-foot { flex-direction: column-reverse; }
	.afb-modal-foot .afb-btn { width: 100%; }
}

/* ---------- v2.2.4 Phone validation error state ---------- */
.afb-phone-wrap.afb-phone-error input[type="tel"] {
	border-color: var(--afb-danger, #dc2626) !important;
}
.afb-phone-err-msg { color: var(--afb-danger, #dc2626); font-size: 12px; margin: 4px 0 0; }
.iti { width: 100%; }


/* ============================================================ */
/* v2.2.7 — Fare Calculation breakdown panel                    */
/* ============================================================ */
.afb-fare-calc {
	border: 1px solid var(--afb-border, rgba(255,255,255,.12));
	background: color-mix(in srgb, var(--afb-input-bg) 60%, transparent);
	border-radius: 10px;
	padding: 14px 16px;
	margin-bottom: 14px;
}
.afb-fare-calc-title {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--afb-text-muted, #9ca3af);
	margin-bottom: 10px;
}
.afb-fare-calc-route {
	display: flex; flex-direction: column; gap: 6px;
	margin-bottom: 10px; padding-bottom: 10px;
	border-bottom: 1px dashed var(--afb-border, rgba(255,255,255,.1));
	font-size: 13px;
}
.afb-fare-route-row { display: flex; align-items: flex-start; gap: 8px; }
.afb-fare-pin {
	width: 8px; height: 8px; border-radius: 50%;
	flex: 0 0 8px; margin-top: 6px;
}
.afb-fare-pin-from { background: #f59e0b; }
.afb-fare-pin-to   { background: #a855f7; }
.afb-fare-calc-distance {
	display: flex; justify-content: space-between;
	font-size: 13px; margin-bottom: 8px;
	color: var(--afb-text-muted, #9ca3af);
}
.afb-fare-calc-distance span:last-child { color: var(--afb-text); font-weight: 600; }
.afb-fare-calc-lines { display: flex; flex-direction: column; gap: 8px; }
.afb-fare-line { font-size: 13px; }
.afb-fare-line-main {
	display: flex; justify-content: space-between; align-items: baseline;
	gap: 12px;
}
.afb-fare-line-lbl { color: var(--afb-text); }
.afb-fare-line-amt { font-weight: 700; color: var(--afb-text); white-space: nowrap; }
.afb-fare-line-detail {
	font-size: 11px;
	color: var(--afb-text-muted, #9ca3af);
	margin-top: 2px;
}
.afb-fare-calc-subtotal {
	display: flex; justify-content: space-between;
	margin-top: 10px; padding-top: 10px;
	border-top: 1px solid var(--afb-border, rgba(255,255,255,.12));
	font-size: 14px; font-weight: 700;
}

/* ============================================================ */
/* v2.2.7 — Mobile fix: Trip Type tabs cropping on narrow screens */
/* ============================================================ */
@media (max-width: 560px) {
	.afb-trip-types { max-width: none; width: 100%; }
	.afb-tt-btn {
		padding: 10px 6px;
		font-size: 12px;
		gap: 4px;
		min-width: 0;
		white-space: nowrap;
		letter-spacing: 0;
	}
	.afb-tt-ic { display: none; } /* drop the icon on small screens to free up width */
}
@media (max-width: 380px) {
	.afb-tt-btn {
		padding: 9px 4px;
		font-size: 11px;
	}
}

/* Pricing meta box — make the wide blocks span both columns */
.afb-pricing-block-wide {
	background: rgba(0,0,0,.02);
	border-color: rgba(0,0,0,.12);
}
