/* ==========================================================================
   Contact – Book a Meeting (Figma 130:1093)
   Measured at 1440: photo 503x700 at 72,127; form panel 689x464 #fafafa at
   680,279; title at 720,158; white band ends at 862. (The design's WhatsApp
   button was removed at the client's request, 15 Oct 2026.)
   ========================================================================== */

.page--contact, .contact-form { --cf-ink: #142749; --cf-text: #343434; --cf-line: rgba(24, 48, 102, 0.5); --cf-error: #b3261e; --cf-error-bg: #fdeceb; --cf-ok: #11300e; --cf-ok-bg: #e3ffe0; }

.contact-hero {
	padding: max(calc(127 * var(--u)), calc(var(--header-h) + 28px)) 0 calc(35 * var(--u));
}
.contact-hero__grid {
	display: grid;
	grid-template-columns: 503fr 688fr;
	column-gap: calc(105 * var(--u));
	align-items: start;
}

/* Photo */
.contact-hero__media {
	aspect-ratio: 503 / 700;
	border-radius: 3px;
	background: #eef1f6;
}
.contact-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.js .contact-hero__media[data-reveal="media"] { clip-path: inset(12% 0 0 0 round 3px); }
.js .contact-hero__media[data-reveal="media"].is-in { clip-path: inset(0 0 0 0 round 3px); }

/* Title + intro (title at 720,158 — 40px into the panel column) */
.contact-hero__copy { padding: calc(31 * var(--u)) 0 0 40px; }
.contact-hero__title {
	font-family: var(--serif);
	font-weight: 400;
	font-size: clamp(26px, calc(30 * var(--u)), 30px);
	line-height: 1.1333;
	color: var(--cf-ink);
}
.contact-hero__intro { max-width: 640px; margin-top: 20px; font-size: 16px; line-height: 25px; color: var(--navy); }

/* --- Form panel ----------------------------------------------------------- */
.contact-form {
	margin-top: 42px;
	padding: 34px 34px 29px;
	background: var(--paper);
	border-radius: 3px;
	color: var(--navy);
}
.contact-form .wpcf7 { margin: 0; }
.contact-form .hidden-fields-container { display: none; }
.contact-form form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 21px;
	row-gap: 16px;
}
.contact-form form > br { display: none; }
.cf-field { position: relative; min-width: 0; }
.cf-field--select, .cf-field--textarea, .cf-field--wide, .cf-field--file, .cf-terms, .cf-actions { grid-column: 1 / -1; }
.cf-field .wpcf7-form-control-wrap { position: relative; display: block; }

.cf-field input,
.cf-field select,
.cf-field textarea {
	display: block;
	width: 100%;
	height: 39px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid var(--cf-line);
	border-radius: 3px;
	background: var(--white);
	color: var(--cf-ink);
	font-size: 12px;
	line-height: 18px;
	font-weight: 500;
	box-shadow: 0 0 0 0 rgba(191, 217, 255, 0);
	transition: border-color 0.3s, box-shadow 0.35s var(--ease-out), background-color 0.3s;
	-webkit-appearance: none;
	appearance: none;
}
.cf-field textarea { height: 135px; padding: 11px 16px; resize: vertical; min-height: 96px; }
.cf-field select {
	padding-right: 44px;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='6' viewBox='0 0 11 6'%3E%3Cpath d='M.5.5l5 5 5-5' fill='none' stroke='%23183066' stroke-width='1.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 19px center;
	background-size: 11px 6px;
}
.cf-field select:invalid, .cf-field select.is-empty { color: rgba(20, 39, 73, 0.6); }

@media (hover: hover) {
	.cf-field input:hover, .cf-field select:hover, .cf-field textarea:hover { border-color: rgba(24, 48, 102, 0.8); }
}
.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
	outline: none;
	border-color: var(--navy);
	box-shadow: 0 0 0 3px rgba(191, 217, 255, 0.75);
}

