/* SA 4x4 Rentals — front-end styling for the 4 Vehicle widgets
   (Gallery, Quick Facts, Features, Why Choose). Brand colours match the
   admin screens: primary green #309002, secondary orange #FF5008. */

:root {
	--sa4x4-fe-green: #309002;
	--sa4x4-fe-orange: #FF5008;
	--sa4x4-fe-text: #000000;
	--sa4x4-fe-bg: #f6f8f5;
	--sa4x4-fe-border: #e2e8de;
}

/* ---------------------------------------------------------------------
   Vehicle Gallery
------------------------------------------------------------------------ */
.sa4x4-vgallery {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.sa4x4-vgallery__main {
	position: relative;
	line-height: 0;
}

.sa4x4-vgallery__main-img {
	width: 100%;
	height: auto;
	max-height: 560px;
	object-fit: cover;
	display: block;
	border-radius: 10px;
}

.sa4x4-vgallery__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid #e2e2e2;
	color: var(--sa4x4-fe-text);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	font-size: 14px;
	padding: 0;
}

.sa4x4-vgallery__arrow--prev {
	left: -18px;
}

.sa4x4-vgallery__arrow--next {
	right: -18px;
}

.sa4x4-vgallery__arrow:hover {
	background: var(--sa4x4-fe-green);
	color: #fff;
	border-color: var(--sa4x4-fe-green);
}

.sa4x4-vgallery__thumbs {
	/* Column count is set inline per-instance (--sa4x4-vgallery-thumb-cols)
	   to match the actual number of photos on that vehicle — always exactly
	   the photo count (1 main + up to 3 sub, per the client's 4-photo model)
	   rather than a fixed 4, so 2 or 3 photos fill the row evenly instead of
	   leaving an empty trailing gap. */
	display: grid;
	grid-template-columns: repeat(var(--sa4x4-vgallery-thumb-cols, 4), 1fr);
	gap: 14px;
}

.sa4x4-vgallery__thumb {
	padding: 0;
	border: 2px solid transparent;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	background: none;
	line-height: 0;
}

.sa4x4-vgallery__thumb img {
	/* Aspect-ratio instead of a fixed height: with only 3-4 photos the
	   thumbnail boxes are wide (roughly a third of the gallery width each),
	   so a fixed short height was cropping much more of the photo than
	   intended. 3:2 matches the 'sa4x4-vehicle-thumb' image size, so each
	   thumbnail shows the same crop it was actually generated at. */
	width: 100%;
	aspect-ratio: 3 / 2;
	height: auto;
	object-fit: cover;
	display: block;
}

.sa4x4-vgallery__thumb.is-active {
	border-color: var(--sa4x4-fe-green);
}

@media (max-width: 767px) {
	.sa4x4-vgallery__arrow--prev { left: 6px; }
	.sa4x4-vgallery__arrow--next { right: 6px; }
}

/* ---------------------------------------------------------------------
   Vehicle Quick Facts
------------------------------------------------------------------------ */
.sa4x4-vquick {
	--sa4x4-vquick-cols: 4;
	display: grid;
	grid-template-columns: repeat(var(--sa4x4-vquick-cols), 1fr);
	gap: 20px;
	padding: 18px 4px;
	border-top: 1px solid var(--sa4x4-fe-border);
	border-bottom: 1px solid var(--sa4x4-fe-border);
}

.sa4x4-vquick__tile {
	display: flex;
	align-items: center;
	gap: 10px;
}

.sa4x4-vquick__icon {
	flex: 0 0 auto;
	font-size: 20px;
	color: var(--sa4x4-fe-green);
	width: 28px;
	text-align: center;
}

.sa4x4-vquick__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.sa4x4-vquick__label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #767676;
}

.sa4x4-vquick__value {
	font-size: 15px;
	font-weight: 700;
	color: var(--sa4x4-fe-text);
	overflow-wrap: break-word;
}

.sa4x4-vquick--boxed {
	border-top: none;
	border-bottom: none;
	background-color: var(--sa4x4-fe-bg);
	border: 1px solid var(--sa4x4-fe-border);
	border-radius: 12px;
	padding: 22px 24px;
	gap: 16px 24px;
}

