/*
 * ZW Transfer — booking widget styles
 * Navy #0A2247, Gold #C9A24A.
 */

.zwt-widget {
	--zwt-navy: #0A2247;
	--zwt-navy-2: #14325F;
	--zwt-gold: #C9A24A;
	--zwt-gold-dark: #9B7932;
	--zwt-text: #1f2937;
	--zwt-muted: #6b7280;
	--zwt-border: #e5e7eb;
	--zwt-bg: #ffffff;
	--zwt-bg-soft: #f8fafc;

	font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
	color: var(--zwt-text);
	background: var(--zwt-bg);
	border: 1px solid var(--zwt-border);
	border-radius: 10px;
	max-width: 960px;
	margin: 0 auto;
	box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.zwt-widget__inner { padding: 24px; }

.zwt-widget__loading { color: var(--zwt-muted); padding: 16px 0; }

/* ---------------------------------------------------------------------
 * Lead form (homepage hero mini-widget)
 * Inherits all the .zwt-widget input / button styling below by mirroring
 * its CSS variables. Designed to sit on top of a dark hero background:
 * white rounded card with a soft shadow.
 * ------------------------------------------------------------------- */
.zwt-lead {
	--zwt-navy: #0A2247;
	--zwt-navy-2: #14325F;
	--zwt-gold: #C9A24A;
	--zwt-gold-dark: #9B7932;
	--zwt-text: #1f2937;
	--zwt-muted: #6b7280;
	--zwt-border: #e5e7eb;
	--zwt-bg: #ffffff;
	--zwt-bg-soft: #f8fafc;

	font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
	color: var(--zwt-text);
	background: rgba(255, 255, 255, 0.97);
	border-radius: 14px;
	max-width: 720px;
	margin: 0 auto;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	backdrop-filter: blur(4px);
}
.zwt-lead__inner { padding: 24px; min-height: 200px; }
.zwt-lead h3 { margin-top: 0; color: var(--zwt-navy); }

/* Inherit input + button styling from the .zwt-widget rules below. */
.zwt-lead .zwt-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--zwt-navy); }
.zwt-lead .zwt-field input,
.zwt-lead .zwt-field select,
.zwt-lead .zwt-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--zwt-border);
	border-radius: 6px;
	font-size: 15px;
	box-sizing: border-box;
}
.zwt-lead .zwt-field input:focus { outline: 2px solid var(--zwt-gold); border-color: var(--zwt-gold); }
.zwt-lead .zwt-field { margin-bottom: 14px; }
/* Hero buttons reuse the main .zwt-btn rules below — no overrides needed. */
.zwt-lead .zwt-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.zwt-lead .zwt-stop-row { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.zwt-lead .zwt-stop-row input { flex: 1; }
.zwt-lead .zwt-error { color: #b91c1c; font-size: 13px; min-height: 18px; margin: 6px 0; }


.zwt-steps { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.zwt-step {
	flex: 1; min-width: 90px;
	padding: 8px 12px; border-radius: 6px;
	background: var(--zwt-bg-soft);
	color: var(--zwt-muted);
	font-size: 13px; font-weight: 600;
	text-align: center;
	border: 1px solid var(--zwt-border);
}
.zwt-step.is-active { background: var(--zwt-navy); color: #fff; border-color: var(--zwt-navy); }
.zwt-step.is-done   { background: var(--zwt-gold); color: var(--zwt-navy); border-color: var(--zwt-gold); }

/* Form */
.zwt-field { margin-bottom: 14px; }
.zwt-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--zwt-navy); }
.zwt-field input,
.zwt-field select,
.zwt-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--zwt-border);
	border-radius: 6px;
	font-size: 15px;
	box-sizing: border-box;
}
.zwt-field input:focus { outline: 2px solid var(--zwt-gold); border-color: var(--zwt-gold); }

/* Inline field (e.g. round-trip checkbox) — no top label block, label sits inline. */
.zwt-field--inline { display: flex; align-items: center; }
.zwt-lead .zwt-field--inline { display: flex; align-items: center; }
.zwt-checkbox,
.zwt-lead .zwt-checkbox {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 14px; font-weight: 600; color: var(--zwt-navy);
	cursor: pointer; user-select: none;
	margin: 0;
}
.zwt-checkbox input[type="checkbox"],
.zwt-lead .zwt-checkbox input[type="checkbox"] {
	width: 18px; height: 18px; margin: 0;
	accent-color: var(--zwt-gold);
	cursor: pointer;
}

.zwt-row { display: flex; gap: 12px; flex-wrap: wrap; }
.zwt-row > * { flex: 1; min-width: 200px; }

/* Stops */
.zwt-stops { display: flex; flex-direction: column; gap: 8px; }
.zwt-stop-row { display: flex; gap: 6px; }
.zwt-stop-row input { flex: 1; }