/* Floating label: rests where the placeholder would be, lifts onto the
   border when the field has focus or a value. */
.cf-field__label {
	position: absolute;
	left: 12px;
	top: 10px;
	max-width: calc(100% - 24px);
	padding: 0 4px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-size: 12px;
	line-height: 18px;
	font-weight: 500;
	color: rgba(24, 48, 102, 0.72);
	pointer-events: none;
	transform-origin: 0 50%;
	background: linear-gradient(transparent 50%, var(--white) 50%);
	transition: transform 0.35s var(--ease-out), color 0.3s, background 0.3s;
}
.cf-field__req { margin-left: 2px; }
.cf-field input:focus + .cf-field__label,
.cf-field input:not(:placeholder-shown) + .cf-field__label,
.cf-field input:-webkit-autofill + .cf-field__label,
.cf-field textarea:focus + .cf-field__label,
.cf-field textarea:not(:placeholder-shown) + .cf-field__label,
.cf-field select + .cf-field__label {
	transform: translateY(-19px) scale(0.84);
	color: var(--navy);
	background: linear-gradient(var(--paper) 50%, var(--white) 50%);
}

/* Errors (CF7 adds .wpcf7-not-valid and a tip inside the wrap). */
.cf-field .wpcf7-not-valid { border-color: var(--cf-error); }
.cf-field input.wpcf7-not-valid { padding-right: 150px; }
.contact-form .cf-field--select .wpcf7-not-valid-tip { right: 44px; }
.cf-field .wpcf7-not-valid:focus { box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.16); }
.cf-field .wpcf7-not-valid + .cf-field__label { color: var(--cf-error); }
/* The tip sits inside the field on the right, so it never collides with
   the next field's floating label and never shifts the layout. */
.contact-form .wpcf7-not-valid-tip {
	position: absolute;
	right: 12px;
	top: 13px;
	max-width: 55%;
	text-align: right;
	pointer-events: none;
	font-size: 10px;
	line-height: 12px;
	font-weight: 500;
	color: var(--cf-error);
	animation: cf-tip-in 0.4s var(--ease-out);
}
@keyframes cf-tip-in { from { opacity: 0; transform: translateY(-3px); } }

/* --- CV upload (job application form): label above, native picker restyled */
.cf-field--file .cf-field__label {
	position: static;
	display: block;
	max-width: none;
	margin-bottom: 8px;
	padding: 0;
	white-space: normal;
	background: none;
	color: var(--navy);
}
.cf-field input[type="file"] { height: auto; padding: 7px 8px; cursor: pointer; }
.cf-field input[type="file"].wpcf7-not-valid { padding-right: 8px; }
.cf-field input[type="file"]::file-selector-button {
	margin-right: 14px;
	padding: 6px 14px;
	border: 1px solid var(--navy);
	border-radius: 3px;
	background: var(--white);
	color: var(--navy);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.3s, color 0.3s;
}
@media (hover: hover) { .cf-field input[type="file"]:hover::file-selector-button { background: var(--navy); color: var(--white); } }
.contact-form .cf-field--file .wpcf7-not-valid-tip { position: static; display: block; max-width: none; margin-top: 6px; text-align: left; }