@media (max-width: 767px) {
	.sa4x4-vquick {
		--sa4x4-vquick-cols: 2 !important;
	}
}

/* ---------------------------------------------------------------------
   Vehicle Features (Included Features)
------------------------------------------------------------------------ */
.sa4x4-vfeatures {
	--sa4x4-vfeatures-cols: 3;
	display: grid;
	grid-template-columns: repeat(var(--sa4x4-vfeatures-cols), 1fr);
	gap: 16px 24px;
	background: var(--sa4x4-fe-bg);
	border: 1px solid var(--sa4x4-fe-border);
	border-radius: 10px;
	padding: 24px;
}

.sa4x4-vfeatures__item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13.5px;
	color: var(--sa4x4-fe-text);
	line-height: 1.4;
}

.sa4x4-vfeatures__badge {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--sa4x4-fe-green);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	line-height: 1;
}

@media (max-width: 991px) {
	.sa4x4-vfeatures {
		--sa4x4-vfeatures-cols: 2 !important;
	}
}

@media (max-width: 600px) {
	.sa4x4-vfeatures {
		--sa4x4-vfeatures-cols: 1 !important;
	}
}

/* ---------------------------------------------------------------------
   Vehicle Why Choose
------------------------------------------------------------------------ */
.sa4x4-vwhy {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.sa4x4-vwhy__tile {
	background: var(--sa4x4-fe-bg);
	border: 1px solid var(--sa4x4-fe-border);
	border-radius: 10px;
	padding: 24px;
}

.sa4x4-vwhy__icon {
	display: inline-flex;
	font-size: 22px;
	color: var(--sa4x4-fe-orange);
	margin-bottom: 12px;
}

.sa4x4-vwhy__title {
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--sa4x4-fe-text);
}

.sa4x4-vwhy__desc {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.55;
	color: #444;
}

/* ---------------------------------------------------------------------
   Route Itinerary (day-by-day timeline)
------------------------------------------------------------------------ */
.sa4x4-ritin {
	display: flex;
	flex-direction: column;
}

.sa4x4-ritin__day {
	display: flex;
	gap: 18px;
}

.sa4x4-ritin__day:not(:last-child) {
	margin-bottom: 20px;
}

.sa4x4-ritin__rail {
	position: relative;
	flex: 0 0 auto;
	width: 36px;
}

.sa4x4-ritin__marker {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--sa4x4-fe-green);
	border: 3px solid var(--sa4x4-fe-green);
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	position: relative;
	z-index: 1;
}

.sa4x4-ritin__rail::after {
	content: '';
	position: absolute;
	top: 36px;
	bottom: -20px;
	left: 50%;
	width: 2px;
	background: var(--sa4x4-ritin-line, var(--sa4x4-fe-green));
	opacity: 0.35;
	transform: translateX(-50%);
}

.sa4x4-ritin__day:last-child .sa4x4-ritin__rail::after {
	display: none;
}

.sa4x4-ritin__card {
	flex: 1;
	min-width: 0;
	display: flex;
	gap: 16px;
	background: #fff;
	border: 1px solid var(--sa4x4-fe-border);
	border-radius: 10px;
	padding: 16px;
}

.sa4x4-ritin__photo {
	flex: 0 0 96px;
}

.sa4x4-ritin__photo img {
	width: 96px;
	height: 96px;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}

.sa4x4-ritin__body {
	flex: 1;
	min-width: 0;
}

.sa4x4-ritin__title {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--sa4x4-fe-text);
}

.sa4x4-ritin__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 8px;
}

.sa4x4-ritin__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	color: #666;
}

.sa4x4-ritin__meta-item i {
	color: var(--sa4x4-fe-orange);
}

.sa4x4-ritin__desc {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.6;
	color: #333;
}

@media (max-width: 600px) {
	.sa4x4-ritin__card {
		flex-direction: column;
	}
	.sa4x4-ritin__photo {
		flex: none;
		width: 100%;
	}
	.sa4x4-ritin__photo img {
		width: 100%;
		height: 140px;
	}
}

