/* The navbar, building photos and form fill the first screen; the site footer follows below. */
.contact-page {
	display: flex;
	flex-direction: column;
	background: var(--justco-background);
	color: #141414;
}

.contact-main {
	height: calc(100vh - var(--site-nav-height));
	height: calc(100dvh - var(--site-nav-height));
}

body.admin-bar .contact-main {
	height: calc(100dvh - var(--site-nav-height) - 32px);
}

.contact-nav {
	position: relative;
	top: auto;
	left: auto;
	flex: 0 0 var(--site-nav-height);
	height: var(--site-nav-height);
	background: #d9cdc4;
	color: var(--color-walnut-brown);
}

body.admin-bar .contact-nav {
	top: auto;
}

/* Contact only: Get in touch in the brand guide's sand (dune) on its walnut. */
.contact-nav .site-nav__cta {
	color: #d3bca7;
}

.contact-main {
	display: grid;
	flex: 1 1 auto;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	min-height: 0;
}

.contact-map,
.contact-panel {
	position: relative;
	min-width: 0;
	min-height: 0;
}

.contact-map {
	display: flex;
	align-items: center;
	padding: 28px 20px;
	overflow: hidden;
	background: #d9cdc4;
}

/* Photos of the building where the Google map was (NEU-455), behind the card:
   each fades in over the last on its own timer, with no controls
   (contact-gallery.js). */
.contact-gallery {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background: #d9cdc4;
}

.contact-gallery__track {
	position: absolute;
	inset: 0;
}

.contact-gallery__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 650ms ease-in-out;
}

.contact-gallery__slide.is-active {
	z-index: 1;
	opacity: 1;
}

/* Cropped right of centre, clear of the card on the left, so the JustCo Place
   sign on the front elevation stays in frame (it sits about two thirds across). */
.contact-gallery__photo {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 60% 50%;
}

@media (prefers-reduced-motion: reduce) {
	.contact-gallery__slide {
		transition: none;
	}
}

.contact-card {
	position: relative;
	z-index: 2;
	width: 300px;
	max-width: 100%;
	padding: 8px;
	border-radius: 20px;
	background: var(--color-walnut-brown);
}

.contact-card__item {
	border-radius: 12px;
	background: #f4eee9;
}

.contact-card__details {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 12px 16px;
}

.contact-card__line {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	color: var(--color-walnut-brown);
	font-size: 15px;
	line-height: 1.3;
}

.contact-card__line img {
	flex: 0 0 14px;
	width: 14px;
	height: 14px;
	margin-top: 2px;
}

.contact-card__address {
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.5;
	text-transform: uppercase;
}

.contact-card__line a {
	min-width: 0;
	white-space: nowrap;
}

/* Set like the opening times, but medium, and at line-height 1.15 to centre on
   the icon as the other lines do. If too long, it breaks after the @. */
.contact-card__line .contact-card__email {
	font-family: "EB Garamond", serif;
	font-size: 1.0625rem;
	font-weight: 500;
	line-height: 1.15;
	white-space: normal;
}

.contact-card__hours {
	margin-top: 8px;
	overflow: hidden;
}

.contact-card__hours-group {
	padding: 12px 16px;
}

.contact-card__hours-group + .contact-card__hours-group {
	border-top: 1px solid var(--justco-border);
}

.contact-card__hours-group h2 {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 10px;
	color: var(--color-walnut-brown);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.44px;
	text-transform: uppercase;
}

.contact-card__hours-group h2 img {
	width: 14px;
	height: 14px;
}

.contact-card__hours-group p {
	display: grid;
	grid-template-columns: 88px 1fr;
	align-items: baseline;
	gap: 12px;
	margin: 0;
	color: var(--color-walnut-brown);
	font-size: 15px;
	line-height: 1.3;
}

.contact-card__hours-group p + p {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid var(--justco-border);
}