/* --- Consent checkbox: 22x22, radius 3, navy --------------------------- */
.cf-terms { margin-top: 8px; }
.cf-terms .wpcf7-form-control-wrap, .cf-terms .wpcf7-acceptance { display: block; }
.cf-terms .wpcf7-list-item { display: block; margin: 0; }
.cf-terms .wpcf7-list-item > label {
	display: flex;
	align-items: center;
	gap: 15px;
	padding-left: 2px;
	cursor: pointer;
}
.cf-terms input[type="checkbox"] {
	flex: none;
	width: 22px;
	height: 22px;
	margin: 0;
	border: 1px solid var(--navy);
	border-radius: 3px;
	background: var(--white) center / 12px 10px no-repeat;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	transition: background-color 0.25s, border-color 0.25s, box-shadow 0.3s var(--ease-out);
}
.cf-terms input[type="checkbox"]:checked {
	background-color: var(--navy);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1 5.2l3.3 3.3L11 1.5' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	animation: cf-check 0.35s var(--ease-out);
}
@keyframes cf-check { 40% { transform: scale(0.86); } }
.cf-terms input[type="checkbox"]:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(191, 217, 255, 0.9); }
@media (hover: hover) { .cf-terms label:hover input[type="checkbox"]:not(:checked) { box-shadow: 0 0 0 3px rgba(191, 217, 255, 0.55); } }
.cf-terms .wpcf7-not-valid input[type="checkbox"], .cf-terms .wpcf7-not-valid-tip ~ * { border-color: var(--cf-error); }
.cf-terms .wpcf7-list-item-label { font-size: 12px; line-height: 18px; font-weight: 500; color: var(--navy); }
.cf-terms .wpcf7-list-item-label::before, .cf-terms .wpcf7-list-item-label::after { content: none; }
.cf-terms a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; transition: color 0.3s; }
@media (hover: hover) { .cf-terms a:hover { color: var(--navy-deep); text-decoration-thickness: 2px; } }
.cf-terms .wpcf7-not-valid-tip { position: static; display: block; max-width: none; margin: 6px 0 0 39px; text-align: left; }

/* --- Send (124x30, sky fill, radius 3) + response ---------------------- */
.cf-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 16px;
	position: relative;
	margin-top: 9px;
}
.contact-form .wpcf7-submit {
	position: relative;
	width: 124px;
	height: 30px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid var(--sky);
	border-radius: 3px;
	background: var(--sky);
	color: var(--navy);
	font-size: 12px;
	line-height: 14px;
	font-weight: 400;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out), border-color 0.35s, transform 0.2s;
}
@media (hover: hover) {
	.contact-form .wpcf7-submit:not(:disabled):hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
}
.contact-form .wpcf7-submit:active:not(:disabled) { transform: translateY(1px); }
.contact-form .wpcf7-submit:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.contact-form .wpcf7-submit:disabled { cursor: not-allowed; }
.contact-form .submitting .wpcf7-submit { color: transparent; }

/* CF7's spinner, redrawn as a small ring inside the button. */
.contact-form .wpcf7-spinner {
	position: absolute;
	visibility: hidden;
	width: 14px;
	height: 14px;
	left: 55px;
	top: 8px;
	margin: 0;
	border: 1.5px solid rgba(24, 48, 102, 0.25);
	border-top-color: var(--navy);
	border-radius: 50%;
	background: none;
	opacity: 1;
	animation: cf-spin 0.8s linear infinite;
}
.contact-form .wpcf7-spinner::before { content: none; }
.contact-form .submitting .wpcf7-spinner { visibility: visible; }
@keyframes cf-spin { to { transform: rotate(360deg); } }