/* ---------------------------------------------------------------------
   Routes Map (interactive region pins)
------------------------------------------------------------------------ */
.sa4x4-rmap {
	position: relative;
	width: 100%;
	aspect-ratio: 8 / 5;
	border-radius: 16px;
	border: 1px solid var(--sa4x4-fe-border);
	background-color: var(--sa4x4-fe-bg);
}

.sa4x4-rmap__art {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.sa4x4-rmap__line {
	fill: none;
	stroke: var(--sa4x4-fe-green);
}

.sa4x4-rmap__pins {
	position: absolute;
	inset: 0;
}

.sa4x4-rmap__pin-wrap {
	position: absolute;
	transform: translate(-50%, -50%);
	z-index: 1;
}

.sa4x4-rmap__pin-wrap.is-active {
	/* A popover has to paint above every OTHER pin-wrap, not just its own
	   children — without this, a later pin-wrap in the DOM (default paint
	   order) covers an earlier one's open popover, since z-index on the
	   popover itself only wins within its own pin-wrap's stacking context. */
	z-index: 20;
}

.sa4x4-rmap__pin {
	width: 34px;
	height: 34px;
	padding: 0;
	border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
	background: var(--sa4x4-fe-orange);
	border: 3px solid #fff;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: transform 0.15s ease;
}

.sa4x4-rmap__pin i {
	transform: rotate(45deg);
	color: #fff;
	font-size: 13px;
}

.sa4x4-rmap__pin:hover,
.sa4x4-rmap__pin-wrap.is-active .sa4x4-rmap__pin {
	transform: rotate(-45deg) scale(1.15);
}

.sa4x4-rmap__popover {
	position: absolute;
	bottom: calc(100% + 14px);
	left: 50%;
	width: 220px;
	max-width: 60vw;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	padding: 12px 14px;
	opacity: 0;
	pointer-events: none;
	transform: translateX(-50%) translateY(6px);
	transition: opacity 0.15s ease, transform 0.15s ease;
	z-index: 5;
}

.sa4x4-rmap__pin-wrap.is-active .sa4x4-rmap__popover {
	opacity: 1;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
}

.sa4x4-rmap__pin-wrap--below .sa4x4-rmap__popover {
	bottom: auto;
	top: calc(100% + 14px);
	transform: translateX(-50%) translateY(-6px);
}

.sa4x4-rmap__pin-wrap--below.is-active .sa4x4-rmap__popover {
	transform: translateX(-50%) translateY(0);
}

.sa4x4-rmap__popover-title {
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--sa4x4-fe-green);
	margin-bottom: 8px;
}

.sa4x4-rmap__popover-route {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 7px 0;
	border-top: 1px solid var(--sa4x4-fe-border);
	font-size: 12.5px;
	color: var(--sa4x4-fe-text);
	text-decoration: none;
}

.sa4x4-rmap__popover-route:first-of-type {
	border-top: none;
}

.sa4x4-rmap__popover-route:hover {
	color: var(--sa4x4-fe-green);
}

.sa4x4-rmap__popover-route--static {
	cursor: default;
}

.sa4x4-rmap__popover-route--static:hover {
	color: var(--sa4x4-fe-text);
}

.sa4x4-rmap__popover-duration {
	flex: 0 0 auto;
	color: #767676;
	white-space: nowrap;
	font-size: 11.5px;
}

.sa4x4-rmap--embed {
	overflow: hidden;
}

.sa4x4-rmap--embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.sa4x4-rmap__pin-wrap--highlight .sa4x4-rmap__pin {
	width: 42px;
	height: 42px;
	box-shadow: 0 0 0 6px rgba(255, 80, 8, 0.22), 0 3px 8px rgba(0, 0, 0, 0.3);
}

.sa4x4-rmap__pin-wrap--highlight .sa4x4-rmap__pin i {
	font-size: 15px;
}

@media (max-width: 600px) {
	.sa4x4-rmap {
		aspect-ratio: 4 / 5;
	}
	.sa4x4-rmap__popover {
		width: 180px;
	}
}

/* ---------------------------------------------------------------------
   Route Waypoints (hero breadcrumb line)
------------------------------------------------------------------------ */
.sa4x4-rwp {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	font-size: 13px;
	line-height: 1.3;
}

