/* Contact page (gp/contact): hero (shared .gp-ph from story.css), details card, group offices, enquiry form. */

/* Functional error colour (form validation only; not a brand colour). 6.6:1 on white. */
:root {
	--gp-error: #b3261e;
	--gp-error-bg: #fdf3f2;
}

.gp-contact-page__sections .gp-ph {
	min-height: clamp(18rem, 42svh, 28rem);
}

.gp-contact {
	background: var(--wp--preset--color--surface);
}

.gp-contact__grid {
	display: grid;
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: start;
}

.gp-contact__grid > * {
	margin: 0;
	min-width: 0;
}

@media (min-width: 64em) {
	.gp-contact__grid {
		grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
	}

	.gp-contact__aside {
		position: sticky;
		top: calc(5rem + var(--wp-admin--admin-bar--height, 0px));
	}
}

.gp-contact__aside {
	display: grid;
	gap: 1.5rem;
}

.gp-contact__aside > * {
	margin: 0;
}

.gp-contact__card,
.gp-contact__offices,
.gp-enq {
	padding: clamp(1.25rem, 3vw, 2.25rem);
	border: 1px solid var(--wp--preset--color--rule);
	border-radius: var(--wp--custom--radius--large);
	background: var(--wp--preset--color--white);
}

.gp-contact__card {
	border-top: 4px solid var(--wp--preset--color--indigo);
}

.gp-contact__card > *,
.gp-contact__offices > *,
.gp-enq > * {
	margin-block: 0;
}

.gp-contact__card h2,
.gp-contact__offices h2 {
	font-size: var(--wp--preset--font-size--heading-4);
}

.gp-contact__row {
	display: grid;
	grid-template-columns: 1.5rem minmax(0, 1fr);
	gap: 0.85rem;
	padding-top: 1.1rem;
	margin-top: 1.1rem !important;
	border-top: 1px solid var(--wp--preset--color--rule);
}

.gp-contact__row > div > * {
	margin: 0;
}

.gp-contact__row > div > * + * {
	margin-top: 0.35rem;
}

.gp-contact__icon {
	width: 1.5rem;
	height: 1.5rem;
	margin-top: 0.1rem;
	color: var(--wp--preset--color--blue);
}

.gp-contact__row h3 {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--steel);
}

.gp-contact address {
	font-style: normal;
	line-height: 1.6;
}

.gp-contact__row ul,
.gp-contact__offices ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gp-contact__row li {
	margin: 0;
}

.gp-contact__row a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--wp--preset--color--indigo);
	font-weight: 600;
	overflow-wrap: anywhere;
}

.gp-contact__map::after {
	content: " ↗";
}

.gp-contact__offices ul {
	display: grid;
	gap: 1rem;
	margin-top: 1rem;
}

.gp-office {
	margin: 0;
	padding-top: 1rem;
	border-top: 1px solid var(--wp--preset--color--rule);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.6;
}

.gp-office > * {
	margin: 0;
}

.gp-office > * + * {
	margin-top: 0.25rem;
}

.gp-office h3 {
	font-size: var(--wp--preset--font-size--body);
}

.gp-office a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--wp--preset--color--indigo);
	overflow-wrap: anywhere;
}

/* ---------- Enquiry form ---------- */

.gp-enq {
	scroll-margin-top: 6rem;
}

.gp-enq > * + * {
	margin-top: 1.25rem;
}

.gp-enq h2 {
	font-size: var(--wp--preset--font-size--heading-3);
}

.gp-enq__intro {
	color: var(--wp--preset--color--steel);
}

.gp-enq__form > * {
	margin-block: 0;
}

.gp-enq__form > * + * {
	margin-top: 1.5rem;
}

.gp-enq__grid {
	display: grid;
	gap: 1.25rem 1.5rem;
}

@media (min-width: 40em) {
	.gp-enq__grid {
		grid-template-columns: 1fr 1fr;
	}

	.gp-enq__field--wide {
		grid-column: 1 / -1;
	}
}

.gp-enq__field {
	display: grid;
	align-content: start;
	gap: 0.4rem;
	margin: 0;
	min-width: 0;
}

.gp-enq__field[hidden] {
	display: none;
}

.gp-enq__field > * {
	margin: 0;
}

.gp-enq__field label,
.gp-enq__consent label {
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}

