/* ============================================================
   PWD Taxi Fare Calculator — Public / Frontend Styles v1.0.2
   All colours driven by CSS custom properties set via PHP.
   ============================================================ */

/* ── CSS Variable Defaults (overridden by PHP inline :root block) ── */
:root {
	--pwd-tfc-font:                      inherit;
	--pwd-tfc-radius:                    12px;
	--pwd-tfc-body-text:                 #1c1309;
	--pwd-tfc-muted:                     #9a7c68;
	--pwd-tfc-panel-bg:                  #ffffff;
	--pwd-tfc-panel-border:              #e8ddd5;

	--pwd-tfc-tab-bar-bg:                #5c3d1e;
	--pwd-tfc-tab-inactive-bg:           transparent;
	--pwd-tfc-tab-inactive-text:         rgba(255,255,255,0.65);
	--pwd-tfc-tab-active-text:           #f97316;
	--pwd-tfc-tab-active-indicator:      #f97316;
	--pwd-tfc-tab-active-bg:             rgba(249,115,22,0.12);
	--pwd-tfc-tab-hover-bg:              rgba(255,255,255,0.08);

	--pwd-tfc-step-badge-bg:             #f97316;
	--pwd-tfc-step-badge-text:           #ffffff;
	--pwd-tfc-step-title-color:          #5c3d1e;

	--pwd-tfc-input-bg:                  #ffffff;
	--pwd-tfc-input-border:              #e8ddd5;
	--pwd-tfc-input-text:                #1c1309;
	--pwd-tfc-input-focus-border:        #f97316;
	--pwd-tfc-input-focus-ring:          rgba(249,115,22,0.18);
	--pwd-tfc-field-label-color:         #5c3d1e;
	--pwd-tfc-required-star-color:       #c2410c;
	--pwd-tfc-input-radius:              8px;
	--pwd-tfc-swap-btn-bg:               #f97316;
	--pwd-tfc-swap-btn-icon:             #ffffff;
	--pwd-tfc-swap-btn-hover-bg:         #c2410c;

	--pwd-tfc-autocomplete-bg:           #ffffff;
	--pwd-tfc-autocomplete-border:       #f97316;
	--pwd-tfc-autocomplete-text:         #1c1309;
	--pwd-tfc-autocomplete-hover-bg:     #fef9f5;
	--pwd-tfc-autocomplete-hover-text:   #5c3d1e;

	--pwd-tfc-route-bar-bg:              #fef9f5;
	--pwd-tfc-route-bar-border:          #e8ddd5;
	--pwd-tfc-route-bar-data-color:      #5c3d1e;
	--pwd-tfc-route-bar-label-color:     #9a7c68;

	--pwd-tfc-map-border:                #e8ddd5;
	--pwd-tfc-map-radius:                12px;
	--pwd-tfc-map-height:                300px;

	--pwd-tfc-calc-btn-bg:               #f97316;
	--pwd-tfc-calc-btn-text:             #ffffff;
	--pwd-tfc-calc-btn-hover-bg:         #ea580c;
	--pwd-tfc-calc-btn-border:           none;
	--pwd-tfc-calc-btn-radius:           12px;

	--pwd-tfc-vehicle-card-bg:           #ffffff;
	--pwd-tfc-vehicle-card-border:       #e8ddd5;
	--pwd-tfc-vehicle-card-sel-bg:       #fff8f1;
	--pwd-tfc-vehicle-card-sel-border:   #f97316;
	--pwd-tfc-vehicle-name-color:        #5c3d1e;
	--pwd-tfc-vehicle-fare-color:        #f97316;
	--pwd-tfc-vehicle-pax-color:         #9a7c68;
	--pwd-tfc-vehicle-breakdown-color:   #9a7c68;
	--pwd-tfc-vehicle-checkmark-bg:      #f97316;
	--pwd-tfc-vehicle-checkmark-text:    #ffffff;
	--pwd-tfc-vehicle-card-radius:       12px;

	--pwd-tfc-fare-bg:                   #fef9f5;
	--pwd-tfc-fare-border:               #e8ddd5;
	--pwd-tfc-fare-title-color:          #5c3d1e;
	--pwd-tfc-fare-label-color:          #9a7c68;
	--pwd-tfc-fare-value-color:          #1c1309;
	--pwd-tfc-fare-total-label-color:    #5c3d1e;
	--pwd-tfc-fare-total-value-color:    #f97316;
	--pwd-tfc-fare-divider-color:        #5c3d1e;
	--pwd-tfc-fare-radius:               12px;

	--pwd-tfc-form-label-color:          #5c3d1e;
	--pwd-tfc-form-input-bg:             #ffffff;
	--pwd-tfc-form-input-border:         #e8ddd5;
	--pwd-tfc-form-input-text:           #1c1309;
	--pwd-tfc-form-input-focus-border:   #f97316;
	--pwd-tfc-form-input-focus-ring:     rgba(249,115,22,0.18);
	--pwd-tfc-form-input-radius:         8px;
	--pwd-tfc-form-section-border:       #e8ddd5;
	--pwd-tfc-form-heading-color:        #5c3d1e;

	--pwd-tfc-submit-btn-bg:             #5c3d1e;
	--pwd-tfc-submit-btn-text:           #ffffff;
	--pwd-tfc-submit-btn-hover-bg:       #f97316;
	--pwd-tfc-submit-btn-border:         #5c3d1e;
	--pwd-tfc-submit-btn-radius:         12px;

	--pwd-tfc-success-bg:                #f0fdf4;
	--pwd-tfc-success-border:            #86efac;
	--pwd-tfc-success-title-color:       #166534;
	--pwd-tfc-success-ref-bg:            #dcfce7;
	--pwd-tfc-success-ref-text:          #166534;

	--pwd-tfc-lookup-bg:                 #ffffff;
	--pwd-tfc-lookup-result-bg:          #fef9f5;
	--pwd-tfc-lookup-result-border:      #e8ddd5;
	--pwd-tfc-lookup-label-color:        #9a7c68;
	--pwd-tfc-lookup-value-color:        #1c1309;

	/* Legacy / internal */
	--pwd-tfc-transition:    all .22s cubic-bezier(.4,0,.2,1);
	--pwd-tfc-shadow:        0 4px 24px rgba(92,61,30,.10);
	--pwd-tfc-shadow-lg:     0 8px 40px rgba(92,61,30,.15);
}