.sa4x4-rwp__stop {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.sa4x4-rwp__stop i {
	font-size: 11px;
	opacity: 0.85;
}

.sa4x4-rwp__arrow {
	font-size: 10px;
	opacity: 0.6;
}

@media (max-width: 767px) {
	.sa4x4-vwhy {
		grid-template-columns: 1fr;
	}
}

/* ---------------------------------------------------------------------
   Special Stats (hero stats bar — "15% OFF / Daily rental rate" etc.)
------------------------------------------------------------------------ */
.sa4x4-sstats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.sa4x4-sstats__tile {
	display: flex;
	align-items: center;
	gap: 14px;
}

.sa4x4-sstats__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--sa4x4-fe-bg);
	border: 1px solid var(--sa4x4-fe-border);
	color: var(--sa4x4-fe-green);
	font-size: 18px;
}

.sa4x4-sstats__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.sa4x4-sstats__value {
	font-size: 20px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--sa4x4-fe-orange);
	line-height: 1.15;
}

.sa4x4-sstats__label {
	font-size: 12.5px;
	color: #555;
}

@media (max-width: 767px) {
	.sa4x4-sstats {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}

/* ---------------------------------------------------------------------
   Special Steps ("How It Works" numbered list)
------------------------------------------------------------------------ */
.sa4x4-ssteps {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.sa4x4-ssteps__step {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.sa4x4-ssteps__num {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--sa4x4-fe-green);
	border: 2px solid var(--sa4x4-fe-green);
	color: #fff;
	font-weight: 700;
	font-size: 13px;
}

.sa4x4-ssteps__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding-top: 4px;
}

.sa4x4-ssteps__title {
	font-size: 13.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--sa4x4-fe-orange);
}

.sa4x4-ssteps__desc {
	font-size: 13px;
	line-height: 1.5;
	color: #444;
}

/* ---------------------------------------------------------------------
   Special Checklist ("More Time, More Africa")
------------------------------------------------------------------------ */
.sa4x4-schecklist {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px 20px;
}

.sa4x4-schecklist__item {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 13px;
	color: var(--sa4x4-fe-text);
}

.sa4x4-schecklist__badge {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--sa4x4-fe-green);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	line-height: 1;
}

@media (max-width: 600px) {
	.sa4x4-schecklist {
		grid-template-columns: 1fr;
	}
}

/* ---------------------------------------------------------------------
   Special Photo — "More Time, More Africa" side image (block) and the
   Special Offers card's square thumbnail (--card modifier)
------------------------------------------------------------------------ */
.sa4x4-special-photo {
	width: 100%;
	height: 320px;
	border-radius: 10px;
	background-color: var(--sa4x4-fe-bg);
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
}

@media (max-width: 767px) {
	.sa4x4-special-photo {
		height: 220px;
	}
}

/* Square graphic, full width, own natural (aspect-ratio-driven) height —
   the Card Image is a complete marketing graphic supplied by the user
   (headline/offer copy/dates already baked into the photo), so this is
   shown as-is with no text overlay: no absolute positioning, no dark
   gradient scrim. See "Special card footer" below for the one thing that
   does sit below it — just the FIND OUT MORE button. */
.sa4x4-special-photo--card {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	height: auto;
	border-radius: 0;
	z-index: 0;
}

/* Plain strip under the photo holding just the FIND OUT MORE button —
   deliberately has no title/description/eligibility text, since the photo
   above already carries that message as part of its own graphic. */
.sa4x4-special-card-footer {
	border-top: 1px solid #ECECEC;
}

/* ---------------------------------------------------------------------
   Quote Form (Contact Us page) — icon-labelled inputs + card-style
   toggle buttons for Vehicle / Destinations / Do You Need, in place of
   plain <select>/checkbox controls. Dark tone matches the hero/CTA-strip
   dark navy already used elsewhere on the site (#26303A), so the
   "selected" card state reads as an intentional brand colour rather than
   a borrowed one.
------------------------------------------------------------------------ */
/* Nested grid/flex containers default their "automatic minimum size" to the
   width of their content instead of 0 — without min-width:0 at every level
   here, a long card label (or a wide nested card grid) can force its
   ancestor row/section/form wider than its actual container, overflowing
   into whatever sits next to it (the Contact Us panel on desktop) or off
   the edge of the screen on mobile. box-sizing:border-box on every element
   stops padding/border from adding on top of a 100%-width element too. */
