.enquiry__backdrop {
	--enq-navy: #0d4f8b;
	--enq-ink: #14304d;
	--enq-green: #8cbe22;
	--enq-green-light: #b4dc5a;
	--enq-muted: #5f6b76;
	--enq-line: #d5dce3;
	--enq-gutter: #f2f5f8;
	--enq-error: #c20000;

	display: none;
	position: fixed;
	inset: 0;
	background: rgba(10, 22, 36, .6);
	/* Above the site chat badge (.modChat, 10000); below the cookie consent banner. */
	z-index: 10001;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}
.enquiry__backdrop--open { display: flex; }
.enquiry__backdrop *, .enquiry__backdrop *::before, .enquiry__backdrop *::after { box-sizing: border-box; }

.enquiry__modal {
	display: flex;
	width: 100%;
	max-width: 1060px;
	/* Locked to the form's height in showSuccess() so the modal doesn't shrink. */
	height: var(--enq-locked-height, auto);
	max-height: calc(100vh - 40px);
	max-height: calc(100dvh - 40px);
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 24px 64px rgba(10, 22, 36, .35), 0 4px 16px rgba(10, 22, 36, .15);
	overflow: hidden;
	color: var(--enq-ink);
	font-family: inherit;
	text-align: left;
}
.enquiry__modal:focus { outline: none; }

.enquiry__icon {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ---------- Side panel ---------- */
.enquiry__aside {
	position: relative;
	flex: 0 0 40%;
	display: flex;
	background: var(--enq-navy);
	color: #fff;
	overflow: hidden;
}
.enquiry__aside-photo {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 52%;
}
/* Separate layers: a filter on the parent would grey out the navy overlay too. */
.enquiry__aside-photo::before,
.enquiry__aside-photo::after {
	content: '';
	position: absolute;
	inset: 0;
}
.enquiry__aside-photo::before {
	background: var(--enq-photo) center / cover no-repeat;
	/* Contrast lift so hazy detail (e.g. the distant town) survives the navy overlay. */
	filter: grayscale(1) contrast(1.3) brightness(1.1);
}
.enquiry__aside-photo::after {
	/* Lightest mid-panel so the town shows; darker again behind the "Prefer to talk?" block for text contrast. */
	background: linear-gradient(to bottom, #0d4f8b 0%, rgba(13, 79, 139, .8) 22%, rgba(13, 79, 139, .7) 55%, rgba(13, 79, 139, .88) 100%);
}
.enquiry__aside-inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 3rem 2rem;
}
.enquiry__kicker {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--enq-green-light);
}
.enquiry__title {
	margin: 0;
	padding: 0 0 18px;
	font-size: 34px;
	line-height: 1.15;
	font-weight: 700;
	color: #fff;
	text-transform: none;
	letter-spacing: 0;
	border: 0;
	position: relative;
}
.enquiry__title::after {
	content: '';
	position: absolute;
	left: 0; bottom: 0;
	width: 64px;
	height: 4px;
	background: var(--enq-green);
}
.enquiry__intro {
	margin: 26px 0 30px;
	font-size: 16px;
	line-height: 1.6;
	color: #dbe7f2;
}
.enquiry__steps {
	list-style: none;
	margin: 0;
	padding: 0;
}
.enquiry__step {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 16px;
	padding: 0;
	font-size: 15px;
	line-height: 1.4;
	background: none;
}
.enquiry__step::before { content: none; }
.enquiry__step-num {
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--enq-green);
	color: var(--enq-ink);
	font-size: 14px;
	font-weight: 700;
}
.enquiry__aside-call {
	margin-top: auto;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, .2);
}
.enquiry__aside .enquiry__steps { margin-bottom: 32px; }
.enquiry__call-label {
	margin: 0 0 6px;
	font-size: 15px;
	color: #fff;
}
.enquiry__call-link,
.enquiry__call-link:hover,
.enquiry__call-link:focus {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 24px;
	font-weight: 700;
	color: #fff;
	text-decoration: none;
}
.enquiry__call-link:hover span { text-decoration: underline; }
.enquiry__call-link .enquiry__icon { width: 22px; height: 22px; color: var(--enq-green); }