/* ── Wrapper ── */
.pwd-tfc-wrap {
	font-family: var(--pwd-tfc-font);
	color: var(--pwd-tfc-body-text);
	max-width: 960px;
	margin: 0 auto;
	box-sizing: border-box;
}
.pwd-tfc-wrap *, .pwd-tfc-wrap *::before, .pwd-tfc-wrap *::after {
	box-sizing: border-box;
}

/* ── Service Tabs ── */
.pwd-tfc-service-tabs {
	display: flex;
	border-radius: var(--pwd-tfc-radius) var(--pwd-tfc-radius) 0 0;
	overflow: hidden;
	background: var(--pwd-tfc-tab-bar-bg);
}
.pwd-tfc-service-tab {
	flex: 1;
	padding: 18px 24px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	color: var(--pwd-tfc-tab-inactive-text);
	border: none;
	background: var(--pwd-tfc-tab-inactive-bg);
	border-bottom: 3px solid transparent;
	transition: var(--pwd-tfc-transition);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
.pwd-tfc-service-tab:hover {
	color: rgba(255,255,255,.9);
	background: var(--pwd-tfc-tab-hover-bg);
}
.pwd-tfc-service-tab.active {
	color: var(--pwd-tfc-tab-active-text);
	border-bottom-color: var(--pwd-tfc-tab-active-indicator);
	background: var(--pwd-tfc-tab-active-bg);
}
/* Themes style <button> aggressively (often with #ID-prefixed rules that outrank
   class selectors) — re-assert every tab state so hover/active always render. */
.pwd-tfc-wrap .pwd-tfc-service-tabs button.pwd-tfc-service-tab {
	-webkit-appearance: none !important;
	appearance: none !important;
	border: none !important;
	border-bottom: 3px solid transparent !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	text-shadow: none !important;
	background: var(--pwd-tfc-tab-inactive-bg, transparent) !important;
	color: var(--pwd-tfc-tab-inactive-text, rgba(255,255,255,0.65)) !important;
}
.pwd-tfc-wrap .pwd-tfc-service-tabs button.pwd-tfc-service-tab:hover:not(.active) {
	background: var(--pwd-tfc-tab-hover-bg, rgba(255,255,255,0.08)) !important;
	color: rgba(255,255,255,0.9) !important;
}
.pwd-tfc-wrap .pwd-tfc-service-tabs button.pwd-tfc-service-tab.active {
	background: var(--pwd-tfc-tab-active-bg, rgba(249,115,22,0.12)) !important;
	color: var(--pwd-tfc-tab-active-text, #f97316) !important;
	border-bottom-color: var(--pwd-tfc-tab-active-indicator, #f97316) !important;
}
.pwd-tfc-service-icon { font-size: 20px; line-height: 1; }

/* ── Calculator Panel ── */
.pwd-tfc-panel {
	background: var(--pwd-tfc-panel-bg);
	border-radius: 0 0 var(--pwd-tfc-radius) var(--pwd-tfc-radius);
	box-shadow: var(--pwd-tfc-shadow);
	border: 1px solid var(--pwd-tfc-panel-border);
	overflow: hidden;
}
.pwd-tfc-service-panel { display: none; padding: 32px; }
.pwd-tfc-service-panel.active { display: block; }

/* ── Step Headings ── */
.pwd-tfc-step-heading {
	font-size: 15px;
	font-weight: 700;
	color: var(--pwd-tfc-step-title-color);
	margin: 0 0 18px;
	display: flex;
	align-items: center;
	gap: 8px;
	line-height: 1;
}
.pwd-tfc-step-badge {
	background: var(--pwd-tfc-step-badge-bg);
	color: var(--pwd-tfc-step-badge-text);
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 900;
	flex-shrink: 0;
	line-height: 1;
}

/* ── Address Row ── */
.pwd-tfc-address-row {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 14px;
	/* align-items: center so swap button centres with both inputs,
	   then we push it down by the label height (~27px) using margin-top */
	align-items: end;
	margin-bottom: 24px;
}
.pwd-tfc-address-swap,
.pwd-tfc-return-address-swap {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--pwd-tfc-swap-btn-bg);
	border: none;
	cursor: pointer;
	color: var(--pwd-tfc-swap-btn-icon);
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: var(--pwd-tfc-transition);
	flex-shrink: 0;
	/* Shift up by half the difference between input height (48px) and button (42px) = 3px
	   so the button's centre aligns with the input's centre */
	margin-bottom: 3px;
}
.pwd-tfc-address-swap:hover,
.pwd-tfc-return-address-swap:hover {
	background: var(--pwd-tfc-swap-btn-hover-bg);
	transform: rotate(180deg) scale(1.08);
}
/* Themes commonly style all <button> elements (border, square corners, own bg),
   which wins over the class rules above. Re-assert the swap button inside our
   wrapper at higher specificity so it always renders as our round icon button.
   Both the route and return-trip swaps carry .pwd-tfc-address-swap, so they are
   styled by the exact same rule and cannot drift apart. */
.pwd-tfc-wrap button.pwd-tfc-address-swap {
	-webkit-appearance: none !important;
	appearance: none !important;
	width: 42px !important;
	height: 42px !important;
	min-width: 42px !important;
	min-height: 42px !important;
	padding: 0 !important;
	border: none !important;
	outline: none !important;
	border-radius: 50% !important;
	background: var(--pwd-tfc-swap-btn-bg, #f97316) !important;
	background-image: none !important;
	color: var(--pwd-tfc-swap-btn-icon, #fff) !important;
	font-size: 18px !important;
	line-height: 1 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	box-shadow: none !important;
	text-shadow: none !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	/* Alignment must be locked too: themes add their own margins to <button>
	   and <input>, which sinks the swap below the field row. Centre the button
	   in its grid cell (verified against BeTheme via devtools). */
	align-self: center !important;
	margin: 0 0 3px !important;
	position: relative !important;
	top: 0 !important;
	float: none !important;
}
/* Theme input margins are the other half of the misalignment: if the theme
   gives inputs a bottom margin, the field's visual bottom no longer matches
   the grid cell bottom the swap button aligns to. Neutralise it. */
.pwd-tfc-wrap .pwd-tfc-address-field input {
	margin: 0 !important;
}
.pwd-tfc-wrap button.pwd-tfc-address-swap:hover {
	background: var(--pwd-tfc-swap-btn-hover-bg, #c2410c) !important;
	color: var(--pwd-tfc-swap-btn-icon, #fff) !important;
}

/* ── Return Trip ── */
.pwd-tfc-return-trip-toggle-row {
	margin-bottom: 18px;
	padding: 13px 16px;
	background: var(--pwd-tfc-route-bar-bg, #fef9f5);
	border: 1.5px solid var(--pwd-tfc-input-focus-border, #f97316);
	border-radius: var(--pwd-tfc-radius, 12px);
}
/* Checkbox and text on ONE line. `.pwd-tfc-field label` sets display:block at a
   higher specificity than `.pwd-tfc-checkbox-label`, which is what stacked them,
   so re-assert flex from inside the wrapper. Typography matches field labels. */
.pwd-tfc-wrap .pwd-tfc-return-trip-toggle-row .pwd-tfc-checkbox-label {
	display: flex !important;
	align-items: center;
	gap: 10px;
	margin: 0 !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	color: var(--pwd-tfc-field-label-color, #5c3d1e);
	letter-spacing: .2px;
	line-height: 1.3;
	cursor: pointer;
}
.pwd-tfc-wrap .pwd-tfc-return-trip-toggle-row input[type="checkbox"] {
	-webkit-appearance: checkbox;
	appearance: checkbox;
	display: inline-block !important;
	width: 18px !important;
	height: 18px !important;
	min-width: 18px;
	margin: 0 !important;
	padding: 0 !important;
	flex: 0 0 auto;
	accent-color: var(--pwd-tfc-input-focus-border, #f97316);
}
.pwd-tfc-return-trip-section {
	background: var(--pwd-tfc-panel-bg, #fff8f1);
	border: 1.5px dashed var(--pwd-tfc-panel-border, #fed7aa);
	border-radius: var(--pwd-tfc-radius, 12px);
	padding: 18px 20px;
	margin: 0 0 20px;
}
.pwd-tfc-return-trip-heading {
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 700;
	color: var(--pwd-tfc-primary);
}
.pwd-tfc-return-trip-hint {
	margin: 0 0 16px;
	font-size: 12px;
	color: var(--pwd-tfc-muted);
}

/* ── Priced field tags ── */
.pwd-tfc-field-price-tag {
	font-weight: 600;
	color: var(--pwd-tfc-secondary, #f97316);
	font-size: 12px;
}

/* ── Address / Route Fields ── */
.pwd-tfc-field { margin-bottom: 18px; }
.pwd-tfc-field label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: var(--pwd-tfc-field-label-color);
	margin-bottom: 7px;
	letter-spacing: .2px;
}
.pwd-tfc-required { color: var(--pwd-tfc-required-star-color); margin-left: 2px; }

/* Route-step inputs (address fields, date, time) */
.pwd-tfc-field input[type="text"],
.pwd-tfc-field input[type="email"],
.pwd-tfc-field input[type="tel"],
.pwd-tfc-field input[type="number"],
.pwd-tfc-field input[type="date"],
.pwd-tfc-field input[type="time"],
.pwd-tfc-field select,
.pwd-tfc-field textarea,
.pwd-tfc-address-field input {
	width: 100%;
	padding: 13px 16px;
	border: 2px solid var(--pwd-tfc-input-border);
	border-radius: var(--pwd-tfc-input-radius);
	font-size: 14px;
	color: var(--pwd-tfc-input-text);
	background: var(--pwd-tfc-input-bg);
	transition: var(--pwd-tfc-transition);
	outline: none;
	font-family: var(--pwd-tfc-font);
}
.pwd-tfc-field input:focus,
.pwd-tfc-field select:focus,
.pwd-tfc-field textarea:focus,
.pwd-tfc-address-field input:focus {
	border-color: var(--pwd-tfc-input-focus-border);
	box-shadow: 0 0 0 4px var(--pwd-tfc-input-focus-ring);
}
.pwd-tfc-field textarea { resize: vertical; min-height: 90px; }

/* Address field — flex row: [icon][input]
   The icon is a normal flex child at a fixed width, the input grows to fill the rest.
   This is immune to emoji line-height quirks because it uses flex alignment, not
   text metrics. No absolute positioning needed. */
.pwd-tfc-address-field {
	display: flex;
	align-items: center;
	position: relative;         /* kept for autocomplete dropdown positioning */
}

.pwd-tfc-address-field .pwd-tfc-field-icon {
	flex-shrink: 0;
	width: 42px;                /* same as old padding-left so input text starts in same spot */
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	line-height: 1;
	pointer-events: none;
	position: static;           /* NOT absolute — in normal flex flow */
	z-index: auto;
}

/* Input fills the rest of the row — no padding-left override needed */
.pwd-tfc-address-field input[type="text"],
.pwd-tfc-wrap .pwd-tfc-address-field input {
	flex: 1;
	min-width: 0;
	padding-left: 12px !important;  /* small left pad since icon is a flex sibling */
}

/* Autocomplete dropdown */
.pwd-tfc-autocomplete-list {
	position: absolute;
	top: calc(100% + 4px);
	left: 0; right: 0;
	background: var(--pwd-tfc-autocomplete-bg);
	border: 2px solid var(--pwd-tfc-autocomplete-border);
	border-radius: var(--pwd-tfc-input-radius);
	box-shadow: var(--pwd-tfc-shadow-lg);
	z-index: 9999;
	max-height: 240px;
	overflow-y: auto;
	list-style: none;
	margin: 0;
	padding: 6px 0;
}
.pwd-tfc-autocomplete-list li {
	padding: 11px 16px;
	font-size: 13px;
	cursor: pointer;
	color: var(--pwd-tfc-autocomplete-text);
	transition: background .15s;
	line-height: 1.4;
}
.pwd-tfc-autocomplete-list li:hover {
	background: var(--pwd-tfc-autocomplete-hover-bg);
	color: var(--pwd-tfc-autocomplete-hover-text);
}

/* ── Form Grid ── */
.pwd-tfc-form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pwd-tfc-form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* ── Route Info Bar ── */
.pwd-tfc-route-info {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 14px 20px;
	background: var(--pwd-tfc-route-bar-bg);
	border: 1.5px solid var(--pwd-tfc-route-bar-border);
	border-radius: calc(var(--pwd-tfc-radius) * .7);
	margin-bottom: 24px;
	flex-wrap: wrap;
}
.pwd-tfc-route-info-item { display: flex; align-items: center; gap: 8px; }
.pwd-tfc-route-info-item .ri-icon { font-size: 18px; width: 28px; text-align: center; }
.pwd-tfc-route-info-item .ri-data {
	font-weight: 800;
	font-size: 16px;
	color: var(--pwd-tfc-route-bar-data-color);
}
.pwd-tfc-route-info-item .ri-label {
	font-size: 11px;
	color: var(--pwd-tfc-route-bar-label-color);
	text-transform: uppercase;
	letter-spacing: .5px;
}

/* ── Map ── */
.pwd-tfc-map-wrap {
	border-radius: var(--pwd-tfc-map-radius);
	overflow: hidden;
	border: 2px solid var(--pwd-tfc-map-border);
	margin-bottom: 28px;
}
#pwd-tfc-map, #pwd-tfc-map-shuttle {
	height: var(--pwd-tfc-map-height);
	width: 100%;
}

/* ── Calculate Button ── */
.pwd-tfc-calculate-btn {
	width: 100%;
	padding: 16px 24px;
	background: var(--pwd-tfc-calc-btn-bg);
	color: var(--pwd-tfc-calc-btn-text);
	border: var(--pwd-tfc-calc-btn-border);
	border-radius: var(--pwd-tfc-calc-btn-radius);
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: var(--pwd-tfc-transition);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-family: var(--pwd-tfc-font);
	letter-spacing: .3px;
	margin-bottom: 20px;
}
.pwd-tfc-calculate-btn:hover {
	background: var(--pwd-tfc-calc-btn-hover-bg);
	transform: translateY(-1px);
	box-shadow: var(--pwd-tfc-shadow);
}
.pwd-tfc-calculate-btn:active { transform: translateY(0); }
.pwd-tfc-calculate-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── Vehicle Cards ── */
.pwd-tfc-vehicles-section { margin-bottom: 28px; }
.pwd-tfc-vehicles-section h3 {
	font-size: 15px;
	font-weight: 700;
	color: var(--pwd-tfc-step-title-color);
	margin: 0 0 14px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.pwd-tfc-vehicle-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 14px;
}
.pwd-tfc-vehicle-option {
	border: 2px solid var(--pwd-tfc-vehicle-card-border);
	border-radius: var(--pwd-tfc-vehicle-card-radius);
	padding: 18px;
	cursor: pointer;
	transition: var(--pwd-tfc-transition);
	position: relative;
	background: var(--pwd-tfc-vehicle-card-bg);
}
.pwd-tfc-vehicle-option:hover {
	border-color: var(--pwd-tfc-vehicle-card-sel-border);
	box-shadow: var(--pwd-tfc-shadow);
	transform: translateY(-2px);
}
.pwd-tfc-vehicle-option.selected {
	border-color: var(--pwd-tfc-vehicle-card-sel-border);
	background: var(--pwd-tfc-vehicle-card-sel-bg);
	box-shadow: var(--pwd-tfc-shadow);
}
.pwd-tfc-vehicle-option.selected::after {
	content: '✓';
	position: absolute;
	top: 12px; right: 14px;
	width: 24px; height: 24px;
	background: var(--pwd-tfc-vehicle-checkmark-bg);
	color: var(--pwd-tfc-vehicle-checkmark-text);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 800;
}
.pwd-tfc-vehicle-emoji { font-size: 32px; margin-bottom: 10px; line-height: 1; }
.pwd-tfc-vehicle-name { font-size: 14px; font-weight: 700; color: var(--pwd-tfc-vehicle-name-color); margin-bottom: 4px; }
.pwd-tfc-vehicle-pax { font-size: 12px; color: var(--pwd-tfc-vehicle-pax-color); margin-bottom: 10px; display: flex; align-items: center; gap: 4px; }
.pwd-tfc-vehicle-fare { font-size: 22px; font-weight: 900; color: var(--pwd-tfc-vehicle-fare-color); line-height: 1; }
.pwd-tfc-vehicle-fare-from { font-size: 11px; color: var(--pwd-tfc-vehicle-pax-color); font-weight: 500; margin-bottom: 2px; }
.pwd-tfc-vehicle-breakdown {
	font-size: 11px;
	color: var(--pwd-tfc-vehicle-breakdown-color);
	margin-top: 6px;
	padding-top: 8px;
	border-top: 1px solid var(--pwd-tfc-vehicle-card-border);
}
.pwd-tfc-vehicle-loading { display: flex; align-items: center; gap: 8px; color: var(--pwd-tfc-muted); font-size: 13px; }

/* ── Fare Breakdown ── */
.pwd-tfc-fare-breakdown {
	background: var(--pwd-tfc-fare-bg);
	border: 1.5px solid var(--pwd-tfc-fare-border);
	border-radius: var(--pwd-tfc-fare-radius);
	padding: 22px;
	margin-bottom: 24px;
}
.pwd-tfc-fare-breakdown h4 {
	margin: 0 0 16px;
	font-size: 14px;
	font-weight: 700;
	color: var(--pwd-tfc-fare-title-color);
}
.pwd-tfc-fare-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 0;
	font-size: 13px;
	border-bottom: 1px solid var(--pwd-tfc-fare-border);
}
.pwd-tfc-fare-row:last-child { border-bottom: none; }
.pwd-tfc-fare-row.total {
	padding-top: 14px;
	margin-top: 6px;
	border-top: 2px solid var(--pwd-tfc-fare-divider-color);
	border-bottom: none;
}
.pwd-tfc-fare-row.total .fare-label { font-size: 15px; font-weight: 800; color: var(--pwd-tfc-fare-total-label-color); }
.pwd-tfc-fare-row.total .fare-value { font-size: 24px; font-weight: 900; color: var(--pwd-tfc-fare-total-value-color); }
.pwd-tfc-fare-row .fare-label { color: var(--pwd-tfc-fare-label-color); }
.pwd-tfc-fare-row .fare-value { font-weight: 700; color: var(--pwd-tfc-fare-value-color); }
.pwd-tfc-surge-badge {
	display: inline-flex; align-items: center; gap: 4px;
	background: #fef3c7; color: #92400e;
	padding: 3px 9px; border-radius: 100px;
	font-size: 11px; font-weight: 700;
	/* Breathing room under the fare figure, which sits tight on line-height:1 */
	margin-top: 10px;
}
/* Route limits shown next to the passenger count (fixed routes) */
.pwd-tfc-vehicle-limits {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	font-size: 12px;
	color: var(--pwd-tfc-vehicle-pax-color);
	margin: 4px 0 12px;
}

/* ── Booking Section (Step 3) ── */
.pwd-tfc-booking-section {
	border-top: 2px solid var(--pwd-tfc-form-section-border);
	padding-top: 28px;
	margin-top: 8px;
}
.pwd-tfc-booking-section > h3 {
	font-size: 15px;
	font-weight: 700;
	color: var(--pwd-tfc-step-title-color);
	margin: 0 0 20px;
	display: flex;
	align-items: center;
	gap: 8px;
}

/* ── Booking Form Fields (Step 3 inputs — styled independently) ── */
.pwd-tfc-booking-form .pwd-tfc-field label {
	color: var(--pwd-tfc-form-label-color);
}
.pwd-tfc-booking-form .pwd-tfc-field input,
.pwd-tfc-booking-form .pwd-tfc-field select,
.pwd-tfc-booking-form .pwd-tfc-field textarea {
	background: var(--pwd-tfc-form-input-bg);
	border-color: var(--pwd-tfc-form-input-border);
	color: var(--pwd-tfc-form-input-text);
	border-radius: var(--pwd-tfc-form-input-radius);
}
.pwd-tfc-booking-form .pwd-tfc-field input:focus,
.pwd-tfc-booking-form .pwd-tfc-field select:focus,
.pwd-tfc-booking-form .pwd-tfc-field textarea:focus {
	border-color: var(--pwd-tfc-form-input-focus-border);
	box-shadow: 0 0 0 4px var(--pwd-tfc-form-input-focus-ring);
}
.pwd-tfc-booking-form .pwd-tfc-field-heading {
	color: var(--pwd-tfc-form-heading-color);
}
.pwd-tfc-booking-form .pwd-tfc-field-divider {
	border-color: var(--pwd-tfc-form-section-border);
}

/* ── Radio / Checkbox ── */
.pwd-tfc-radio-group { display: flex; flex-direction: column; gap: 8px; }
/* Inline option layout (side by side) for radio / checkbox groups */
.pwd-tfc-radio-group.pwd-tfc-inline,
.pwd-tfc-checkbox-group.pwd-tfc-inline { flex-direction: row; flex-wrap: wrap; gap: 8px 18px; }
/* Option labels sit INSIDE `.pwd-tfc-field`, and `.pwd-tfc-field label`
   (0,1,1) out-specifies a bare `.pwd-tfc-radio-label` (0,1,0) — which forced
   display:block and stacked the control above its text. Scoping these to
   `.pwd-tfc-field` raises them to (0,2,0) so they win on specificity instead
   of needing !important. Same fix as the return-trip toggle row above. */
.pwd-tfc-field .pwd-tfc-radio-label,
.pwd-tfc-field .pwd-tfc-checkbox-label,
.pwd-tfc-radio-label,
.pwd-tfc-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-weight: normal;
	cursor: pointer;
	font-size: 14px;
	margin-bottom: 0;
	line-height: 1.45;
}
/* Keep the control optically aligned with the FIRST line when the text wraps
   to two lines (e.g. a terms & conditions sentence with a link). */
.pwd-tfc-field .pwd-tfc-radio-label input[type="radio"],
.pwd-tfc-field .pwd-tfc-checkbox-label input[type="checkbox"],
.pwd-tfc-radio-label input[type="radio"],
.pwd-tfc-checkbox-label input[type="checkbox"] {
	accent-color: var(--pwd-tfc-form-input-focus-border);
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	margin: 0;
	position: relative;
	top: 2px;
}
.pwd-tfc-checkbox-group { display: flex; flex-direction: column; gap: 8px; }
/* Links inside option labels (terms & conditions, info links). */
.pwd-tfc-field .pwd-tfc-checkbox-label a,
.pwd-tfc-field .pwd-tfc-radio-label a,
.pwd-tfc-field label a {
	color: var(--pwd-tfc-calc-btn-bg);
	text-decoration: underline;
}

/* ── Field Heading / Divider (Form Builder types) ── */
.pwd-tfc-field-heading {
	font-size: 14px; font-weight: 800;
	color: var(--pwd-tfc-form-heading-color);
	padding: 12px 0 6px;
	border-bottom: 2px solid var(--pwd-tfc-form-section-border);
	margin-bottom: 16px;
	grid-column: 1 / -1;
}
.pwd-tfc-field-divider {
	border: none;
	border-top: 1px solid var(--pwd-tfc-form-section-border);
	margin: 8px 0 16px;
	grid-column: 1 / -1;
}

/* ── Terms Row ── */
.pwd-tfc-terms-row {
	display: flex; align-items: flex-start; gap: 10px;
	font-size: 13px; color: var(--pwd-tfc-muted); margin-bottom: 18px;
}
.pwd-tfc-terms-row a { color: var(--pwd-tfc-calc-btn-bg); text-decoration: underline; }

/* ── Submit Button ── */
.pwd-tfc-submit-btn {
	width: 100%;
	padding: 16px 24px;
	background: var(--pwd-tfc-submit-btn-bg);
	color: var(--pwd-tfc-submit-btn-text);
	border: 2px solid var(--pwd-tfc-submit-btn-border);
	border-radius: var(--pwd-tfc-submit-btn-radius);
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: var(--pwd-tfc-transition);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-family: var(--pwd-tfc-font);
}
.pwd-tfc-submit-btn:hover {
	background: var(--pwd-tfc-submit-btn-hover-bg);
	border-color: var(--pwd-tfc-submit-btn-hover-bg);
	transform: translateY(-1px);
	box-shadow: var(--pwd-tfc-shadow);
}
.pwd-tfc-submit-btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/* ── Success State ── */
.pwd-tfc-success-box {
	text-align: center;
	padding: 48px 32px;
	background: var(--pwd-tfc-success-bg);
	border: 2px solid var(--pwd-tfc-success-border);
	border-radius: var(--pwd-tfc-radius);
}
.pwd-tfc-success-icon { font-size: 56px; margin-bottom: 16px; line-height: 1; }
.pwd-tfc-success-box h3 { margin: 0 0 8px; font-size: 22px; font-weight: 800; color: var(--pwd-tfc-success-title-color); }
.pwd-tfc-success-box p { margin: 0 0 6px; color: var(--pwd-tfc-muted); font-size: 14px; }
.pwd-tfc-booking-ref-display {
	display: inline-block;
	background: var(--pwd-tfc-success-ref-bg);
	color: var(--pwd-tfc-success-ref-text);
	padding: 8px 20px;
	border-radius: 100px;
	font-weight: 800;
	font-size: 18px;
	margin: 12px 0 20px;
	letter-spacing: 1px;
}

/* ── Notices ── */
.pwd-tfc-notice { padding: 14px 18px; border-radius: calc(var(--pwd-tfc-radius) * .5); font-size: 14px; margin-bottom: 16px; }
.pwd-tfc-notice-error   { background: #fef2f2; border: 1.5px solid #fca5a5; color: #991b1b; }
.pwd-tfc-notice-info    { background: #eff6ff; border: 1.5px solid #93c5fd; color: #1d4ed8; }
.pwd-tfc-notice-warning { background: #fffbeb; border: 1.5px solid #fcd34d; color: #92400e; }

/* ── Spinner ── */
.pwd-tfc-spinner {
	display: inline-block; width: 18px; height: 18px;
	border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff;
	border-radius: 50%; animation: pwd-tfc-spin .7s linear infinite;
}
.pwd-tfc-spinner.dark { border-color: rgba(92,61,30,.25); border-top-color: var(--pwd-tfc-calc-btn-bg); }
@keyframes pwd-tfc-spin { to { transform: rotate(360deg); } }

/* ── Booking Lookup ── */
.pwd-tfc-lookup-wrap {
	background: var(--pwd-tfc-lookup-bg);
	border-radius: var(--pwd-tfc-radius);
	box-shadow: var(--pwd-tfc-shadow);
	padding: 36px;
	max-width: 500px;
	margin: 0 auto;
}
.pwd-tfc-lookup-wrap h2 { margin: 0 0 8px; font-size: 22px; font-weight: 800; color: var(--pwd-tfc-step-title-color); text-align: center; }
.pwd-tfc-lookup-wrap p { margin: 0 0 24px; color: var(--pwd-tfc-muted); text-align: center; font-size: 14px; }
.pwd-tfc-lookup-result {
	margin-top: 24px; padding: 20px;
	background: var(--pwd-tfc-lookup-result-bg);
	border: 1.5px solid var(--pwd-tfc-lookup-result-border);
	border-radius: calc(var(--pwd-tfc-radius) * .7);
}
.pwd-tfc-lookup-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 13px; border-bottom: 1px solid var(--pwd-tfc-lookup-result-border); }
.pwd-tfc-lookup-row:last-child { border-bottom: none; }
.pwd-tfc-lookup-row .lk-label { color: var(--pwd-tfc-lookup-label-color); font-weight: 600; }
.pwd-tfc-lookup-row .lk-value { font-weight: 700; color: var(--pwd-tfc-lookup-value-color); text-align: right; }

/* ── Status Pills ── */
.pwd-tfc-status-pill { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 100px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.pwd-tfc-status-pill.pending   { background:#fef3c7;color:#92400e; }
.pwd-tfc-status-pill.confirmed { background:#dbeafe;color:#1d4ed8; }
.pwd-tfc-status-pill.paid      { background:#dcfce7;color:#166534; }
.pwd-tfc-status-pill.completed { background:#f3e8ff;color:#6b21a8; }
.pwd-tfc-status-pill.cancelled { background:#fee2e2;color:#991b1b; }

/* ── Responsive ── */
@media (max-width: 768px) {
	.pwd-tfc-service-panel { padding: 20px 16px; }
	.pwd-tfc-address-row { grid-template-columns: 1fr; }
	.pwd-tfc-address-swap, .pwd-tfc-return-address-swap { display: none; }
	.pwd-tfc-form-grid-2, .pwd-tfc-form-grid-3 { grid-template-columns: 1fr; }
	.pwd-tfc-vehicle-cards { grid-template-columns: 1fr 1fr; }
	.pwd-tfc-route-info { gap: 12px; }
}
@media (max-width: 480px) {
	.pwd-tfc-vehicle-cards { grid-template-columns: 1fr; }
	.pwd-tfc-service-tab { font-size: 13px; padding: 14px 12px; }
	.pwd-tfc-lookup-wrap { padding: 24px 16px; }
}

/* ── Helper / description text (was unstyled on the frontend) ── */
.pwd-tfc-wrap .pwd-tfc-desc {
	display: block;
	margin-top: 7px;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--pwd-tfc-muted, #9a7c68);
	letter-spacing: normal;
	text-transform: none;
}

/* ── Trip Requirements (passengers + extras checklist) ── */
.pwd-tfc-extras-req-field { margin-bottom: 18px; }
.pwd-tfc-extras-req-group {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	margin-top: 2px;
}
.pwd-tfc-wrap .pwd-tfc-extras-req-group .pwd-tfc-checkbox-label {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	margin: 0 !important;
	font-weight: 400 !important;
	cursor: pointer;
	font-size: 14px;
	color: var(--pwd-tfc-body-text, #1c1309);
	letter-spacing: normal;
}
.pwd-tfc-wrap .pwd-tfc-extras-req-group input[type="checkbox"] {
	width: 16px !important;
	height: 16px !important;
	margin: 0 !important;
	flex: 0 0 auto;
	accent-color: var(--pwd-tfc-input-focus-border, #f97316);
}
.pwd-tfc-no-match {
	text-align: center;
	padding: 22px 18px;
	color: var(--pwd-tfc-body-text, #7c2d12);
	background: #fff8f1;
	border: 1.5px solid #fed7aa;
	border-radius: var(--pwd-tfc-radius, 12px);
	font-size: 14px;
	line-height: 1.5;
}

/* ── Vehicle card image (alternative to the emoji icon) ── */
.pwd-tfc-vehicle-image {
	width: 100%;
	aspect-ratio: 3 / 2;
	margin-bottom: 10px;
	border-radius: var(--pwd-tfc-vehicle-card-radius, 12px);
	overflow: hidden;
	background: #f5efe9;
}
.pwd-tfc-vehicle-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ── Field width flow (Elementor-style columns that auto-wrap) ── */
.pwd-tfc-fields-flow { display: flex; flex-wrap: wrap; margin: 0 -8px; align-items: flex-start; }
.pwd-tfc-fields-flow > .pwd-tfc-col { padding: 0 8px; box-sizing: border-box; }
.pwd-tfc-fields-flow > input[type="hidden"] { display: none; }
.pwd-tfc-field-type-html { min-height: 1px; }
@media (max-width: 600px) {
	/* Stack every field full-width on small screens. */
	.pwd-tfc-fields-flow > .pwd-tfc-col { width: 100% !important; }
}

/* ── Phone fields: dial code + number ── */
.pwd-tfc-phone-row {
	display: flex;
	gap: 8px;
	align-items: stretch;
}
.pwd-tfc-phone-row .pwd-tfc-dial-code {
	flex: 0 0 108px;
	width: 108px;
	padding: 13px 8px;
	border: 2px solid var(--pwd-tfc-input-border);
	border-radius: var(--pwd-tfc-input-radius);
	font-size: 14px;
	color: var(--pwd-tfc-input-text);
	background: var(--pwd-tfc-input-bg);
	font-family: var(--pwd-tfc-font);
	outline: none;
}
.pwd-tfc-phone-row .pwd-tfc-phone-input { flex: 1 1 auto; }

/* ── jQuery UI datepicker (self-contained minimal skin) ── */
.pwd-tfc-wrap ~ .ui-datepicker, .ui-datepicker.pwd-tfc-dp, .ui-datepicker {
	background: var(--pwd-tfc-panel-bg, #fff);
	border: 1px solid var(--pwd-tfc-panel-border, #e8ddd5);
	border-radius: 10px;
	box-shadow: 0 8px 30px rgba(0,0,0,.14);
	padding: 10px;
	width: 280px;
	display: none;
	z-index: 99999 !important;
	font-family: var(--pwd-tfc-font, inherit);
}
.ui-datepicker .ui-datepicker-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 4px 2px 8px;
	font-weight: 700;
	color: var(--pwd-tfc-step-title-color, #5c3d1e);
}
.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
	cursor: pointer;
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	color: var(--pwd-tfc-step-title-color, #5c3d1e);
}
.ui-datepicker .ui-datepicker-prev:hover,
.ui-datepicker .ui-datepicker-next:hover { background: var(--pwd-tfc-autocomplete-hover-bg, #fef9f5); }
.ui-datepicker .ui-datepicker-prev .ui-icon { visibility: hidden; }
.ui-datepicker .ui-datepicker-next .ui-icon { visibility: hidden; }
.ui-datepicker .ui-datepicker-prev:before { content: '‹'; font-size: 18px; }
.ui-datepicker .ui-datepicker-next:before { content: '›'; font-size: 18px; }
.ui-datepicker table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ui-datepicker th { padding: 4px 0; color: var(--pwd-tfc-muted, #9a7c68); font-weight: 600; }
.ui-datepicker td { text-align: center; }
.ui-datepicker td a, .ui-datepicker td span {
	display: block;
	padding: 6px 0;
	border-radius: 6px;
	text-decoration: none;
	color: var(--pwd-tfc-body-text, #1c1309);
}
.ui-datepicker td a:hover { background: var(--pwd-tfc-autocomplete-hover-bg, #fef9f5); }
.ui-datepicker td a.ui-state-active {
	background: var(--pwd-tfc-calc-btn-bg, #f97316);
	color: var(--pwd-tfc-calc-btn-text, #fff);
}
.ui-datepicker td.ui-state-disabled span { color: #c9bdb3; }

/* ── Included (no-charge) extras ── */
.pwd-tfc-included-extras {
	background: var(--pwd-tfc-fare-bg, #fef9f5);
	border: 1px solid var(--pwd-tfc-fare-border, #e8ddd5);
	border-radius: var(--pwd-tfc-fare-radius, 12px);
	padding: 18px 22px;
	margin-top: 14px;
}
.pwd-tfc-included-extras h4 {
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 700;
	color: var(--pwd-tfc-fare-title-color, #5c3d1e);
	letter-spacing: .04em;
}
.pwd-tfc-included-extras ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.pwd-tfc-included-extras li {
	padding: 4px 0;
	color: var(--pwd-tfc-fare-value-color, #1c1309);
	font-size: 14px;
}
.pwd-tfc-included-extras li:before {
	content: '✓';
	color: var(--pwd-tfc-fare-total-value-color, #f97316);
	font-weight: 700;
	margin-right: 8px;
}

/* ── Availability fallback (alternative classes) ── */
.pwd-tfc-alt-vehicles {
	background: #fff7ed;
	border: 1px solid #fdba74;
	border-radius: var(--pwd-tfc-fare-radius, 12px);
	padding: 16px 20px;
	margin-bottom: 14px;
	color: #7c2d12;
}
.pwd-tfc-alt-vehicles ul { margin: 8px 0; padding-left: 18px; }
.pwd-tfc-alt-vehicles li { padding: 3px 0; font-weight: 600; }
.pwd-tfc-alt-seats { font-weight: 400; opacity: .8; }
.pwd-tfc-alt-hint { font-size: 13px; opacity: .85; margin: 6px 0 0; }