.sa4x4-qform,
.sa4x4-qform *,
.sa4x4-qform *::before,
.sa4x4-qform *::after {
	box-sizing: border-box;
}

.sa4x4-qform {
	display: flex;
	flex-direction: column;
	gap: 26px;
	max-width: 100%;
}

.sa4x4-qform__section {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.sa4x4-qform__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	min-width: 0;
}

@media (max-width: 640px) {
	.sa4x4-qform__row {
		grid-template-columns: 1fr;
	}
}

/* "Always Stack Fields" widget setting — for placements in a narrow
   container on an otherwise wide screen (e.g. the sidebar Request This
   Vehicle form), where the 640px viewport-width breakpoint above doesn't
   help since the viewport itself is plenty wide. */
.sa4x4-qform--stacked .sa4x4-qform__row {
	grid-template-columns: 1fr;
}

.sa4x4-qform__field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.sa4x4-qform__field label,
.sa4x4-qform__group-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--sa4x4-fe-font-body, inherit);
	font-size: 14px;
	font-weight: 700;
	color: #1B2430;
}

.sa4x4-qform__field label i,
.sa4x4-qform__group-label i {
	color: var(--sa4x4-fe-green);
	font-size: 14px;
	width: 16px;
	text-align: center;
}

.sa4x4-qform__field input[type="text"],
.sa4x4-qform__field input[type="email"],
.sa4x4-qform__field input[type="tel"],
.sa4x4-qform__field input[type="date"],
.sa4x4-qform__field select,
.sa4x4-qform__field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid #E4E7E2;
	border-radius: 8px;
	background: #FAFBFA;
	font-family: inherit;
	font-size: 14.5px;
	color: #1B2430;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.sa4x4-qform__field textarea {
	resize: vertical;
	min-height: 96px;
}

.sa4x4-qform__field input:focus,
.sa4x4-qform__field select:focus,
.sa4x4-qform__field textarea:focus {
	outline: none;
	border-color: var(--sa4x4-fe-green);
	background: #FFFFFF;
}

.sa4x4-qform__field.has-error input,
.sa4x4-qform__field.has-error select,
.sa4x4-qform__field.has-error textarea {
	border-color: #D8392A;
}

.sa4x4-qform__field-error {
	font-size: 12.5px;
	color: #D8392A;
	display: none;
}

.sa4x4-qform__field.has-error .sa4x4-qform__field-error {
	display: block;
}

/* Card-style toggle buttons, used for Vehicle (single-select) and
   Destinations / Do You Need (multi-select) — see data-multi in the
   widget's markup and initQuoteFormCards() in frontend.js. */
.sa4x4-qform__cards {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	min-width: 0;
}

