/*
 * JZ iMotor Stock – vehicle detail page (templates/vehicle.php). Card styles are in card.css.
 * Measurements from the Figma file (frame "Frame 39", 1920px wide, 1650px content).
 * Everything is scoped under .jz-vehicle so theme styles don't leak in and ours don't leak out.
 * Colours read the child theme's --jz-* tokens when present, with the design values as fallbacks.
 */

.jz-vehicle {
	--v-blue: var(--jz-blue, #1456ab);
	--v-yellow: #ffc900;
	--v-ink: var(--jz-ink, #050b20);
	--v-text: #000;
	--v-muted: #5b5b5b;
	--v-line: var(--jz-line, #d9d9d9);
	--v-radius: 10px;
	--v-side: clamp(340px, 26vw, 451px);
	--v-gap: clamp(32px, 4vw, 78px);

	padding-block: 60px 20px;
	color: var(--v-text);
	font-size: 16px;
	line-height: 1.6;
}

.jz-vehicle *,
.jz-vehicle *::before,
.jz-vehicle *::after {
	box-sizing: border-box;
}

/* Undo WoodMart's global button/heading/list styles inside our scope. */
.jz-vehicle button {
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font: inherit;
	letter-spacing: normal;
	line-height: inherit;
	text-transform: none;
	cursor: pointer;
}

.jz-vehicle button:hover,
.jz-vehicle button:focus {
	background: none;
	color: inherit;
}

.jz-vehicle :is(h1, h2, h3) {
	margin: 0;
	color: inherit;
	font-family: inherit;
	font-weight: 400;
	letter-spacing: normal;
	text-transform: none;
}

.jz-vehicle p {
	margin: 0;
}

.jz-vehicle ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.jz-vehicle a {
	color: inherit;
	text-decoration: none;
}

.jz-vehicle svg {
	width: 1em;
	height: 1em;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.jz-vehicle :is(a, button):focus-visible {
	outline: 2px solid var(--v-blue);
	outline-offset: 2px;
}

.jz-vehicle .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* Top: heading, gallery, feature strip | price, actions, call, FAQ    */
/* ------------------------------------------------------------------ */

.jz-vtop {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--v-side);
	grid-template-areas: "main side";
	align-items: start;
	column-gap: var(--v-gap);
}

/*
 * Left column (title, gallery, feature strip) stays in view while the longer sidebar scrolls.
 * vehicle.js sets --jz-sticky-top: normally just below the top of the screen; if the column is taller
 * than the screen, a negative value so it scrolls until its bottom is visible, then holds.
 */
.jz-vmain {
	position: sticky;
	top: var(--jz-sticky-top, 30px);
	grid-area: main;
	min-width: 0;
}

.jz-vhead {
	margin-bottom: 36px;
}

.jz-vhead__brand {
	display: inline-block;
	margin-bottom: 14px;
	font-size: 17px;
	line-height: 1.2;
}

.jz-vhead__brand:hover {
	color: var(--v-blue);
}

.jz-vehicle .jz-vhead__title {
	font-size: 30px;
	line-height: 34px;
}

/* Gallery */
.jz-gallery {
	min-width: 0;
}

.jz-gallery__main {
	position: relative;
	aspect-ratio: 1093 / 534;
	overflow: hidden;
	border-radius: 15px;
	background: #e9e9e9;
}

/* Blurred copy of the current photo fills the frame, so portrait photos aren't cropped. */
.jz-gallery__main::before {
	content: "";
	position: absolute;
	inset: -30px;
	background: var(--jz-gallery-bg) center / cover no-repeat;
	filter: blur(24px) brightness(0.85);
}

.jz-gallery__main img {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Landscape photos fill the frame like the design (set by vehicle.js once the photo loads). */
.jz-gallery__main.is-landscape img {
	object-fit: cover;
}

.jz-gallery__none {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: var(--v-muted);
}

.jz-vehicle .jz-gallery__nav {
	position: absolute;
	top: 50%;
	display: grid;
	width: 46px;
	height: 46px;
	place-items: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
	color: var(--v-text);
	font-size: 22px;
	transform: translateY(-50%);
	transition: background-color 0.2s, color 0.2s;
}

.jz-vehicle .jz-gallery__nav:hover {
	background: #fff;
	color: var(--v-blue);
}

.jz-gallery__nav--prev {
	left: 18px;
}

.jz-gallery__nav--next {
	right: 18px;
}

.jz-gallery__count {
	position: absolute;
	right: 18px;
	bottom: 16px;
	padding: 2px 10px;
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 13px;
}

.jz-gallery__thumbs {
	display: grid;
	grid-auto-columns: calc((100% - 4 * 8px) / 5);
	grid-auto-flow: column;
	gap: 8px;
	margin-top: 13px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none; /* Design has no scrollbar; arrows, swipe and keys move the strip. */
}

.jz-gallery__thumbs::-webkit-scrollbar {
	display: none;
}

.jz-vehicle .jz-gallery__thumb {
	position: relative;
	aspect-ratio: 211 / 155;
	overflow: hidden;
	border-radius: var(--v-radius);
	background: #e9e9e9;
	scroll-snap-align: start;
}

.jz-gallery__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}

.jz-gallery__thumb:hover img {
	transform: scale(1.05);
}

.jz-gallery__thumb.is-active::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 3px solid var(--v-blue);
	border-radius: inherit;
}

/* Feature strip */
.jz-vstrip {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 20px 32px;
	margin-top: 36px !important;
	padding: 47px 78px 47px 34px !important;
	border-radius: var(--v-radius);
	background: rgba(0, 0, 0, 0.03);
}

.jz-vstrip li {
	display: flex;
	align-items: center;
	gap: 21px;
	font-size: 18.5px;
	line-height: 1.2;
}

.jz-vstrip__icon {
	display: grid;
	width: 55px;
	height: 55px;
	flex-shrink: 0;
	place-items: center;
	border-radius: 6px;
	background: #d6d6d6;
	font-size: 30px;
}

.jz-vstrip__icon svg {
	stroke-width: 1.4;
}

/* Side column */
.jz-vside {
	grid-area: side;
	min-width: 0;
}

.jz-vprice {
	padding: 26px 30px 40px;
	border: 1px solid rgba(38, 38, 38, 0.1);
	border-radius: var(--v-radius);
	background: rgba(217, 217, 217, 0.1);
}

.jz-vprice__amount {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 36px;
	font-size: 40px;
	line-height: 1.1;
}

.jz-vprice__amount s {
	color: var(--v-muted);
	font-size: 18px;
}

.jz-vprice__qualifier {
	margin-top: 14px !important;
	font-size: 14px;
	line-height: 1.3;
}

.jz-vprice__summary {
	margin: 18px 0 26px !important;
	font-size: 16px;
	line-height: 29px;
}

.jz-vbtn {
	display: inline-flex;
	min-width: 165px;
	min-height: 51px;
	align-items: center;
	justify-content: center;
	padding: 10px 26px;
	border: 1px solid var(--v-yellow);
	border-radius: 5px;
	background: var(--v-yellow);
	color: #000 !important;
	font-size: 18px;
	line-height: 1.2;
	transition: background-color 0.2s, border-color 0.2s;
}

.jz-vbtn:hover {
	border-color: #f0bd00;
	background: #f0bd00;
}

.jz-vbtn--outline {
	border-color: var(--v-blue);
	background: transparent;
	color: var(--v-blue) !important;
}

.jz-vbtn--outline:hover {
	border-color: var(--v-blue);
	background: var(--v-blue);
	color: #fff !important;
}

.jz-vactions {
	margin-top: 38px;
}

.jz-vehicle .jz-wish {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--v-muted);
	font-size: 15px;
}

.jz-vehicle .jz-wish svg {
	font-size: 20px;
}

.jz-vehicle .jz-wish:hover,
.jz-vehicle .jz-wish[aria-pressed="true"] {
	color: #e0245e;
}

.jz-wish[aria-pressed="true"] svg {
	fill: currentColor;
}

.jz-share {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.jz-share__label {
	font-size: 14px;
	font-weight: 600;
}

.jz-share a {
	display: inline-grid;
	color: #333;
	font-size: 15px;
	transition: color 0.2s;
}

.jz-share a:hover {
	color: var(--v-blue);
}

.jz-share svg {
	fill: currentColor;
	stroke: none;
}

.jz-vcall {
	margin-top: 23px;
	padding: 36px 40px;
	border-radius: var(--v-radius);
	background: rgba(20, 86, 171, 0.1);
}

.jz-vcall__title {
	font-size: 24px;
	line-height: 29px;
}

.jz-vcall__phone {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	margin-top: 24px;
	color: #111;
	font-size: 27px;
	letter-spacing: 0.02em;
	line-height: 1;
}

.jz-vcall__phone:hover {
	color: var(--v-blue);
}

.jz-vcall__icon {
	display: grid;
	width: 33px;
	height: 33px;
	place-items: center;
	border-radius: 2px;
	background: var(--v-blue);
	color: #fff;
	font-size: 17px;
}

.jz-vcall__icon svg {
	fill: currentColor;
	stroke: none;
}

.jz-vfaq {
	margin-top: 45px;
	padding: 14px 54px;
	border-radius: var(--v-radius);
	background: rgba(255, 201, 0, 0.2);
}

.jz-vfaq__item + .jz-vfaq__item {
	border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.jz-vehicle .jz-vfaq__q {
	font-size: 22px;
	line-height: 29px;
}

.jz-vehicle .jz-vfaq__q button {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 25px 0;
	text-align: left;
}

.jz-vfaq__q svg {
	flex-shrink: 0;
	color: #1d1b20;
	font-size: 20px;
	stroke-width: 2.4;
	transform: rotate(180deg);
	transition: transform 0.2s;
}

.jz-vfaq__q button[aria-expanded="true"] svg {
	transform: none;
}

.jz-vfaq__a {
	padding-bottom: 22px;
	font-size: 16px;
	line-height: 1.7;
}

.jz-vfaq__a p + p {
	margin-top: 8px;
}

.jz-vfaq__a a {
	color: var(--v-blue);
	text-decoration: underline;
}

/* ------------------------------------------------------------------ */
/* Enquiry forms (inside the yellow accordion)                         */
/* ------------------------------------------------------------------ */

/* Quick Enquiry: open in the sidebar (yellow panel) */
.jz-quick {
	margin-top: 45px;
	padding: 28px 30px 24px;
	border-radius: var(--v-radius);
	background: rgba(255, 201, 0, 0.2);
	scroll-margin-top: 110px; /* clear the sticky header when "Enquire Now" scrolls here */
}

.jz-vehicle .jz-quick__title {
	margin-bottom: 16px;
	font-size: 22px;
	line-height: 29px;
}

/* Make an Offer · Value My Trade-in · Book a Test Drive · Finance Calculator (open the pop-ups) */
.jz-ctas {
	display: grid;
	gap: 12px;
	margin-top: 20px;
}

.jz-vehicle .jz-cta {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	min-height: 54px;
	padding: 12px 20px;
	border: 2px solid var(--v-ink);
	border-radius: 5px;
	background: #fff;
	color: var(--v-ink);
	font-family: var(--jz-font-ui, "DM Sans", sans-serif);
	font-size: 17px;
	font-weight: 500;
	text-align: left;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.jz-vehicle .jz-cta:hover,
.jz-vehicle .jz-cta:focus-visible {
	border-color: var(--v-blue);
	background: var(--v-blue);
	color: #fff;
}

.jz-cta__icon {
	display: inline-flex;
	flex-shrink: 0;
	font-size: 22px;
}

.jz-cta__icon svg {
	width: 1em;
	height: 1em;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Pop-ups (<dialog>): heading + close, the car (photo, name, price, details), then the form */
html.jz-modal-open {
	overflow: hidden; /* no page scrolling behind the pop-up */
}

.jz-vehicle .jz-modal {
	width: min(760px, calc(100vw - 32px));
	max-width: none;
	max-height: calc(100dvh - 48px);
	margin: auto;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: var(--v-radius);
	background: #fff;
	box-shadow: 0 24px 70px rgba(5, 11, 32, 0.3);
	color: var(--v-text);
}

.jz-vehicle .jz-modal[open] {
	display: flex;
	flex-direction: column;
}

.jz-modal::backdrop {
	background: rgba(5, 11, 32, 0.6);
}

.jz-modal__head {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 20px 18px 30px;
	border-bottom: 1px solid var(--v-line);
}

.jz-vehicle .jz-modal__title {
	font-family: var(--jz-font-ui, "DM Sans", sans-serif);
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.3;
	text-transform: uppercase; /* "MAKE AN OFFER FORM", as on iMotor */
}

.jz-vehicle .jz-modal__close {
	display: inline-grid;
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	place-items: center;
	border-radius: 50%;
	font-size: 22px;
	transition: background 0.15s;
}

.jz-vehicle .jz-modal__close:hover {
	background: #f0f0f0;
}

.jz-modal__close svg {
	width: 1em;
	height: 1em;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.jz-modal__body {
	min-height: 0;
	padding: 24px 30px 30px;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: rgba(255, 201, 0, 0.12);
}

.jz-modal__car {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	margin-bottom: 22px;
	padding: 16px;
	border-radius: 8px;
	background: #fff;
}

.jz-modal__photo {
	width: 150px;
	height: auto;
	flex-shrink: 0;
	aspect-ratio: 4 / 3;
	border-radius: 6px;
	object-fit: cover;
}

.jz-modal__info {
	min-width: 0;
}

.jz-vehicle .jz-modal__name {
	color: #000;
	font-size: 17px;
	line-height: 1.35;
}

.jz-vehicle .jz-modal__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
	margin-top: 6px;
}

.jz-modal__price strong {
	color: var(--v-blue);
	font-size: 22px;
	font-weight: 600;
}

.jz-modal__price span {
	color: #555;
	font-size: 12px;
	letter-spacing: 0.03em;
	text-transform: uppercase; /* "EGC - EXCLUDING GOVERNMENT CHARGES" */
}

.jz-vehicle .jz-modal__details {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
}

.jz-modal__details li {
	padding: 3px 10px;
	border-radius: 999px;
	background: #f1f3f7;
	color: #333;
	font-size: 13px;
	line-height: 1.5;
}

/* The finance calculator gets a wider pop-up: two columns (calculator | contact form) on desktop */
.jz-vehicle .jz-modal--wide {
	width: min(980px, calc(100vw - 32px));
}

@media (min-width: 900px) {
	.jz-modal--wide .jz-form {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: start;
		column-gap: 36px;
	}

	.jz-modal--wide .jz-form > * {
		grid-column: 2;
	}

	.jz-modal--wide .jz-form > .jz-calc {
		grid-column: 1;
		grid-row: 1 / span 20;
		margin-bottom: 0;
	}

	.jz-modal--wide .jz-form > .jz-form__hp {
		position: absolute !important;
	}
}

@media (max-width: 600px) {
	/* Phones: the pop-up fills the screen */
	.jz-vehicle .jz-modal,
	.jz-vehicle .jz-modal--wide {
		width: 100vw;
		max-height: 100dvh;
		height: 100dvh;
		border-radius: 0;
	}

	.jz-modal__head {
		padding: 12px 12px 12px 18px;
	}

	.jz-vehicle .jz-modal__title {
		font-size: 16px;
	}

	.jz-modal__body {
		padding: 18px 18px 28px;
	}

	.jz-modal__car {
		gap: 14px;
		padding: 12px;
	}

	.jz-modal__photo {
		width: 96px;
	}

	.jz-vehicle .jz-modal__name {
		font-size: 15px;
	}

	.jz-modal__price strong {
		font-size: 19px;
	}

	.jz-quick {
		margin-top: 28px;
		padding: 22px 18px 18px;
	}
}

/* iMotor's own forms in frames (Settings → iMotor Stock → "Use iMotor's own forms"; includes/class-imotor-frames.php) */
.jz-frame {
	position: relative;
	overflow: hidden;
	background: #fff;
}

.jz-frame iframe {
	display: block;
	width: 100%;
	border: 0;
	opacity: 0; /* shown once loaded (vehicle.js), over the "Loading form…" line */
	transition: opacity 0.2s;
}

.jz-frame.is-loaded iframe {
	opacity: 1;
}

.jz-vehicle .jz-frame__loading {
	position: absolute;
	top: 120px;
	right: 0;
	left: 0;
	color: #666;
	font-size: 14px;
	text-align: center;
}

.jz-frame.is-loaded .jz-frame__loading {
	display: none;
}

/* Quick Enquiry: iMotor's car page scrolled to its form; iMotor's card replaces our yellow panel.
   Tall enough for the form; with comments open it scrolls inside the frame. */
.jz-vehicle .jz-quick--frame {
	padding: 0;
	overflow: hidden;
	background: #fff;
}

.jz-frame--quick iframe {
	height: 650px; /* ends just before iMotor's own pop-up buttons (ours are below) */
}

/* Pop-ups: our title bar + close button over iMotor's pop-up, whose own 40px title bar (and close
   button, which would reveal their car page) is moved out of view. */
.jz-vehicle .jz-modal--frame {
	width: min(560px, calc(100vw - 32px));
	height: min(860px, calc(100dvh - 48px));
}

.jz-vehicle .jz-modal--frame .jz-modal__body {
	flex: 1;
	padding: 0;
	overflow: hidden;
	background: #fff;
}

.jz-frame--modal {
	height: 100%;
}

.jz-frame--modal iframe {
	height: calc(100% + 40px);
	margin-top: -40px;
}

@media (max-width: 600px) {
	.jz-vehicle .jz-modal--frame {
		width: 100vw;
		height: 100dvh;
	}
}

.jz-form {
	padding-bottom: 6px;
	font-family: var(--jz-font-ui, "DM Sans", sans-serif);
}

.jz-vehicle .jz-form__req {
	margin-bottom: 16px;
	padding: 10px 12px;
	border-left: 3px solid var(--v-blue);
	border-radius: 0 6px 6px 0;
	background: rgba(255, 255, 255, 0.7);
	font-size: 14px;
	font-weight: 500;
}

.jz-form__req span,
.jz-req {
	color: #d0021b;
}

.jz-form__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.jz-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 12px;
}

.jz-field {
	grid-column: 1 / -1;
	min-width: 0;
}

.jz-field--half {
	grid-column: auto;
}

.jz-field--full {
	grid-column: 1 / -1;
}

.jz-vehicle .jz-field label {
	display: block;
	margin: 0 0 6px;
	color: #333;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
}

.jz-vehicle .jz-field :is(input:not([type="checkbox"]), textarea) {
	box-sizing: border-box;
	width: 100%;
	height: 46px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid #cfcfd6;
	border-radius: 6px;
	background: #fff;
	box-shadow: none;
	color: #000;
	font: inherit;
	font-size: 15px;
	-webkit-appearance: none;
	appearance: none;
}

.jz-vehicle .jz-field input[type="number"] {
	text-align: left; /* WoodMart centres number inputs */
}

/* Dropdown field (e.g. "Services" on the Contact form) */
.jz-vehicle .jz-field select {
	box-sizing: border-box;
	width: 100%;
	height: 46px;
	margin: 0;
	padding: 0 40px 0 12px;
	border: 1px solid #cfcfd6;
	border-radius: 6px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23050b20' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px;
	box-shadow: none;
	color: #000;
	font: inherit;
	font-size: 15px;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.jz-vehicle .jz-field select:focus {
	border-color: var(--v-blue);
	outline: 2px solid rgba(20, 86, 171, 0.2);
	outline-offset: 0;
}

/* A form placed with the "Enquiry Form" Elementor widget (e.g. Contact page): no page padding */
.jz-vehicle.jz-enquiry-embed {
	padding: 0;
}

.jz-vehicle .jz-enquiry-embed__title {
	margin: 0 0 26px;
	color: var(--v-ink);
	font-family: var(--jz-font-ui, "DM Sans", sans-serif);
	font-size: clamp(24px, 2.2vw, 32px);
	font-weight: 600;
	line-height: 1.25;
}

.jz-vehicle .jz-field textarea {
	height: auto;
	min-height: 100px;
	padding-block: 10px;
	resize: vertical;
}

.jz-vehicle .jz-field input[type="file"] {
	height: auto;
	padding: 10px;
	font-size: 14px;
}

.jz-vehicle .jz-field :is(input, textarea):focus {
	border-color: var(--v-blue);
	outline: 2px solid rgba(20, 86, 171, 0.2);
	outline-offset: 0;
}

.jz-vehicle .jz-field [aria-invalid="true"] {
	border-color: #d0021b;
}

.jz-field__money {
	position: relative;
	display: block;
}

.jz-field__money::before {
	content: "$";
	position: absolute;
	top: 50%;
	left: 12px;
	color: #6b6b70;
	transform: translateY(-50%);
}

.jz-vehicle .jz-field__money input {
	padding-left: 26px !important;
}

.jz-vehicle .jz-field__error {
	margin-top: 5px;
	color: #b00018;
	font-size: 13px;
}

.jz-vehicle .jz-form__heading {
	grid-column: 1 / -1;
	margin: 8px 0 0;
	color: #000;
	font-size: 16px;
	font-weight: 600;
}

.jz-vehicle .jz-form__toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	justify-self: start;
	color: #000;
	font-size: 15px;
	font-weight: 600;
}

.jz-form__plus {
	display: inline-grid;
	width: 22px;
	height: 22px;
	place-items: center;
	border-radius: 50%;
	background: #000;
	color: #fff;
	font-size: 17px;
	line-height: 1;
	transition: transform 0.2s;
}

.jz-form__toggle[aria-expanded="true"] .jz-form__plus {
	transform: rotate(45deg);
}

.jz-vehicle .jz-check2 {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	color: #333;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	cursor: pointer;
}

.jz-vehicle .jz-check2 input {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	margin: 2px 0 0;
	accent-color: var(--v-blue);
}

.jz-check2 a {
	color: var(--v-blue) !important;
	text-decoration: underline !important;
}

.jz-vehicle .jz-check2 a:focus:not(:focus-visible) {
	outline: none; /* no box after a mouse click (keyboard users still get the focus ring) */
}

.jz-vehicle .jz-form__submit {
	width: 100%;
	min-height: 51px; /* restate .jz-vbtn: the .jz-vehicle button reset outranks it */
	margin-top: 18px;
	padding: 10px 26px;
	border: 1px solid var(--v-blue);
	border-radius: 5px;
	border-color: var(--v-blue);
	background: var(--v-blue);
	color: #fff !important;
	font-family: var(--jz-font-ui, "DM Sans", sans-serif);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.jz-vehicle .jz-form__submit:hover {
	border-color: #0f4288;
	background: #0f4288;
}

.jz-form__submit:disabled {
	opacity: 0.6;
	cursor: wait;
}

.jz-vehicle .jz-form__status {
	margin-top: 12px;
	padding: 10px 12px;
	border-radius: 6px;
	background: #fdecee;
	color: #8a0014;
	font-size: 14px;
}

/* reCAPTCHA v3: Google's floating badge is hidden and this notice shown instead (allowed by Google). */
.grecaptcha-badge {
	visibility: hidden;
}

.jz-vehicle .jz-form__recaptcha {
	margin: 12px 0 0;
	color: #666;
	font-size: 12px;
	line-height: 1.5;
}

.jz-vehicle .jz-form__recaptcha a {
	color: inherit;
	text-decoration: underline;
}

.jz-form__done {
	padding: 22px 18px;
	border-radius: 8px;
	background: #fff;
	text-align: center;
}

.jz-form__done strong {
	display: block;
	margin-bottom: 6px;
	color: var(--v-blue);
	font-size: 20px;
}

.jz-vehicle [hidden] {
	display: none !important; /* our display rules (e.g. the repayment bar's flex) mustn't un-hide things */
}

/* Trade-in: file size note at the top of the form */
.jz-vehicle .jz-form__notice {
	margin-bottom: 10px;
	color: #555;
	font-size: 13px;
	line-height: 1.5;
}

/* Trade-in: Vehicle Condition slider (Poor · Average · Excellent) */
.jz-vehicle .jz-condition input[type="range"] {
	--fill: 50%;
	display: block;
	width: 100%;
	height: 22px;
	margin: 4px 0 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.jz-condition input[type="range"]::-webkit-slider-runnable-track {
	height: 6px;
	border-radius: 3px;
	background: linear-gradient(to right, var(--v-blue) var(--fill), #fff var(--fill));
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.jz-condition input[type="range"]::-moz-range-track {
	height: 6px;
	border-radius: 3px;
	background: linear-gradient(to right, var(--v-blue) var(--fill), #fff var(--fill));
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.jz-condition input[type="range"]::-webkit-slider-thumb {
	width: 20px;
	height: 20px;
	margin-top: -7px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--v-blue);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
	-webkit-appearance: none;
}

.jz-condition input[type="range"]::-moz-range-thumb {
	width: 14px;
	height: 14px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--v-blue);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.jz-vehicle .jz-condition input[type="range"]:focus-visible {
	outline: 2px solid var(--v-blue);
	outline-offset: 3px;
	border-radius: 4px;
}

.jz-condition__labels {
	display: flex;
	justify-content: space-between;
	margin-top: 4px;
	color: #555;
	font-size: 13px;
}

/* Finance calculator (templates/finance-calculator.php) */
.jz-calc__current {
	margin-left: 4px;
	color: #6b6b70;
	font-weight: 400;
}

.jz-calc {
	display: grid;
	gap: 18px;
	margin-bottom: 18px;
}

.jz-vehicle .jz-calc .jz-form__heading {
	margin: 4px 0 -4px;
}

.jz-vehicle .jz-calc + .jz-form__heading {
	margin: 26px 0 14px;
}

.jz-calc__field {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 8px 12px;
}

.jz-vehicle .jz-calc__field > label,
.jz-vehicle .jz-calc__label,
.jz-vehicle .jz-calc__freq legend {
	margin: 0;
	padding: 0;
	color: #333;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
}

.jz-calc__field > input[type="range"],
.jz-calc__field > .jz-field__error {
	grid-column: 1 / -1;
}

.jz-vehicle .jz-calc__field > .jz-field__error {
	margin: 0;
}

.jz-calc__input {
	position: relative;
	display: block;
	width: 138px;
}

.jz-calc__input::before {
	content: attr(data-unit);
	position: absolute;
	top: 50%;
	left: 11px;
	color: #6b6b70;
	font-size: 15px;
	pointer-events: none;
	transform: translateY(-50%);
}

.jz-calc__input--after::before {
	right: 11px;
	left: auto;
}

.jz-vehicle .jz-calc__input input {
	width: 100%;
	height: 42px;
	margin: 0;
	padding: 0 11px 0 24px;
	border: 1px solid #cfcfd6;
	border-radius: 6px;
	background: #fff;
	box-shadow: none;
	color: #000;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	text-align: right;
	-moz-appearance: textfield;
	appearance: textfield;
}

.jz-vehicle .jz-calc__input--after input {
	padding: 0 28px 0 11px;
}

.jz-calc__input input::-webkit-inner-spin-button,
.jz-calc__input input::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.jz-vehicle .jz-calc__input input:focus {
	border-color: var(--v-blue);
	outline: 2px solid rgba(20, 86, 171, 0.2);
	outline-offset: 0;
}

.jz-vehicle .jz-calc__input [aria-invalid="true"] {
	border-color: #d0021b;
}

.jz-calc__badge {
	padding: 5px 14px;
	border-radius: 999px;
	background: var(--v-blue);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	text-transform: uppercase; /* "5 YEARS", as on iMotor */
}

/* Sliders: blue up to the thumb (--fill is set by enquiry.js). */
.jz-vehicle .jz-calc input[type="range"] {
	--fill: 0%;
	display: block;
	width: 100%;
	height: 22px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.jz-calc input[type="range"]::-webkit-slider-runnable-track {
	height: 6px;
	border-radius: 3px;
	background: linear-gradient(to right, var(--v-blue) var(--fill), #fff var(--fill));
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.jz-calc input[type="range"]::-moz-range-track {
	height: 6px;
	border-radius: 3px;
	background: linear-gradient(to right, var(--v-blue) var(--fill), #fff var(--fill));
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.jz-calc input[type="range"]::-webkit-slider-thumb {
	width: 20px;
	height: 20px;
	margin-top: -7px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--v-blue);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
	-webkit-appearance: none;
}

.jz-calc input[type="range"]::-moz-range-thumb {
	width: 14px;
	height: 14px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--v-blue);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.jz-vehicle .jz-calc input[type="range"]:focus-visible {
	outline: 2px solid var(--v-blue);
	outline-offset: 3px;
	border-radius: 4px;
}

/* Payment frequency chips */
.jz-vehicle .jz-calc__freq {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.jz-vehicle .jz-calc__freq legend {
	margin-bottom: 8px;
}

.jz-calc__chips {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px;
}

.jz-vehicle .jz-calc__chip {
	position: relative;
	margin: 0;
	cursor: pointer;
}

.jz-vehicle .jz-calc__chip input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.jz-calc__chip span {
	display: block;
	padding: 9px 4px;
	border: 1px solid #cfcfd6;
	border-radius: 6px;
	background: #fff;
	color: #000;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	text-transform: uppercase; /* WEEKLY · FORTNIGHTLY · MONTHLY */
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.jz-calc__chip input:checked + span {
	border-color: var(--v-blue);
	background: var(--v-blue);
	color: #fff;
}

.jz-calc__chip input:focus-visible + span {
	outline: 2px solid var(--v-blue);
	outline-offset: 2px;
}

.jz-vehicle .jz-calc__repay {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 12px;
	padding: 14px 16px;
	border-radius: 8px;
	background: var(--v-blue);
	color: #fff;
}

.jz-calc__repay span {
	font-size: 14px;
	font-weight: 500;
}

.jz-calc__repay strong {
	font-size: 26px;
	font-weight: 600;
	line-height: 1.1;
}

/* Details of your loan over time */
.jz-calc__over {
	display: grid;
	gap: 12px;
	padding: 16px;
	border-radius: 8px;
	background: #fff;
}

.jz-vehicle .jz-calc__over-title,
.jz-vehicle .jz-calc__summary-title {
	color: #000;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
}

.jz-vehicle .jz-calc__rows,
.jz-vehicle .jz-calc__summary dl {
	display: grid;
	gap: 6px;
	margin: 0;
}

.jz-calc__rows div,
.jz-calc__summary dl div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 14px;
	line-height: 1.4;
}

.jz-calc__rows div {
	padding-bottom: 6px;
	border-bottom: 1px dashed #e2e2e2;
}

.jz-vehicle .jz-calc :is(dt, dd),
.jz-vehicle .jz-calc__summary :is(dt, dd) {
	margin: 0;
	color: #555;
	font-weight: 400;
}

.jz-vehicle .jz-calc dd,
.jz-vehicle .jz-calc__summary dd {
	color: #000;
	font-weight: 600;
	text-align: right;
}

@property --owned {
	syntax: "<percentage>";
	inherits: false;
	initial-value: 0%;
}

.jz-calc__owned {
	display: flex;
	align-items: center;
	gap: 14px;
}

.jz-calc__donut {
	width: 64px;
	height: 64px;
	flex-shrink: 0;
	border-radius: 50%;
	background:
		radial-gradient(closest-side, #fff 66%, transparent 67%),
		conic-gradient(var(--v-blue) var(--owned), #e3e9f3 0);
	transition: --owned 0.3s;
}

.jz-vehicle .jz-calc__owned p {
	font-size: 14px;
	line-height: 1.3;
}

.jz-calc__owned strong {
	display: block;
	color: var(--v-blue);
	font-size: 22px;
	font-weight: 600;
}

.jz-calc__ticks {
	display: flex;
	justify-content: space-between;
	margin-top: -8px;
	padding-inline: 6px;
	color: #6b6b70;
	font-size: 12px;
	line-height: 1;
}

.jz-vehicle .jz-calc__summary {
	padding: 14px 16px;
	border: 1px solid rgba(20, 86, 171, 0.25);
	border-radius: 8px;
	background: #fff;
}

.jz-vehicle .jz-calc__summary-title {
	margin-bottom: 8px;
}

.jz-vehicle .jz-calc__location {
	color: #000;
	font-size: 14px;
	font-weight: 600;
}

.jz-calc__location span {
	color: #555;
	font-weight: 400;
}

.jz-vehicle .jz-calc__note {
	margin-top: 14px;
	color: #555;
	font-size: 12px;
	line-height: 1.5;
}

/* ------------------------------------------------------------------ */
/* Tabs                                                                */
/* ------------------------------------------------------------------ */

.jz-vtabs {
	margin-top: 110px;
}

.jz-vtabs__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 90px;
}

.jz-vehicle .jz-vtabs__list button {
	position: relative;
	padding-bottom: 14px;
	font-size: 22px;
	line-height: 1.1;
}

.jz-vehicle .jz-vtabs__list button::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 4px;
	background: var(--v-blue);
	transform: scaleX(0);
	transition: transform 0.2s;
}

.jz-vehicle .jz-vtabs__list button[aria-selected="true"]::after,
.jz-vehicle .jz-vtabs__list button:hover::after {
	transform: none;
}

.jz-vtabs__panel {
	margin-top: 42px;
	padding: 38px 57px;
	border-radius: 15px;
	background: rgba(147, 147, 147, 0.1);
	font-size: 20px;
	line-height: 30px;
}

.jz-vtabs__panel p + p {
	margin-top: 20px;
}

.jz-vtabs__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.jz-vspecs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 57px;
	margin: 0;
	font-size: 18px;
}

.jz-vspecs div {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	padding: 12px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.jz-vspecs dt {
	color: var(--v-muted);
	font-weight: 400;
}

.jz-vspecs dd {
	margin: 0;
	text-align: right;
}

/* ------------------------------------------------------------------ */
/* Similar vehicles + stock card                                       */
/* ------------------------------------------------------------------ */

.jz-similar {
	margin-top: 90px;
}

.jz-vehicle .jz-similar__title {
	margin-bottom: 40px;
	color: var(--v-blue);
	font-size: 25px;
	line-height: 1.1;
	text-align: center;
}

.jz-similar__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px 11px;
}

/* Not found / service down */
.jz-vstate {
	display: grid;
	justify-items: center;
	gap: 20px;
	padding: 80px 20px;
	border-radius: 15px;
	background: rgba(147, 147, 147, 0.1);
	font-size: 20px;
	text-align: center;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (min-width: 1740px) {
	/* The design's description panel is slightly wider than the content column. */
	.jz-vtabs__panel {
		margin-inline: -28px;
	}
}

@media (max-width: 1366px) {
	.jz-vstrip {
		padding-inline: 34px !important;
	}

	.jz-vstrip li {
		gap: 14px;
		font-size: 17px;
	}

	.jz-vfaq {
		padding-inline: 34px;
	}
}

@media (max-width: 1024px) {
	.jz-vehicle {
		padding-top: 32px;
	}

	.jz-vtop {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"main"
			"side";
	}

	.jz-vmain {
		position: static;
	}

	.jz-vside {
		margin-top: 32px;
	}

	.jz-vtabs {
		margin-top: 64px;
	}

	.jz-similar__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.jz-vehicle .jz-vhead__title {
		font-size: 24px;
		line-height: 30px;
	}

	.jz-vhead {
		margin-bottom: 20px;
	}

	.jz-gallery__main {
		aspect-ratio: 4 / 3;
		border-radius: var(--v-radius);
	}

	.jz-vehicle .jz-gallery__nav {
		width: 38px;
		height: 38px;
		font-size: 18px;
	}

	.jz-gallery__nav--prev {
		left: 10px;
	}

	.jz-gallery__nav--next {
		right: 10px;
	}

	.jz-gallery__thumbs {
		grid-auto-columns: calc((100% - 3 * 8px) / 4);
	}

	.jz-vstrip {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px 12px;
		margin-top: 20px !important;
		padding: 22px 18px !important;
	}

	.jz-vstrip li {
		gap: 10px;
		font-size: 15px;
	}

	.jz-vstrip__icon {
		width: 44px;
		height: 44px;
		font-size: 24px;
	}

	.jz-vprice {
		padding: 22px 20px 26px;
	}

	.jz-vprice__amount {
		font-size: 32px;
	}

	.jz-vbtn {
		width: 100%;
	}

	.jz-vcall {
		padding: 26px 22px;
	}

	.jz-vcall__title {
		font-size: 20px;
	}

	.jz-vcall__phone {
		font-size: 23px;
	}

	.jz-vfaq {
		margin-top: 28px;
		padding: 6px 22px;
	}

	.jz-vehicle .jz-vfaq__q {
		font-size: 18px;
	}

	.jz-vehicle .jz-vfaq__q button {
		padding: 18px 0;
	}

	.jz-vtabs__list {
		justify-content: space-between;
		gap: 8px 16px;
	}

	.jz-vehicle .jz-vtabs__list button {
		font-size: 17px;
	}

	.jz-vtabs__panel {
		margin-top: 22px;
		padding: 24px 20px;
		font-size: 16px;
		line-height: 26px;
	}

	.jz-vspecs {
		grid-template-columns: minmax(0, 1fr);
		font-size: 15px;
	}

	.jz-similar {
		margin-top: 56px;
	}

	.jz-vehicle .jz-similar__title {
		margin-bottom: 24px;
		font-size: 22px;
	}

	.jz-similar__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}
