/* Contact page (Figma "Contact — Desktop", node 791:7809) ------------------------------ */

.contact-container {
	width: min(1280px, 100% - 2 * var(--gutter-wide));
	margin-inline: auto;
}

/* Hero */

.contact-hero {
	padding: 64px 0 74px;
	background: #f8f8f7;
}

.contact-hero .breadcrumb ol {
	font-size: 11px;
	font-weight: 500;
	line-height: 16px;
	letter-spacing: 0.4px;
	text-transform: uppercase;
}

.contact-hero__label {
	margin-top: 20px;
	color: var(--red-bright);
	font-size: 12px;
	font-weight: 700;
	line-height: 17px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}

.contact-hero__title {
	max-width: 760px;
	margin-top: 20px;
	color: #0b1421;
	font-family: var(--font-serif);
	font-size: 54px;
	font-weight: 700;
	line-height: 64px;
}

.contact-hero__text {
	max-width: 976px;
	margin-top: 20px;
	color: #3d454f;
	font-size: 18px;
	line-height: 28px;
}

/* Form and side panel */

.contact-form {
	padding: 92px 0 100px;
	background: var(--white);
	scroll-margin-top: var(--header-height);
}

.contact-form__row {
	display: grid;
	grid-template-columns: minmax(0, 790fr) minmax(0, 448fr);
	align-items: stretch;
	gap: 42px;
}

.contact-card {
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-height: 789px;
	padding: 32px;
	border: 1px solid #e3e5e8;
	border-radius: 16px;
	background: var(--white);
}

.contact-card__kicker,
.contact-panel__kicker {
	color: var(--red-bright);
	font-size: 11px;
	font-weight: 700;
	line-height: 16px;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.contact-card__title {
	color: #0b1421;
	font-family: var(--font-serif);
	font-size: 34px;
	font-weight: 700;
	line-height: 42px;
}

.contact-card__intro {
	max-width: 690px;
	color: #3d454f;
	font-size: 18px;
	line-height: 29px;
}


.contact-fields {
	display: flex;
	flex-direction: column;
	gap: 18px;
}


.contact-fields__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 14px;
}

.contact-field {
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.contact-field--wide {
	grid-column: 1 / -1;
}

.contact-field label {
	color: #0b1421;
	font-size: 13px;
	font-weight: 600;
	line-height: 16px;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
	width: 100%;
	height: 48px;
	padding: 0 14px;
	border: 1px solid #e3e5e8;
	border-radius: 9px;
	background: var(--white);
	color: #0b1421;
	font: inherit;
	font-size: 12px;
	line-height: 18px;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-field select {
	padding-right: 36px;
	background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%2387909a' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 12px;
	appearance: none;
}

.contact-field select:invalid,
.contact-field select:has(option[value=""]:checked) {
	color: #87909a;
}

.contact-field textarea {
	height: 154px;
	padding: 14px;
	resize: vertical;
}

.contact-field ::placeholder {
	color: #87909a;
	opacity: 1;
}

.contact-field input:focus-visible,
.contact-field select:focus-visible,
.contact-field textarea:focus-visible {
	border-color: #0b1421;
	outline: none;
	box-shadow: 0 0 0 3px rgba(11, 20, 33, 0.08);
}

/* Contact Form 7 markup: field wrappers, errors, response message. */

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

.contact-field [aria-invalid="true"] {
	border-color: var(--red-bright);
}

/* Errors sit in the gap under their field: CF7 validates as fields lose focus, and a
   message pushing the form down would make the next click miss its target. */
.contact-field .wpcf7-form-control-wrap,
.contact-consent .wpcf7-form-control-wrap {
	position: relative;
}

.contact-fields .wpcf7-not-valid-tip {
	position: absolute;
	top: calc(100% + 2px);
	left: 0;
	color: var(--red-bright);
	font-size: 11px;
	line-height: 14px;
	white-space: nowrap;
}

/* Stronger than the plugin's ".wpcf7 form .wpcf7-response-output" rules. */
.contact-card .wpcf7 form.contact-fields .wpcf7-response-output {
	margin: 0;
	padding: 12px 16px;
	border: 0;
	border-left: 3px solid var(--red-bright);
	border-radius: 4px;
	background: var(--red-soft);
	color: #0b1421;
	font-size: 14px;
	line-height: 20px;
}

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

.contact-card .wpcf7 form.contact-fields.sent .wpcf7-response-output {
	border-left-color: #1f8a4c;
	background: #eaf7f0;
}

.contact-fields .wpcf7-spinner {
	margin: 0 0 0 12px;
	align-self: center;
}

.contact-submit {
	display: flex;
	align-items: center;
}

.contact-consent .wpcf7-list-item {
	margin: 0;
}

.contact-consent label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: #87909a;
	font-size: 12px;
	line-height: 18px;
	cursor: pointer;
}

.contact-consent input {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin: 0;
	border: 1px solid #e3e5e8;
	border-radius: 4px;
	background: var(--white);
	appearance: none;
	cursor: pointer;
}

.contact-consent input:checked {
	border-color: var(--red-bright);
	background: var(--red-bright) url("../icons/check-bold.svg") no-repeat center / 12px;
}

.contact-consent .wpcf7-not-valid input {
	border-color: var(--red-bright);
}

.contact-consent input:focus-visible {
	outline: 2px solid #0b1421;
	outline-offset: 2px;
}

.contact-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	min-width: 190px;
	min-height: 50px;
	padding: 14px 18px;
	border: 1px solid var(--red-bright);
	border-radius: 8px;
	background: var(--red-bright);
	color: var(--white);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 18px;
	cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s;
}