.contact-card__hours-group p span:first-child {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* The note under the hours (JustCo Place settings → Mall hours note): a line in
   the serif, in full walnut so the thin face reads, set apart from the rows
   above by a rule like theirs. */
.contact-card__hours-group p.contact-card__hours-note {
	display: block;
	color: var(--color-walnut-brown);
	font-family: "EB Garamond", serif;
	font-size: 0.9375rem;
	line-height: 1.2;
}

/* Garamond's x-height is ~14% shorter than Sweet Sans's, so 17px matches 15px. */
.contact-card__hours-group p span:last-child {
	font-family: "EB Garamond", serif;
	font-size: 1.0625rem;
}

.contact-panel {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 48px 28px 60px;
	background: #d9cdc4;
	overflow-y: auto;
	/* At the end of the form, scrolling carries on down the page to the footer. */
	overscroll-behavior-y: auto;
}

.contact-panel__inner {
	width: 480px;
	max-width: 100%;
	margin-block: auto;
}

.contact-panel h1 {
	margin: 0 0 22px;
	color: var(--color-walnut-brown);
	font-family: "Sweet Sans Pro", sans-serif;
	font-size: 1.625rem;
	font-weight: 700;
	line-height: 1.7;
	letter-spacing: 0.25em;
	text-transform: uppercase;
}

.contact-panel h1 em {
	font-style: normal;
}

.contact-form {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.contact-form__row {
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.contact-form__row > label,
.contact-form__row > legend {
	margin: 0 0 10px;
	padding: 0;
	color: var(--color-walnut-brown);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

/* Labels hold an "Optional" note at the far right of their row. */
.contact-form__row > label {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

/* Secondary to the label: lighter, quieter and more tightly tracked. The
   tracking trails the last letter, so the right edge gives it back. */
.contact-form__optional {
	flex: none;
	margin-right: -0.07em;
	color: rgba(20, 20, 20, 0.5);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.contact-form__optional[hidden] {
	display: none;
}

.contact-form__options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.contact-form__options .wpcf7-list-item label {
	position: relative;
	display: inline-flex;
	align-items: center;
	height: 36px;
	cursor: var(--justco-cursor-interactive, pointer);
}

.contact-form__options .wpcf7-list-item input {
	position: absolute;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: var(--justco-cursor-interactive, pointer);
}

.contact-form__options .wpcf7-list-item-label {
	display: inline-flex;
	align-items: center;
	height: 36px;
	padding: 0 12px;
	border: 1px solid var(--justco-border);
	border-radius: 1000px;
	color: var(--color-walnut-brown);
	font-family: "EB Garamond", serif;
	font-size: 18px;
	line-height: 1.3;
}

.contact-form__options input:checked + .wpcf7-list-item-label {
	border-color: var(--color-walnut-brown);
	background: var(--color-walnut-brown);
	color: #f4eee9;
}

.contact-form__options input:focus-visible + .wpcf7-list-item-label {
	outline: 2px solid var(--color-walnut-brown);
	outline-offset: 2px;
}

.contact-form__row > input:focus,
.contact-form__row > .wpcf7-form-control-wrap > input:focus,
.contact-form__row > textarea:focus,
.contact-form__row > .wpcf7-form-control-wrap > textarea:focus,
.contact-form__phone > input:focus,
.contact-form__phone > .wpcf7-form-control-wrap > input:focus {
	outline: none;
}

.contact-form__row > input,
.contact-form__row > .wpcf7-form-control-wrap > input,
.contact-form__row > textarea,
.contact-form__row > .wpcf7-form-control-wrap > textarea,
.contact-form__phone {
	width: 100%;
	border: 0;
	border-bottom: 1px solid var(--justco-border);
	border-radius: 12px;
	background: #f4eee9;
	transition: background-color 200ms ease;
}

/* Focused, a field lightens to a warm white (walnut text 12.8:1, up from
   11.7:1), fading over 200ms. The phone field lightens as a whole. */
.contact-form__row > input:focus,
.contact-form__row > .wpcf7-form-control-wrap > input:focus,
.contact-form__row > textarea:focus,
.contact-form__row > .wpcf7-form-control-wrap > textarea:focus,
.contact-form__phone:focus-within,
.contact-select__field:focus-visible {
	background: #fcf9f6;
}

.contact-form__row > input,
.contact-form__row > .wpcf7-form-control-wrap > input,
.contact-form__row > textarea,
.contact-form__row > .wpcf7-form-control-wrap > textarea,
.contact-form__phone > input,
.contact-form__phone > .wpcf7-form-control-wrap > input {
	color: var(--color-walnut-brown);
	font-family: "EB Garamond", serif;
	font-size: 18px;
	line-height: 1.3;
}

.contact-form__row > input,
.contact-form__row > .wpcf7-form-control-wrap > input {
	height: 48px;
	padding: 0 12px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
	color: var(--justco-placeholder);
	opacity: 1;
}

/* Coliving stay dates: an empty date reads as a placeholder, and the browser's
   calendar icon takes the form's walnut instead of black. */
.contact-form__row > input[type="date"],
.contact-form__row > .wpcf7-form-control-wrap > input[type="date"] {
	appearance: none;
	-webkit-appearance: none;
	min-width: 0;
}

.contact-form__row > input[type="date"].is-empty,
.contact-form__row > .wpcf7-form-control-wrap > input[type="date"].is-empty {
	color: var(--justco-placeholder);
}

.contact-form__row > input[type="date"]::-webkit-calendar-picker-indicator,
.contact-form__row > .wpcf7-form-control-wrap > input[type="date"]::-webkit-calendar-picker-indicator {
	width: 18px;
	height: 18px;
	margin: 0;
	opacity: 0.8;
	cursor: var(--justco-cursor-interactive, pointer);
	/* Black to walnut brown (#4c2409). */
	filter: invert(13%) sepia(42%) saturate(2400%) hue-rotate(10deg) brightness(92%);
}

.contact-form__split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 22px;
}

.contact-form__phone {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 48px;
	padding: 0 12px 0 6px;
}

.contact-form__phone > input,
.contact-form__phone > .wpcf7-form-control-wrap > input {
	width: 100%;
	min-width: 0;
	padding: 0;
	border: 0;
	outline: 0;
	background: transparent;
}

.contact-form [hidden] {
	display: none !important;
}

.contact-form__phone {
	position: relative;
}

.contact-form__country {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 7px;
	height: 32px;
	padding: 0 8px 0 10px;
	border: 1px solid var(--justco-border);
	border-radius: 6px;
	background: transparent;
	color: var(--color-walnut-brown);
	font-family: "EB Garamond", serif;
	font-size: 18px;
	line-height: 1;
	cursor: var(--justco-cursor-interactive, pointer);
	transition: border-color 150ms ease;
}

.contact-form__country:hover,
.contact-form__country[aria-expanded="true"] {
	border-color: rgba(20, 20, 20, 0.32);
}

.contact-form__country:focus-visible,
.contact-select__field:focus-visible {
	outline: 2px solid var(--color-walnut-brown);
	outline-offset: 2px;
}

/* One 2x sprite of 4:3 flags; --flag is the row index from inc/contact-countries.php. */
.contact-flag {
	flex: 0 0 auto;
	width: 20px;
	height: 15px;
	border-radius: 3px;
	background: url("../images/contact-flags.webp") 0 calc(var(--flag, 0) * -15px) / 20px auto no-repeat;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.contact-select {
	position: relative;
}

.contact-select--country {
	position: static;
}

.contact-select__value[type="text"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	pointer-events: none;
}

.contact-select__field {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	height: 48px;
	padding: 0 14px 0 12px;
	border: 0;
	border-bottom: 1px solid var(--justco-border);
	border-radius: 12px;
	background: #f4eee9;
	color: var(--color-walnut-brown);
	font-family: "EB Garamond", serif;
	font-size: 18px;
	line-height: 1.3;
	text-align: left;
	transition: background-color 200ms ease;
	cursor: var(--justco-cursor-interactive, pointer);
}

.contact-select__field [data-placeholder] {
	color: var(--justco-placeholder);
}

.contact-select__chevron {
	flex: 0 0 auto;
	color: var(--color-walnut-brown);
	transition: transform 200ms cubic-bezier(.22, 1, .36, 1);
}

.contact-select__trigger[aria-expanded="true"] .contact-select__chevron {
	transform: rotate(180deg);
}

.contact-select__panel {
	position: absolute;
	z-index: 20;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--justco-border);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(20, 20, 20, 0.12), 0 2px 6px rgba(20, 20, 20, 0.06);
	transform-origin: top center;
	animation: contact-select-in 160ms cubic-bezier(.22, 1, .36, 1);
}

/* The phone field is narrow, so its list grows leftwards past the field. */
.contact-select--country .contact-select__panel {
	left: auto;
	width: max(100%, 320px);
}

@keyframes contact-select-in {
	from {
		opacity: 0;
		transform: translateY(-4px) scale(0.98);
	}
}

.contact-select__search {
	flex: 0 0 auto;
	/* 16px inset matches the list's 6px padding plus each row's 10px, so the
	   text lines up with the flags below. */
	width: 100%;
	height: 46px;
	margin: 0;
	padding: 0 16px;
	border: 0;
	border-bottom: 1px solid var(--justco-border);
	border-radius: 0;
	background: transparent;
	color: #141414;
	font-family: "EB Garamond", serif;
	font-size: 18px;
	outline: none;
}

.contact-select__list {
	/* The list scrolls edge to edge so its scrollbar sits against the panel
	   edge instead of squeezing the rows' right-hand gap. */
	max-height: 280px;
	margin: 0;
	padding: 8px 6px;
	overflow-y: auto;
	scroll-padding-block: 8px;
	overscroll-behavior: contain;
	list-style: none;
	scrollbar-width: thin;
	/* Scroll fade: contact-form.js sets data-fade-top/-bottom only when rows
	   are hidden in that direction, so the list never fades at its ends. */
	--fade-top: 0px;
	--fade-bottom: 0px;
	-webkit-mask-image: linear-gradient(to bottom, transparent, #000 var(--fade-top), #000 calc(100% - var(--fade-bottom)), transparent);
	mask-image: linear-gradient(to bottom, transparent, #000 var(--fade-top), #000 calc(100% - var(--fade-bottom)), transparent);
	transition: --fade-top 180ms ease, --fade-bottom 180ms ease;
}

.contact-select__list[data-fade-top] {
	--fade-top: 28px;
}

.contact-select__list[data-fade-bottom] {
	--fade-bottom: 28px;
}

@property --fade-top {
	syntax: "<length>";
	inherits: false;
	initial-value: 0px;
}

@property --fade-bottom {
	syntax: "<length>";
	inherits: false;
	initial-value: 0px;
}

/* Short lists show every option; only the searchable country list scrolls. */
.contact-select--field .contact-select__list {
	max-height: none;
}

/* The Location dropdown's centres, under their regions (NEU-550): a list
   long enough to scroll, like the country codes. */
.contact-select--field .contact-select__list:has(.contact-select__group) {
	max-height: 320px;
}

.contact-select__group ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.contact-select__group + .contact-select__group {
	margin-top: 6px;
}

.contact-select__group-label {
	display: block;
	padding: 10px 10px 4px;
	color: var(--color-walnut-brown);
	font-family: "Sweet Sans Pro", sans-serif;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.contact-select__list [role="option"] {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	padding: 8px 10px;
	border-radius: 8px;
	color: rgba(20, 20, 20, 0.8);
	font-family: "EB Garamond", serif;
	font-size: 18px;
	line-height: 1.2;
	cursor: var(--justco-cursor-interactive, pointer);
}

.contact-select__list [role="option"].is-active {
	background: rgba(20, 20, 20, 0.05);
	color: #141414;
}

.contact-select__list [role="option"][aria-selected="true"] {
	color: var(--color-walnut-brown);
}

.contact-select__name {
	flex: 1;
	min-width: 0;
}

.contact-select__meta {
	flex: 0 0 auto;
	color: rgba(20, 20, 20, 0.45);
	font-variant-numeric: tabular-nums;
}

/* With every row filtered out, the list's own padding would sit as a gap above
   the message, so it collapses and the message's padding spaces it alone. */
.contact-select__list:has(+ .contact-select__empty:not([hidden])) {
	padding-block: 0;
}

.contact-select__empty {
	margin: 0;
	padding: 16px;
	color: rgba(20, 20, 20, 0.45);
	font-family: "EB Garamond", serif;
	font-size: 18px;
}

.contact-form__row > input.contact-form__locked {
	background: rgba(255, 255, 255, 0.5);
	color: rgba(20, 20, 20, 0.6);
	cursor: default;
}

.contact-form__seats-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.contact-form__seats-head label {
	color: var(--color-walnut-brown);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.contact-form__seats-value {
	color: #141414;
	font-family: "EB Garamond", serif;
	font-size: 18px;
	line-height: 1.3;
	font-variant-numeric: tabular-nums;
}

.contact-form__row > input[type="range"],
.contact-form__row > .wpcf7-form-control-wrap > input[type="range"] {
	--fill: 0%;
	width: 100%;
	height: 24px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	-webkit-appearance: none;
	appearance: none;
	cursor: var(--justco-cursor-interactive, pointer);
}

.contact-form__row > input[type="range"]::-webkit-slider-runnable-track,
.contact-form__row > .wpcf7-form-control-wrap > input[type="range"]::-webkit-slider-runnable-track {
	height: 4px;
	border-radius: 2px;
	background: linear-gradient(to right, var(--color-walnut-brown) var(--fill), rgba(20, 20, 20, 0.12) var(--fill));
}

.contact-form__row > input[type="range"]::-moz-range-track,
.contact-form__row > .wpcf7-form-control-wrap > input[type="range"]::-moz-range-track {
	height: 4px;
	border-radius: 2px;
	background: linear-gradient(to right, var(--color-walnut-brown) var(--fill), rgba(20, 20, 20, 0.12) var(--fill));
}

.contact-form__row > input[type="range"]::-webkit-slider-thumb,
.contact-form__row > .wpcf7-form-control-wrap > input[type="range"]::-webkit-slider-thumb {
	width: 22px;
	height: 22px;
	margin-top: -9px;
	border: 1px solid var(--justco-border);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 6px rgba(20, 20, 20, 0.16);
	-webkit-appearance: none;
	appearance: none;
}

.contact-form__row > input[type="range"]::-moz-range-thumb,
.contact-form__row > .wpcf7-form-control-wrap > input[type="range"]::-moz-range-thumb {
	width: 22px;
	height: 22px;
	border: 1px solid var(--justco-border);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 6px rgba(20, 20, 20, 0.16);
}

/* The handle shows it can be dragged (grab), and while it's held (grabbing)
   the whole slider does, so the cursor stays closed as it slides off the
   handle. The track keeps the pointer: a click there jumps to that value. */
.contact-form__row > input[type="range"]::-webkit-slider-thumb,
.contact-form__row > .wpcf7-form-control-wrap > input[type="range"]::-webkit-slider-thumb {
	cursor: grab;
}

.contact-form__row > input[type="range"]::-moz-range-thumb,
.contact-form__row > .wpcf7-form-control-wrap > input[type="range"]::-moz-range-thumb {
	cursor: grab;
}

.contact-form__row > input[type="range"]:active,
.contact-form__row > .wpcf7-form-control-wrap > input[type="range"]:active {
	cursor: grabbing;
}

.contact-form__row > input[type="range"]:active::-webkit-slider-thumb,
.contact-form__row > .wpcf7-form-control-wrap > input[type="range"]:active::-webkit-slider-thumb {
	cursor: grabbing;
}

.contact-form__row > input[type="range"]:active::-moz-range-thumb,
.contact-form__row > .wpcf7-form-control-wrap > input[type="range"]:active::-moz-range-thumb {
	cursor: grabbing;
}

.contact-form__row > input[type="range"]:focus-visible,
.contact-form__row > .wpcf7-form-control-wrap > input[type="range"]:focus-visible {
	outline: none;
}

.contact-form__row > input[type="range"]:focus-visible::-webkit-slider-thumb,
.contact-form__row > .wpcf7-form-control-wrap > input[type="range"]:focus-visible::-webkit-slider-thumb {
	outline: 2px solid var(--color-walnut-brown);
	outline-offset: 2px;
}

.contact-form__row > input[type="range"]:focus-visible::-moz-range-thumb,
.contact-form__row > .wpcf7-form-control-wrap > input[type="range"]:focus-visible::-moz-range-thumb {
	outline: 2px solid var(--color-walnut-brown);
	outline-offset: 2px;
}

.contact-form__row > textarea,
.contact-form__row > .wpcf7-form-control-wrap > textarea {
	height: 108px;
	min-height: 108px;
	padding: 12px;
	resize: vertical;
}

.contact-form__consent label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--color-walnut-brown);
	font-family: "EB Garamond", serif;
	font-size: 0.875rem;
	line-height: 1.3;
	cursor: var(--justco-cursor-interactive, pointer);
}

.contact-form__consent input {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	margin: 0;
	/* Drawn by hand: a native checkbox ignores border-radius. */
	appearance: none;
	border: 1px solid var(--justco-border);
	border-radius: 4px;
	background: #fff center / 12px no-repeat;
	cursor: inherit;
	transition: background-color 150ms ease, border-color 150ms ease;
}

.contact-form__consent input:checked {
	border-color: var(--color-walnut-brown);
	background-color: var(--color-walnut-brown);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.5-5' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.contact-form__consent input:focus-visible {
	outline: 2px solid var(--color-walnut-brown);
	outline-offset: 2px;
}

.contact-form__consent .wpcf7-list-item-label {
	flex: 1;
}

/* The policy link: walnut brown, underlined so it stays distinct from the
   consent body text (also walnut brown). No hover state. The underline is a
   1px background line rather than a text decoration, so keyboard focus can
   redraw it from left to right, across both lines when the link wraps. */
.contact-form__consent a {
	color: var(--color-walnut-brown);
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
}

.contact-form__consent a:focus-visible {
	animation: contact-consent-redraw 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes contact-consent-redraw {
	from { background-size: 0 1px; }
	to { background-size: 100% 1px; }
}

@media (prefers-reduced-motion: reduce) {
	.contact-form__consent a:focus-visible {
		animation: none;
	}
}

.contact-form__turnstile {
	flex: 0 0 65px;
	width: 300px;
	max-width: 100%;
	height: 65px;
	min-height: 0;
}

.contact-form__submit {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 61px;
	padding: 17px;
	border: 0;
	border-top: 1px solid #fff;
	/* A full pill, as the site's other buttons. */
	border-radius: 1000px;
	background: var(--color-walnut-brown);
	/* The brand guide's sand (dune), as Get in touch on this page. */
	color: #d3bca7;
	font-family: "Sweet Sans Pro", sans-serif;
	font-size: 15px;
	font-style: normal;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: var(--justco-cursor-interactive, pointer);
	transition: background-color 200ms ease, color 200ms ease;
}

.contact-form__submit:hover,
.contact-form__submit:focus-visible {
	background: color-mix(in srgb, var(--color-walnut-brown) 85%, #000);
	/* The dune lightens a touch, to #e5d7ca (still sand, 10.5:1 on the walnut). */
	color: color-mix(in srgb, #d3bca7 60%, #fff);
}

.contact-form__submit:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.contact-form__notice {
	margin: 0 0 16px;
	color: #216a37;
	font-size: 14px;
}

.contact-form__notice--error {
	color: var(--color-brick-red);
}

/*
 * Contact Form 7 (inc/contact-form-7.php), whose stylesheet is off: its
 * wrappers step out of the layout, and its messages take the form's look.
 */
.contact-form .wpcf7-form-control-wrap,
.contact-form .wpcf7-list-item {
	display: contents;
}

.contact-form .hidden-fields-container {
	display: none;
}

.wpcf7 .screen-reader-response {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
}

/* The dropdowns' panels are spans inside CF7's wrapper. */
.contact-select,
.contact-select__panel,
.contact-select__empty {
	display: block;
}

.contact-select__panel[hidden],
.contact-select__empty[hidden] {
	display: none;
}

/* A field's error, under it. */
.contact-form .wpcf7-not-valid-tip {
	display: block;
	margin-top: 6px;
	color: var(--color-brick-red);
	font-family: "EB Garamond", serif;
	font-size: 15px;
	line-height: 1.3;
}

.contact-form .wpcf7-not-valid:not(.wpcf7-radio, .wpcf7-acceptance, .contact-select),
.contact-form .contact-select.wpcf7-not-valid .contact-select__field,
.contact-form__phone:has(.wpcf7-not-valid) {
	box-shadow: inset 0 0 0 1px var(--color-brick-red);
}

.contact-form .contact-form__phone .wpcf7-not-valid {
	box-shadow: none;
}

.contact-form__phone .wpcf7-not-valid-tip {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	margin: 0;
}

.contact-form__row:has(.contact-form__phone .wpcf7-not-valid-tip) {
	margin-bottom: 25px;
}

.contact-form__consent .wpcf7-not-valid-tip {
	margin: 6px 0 0 28px;
}

.contact-form__consent .wpcf7-form-control {
	display: block;
}

/* Submit's spinner: the button dims while sending instead. */
.contact-form .wpcf7-spinner {
	display: none;
}

.contact-form.submitting .contact-form__submit {
	opacity: 0.7;
	cursor: progress;
}

/* The outcome, under Submit: green once sent, brick red otherwise. */
.contact-form .wpcf7-response-output {
	margin: 0;
	color: var(--color-brick-red);
	font-family: "EB Garamond", serif;
	font-size: 16px;
	line-height: 1.35;
}

.contact-form .wpcf7-response-output:empty {
	display: none;
}

.contact-form.sent .wpcf7-response-output {
	color: #216a37;
}

.contact-form__honeypot {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

@media (max-width: 1024px) {
	.contact-main {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.contact-panel__inner {
		width: 100%;
	}
}

@media (max-width: 760px) {
	.contact-main,
	body.admin-bar .contact-main {
		height: auto;
	}

	/* The form's sand runs up behind the card, so they read as one section. */
	.contact-main {
		display: flex;
		flex-direction: column;
		background: #d9cdc4;
	}

	/* The card leaves the photos and sits below them, above the form: the
	   section steps aside so its photos and card become rows of their own. */
	.contact-map {
		display: contents;
	}

	.contact-gallery {
		position: relative;
		inset: auto;
		flex: none;
		height: 360px;
	}

	/* The card no longer covers the photos, so they centre on the building. */
	.contact-gallery__photo {
		object-position: 50% 50%;
	}

	.contact-card {
		width: auto;
		/* The full width less 80px: 40px a side, up to the form's 480px on
		   wider phones (the iPhone Duo's inner screen). */
		max-width: 480px;
		margin: 48px max(40px, (100% - 480px) / 2) 0;
	}

	/* 48px from the card above to the title. */
	.contact-panel {
		min-height: 0;
		padding: 48px 24px 64px;
		overflow: visible;
	}

	.contact-panel__inner {
		max-width: 480px;
	}

	/* As the Visit page's "Getting Here" on phones: 28px, 0.12em tracking. */
	.contact-panel h1 {
		/* The tracking trails each line's last letter; the same on the left keeps
		   the centred lines centred. */
		padding-left: 0.12em;
		font-size: 1.75rem;
		line-height: 1.4;
		letter-spacing: 0.12em;
		text-align: center;
	}

	/* The enquiry question and its options, centred under the title. */
	.contact-form__enquiry > legend {
		width: 100%;
		padding-left: 0.15em;
		text-align: center;
	}

	.contact-form__enquiry .contact-form__options {
		justify-content: center;
	}

	/* The security check, the form's only part narrower than the column, centred. */
	.contact-form__turnstile {
		align-self: center;
	}
}

/* Tablets' narrower form column (beside the photo, up to 1024px wide) stacks
   Email and Phone as phones do, so the number has room. Phones on their side
   keep the pair. */
.contact-form {
	container: contact-form / inline-size;
}

@media (min-height: 521px) {
	@container contact-form (max-width: 419px) {
		.contact-form__split {
			grid-template-columns: 1fr;
		}

		.contact-form__split--name {
			grid-template-columns: repeat(2, minmax(0, 1fr));
		}
	}
}

@media (max-width: 480px) {
	.contact-form__split {
		grid-template-columns: 1fr;
	}

	.contact-form__split--name {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.contact-form__options {
		gap: 6px;
	}

	.contact-form__options .wpcf7-list-item-label {
		padding: 0 10px;
	}
}

/* Tablets and phones: the navbar stays in the page flow but sticks to the top,
   keeping its own colours when it becomes the scrolled bar (style.css). */
@media (max-width: 1024px) {
	.contact-nav {
		position: sticky;
		top: 0;
		--site-nav-bar: #d9cdc4;
		--site-nav-bar-ink: #000;
	--site-nav-bar-cta: var(--color-walnut-brown);
	--site-nav-bar-cta-ink: #d3bca7;
	}
}
