/* Enquiry forms. Uses the theme's colour tokens when present, with brand fallbacks. */
.hwi-enq-wrap {
	--enq-petrol: var(--petrol, #06617B); --enq-petrol-deep: var(--petrol-deep, #044B5F);
	--enq-heading: var(--heading, #14333E); --enq-body: var(--body, #4A6570);
	--enq-border: #9DB8C1; --enq-tint: var(--tint, #EBF3F4); --enq-gold: var(--gold, #D4893B);
	--enq-teal: var(--teal-deep, #2F8C80); --enq-error: #A6432B; --enq-error-bg: #FBEDE9;
	--enq-radius: var(--radius, 8px); --enq-ease: cubic-bezier(.2, .7, .2, 1);
	max-width: 720px; scroll-margin-top: 110px;
}
.hwi-enq { display: grid; gap: 28px; }
.hwi-enq__group { margin: 0; padding: 0; border: 0; min-width: 0; }
.hwi-enq__legend {
	display: flex; align-items: center; gap: 10px; width: 100%; margin-bottom: 16px; padding: 0;
	font: 600 12.5px/1.4 var(--sans, Inter, system-ui, sans-serif); letter-spacing: .16em; text-transform: uppercase; color: var(--enq-petrol);
}
.hwi-enq__legend::after { content: ""; flex: 1; height: 1px; background: var(--border, #CFE2E8); }
.hwi-enq__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px 20px; }
@media (min-width: 640px) {
	.hwi-enq__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hwi-enq__field:not(.is-half) { grid-column: 1 / -1; }
}

/* fields */
.hwi-enq__field { display: grid; gap: 6px; align-content: start; margin: 0; padding: 0; border: 0; min-width: 0; }
.hwi-enq__label { padding: 0; font-weight: 600; font-size: 15px; line-height: 1.4; color: var(--enq-heading); }
.hwi-enq__opt, .hwi-enq__hint { font-weight: 400; font-size: 13.5px; color: var(--enq-body); }
.hwi-enq__hint { margin-top: 0; line-height: 1.45; }
.hwi-enq input[type=text], .hwi-enq input[type=email], .hwi-enq input[type=tel], .hwi-enq select, .hwi-enq textarea {
	width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--enq-heading);
	background: #fff; border: 1px solid var(--enq-border); border-radius: var(--enq-radius);
	transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.hwi-enq select { appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306617B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; }
.hwi-enq textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.hwi-enq input:hover, .hwi-enq select:hover, .hwi-enq textarea:hover { border-color: var(--enq-petrol); }
.hwi-enq input:focus, .hwi-enq select:focus, .hwi-enq textarea:focus { outline: none; border-color: var(--enq-petrol); box-shadow: 0 0 0 4px rgba(6, 97, 123, .16); }

/* radio pills */
.hwi-enq__pills { display: flex; flex-wrap: wrap; gap: 10px; }
.hwi-enq__pill { position: relative; cursor: pointer; }
.hwi-enq__pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.hwi-enq__pill span {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px;
	font-size: 15px; color: var(--enq-heading); background: #fff; border: 1px solid var(--enq-border); border-radius: 999px;
	transition: background-color .18s, border-color .18s, color .18s, box-shadow .18s;
}
.hwi-enq__pill span::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--enq-border); background: #fff; transition: inherit; }
.hwi-enq__pill:hover span { border-color: var(--enq-petrol); }
.hwi-enq__pill input:checked + span { background: var(--enq-petrol); border-color: var(--enq-petrol); color: #fff; }
.hwi-enq__pill input:checked + span::before { border-color: #fff; background: var(--enq-petrol); box-shadow: inset 0 0 0 3px #fff; }
.hwi-enq__pill input:focus-visible + span { box-shadow: 0 0 0 4px rgba(6, 97, 123, .22); }

/* file upload: the real input covers the drop zone, so click, tap, keyboard and drag-and-drop are all native */
.hwi-enq__drop {
	position: relative; display: grid; place-items: center; min-height: 96px; padding: 18px; text-align: center;
	font-size: 15px; color: var(--enq-body); background: var(--enq-tint); border: 1.5px dashed var(--enq-border); border-radius: var(--enq-radius);
	transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.hwi-enq__drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.hwi-enq__drop-text::before {
	content: ""; display: block; width: 26px; height: 26px; margin: 0 auto 6px; background: var(--enq-petrol);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 13v8'/%3E%3Cpath d='M4 14.9A7 7 0 1 1 15.7 8h1.8a4.5 4.5 0 0 1 2.5 8.2'/%3E%3Cpath d='m8 17 4-4 4 4'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 13v8'/%3E%3Cpath d='M4 14.9A7 7 0 1 1 15.7 8h1.8a4.5 4.5 0 0 1 2.5 8.2'/%3E%3Cpath d='m8 17 4-4 4 4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hwi-enq__drop-text b { color: var(--enq-petrol); text-decoration: underline; text-underline-offset: 3px; }
.hwi-enq__drop:hover, .hwi-enq__drop.is-over { border-color: var(--enq-petrol); background: #fff; }
.hwi-enq__drop:focus-within { border-color: var(--enq-petrol); box-shadow: 0 0 0 4px rgba(6, 97, 123, .16); }
@media (hover: none) { .hwi-enq__drag { display: none; } }
.has-error .hwi-enq__drop { border-color: var(--enq-error); background: #FFFBFA; }
.hwi-enq__files { display: grid; gap: 8px; min-width: 0; margin: 4px 0 0; padding: 0; list-style: none; }
.hwi-enq__files[hidden] { display: none; }
.hwi-enq__files li {
	display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 52px; padding: 4px 4px 4px 14px;
	background: #fff; border: 1px solid var(--border, #CFE2E8); border-radius: var(--enq-radius); font-size: 15px;
}
.hwi-enq__fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--enq-heading); }
.hwi-enq__fsize { flex: 0 0 auto; font-size: 13.5px; color: var(--enq-body); }
.hwi-enq__fremove {
	flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
	background: transparent; color: var(--enq-body); font-size: 22px; line-height: 1; cursor: pointer;
}
.hwi-enq__fremove::before { content: "\00d7"; }
.hwi-enq__fremove:hover { background: var(--enq-error-bg); color: var(--enq-error); }
.hwi-enq__fremove:focus-visible { outline: 3px solid var(--enq-gold); outline-offset: 1px; }

/* consent */
.hwi-enq__check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15px; color: var(--enq-heading); }
.hwi-enq__check input { flex: 0 0 auto; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--enq-petrol); cursor: pointer; }

/* errors */
.hwi-enq__error { display: flex; gap: 6px; align-items: flex-start; margin: 2px 0 0; font-size: 14px; line-height: 1.45; color: var(--enq-error); }
.hwi-enq__error::before { content: "!"; flex: 0 0 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--enq-error); color: #fff; font: 700 12px/18px var(--sans, sans-serif); text-align: center; }
.hwi-enq__error[hidden] { display: none; }
.has-error input:not([type=radio]):not([type=checkbox]), .has-error select, .has-error textarea { border-color: var(--enq-error); background-color: #FFFBFA; }
.has-error .hwi-enq__pill span { border-color: var(--enq-error); }
.hwi-enq__banner { padding: 14px 18px; border-radius: var(--enq-radius); font-size: 15px; line-height: 1.5; outline: none; }
.hwi-enq__banner.is-error, .hwi-enq__banner:not([class*=is-]) { background: var(--enq-error-bg); color: #7A2E1C; border: 1px solid #E8C4B9; border-left: 4px solid var(--enq-error); }
.hwi-enq__banner[hidden] { display: none; }

/* honeypot: off-screen, never focusable */
.hwi-enq__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* submit */
.hwi-enq__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.hwi-enq__submit {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 54px; padding: 14px 32px; border: 0; border-radius: var(--enq-radius); cursor: pointer;
	font: 600 16px var(--sans, Inter, system-ui, sans-serif); color: #fff; background: var(--enq-petrol);
	box-shadow: 0 12px 26px -14px rgba(6, 97, 123, .8); transition: background-color .18s, transform .18s var(--enq-ease), box-shadow .18s;
}
.hwi-enq__submit:hover { background: var(--enq-petrol-deep); }
.hwi-enq__submit:focus-visible { outline: 3px solid var(--enq-gold); outline-offset: 3px; }
.hwi-enq__submit:disabled { cursor: progress; opacity: .9; }
.hwi-enq__spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; }
.is-busy .hwi-enq__spinner { display: inline-block; }
.hwi-enq__privacy { margin: 0; font-size: 13.5px; color: var(--enq-body); }
@media (max-width: 479px) { .hwi-enq__submit { width: 100%; } }

/* success */
.hwi-enq__success {
	padding: clamp(28px, 5vw, 44px); border-radius: 16px; outline: none;
	background: #fff; border: 1px solid var(--border, #CFE2E8); box-shadow: 0 24px 50px -30px rgba(20, 51, 62, .45);
}
.hwi-enq__success[hidden] { display: none; }
.hwi-enq__tick { width: 64px; height: 64px; margin-bottom: 18px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hwi-enq__tick circle { stroke: var(--enq-teal); stroke-width: 2.5; }
.hwi-enq__tick path { stroke: var(--enq-teal); stroke-width: 3.5; }
.hwi-enq__thanks { margin: 0 0 10px; font-family: var(--serif, Georgia, serif); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2rem); color: var(--enq-petrol); }
.hwi-enq__success p { color: var(--enq-body); }
.hwi-enq__next { margin: 18px 0; padding: 0; list-style: none; counter-reset: enq; display: grid; gap: 10px; }
.hwi-enq__next li { counter-increment: enq; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; color: var(--enq-heading); }
.hwi-enq__next li::before { content: counter(enq); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--enq-tint); color: var(--enq-petrol); font-weight: 700; font-size: 14px; }
.hwi-enq__wa a { font-weight: 600; color: var(--enq-petrol); }

/* motion */
@media (prefers-reduced-motion: no-preference) {
	@keyframes hwi-enq-shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-5px); } 40%, 60% { transform: translateX(5px); } }
	@keyframes hwi-enq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
	@keyframes hwi-enq-spin { to { transform: rotate(360deg); } }
	@keyframes hwi-enq-pop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
	@keyframes hwi-enq-draw { to { stroke-dashoffset: 0; } }
	.is-shaking { animation: hwi-enq-shake .45s var(--enq-ease); }
	.hwi-enq__error:not([hidden]), .hwi-enq__banner:not([hidden]) { animation: hwi-enq-in .25s var(--enq-ease); }
	.hwi-enq__spinner { animation: hwi-enq-spin .7s linear infinite; }
	@media (hover: hover) { .hwi-enq__submit:not(:disabled):hover { transform: translateY(-2px); } }
	.hwi-enq.is-leaving { opacity: 0; transform: translateY(-10px); transition: opacity .28s, transform .28s var(--enq-ease); }
	.hwi-enq__success.is-in { animation: hwi-enq-pop .5s var(--enq-ease) both; }
	.hwi-enq__success.is-in .hwi-enq__tick circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: hwi-enq-draw .6s var(--enq-ease) .15s forwards; }
	.hwi-enq__success.is-in .hwi-enq__tick path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: hwi-enq-draw .35s var(--enq-ease) .65s forwards; }
	.hwi-enq__success.is-in .hwi-enq__next li { animation: hwi-enq-pop .45s var(--enq-ease) both; }
	.hwi-enq__success.is-in .hwi-enq__next li:nth-child(1) { animation-delay: .5s; }
	.hwi-enq__success.is-in .hwi-enq__next li:nth-child(2) { animation-delay: .62s; }
	.hwi-enq__success.is-in .hwi-enq__next li:nth-child(3) { animation-delay: .74s; }
}
