/* ==========================================================================
   Contact page — Figma 1365:11299 (desktop 1920) / 1365:13601 (mobile 390)

   Scoped to .pz-contact and loaded only where the Prezlab Contact widget is
   on the page, so nothing here can reach another template.
   ========================================================================== */

.pz-contact {
	--pz-k-dark: #002528;
	--pz-k-panel: #00363b;
	--pz-k-ink: #f3f5f5;
	--pz-k-mint: #b6edf3;
	--pz-k-bone: #f9f9f7;

	--pz-k-h: 55.5px;
	--pz-k-lh: 66.75px;
	--pz-k-eyebrow: 12px;
	--pz-k-track: 0.612px;
	--pz-k-pad: 120px;
	--pz-k-gut: 24px;

	font-family: var(--pz-font, "Figtree", sans-serif);
}

.pz-contact * { box-sizing: border-box; }

.pz-contact .pz-contact__eyebrow {
	font-family: inherit;
	margin: 0;
	font-size: var(--pz-k-eyebrow);
	font-weight: 500;
	letter-spacing: var(--pz-k-track);
	text-transform: uppercase;
	line-height: normal;
}

/* Two classes deliberately. The Elementor global kit styles headings as
   `.elementor-kit-12 h1`, which at 0,1,1 outranks a single class and was
   serving these at the kit's 64px instead of the artboard's 55.5. */
.pz-contact .pz-contact__h {
	letter-spacing: -1px; /* what the kit's h1 gave before the eyebrow became the h1 */
	margin: 0;
	font-size: var(--pz-k-h);
	line-height: var(--pz-k-lh);
	font-weight: 500;
}

.pz-contact .pz-accent,
.pz-contact__h em,
.pz-contact__card-mail,
.pz-contact__office-label {
	font-family: var(--pz-accent-font, "PP Editorial New", Georgia, serif);
	font-style: italic;
	font-weight: 400;
}

/* ----------------------------------------------------------- form section */

.pz-contact__form-sec {
	background-color: var(--pz-k-dark);
	padding: 0 var(--pz-k-gut);
	display: flex;
	justify-content: center;
}

.pz-contact__form-inner {
	width: 100%;
	max-width: 1400px;
	display: flex;
	align-items: center;
	gap: 120px;
}

/* Two mint discs stacked beside the form — 223.236 across, 43.26 apart.
   The phone's pair is a separate element; see --narrow in the media query. */
.pz-contact__discs {
	flex: 0 0 223.236px;
	display: flex;
	flex-direction: column;
	gap: 43.26px;
}

.pz-contact__discs--narrow { display: none; }

.pz-contact__discs--wide {
	align-self: flex-start;
	margin-top: 192.197px;
}

.pz-contact__discs span {
	display: block;
	width: 223.236px;
	height: 223.236px;
	border-radius: 50%;
	background-color: var(--pz-k-mint);
}

.pz-contact__form-col {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 60px;
	padding: var(--pz-k-pad) 0;
}