/* Buttons
 * Premium pill style: gold primary, navy ghost. The hover state keeps
 * full text contrast on every background (light card, dark hero, gold
 * card) — there is no fade-to-white-on-white state. All theme rules
 * that try to recolour text are overridden with !important on the
 * critical colour pair so the booking widget always reads cleanly.
 */
.zwt-btn {
	display: inline-block;
	padding: 10px 18px;
	border: 1px solid var(--zwt-gold) !important;
	border-radius: 999px;
	background: var(--zwt-gold) !important;
	color: var(--zwt-navy) !important;
	font-weight: 700; font-size: 14px;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
	box-shadow: 0 2px 6px rgba(10, 34, 71, 0.08);
}
.zwt-btn:hover,
.zwt-btn:focus {
	background: var(--zwt-navy) !important;
	color: #ffffff !important;
	border-color: var(--zwt-navy) !important;
	box-shadow: 0 6px 18px rgba(10, 34, 71, 0.22);
	transform: translateY(-1px);
}
.zwt-btn--ghost {
	background: transparent !important;
	color: var(--zwt-navy) !important;
	border: 1px solid var(--zwt-navy) !important;
	box-shadow: none;
}
.zwt-btn--ghost:hover,
.zwt-btn--ghost:focus {
	background: var(--zwt-navy) !important;
	color: #ffffff !important;
	border-color: var(--zwt-navy) !important;
}
.zwt-btn[disabled],
.zwt-btn[disabled]:hover {
	opacity: 0.55; cursor: not-allowed;
	transform: none;
	box-shadow: none;
	background: var(--zwt-gold) !important;
	color: var(--zwt-navy) !important;
	border-color: var(--zwt-gold) !important;
}
.zwt-btn--small  { padding: 6px 12px; font-size: 12px; }

.zwt-actions { display: flex; gap: 10px; justify-content: space-between; margin-top: 20px; }

/* Quotes */
.zwt-map {
	height: 320px;
	border-radius: 10px;
	margin-bottom: 16px;
	background: var(--zwt-bg-soft);
	overflow: hidden;
	border: 1px solid var(--zwt-border);
	box-shadow: 0 6px 24px rgba(10, 34, 71, 0.10), 0 1px 2px rgba(10, 34, 71, 0.06);
}
/* Hide the on-map UI we don't want — we'll style our own zoom buttons via
   the gestureHandling option in the JS. */
.zwt-map .gm-style-cc,
.zwt-map .gmnoprint a,
.zwt-map .gm-style a[href^="https://maps.google.com"] { opacity: 0.5; }

/* -------------------------------------------------------------------------
 * Google Places autocomplete dropdown — branded to the navy/gold theme.
 * The dropdown is rendered by Google as <div class="pac-container"> attached
 * to <body>, so the rule must NOT be scoped under .zwt-widget.
 * ------------------------------------------------------------------------- */
.pac-container {
	border: 1px solid #e5e7eb;
	border-top: none;
	border-radius: 0 0 10px 10px;
	box-shadow: 0 12px 32px rgba(10, 34, 71, 0.18);
	font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
	padding: 6px 0;
	margin-top: 2px;
	background: #ffffff;
	overflow: hidden;
}
.pac-container:after { display: none; } /* hide the "powered by Google" footer */
.pac-item {
	padding: 10px 14px;
	border-top: 1px solid #f1f5f9;
	font-size: 14px;
	color: #1f2937;
	cursor: pointer;
	line-height: 1.35;
}
.pac-item:first-child { border-top: none; }
.pac-item:hover,
.pac-item-selected {
	background: linear-gradient(90deg, rgba(201, 162, 74, 0.10), rgba(10, 34, 71, 0.04));
	color: #0A2247;
}
.pac-icon {
	background-image: none;
	width: 18px; height: 18px;
	margin-right: 10px; margin-top: 2px;
	border-radius: 50%;
	background-color: #C9A24A;
	position: relative;
}
.pac-icon:after {
	content: "";
	position: absolute;
	top: 4px; left: 6px;
	width: 6px; height: 6px;
	border-radius: 50%;
	background: #0A2247;
}
.pac-item-query { font-weight: 600; color: #0A2247; font-size: 14px; padding-right: 4px; }
.pac-matched   { font-weight: 700; color: #0A2247; }
.zwt-journey-meta { color: var(--zwt-muted); font-size: 13px; margin-bottom: 12px; }

.zwt-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }

/* -------------------------------------------------------------------------
 * New-style quote card (zwt-qc) — photo + perks + price + Book Now button.
 * Each card represents ONE pricing category. The car shown is the
 * "featured" vehicle for that category; the actual vehicle on the day may
 * be of the same class but a different model — hence the "or similar" line
 * under the car name.
 * ------------------------------------------------------------------------- */
.zwt-quote-card.zwt-qc {
	padding: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--zwt-border);
	border-radius: 12px;
	transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.zwt-qc:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(10,34,71,0.08); }