.contact-button:hover {
	border-color: #c70511;
	background: #c70511;
}

/* Contact Form 7 keeps the button disabled until the consent box is ticked. */
.contact-button:disabled {
	border-color: var(--red-bright);
	background: var(--red-bright);
	opacity: 0.45;
	cursor: not-allowed;
}





.contact-panel {
	display: flex;
	flex-direction: column;
	gap: 22px;
	padding: 36px 34px;
	border-radius: 16px;
	background: #0b1421;
}

.contact-panel__title {
	color: var(--white);
	font-family: var(--font-serif);
	font-size: 32px;
	font-weight: 700;
	line-height: 40px;
}

.contact-panel__text {
	color: #c7cfd9;
	font-size: 16px;
	line-height: 22px;
}

.contact-panel__email {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 76px;
	padding: 12px 16px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.06);
	transition: background-color 0.2s;
}

.contact-panel__email:hover {
	background: rgba(255, 255, 255, 0.1);
}

.contact-panel__email > span:last-child {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.contact-panel__icon {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--red-bright);
}

.contact-panel__email-label {
	color: #b8c2cf;
	font-size: 13px;
	font-weight: 500;
	line-height: 13px;
}

.contact-panel__email-value {
	color: var(--white);
	font-size: 13px;
	font-weight: 600;
	line-height: 18px;
	overflow-wrap: anywhere;
}

.contact-panel__label {
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.13);
	color: var(--red-bright);
	font-size: 10px;
	font-weight: 700;
	line-height: 14px;
	letter-spacing: 1px;
	text-transform: uppercase;
}

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

.contact-panel__topics li {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--white);
	font-size: 13px;
	font-weight: 500;
	line-height: 16px;
}

.contact-panel__topics li::before {
	content: "";
	flex-shrink: 0;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--red-bright);
}

/* Responsive ------------------------------------------------------------ */

@media (max-width: 1279px) {
	.contact-form__row {
		grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
		gap: 28px;
	}

	.contact-card {
		min-height: 0;
	}
}

@media (max-width: 1023px) {
	.contact-form {
		padding: 64px 0 72px;
	}

	.contact-form__row {
		grid-template-columns: minmax(0, 1fr);
	}

	.contact-hero__title {
		font-size: 44px;
		line-height: 52px;
	}
}

@media (max-width: 767px) {
	.contact-hero {
		padding: 40px 0 48px;
	}

	.contact-hero__title {
		font-size: 36px;
		line-height: 44px;
	}

	.contact-hero__text,
	.contact-card__intro {
		font-size: 16px;
		line-height: 25px;
	}

	.contact-form {
		padding: 40px 0 56px;
	}

	.contact-card,
	.contact-panel {
		padding: 24px 20px;
	}

	.contact-card__title,
	.contact-panel__title {
		font-size: 28px;
		line-height: 35px;
	}

	.contact-fields__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	/* 16 px fields: no zoom when typing on iOS. */
	.contact-field input,
	.contact-field select,
	.contact-field textarea {
		font-size: 16px;
	}

	.contact-field label,
	.contact-consent .wpcf7-list-item {
	margin: 0;
}

.contact-consent label {
		font-size: 14px;
		line-height: 20px;
	}

	.contact-button {
		flex: 1;
	}
}