.gp-enq__req {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
	color: var(--wp--preset--color--steel);
}

.gp-enq__hint {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--steel);
}

.gp-enq__field :is(input, select, textarea) {
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--wp--preset--color--metal);
	border-radius: var(--wp--custom--radius--small);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-size: 1rem;
	transition: border-color var(--wp--custom--motion--fast) var(--wp--custom--motion--ease), box-shadow var(--wp--custom--motion--fast) var(--wp--custom--motion--ease);
}

.gp-enq__field textarea {
	min-height: 10rem;
	resize: vertical;
	line-height: 1.6;
}

.gp-enq__field :is(input, select, textarea):hover {
	border-color: var(--wp--preset--color--steel);
}

.gp-enq__field :is(input, select, textarea):focus-visible {
	border-color: var(--wp--preset--color--blue);
	box-shadow: 0 0 0 3px rgb(3 112 181 / 0.25);
}

.gp-enq__field.has-error :is(input, select, textarea) {
	border-color: var(--gp-error);
	border-width: 2px;
}

.gp-enq__error {
	display: flex;
	gap: 0.35rem;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--gp-error);
}

.gp-enq__error::before {
	content: "!";
	display: inline-grid;
	flex: none;
	place-items: center;
	width: 1.1rem;
	height: 1.1rem;
	border-radius: 50%;
	background: var(--gp-error);
	color: #fff;
	font-size: 0.75rem;
	line-height: 1;
}

.gp-enq__consent {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 0.5rem 0.75rem;
	align-items: start;
}

.gp-enq__consent .gp-enq__error {
	grid-column: 1 / -1;
}

.gp-enq__consent input {
	width: 1.5rem;
	height: 1.5rem;
	margin: 0.1rem 0 0;
	accent-color: var(--wp--preset--color--indigo);
}

.gp-enq__consent label {
	font-weight: 400;
	line-height: 1.5;
}

.gp-enq__consent.has-error input {
	outline: 2px solid var(--gp-error);
	outline-offset: 2px;
}

.gp-enq button[type="submit"] {
	min-height: 48px;
	padding-inline: 2rem;
	cursor: pointer;
}

/* Honeypot: off-screen for people, still in the markup for bots. */
.gp-enq__trap {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Error summary and success message. */
.gp-enq__summary {
	padding: 1rem 1.25rem;
	border: 2px solid var(--gp-error);
	border-left-width: 6px;
	border-radius: var(--wp--custom--radius--medium);
	background: var(--gp-error-bg);
}

.gp-enq__summary > * {
	margin: 0;
}

.gp-enq__summary > * + * {
	margin-top: 0.5rem;
}

.gp-enq__summary-title {
	font-weight: 700;
	color: var(--wp--preset--color--ink);
}

.gp-enq__summary ul {
	padding-left: 1.25rem;
}

.gp-enq__summary a {
	color: var(--gp-error);
	font-weight: 600;
}

.gp-enq__success {
	display: grid;
	grid-template-columns: 2.75rem minmax(0, 1fr);
	gap: 1rem;
	padding: 1.5rem;
	border: 1px solid rgb(3 112 181 / 0.35);
	border-left: 6px solid var(--wp--preset--color--blue);
	border-radius: var(--wp--custom--radius--medium);
	background: rgb(3 112 181 / 0.06);
}

.gp-enq__success svg {
	width: 2.75rem;
	height: 2.75rem;
	padding: 0.5rem;
	box-sizing: border-box;
	border-radius: 50%;
	background: var(--wp--preset--color--blue);
	color: var(--wp--preset--color--white);
}

.gp-enq__success > div > * {
	margin: 0;
}

.gp-enq__success > div > * + * {
	margin-top: 0.6rem;
}

.gp-enq__success-title {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--heading-4);
	font-weight: 700;
	color: var(--wp--preset--color--ink);
}

.gp-enq__ref strong {
	font-family: var(--wp--preset--font-family--display);
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--ink);
	overflow-wrap: anywhere;
}

.gp-enq__success a {
	color: var(--wp--preset--color--indigo);
}

:is(.gp-enq__summary, .gp-enq__success):focus {
	outline: 3px solid var(--wp--preset--color--blue);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.gp-enq__field :is(input, select, textarea) {
		transition: none;
	}
}