.zwt-qc.is-selected {
	border-color: var(--zwt-gold);
	box-shadow: 0 0 0 2px rgba(201,162,74,0.30), 0 10px 30px rgba(10,34,71,0.08);
}

.zwt-qc__media {
	position: relative;
	background: #f1f5f9;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
.zwt-qc__media--empty:before {
	content: ""; display: block; width: 100%; height: 100%;
	background: linear-gradient(135deg, #e2e8f0 0%, #f8fafc 100%);
}
.zwt-qc__img { width: 100%; height: 100%; object-fit: cover; display: block; }

.zwt-qc__badge {
	position: absolute;
	top: 12px; left: 12px;
	background: #16a34a;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.5px;
	padding: 6px 12px;
	border-radius: 999px;
	box-shadow: 0 4px 10px rgba(22,163,74,0.30);
}

.zwt-qc__body {
	padding: 16px 18px 18px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.zwt-qc__title {
	font-size: 18px;
	font-weight: 700;
	color: var(--zwt-navy);
}

.zwt-qc__capacity {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	font-size: 13px;
	color: var(--zwt-text);
}
.zwt-qc__cap-item { display: inline-flex; align-items: center; gap: 6px; }
.zwt-qc__icon { font-size: 15px; line-height: 1; color: var(--zwt-gold); }

.zwt-qc__vehicle {
	font-size: 13px;
	color: var(--zwt-muted);
	font-style: italic;
}

.zwt-qc__perks {
	list-style: none;
	padding: 0;
	margin: 4px 0 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.zwt-qc__perks li {
	font-size: 13px;
	color: var(--zwt-text);
	display: flex;
	align-items: flex-start;
	gap: 8px;
	line-height: 1.4;
}
.zwt-qc__tick {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px; height: 18px;
	border-radius: 4px;
	background: #16a34a;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	margin-top: 1px;
}

.zwt-qc__divider {
	height: 1px;
	background: var(--zwt-border);
	margin: 4px 0;
}

.zwt-qc__price-row { display: flex; flex-direction: column; gap: 2px; }
.zwt-qc__price { font-size: 28px; font-weight: 800; color: var(--zwt-navy); line-height: 1.1; }
.zwt-qc__price-meta { font-size: 12px; color: var(--zwt-muted); }

.zwt-qc__fine { font-size: 11px; color: var(--zwt-muted); line-height: 1.4; }

.zwt-qc__book {
	margin-top: 6px;
	width: 100%;
	background: var(--zwt-navy) !important;
	color: #fff !important;
	border: 1px solid var(--zwt-navy) !important;
	border-radius: 999px;
	padding: 10px 16px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
	box-shadow: 0 2px 6px rgba(10, 34, 71, 0.12);
}
.zwt-qc__book:hover,
.zwt-qc__book:focus {
	background: var(--zwt-gold) !important;
	color: var(--zwt-navy) !important;
	border-color: var(--zwt-gold) !important;
	box-shadow: 0 6px 18px rgba(201, 162, 74, 0.35);
}
.zwt-qc__arrow { font-size: 15px; }

/* Vehicles within a category */
.zwt-vehicles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 12px; }
.zwt-vehicle-card {
	border: 1px solid var(--zwt-border);
	border-radius: 6px;
	padding: 10px;
	font-size: 13px;
	cursor: pointer;
	background: var(--zwt-bg-soft);
}
.zwt-vehicle-card.is-selected { border-color: var(--zwt-gold); background: #fff; }
.zwt-vehicle-card strong { display: block; color: var(--zwt-navy); margin-bottom: 2px; }

/* Luggage */
.zwt-luggage { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.zwt-luggage label { font-size: 13px; }

/* Disclaimers */
.zwt-disclaimer {
	background: #fff8e6;
	border-left: 3px solid var(--zwt-gold);
	padding: 10px 14px;
	margin: 10px 0;
	font-size: 13px;
	border-radius: 4px;
}

/* Confirm summary */
.zwt-summary {
	background: var(--zwt-bg-soft);
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 16px;
}
.zwt-summary__row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; }
.zwt-summary__row span:first-child { color: var(--zwt-muted); }
.zwt-summary__total {
	font-size: 22px; font-weight: 800; color: var(--zwt-navy);
	border-top: 2px solid var(--zwt-gold);
	margin-top: 8px; padding-top: 8px;
	display: flex; justify-content: space-between;
}

/* Error / status */
.zwt-error  { color: #b91c1c; font-size: 13px; margin: 8px 0; }
.zwt-status { color: var(--zwt-muted); font-size: 13px; margin: 8px 0; }
.zwt-success {
	background: #ecfdf5; border-left: 3px solid #059669;
	padding: 14px; border-radius: 4px;
	color: #065f46; font-size: 14px;
}

/* Stripe element host */
.zwt-stripe-mount {
	padding: 12px; border: 1px solid var(--zwt-border); border-radius: 6px;
	background: #fff; min-height: 44px; margin: 10px 0;
}