.sa4x4-qform__cards--3col {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sa4x4-qform__cards--2col {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 640px) {
	.sa4x4-qform__cards,
	.sa4x4-qform__cards--3col,
	.sa4x4-qform__cards--2col {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Below ~480px, 2 columns is too tight for "What Do You Need?"'s longer
   labels ("Campsite / Lodge Reservations"), so it drops to a single
   column. Destinations' labels are short enough to stay 2-up even this
   narrow. Vehicle always uses --list below, never this rule. */
@media (max-width: 480px) {
	.sa4x4-qform__cards--2col {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Single-column "list" layout — used for Choose Your Vehicle, since vehicle
   names are long ("Toyota Hilux 2.4 Double Cab 4×4 Automatic – 4 Sleeper")
   and read far better as one full-width row each (icon left, name right)
   than squeezed into a multi-column grid at any screen size, sidebar or
   full-width alike. */
.sa4x4-qform__cards--list {
	grid-template-columns: minmax(0, 1fr);
}

.sa4x4-qform__cards--list .sa4x4-qform__card {
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	text-align: left;
	gap: 12px;
	padding: 12px 40px 12px 16px;
}

.sa4x4-qform__cards--list .sa4x4-qform__card i {
	font-size: 18px;
	flex-shrink: 0;
}

.sa4x4-qform__cards--list .sa4x4-qform__card-label {
	flex: 1;
	min-width: 0;
}

/* NOTE: "Always Stack Fields" (.sa4x4-qform--stacked) intentionally does
   NOT touch card-group columns — only .sa4x4-qform__row (paired fields
   like Pick-Up/Drop-Off Date) below. Forcing Destinations/What Do You Need
   down to one column too made the vehicle-page sidebar form far too tall;
   2 columns is narrow but safe now that every card/grid level has
   min-width:0 + box-sizing:border-box (see above), so it can't overflow. */

.sa4x4-qform__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-align: center;
	padding: 16px 10px;
	border: 1px solid #E4E7E2;
	border-radius: 10px;
	background: #F6F8F5;
	color: #1B2430;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
	position: relative;
	min-width: 0;
	width: 100%;
	overflow-wrap: break-word;
	word-break: break-word;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.sa4x4-qform__card:hover {
	border-color: var(--sa4x4-fe-green);
	transform: translateY(-1px);
}

.sa4x4-qform__card i {
	font-size: 20px;
	color: var(--sa4x4-fe-orange);
	transition: color 0.15s ease;
}

.sa4x4-qform__card.is-selected {
	background: #26303A;
	border-color: #26303A;
	color: #FFFFFF;
}

.sa4x4-qform__card.is-selected i {
	color: #FFFFFF;
}

/* Fixed-vehicle banner — replaces the Choose Your Vehicle cards on a single
   vehicle page (Fixed Vehicle widget control), where the vehicle is already
   implied by the page and shouldn't be re-selectable. */
.sa4x4-qform__vehicle-banner {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border: 1px solid var(--sa4x4-fe-green);
	border-radius: 10px;
	background: #F6F8F5;
	color: #1B2430;
	font-size: 14px;
	line-height: 1.4;
	min-width: 0;
}

.sa4x4-qform__vehicle-banner i {
	color: var(--sa4x4-fe-green);
	font-size: 20px;
	flex-shrink: 0;
}

.sa4x4-qform__vehicle-banner strong {
	color: var(--sa4x4-fe-green);
}

.sa4x4-qform__card__check {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.7);
	display: none;
}

.sa4x4-qform__card.is-selected .sa4x4-qform__card__check {
	display: block;
	background: var(--sa4x4-fe-green);
	border-color: var(--sa4x4-fe-green);
}

/* Honeypot — off-screen rather than display:none, since some bots skip
   invisible-via-display fields specifically to evade that check. */
.sa4x4-qform__hp {
	position: absolute;
	left: -9999px;
	top: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.sa4x4-qform__submit {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 28px;
	border: none;
	border-radius: 5px;
	background: var(--sa4x4-fe-orange);
	color: #FFFFFF;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.sa4x4-qform__submit:hover {
	opacity: 0.92;
}

.sa4x4-qform__submit:disabled {
	opacity: 0.6;
	cursor: default;
}

.sa4x4-qform__result {
	font-size: 14.5px;
	font-weight: 600;
	padding: 12px 16px;
	border-radius: 8px;
	display: none;
}

.sa4x4-qform__result.is-visible {
	display: block;
}

.sa4x4-qform__result.is-success {
	background: #EAF6E7;
	color: #1F6B1F;
}

.sa4x4-qform__result.is-error {
	background: #FBEAEA;
	color: #A62B21;
}


/* v2.13.1 fix: browsers only fold aspect-ratio into a flex item's
   main-axis (height, for a column) sizing when the ratio sits on the
   flex item itself. .sa4x4-special-photo--card's aspect-ratio is two
   levels inside the flex item, so the widget wrapper's auto height was
   resolving to 0 and the button footer rendered on top of the (still
   painted, just layout-collapsed) photo instead of after it. Repeating
   the ratio on the actual flex item is the documented fix. */
.elementor-widget-sa4x4-special-photo {
	aspect-ratio: 1 / 1 !important;
	width: 100% !important;
	height: auto !important;
}