.contact-form .wpcf7 form .wpcf7-response-output {
	flex: 1 1 260px;
	margin: 0;
	padding: 6px 12px 6px 32px;
	border: 0;
	border-radius: 3px;
	font-size: 12px;
	line-height: 18px;
	font-weight: 500;
	position: relative;
	animation: cf-tip-in 0.45s var(--ease-out);
}
.contact-form .wpcf7 form .wpcf7-response-output:empty { display: none; }
.contact-form .wpcf7 form .wpcf7-response-output::before {
	content: "";
	position: absolute;
	left: 11px;
	top: 50%;
	width: 12px;
	height: 12px;
	margin-top: -6px;
	background: currentColor;
	-webkit-mask: var(--cf-icon) center / contain no-repeat;
	mask: var(--cf-icon) center / contain no-repeat;
}
.contact-form .wpcf7 form.invalid .wpcf7-response-output,
.contact-form .wpcf7 form.unaccepted .wpcf7-response-output,
.contact-form .wpcf7 form.payment-required .wpcf7-response-output,
.contact-form .wpcf7 form.failed .wpcf7-response-output,
.contact-form .wpcf7 form.aborted .wpcf7-response-output,
.contact-form .wpcf7 form.spam .wpcf7-response-output {
	background: var(--cf-error-bg);
	color: #8c1d18;
	--cf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill-rule='evenodd' d='M6 12A6 6 0 1 0 6 0a6 6 0 0 0 0 12Zm-.75-9.4a.75.75 0 0 1 1.5 0v4.1a.75.75 0 0 1-1.5 0V2.6ZM6 9.85a.85.85 0 1 0 0-1.7.85.85 0 0 0 0 1.7Z'/%3E%3C/svg%3E");
}
.contact-form .wpcf7 form.sent .wpcf7-response-output {
	background: var(--cf-ok-bg);
	color: var(--cf-ok);
	--cf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill-rule='evenodd' d='M6 12A6 6 0 1 0 6 0a6 6 0 0 0 0 12Zm2.9-7.6a.7.7 0 0 0-1-1L5.1 6.3 4.1 5.3a.7.7 0 0 0-1 1l1.5 1.5a.7.7 0 0 0 1 0l3.3-3.4Z'/%3E%3C/svg%3E");
}
.contact-form .wpcf7 form.sent .wpcf7-submit { background: var(--cf-ok-bg); border-color: var(--cf-ok-bg); color: var(--cf-ok); }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 1180px) {
	.contact-hero__copy { padding-inline: 24px; }
	.contact-form { padding: 28px 24px 24px; }
}

@media (max-width: 1023px) {
	.contact-hero { padding: calc(var(--header-h) + 40px) 0 64px; }
	.contact-hero__grid { grid-template-columns: 1fr; row-gap: 48px; }
	.contact-hero__main { order: -1; }
	.contact-hero__copy { padding: 0; }
	.contact-hero__media { aspect-ratio: 4 / 3; max-height: 520px; }
	.contact-hero__media img { object-position: 50% 25%; }
	.contact-form { margin-top: 32px; }
}

@media (max-width: 599px) {
	.contact-hero { padding: calc(var(--header-h) + 32px) 0 48px; }
	.contact-hero__intro { font-size: 15px; line-height: 23px; }
	.contact-form { margin-top: 28px; margin-inline: calc(-1 * var(--gutter) + 8px); padding: 24px 16px 20px; }
	.contact-form form { grid-template-columns: 1fr; row-gap: 18px; }
	.cf-field input, .cf-field select { height: 46px; font-size: 16px; }
	.cf-field textarea { font-size: 16px; padding-top: 13px; }
	.cf-field__label { top: 13px; font-size: 14px; }
	.contact-form .wpcf7-not-valid-tip { top: 17px; }
	.cf-field input.wpcf7-not-valid { padding-right: 140px; }
	.cf-field input:focus + .cf-field__label,
	.cf-field input:not(:placeholder-shown) + .cf-field__label,
	.cf-field input:-webkit-autofill + .cf-field__label,
	.cf-field textarea:focus + .cf-field__label,
	.cf-field textarea:not(:placeholder-shown) + .cf-field__label,
	.cf-field select + .cf-field__label { transform: translateY(-23px) scale(0.78); }
	.cf-field select + .cf-field__label { transition: none; }
	.cf-terms .wpcf7-list-item > label { align-items: flex-start; gap: 12px; }
	.cf-terms .wpcf7-list-item-label { padding-top: 2px; }
	.contact-form .wpcf7-submit { width: 100%; height: 44px; font-size: 14px; }
	.contact-form .wpcf7-spinner { left: calc(50% - 7px); top: 15px; }
	.contact-hero__media { aspect-ratio: 4 / 4.4; }
}