.pz-contact__form-head {
	width: 731px;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.pz-contact__form-headings {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

/* The italic face has taller metrics than the Figtree line, which grew each
   heading line box past the artboard's 66.75. Zeroing the inline boxes lets
   the block's own line-height set the height, as in the design. */
.pz-contact__form-head .pz-contact__h em,
.pz-contact__form-head .pz-contact__h i { line-height: 0; }

.pz-contact__form-head .pz-contact__eyebrow { color: var(--pz-k-mint); }
.pz-contact__form-head .pz-contact__h { color: var(--pz-k-ink); }

/* The artboard tints the closing colon rather than the whole line. */
.pz-contact__h i { font-style: normal; color: #bee8ef; }

.pz-contact__fields {
	display: flex;
	flex-direction: column;
	gap: 27px;
	width: 100%;
}

.pz-contact__row {
	display: flex;
	gap: 40px;
	width: 100%;
}

.pz-contact__field {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	/* No flex gap: password managers inject their own icon element next to
	   the input, and a gap would add 16px under the field each time. The
	   label carries the spacing instead. */
	gap: 0;
}

.pz-contact__label {
	margin: 0 0 16px;
	font-size: 20.768px;
	font-weight: 500;
	line-height: normal;
	color: #fff;
}

/* The control itself. The artboard draws a 0.75px hairline and leaves the
   inside of the field transparent against the dark teal. */
.pz-contact__control {
	width: 100%;
	height: 37.532px;
	padding: 0 21px;
	border: 0.75px solid var(--pz-k-bone);
	/* Square is the input component's own corner; the pill is the override
	   the artboard puts on every second field. Set one value on both rules
	   below to give the whole form a single shape instead. */
	border-radius: 0;
	background-color: transparent;
	color: #fff;
	font-family: inherit;
	font-size: 18px;
	font-weight: 400;
	line-height: normal;
	appearance: none;
	-webkit-appearance: none;
}

.pz-contact__control--sharp { border-radius: 0; }
.pz-contact__control--pill { border-radius: 999px; }

.pz-contact__control::placeholder {
	color: rgba(255, 255, 255, 0.4);
	opacity: 1;
}

.pz-contact__control:focus,
.pz-contact__control:focus-visible {
	outline: 0;
	box-shadow: none;
	border-color: var(--pz-k-mint);
}

/* A select shows the artboard's chevron; the native arrow is suppressed by
   the appearance reset above, so it is drawn as a background mark. */
select.pz-contact__control {
	cursor: pointer;
	padding-right: 48px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17.314' height='8.657' viewBox='0 0 17.314 8.657'%3E%3Cpath d='M.35.35 8.657 8.1 16.964.35' fill='none' stroke='%23f9f9f7' stroke-width='.75'/%3E%3C/svg%3E");
	background-position: right 21px center;
	background-size: 17.314px 8.657px;
	background-repeat: no-repeat;
}

select.pz-contact__control option { color: #1a1a1a; }

/* An unchosen select has to read as placeholder text, which a native select
   cannot do on its own — the script flags it and this paints it. */
select.pz-contact__control:invalid,
select.pz-contact__control[data-empty="1"] { color: rgba(255, 255, 255, 0.4); }

/* The artboard draws Additional Details at the same 37.532 as every other
   field, so it rests on one line and grows only if the reader drags it.
   The padding and line box are tuned to land exactly on that height:
   37.532 − 14 padding − 1.5 borders leaves 22. */
textarea.pz-contact__control {
	height: 37.532px;
	min-height: 37.532px;
	padding-top: 7px;
	padding-bottom: 7px;
	line-height: 22px;
	resize: vertical;
}

/* A stadium on a box that can be dragged taller looks wrong once it grows,
   and at the resting height 18.766 is the same shape as 999. */
textarea.pz-contact__control--pill { border-radius: 18.766px; }

.pz-contact__submit {
	align-self: flex-start;
	margin-top: 4px;
	padding: 12px 26px;
	border: 0;
	border-radius: 4px;
	background-color: #b6edf3;
	color: #002528;
	font-family: inherit;
	font-size: 16px !important;
	font-weight: 500;
	line-height: normal;
	cursor: pointer;
	transition: opacity 200ms ease;
}

.pz-contact__submit:hover { opacity: 0.85; }

/* Sent / failed notice, shown after the round trip through admin-post. */
.pz-contact__notice {
	margin: 0;
	padding: 12px 21px;
	border-radius: 12px;
	font-size: 15px;
	line-height: 1.5;
}

.pz-contact__notice--ok {
	background-color: rgba(182, 237, 243, 0.14);
	border: 0.75px solid var(--pz-k-mint);
	color: var(--pz-k-mint);
}

.pz-contact__notice--bad {
	background-color: rgba(255, 138, 138, 0.12);
	border: 0.75px solid #ff8a8a;
	color: #ffb4b4;
}

/* Never shown; anything typed into it is a bot. */
.pz-contact__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ------------------------------------------------------- contact info band */

.pz-contact__info {
	background-color: var(--pz-k-mint);
	padding: var(--pz-k-pad) var(--pz-k-gut);
	display: flex;
	justify-content: center;
}

.pz-contact__info-inner {
	width: 100%;
	max-width: 1414.796px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 64px;
}

.pz-contact__info-head {
	width: 814px;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	gap: 32px;
	text-align: center;
	color: var(--pz-k-dark);
}

.pz-contact__cards {
	width: 100%;
	display: flex;
	gap: 60px;
}

.pz-contact__card {
	flex: 1 1 0;
	min-width: 0;
	min-height: 165px;
	padding: 23.25px 36px 24px;
	border-radius: 9px;
	background-color: var(--pz-k-bone);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 15.75px;
	/* The bone card sits on the mint band with a soft lift under it. The
	   desktop node data does not expose the effect, but the artboard render
	   clearly carries it, and the phone frame names it outright — so the
	   phone's value is used at both sizes. */
	box-shadow: 0 8px 22px 0 rgba(0, 37, 40, 0.09);
}

.pz-contact__card-title {
	margin: 0;
	font-size: 20.768px;
	font-weight: 500;
	line-height: normal;
	color: var(--pz-k-dark);
}

.pz-contact__card-mail {
	display: block;
	color: inherit;
	text-decoration: none;
}

.pz-contact__card-mail:hover { text-decoration: underline; }

.pz-contact__card-text {
	margin: 0;
	font-size: 14.538px;
	line-height: 21.81px;
	font-weight: 500;
	color: rgba(0, 0, 0, 0.4);
}

/* ------------------------------------------------------------- offices */

.pz-contact__offices {
	background-color: var(--pz-k-dark);
	padding: var(--pz-k-pad) var(--pz-k-gut);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--pz-k-pad);
}

.pz-contact__offices-head {
	width: 778px;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	gap: 32px;
	text-align: center;
}

.pz-contact__offices-head .pz-contact__eyebrow { color: var(--pz-k-mint); }
.pz-contact__offices-head .pz-contact__h { color: var(--pz-k-ink); }

.pz-contact__office-list {
	width: 100%;
	max-width: 1400px;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 35px;
}

.pz-contact__office {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

.pz-contact__office-label {
	margin: 0;
	font-size: 20.25px;
	line-height: normal;
	color: var(--pz-k-bone);
	text-align: center;
}

.pz-contact__map {
	width: 100%;
	aspect-ratio: 420 / 268.893;
	border-radius: 12px;
	overflow: hidden;
	background-color: var(--pz-k-panel);
	display: block;
}

.pz-contact__map img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ===========================================================  the phone  */

@media (max-width: 767px) {

	.pz-contact {
		--pz-k-h: 35px;
		--pz-k-lh: 1.08;
		--pz-k-eyebrow: 11px;
		--pz-k-track: 0.561px;
		--pz-k-pad: 72px;
		--pz-k-gut: 20px;
	}

	/* ---- form ---- */
	.pz-contact__form-sec { padding: 40px var(--pz-k-gut) 0; }

	.pz-contact__form-inner { gap: 0; }

	.pz-contact__form-col {
		padding: 0 0 var(--pz-k-pad);
		gap: 34px;
	}

	/* The phone keeps the discs, shrunk to 56 and set beside the heading
	   rather than beside the whole form — so the wide pair steps out and the
	   narrow one, which lives inside the heading row, takes over. */
	.pz-contact__discs--wide { display: none; }

	.pz-contact__discs--narrow {
		display: flex;
		flex: 0 0 56px;
		gap: 20.571px;
	}

	.pz-contact__form-head {
		width: 100%;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
	}

	.pz-contact__form-headings {
		flex: 1 1 auto;
		min-width: 0;
		display: flex;
		flex-direction: column;
		gap: 12px;
	}

	.pz-contact__form-head .pz-contact__h { font-size: 24px; line-height: 1.05; }
	.pz-contact__h i { color: var(--pz-k-mint); }

	.pz-contact__discs span { width: 56px; height: 56px; }

	/* One field per line, 18 apart. */
	.pz-contact__fields { gap: 18px; }

	.pz-contact__row { flex-direction: column; gap: 18px; }

	/* ---- contact info ---- */
	.pz-contact__info { padding: var(--pz-k-pad) var(--pz-k-gut); }
	.pz-contact__info-inner { gap: 40px; align-items: stretch; }

	.pz-contact__info-head {
		width: 100%;
		gap: 20px;
		text-align: left;
	}

	.pz-contact__cards { flex-direction: column; gap: 16px; }

	.pz-contact__card {
		min-height: 150px;
		padding: 22px;
		border-radius: 10px;
		gap: 14px;
		justify-content: flex-start;
		box-shadow: 0 8px 22px 0 rgba(0, 37, 40, 0.09);
	}

	.pz-contact__card-title { font-size: 20px; line-height: 1.18; }
	.pz-contact__card-text { font-size: 14px; line-height: 1.45; }

	/* ---- offices ---- */
	.pz-contact__offices {
		padding: var(--pz-k-pad) var(--pz-k-gut);
		gap: 40px;
		align-items: stretch;
	}

	.pz-contact__offices-head {
		width: 100%;
		gap: 20px;
		text-align: left;
	}

	.pz-contact__office-list {
		flex-direction: column;
		gap: 34px;
	}

	.pz-contact__office {
		align-items: flex-start;
		gap: 14px;
		width: 100%;
		flex: 0 0 auto;
	}

	.pz-contact__office-label { font-size: 18px; text-align: left; }

	.pz-contact__map { aspect-ratio: 350 / 224; }
}

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

/* Office maps: live Google Maps embeds fill the same rounded frame as the image. */
.pz-contact__map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* A conditional field (e.g. "What are you looking for?") is removed from the
   layout while hidden; without this the flex rule above would keep it showing. */
.pz-contact__field[hidden] { display: none; }
@media (min-width: 768px) {
	.pz-contact__field[hidden] { display: flex; visibility: hidden; }
}

/* Figma sets the two heading lines at exactly 133 tall (66.75 x 2, rounded). */
@media (min-width: 768px) {
	.pz-contact__form-head .pz-contact__h { height: 133px; }
}

/* The theme sets a 32px scroll-padding-top (with smooth scrolling) on the page.
   Focusing a field that sat within 32px of the top edge made the browser nudge
   the whole form to make room. Cancel it for the form controls so clicking a
   field never moves the page. */
html:has(.pz-contact__form-sec) { scroll-padding-top: 0; }

/* Anything a browser extension (password manager, autofill) injects into a
   field wrapper must not take space in the layout. */
.pz-contact__field > :not(.pz-contact__label):not(.pz-contact__control) { position: absolute; }