/* ---------- Form column ---------- */
.enquiry__main {
	flex: 1 1 60%;
	min-width: 0;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	display: flex;
	flex-direction: column;
}
.enquiry__mhead { display: none; }
.enquiry__form-wrap { padding: 0 48px 32px; }
#enquiry-form-wrap[hidden] { display: none; }

.enquiry__topbar {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 26px 26px 0 48px;
	margin: 0 0 6px;
}
.enquiry__required { color: var(--enq-error); }

.enquiry__close {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #edf1f5;
	color: var(--enq-navy);
	cursor: pointer;
	transition: background-color .15s ease;
}
.enquiry__close:hover { background: #dfe6ee; }
.enquiry__close:focus-visible { outline: 3px solid var(--enq-green); outline-offset: 2px; }
.enquiry__close .enquiry__icon { width: 20px; height: 20px; stroke-width: 2.2; }
.enquiry__close:disabled { opacity: .5; cursor: default; }

.enquiry__form { margin: 0; }
.enquiry__fields {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
	transition: opacity .15s ease;
}
.enquiry__fields:disabled { opacity: .55; }
.enquiry__pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 22px;
}
.enquiry__row { margin: 0 0 20px; min-width: 0; }
.enquiry__label {
	display: block;
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 700;
	color: var(--enq-ink);
}
.enquiry__hint { margin-left: 4px; font-size: 14px; font-weight: 400; color: var(--enq-muted); }
.enquiry__field {
	display: flex;
	align-items: stretch;
	background: #fff;
	border: 1px solid var(--enq-line);
	border-radius: 4px;
	overflow: hidden;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.enquiry__field:focus-within {
	border-color: var(--enq-navy);
	box-shadow: 0 0 0 3px rgba(13, 79, 139, .15);
}
.enquiry__field--error,
.enquiry__field--error:focus-within { border-color: var(--enq-error); }
.enquiry__field--error:focus-within { box-shadow: 0 0 0 3px rgba(194, 0, 0, .12); }
.enquiry__gutter {
	flex: 0 0 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--enq-gutter);
	border-right: 1px solid var(--enq-line);
	color: var(--enq-navy);
}
.enquiry__field--textarea .enquiry__gutter { align-items: flex-start; padding-top: 15px; }
.enquiry__backdrop .enquiry__input {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	height: 54px;
	margin: 0;
	padding: 0 16px;
	border: 0;
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
	color: var(--enq-ink);
}
.enquiry__backdrop textarea.enquiry__input {
	height: auto;
	min-height: 96px;
	padding: 13px 16px;
	resize: vertical;
}
.enquiry__backdrop .enquiry__input:focus { outline: none; }
.enquiry__backdrop .enquiry__input::placeholder { color: #6b757f; opacity: 1; }
.enquiry__field-error {
	display: none;
	margin: 6px 0 0;
	font-size: 13px;
	line-height: 1.4;
	color: var(--enq-error);
}
.enquiry__field-error--shown { display: block; }
.enquiry__honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.enquiry__submit,
.enquiry__success-close {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	height: 54px;
	margin: 6px 0 0;
	padding: 0 20px;
	border: 0;
	border-radius: 4px;
	background: var(--enq-green);
	color: var(--enq-ink);
	font-family: inherit;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .15s ease;
}
.enquiry__submit:hover,
.enquiry__success-close:hover { background: #7fae1b; }
.enquiry__submit:focus-visible,
.enquiry__success-close:focus-visible { outline: 3px solid var(--enq-navy); outline-offset: 2px; }
.enquiry__submit:disabled { cursor: progress; background: #9fca45; }
.enquiry__submit .enquiry__icon { width: 20px; height: 20px; stroke-width: 2; }
.enquiry__submit-icon { display: inline-flex; }
.enquiry__submit-icon[hidden] { display: none; }
.enquiry__spinner {
	width: 20px;
	height: 20px;
	animation: enquiry-spin .8s linear infinite;
}
/* Class rather than [hidden]: SVGElement.hidden doesn't reliably reflect in all browsers. */
.enquiry__spinner--hidden { display: none; }
.enquiry__spinner circle {
	fill: none;
	stroke: currentColor;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-dasharray: 30 100;
}
@keyframes enquiry-spin { to { transform: rotate(360deg); } }

.enquiry__error {
	display: none;
	margin: 12px 0 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--enq-error);
}
.enquiry__error--shown { display: block; }

.enquiry__secure {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 20px 0 0;
	padding: 18px 0 0;
	border-top: 1px solid #e3e8ed;
	font-size: 14px;
	line-height: 1.5;
	color: var(--enq-muted);
}
.enquiry__secure .enquiry__icon { width: 16px; height: 16px; margin-top: 2px; color: var(--enq-navy); }

.enquiry__next { display: none; }

/* ---------- Success ---------- */
.enquiry__success {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 40px 48px 48px;
}
.enquiry__success[hidden] { display: none; }
.enquiry__success-head {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-bottom: 16px;
}
.enquiry__success-tick {
	flex: 0 0 auto;
	display: flex;
	color: var(--enq-green);
}
.enquiry__success-tick .enquiry__icon { width: 30px; height: 30px; stroke-width: 3; }
.enquiry__success-title {
	margin: 0;
	font-size: 22px;
	line-height: 1.3;
	font-weight: 700;
	color: var(--enq-navy);
	text-transform: none;
	letter-spacing: 0;
}
.enquiry__success-title:focus { outline: none; }
.enquiry__success-text {
	max-width: 30em;
	margin: 0 0 28px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--enq-muted);
}
.enquiry__backdrop .enquiry__success-close {
	width: auto;
	margin: 0;
	padding: 0 44px;
}

/*
 * Desktop heading fits on one line once the form column is wide enough.
 * The modal fills the viewport minus the backdrop's 20px gutters, so a
 * viewport breakpoint of N px means a modal width of N - 40 px.
 */
@media (min-width: 1080px) {
	.enquiry__success-title { white-space: nowrap; }
}

/* ---------- Mobile: modal narrower than 760px (viewport < 800px) ---------- */
@media (max-width: 799px) {
	.enquiry__backdrop { padding: 0; align-items: stretch; }
	.enquiry__modal {
		display: block;
		max-width: none;
		height: 100%;
		max-height: none;
		border-radius: 0;
		box-shadow: none;
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
	}
	.enquiry__aside,
	.enquiry__topbar { display: none; }
	.enquiry__main { display: block; overflow: visible; }

	.enquiry__mhead {
		display: flex;
		align-items: flex-start;
		justify-content: space-between;
		gap: 16px;
		padding: 22px 20px 22px 24px;
		background: var(--enq-navy);
		color: #fff;
	}
	.enquiry__title--m { font-size: 25px; padding-bottom: 14px; }
	.enquiry__close--m {
		width: 44px;
		height: 44px;
		background: rgba(255, 255, 255, .15);
		color: #fff;
	}
	.enquiry__close--m:hover { background: rgba(255, 255, 255, .25); }

	.enquiry__form-wrap { padding: 24px 24px 0; }
	.enquiry__pair { display: block; }

	.enquiry__next {
		display: block;
		margin: 28px -24px 0;
		padding: 28px 24px 32px;
		background: #f4f6f8;
	}
	.enquiry__next-title {
		margin: 0 0 18px;
		font-size: 13px;
		font-weight: 700;
		letter-spacing: .14em;
		text-transform: uppercase;
		color: var(--enq-navy);
	}
	.enquiry__steps--next .enquiry__step { color: var(--enq-ink); }
	.enquiry__next .enquiry__call-label { margin: 24px 0 10px; color: var(--enq-muted); }
	.enquiry__call-btn,
	.enquiry__call-btn:hover,
	.enquiry__call-btn:focus {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
		height: 50px;
		border: 2px solid var(--enq-navy);
		border-radius: 4px;
		background: #fff;
		color: var(--enq-navy);
		font-size: 16px;
		font-weight: 700;
		text-decoration: none;
	}

	.enquiry__success { padding: 40px 24px; }
}

@media (prefers-reduced-motion: reduce) {
	.enquiry__spinner { animation-duration: 2.4s; }
}
