.contact-wrapper {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: grid;
	place-items: center;
	overflow: hidden;
	padding: 16px;
	background: rgba(0, 0, 0, 0.55);
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-wrapper.active {
	visibility: visible;
	opacity: 1;
}

.contact-wrapper-inner {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 960px;
	max-height: calc(100dvh - 32px);
	margin: 0 auto;
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

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

.contactform_inner {
	position: relative;
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	min-height: 0;
	max-height: calc(100dvh - 32px);
}

.contactform_body {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
}

.contactform-banner,
.contactform_input {
	min-height: 0;
	overflow-y: auto;
}

.contactform_footer {
	display: flex;
	flex: none;
	flex-direction: column;
	gap: 8px;
	padding: 12px 28px 16px;
	border-top: 1px solid #e6eef3;
	background: #fff;
}

.contactform_footer .contactform_status {
	margin: 0;
}

.contactform_footer .btn-2 {
	align-self: flex-start;
	margin-top: 0;
}

.contactform_close {
	position: absolute;
	top: 10px;
	right: 14px;
	z-index: 2;
	margin: 0;
	padding: 4px 6px;
	border: 0;
	background: none;
	font: inherit;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: #555;
}

.contactform_close:hover {
	color: #000;
}

.contactform_close:focus-visible {
	outline: 2px solid #007dbc;
	outline-offset: 2px;
}

.contactform-banner {
	padding: 32px 28px;
	background: #f2f6f9;
}

.contactform-banner h2 {
	margin: 12px 0 10px;
	color: #007dbc;
	font-size: 28px;
	line-height: 1.25;
}

.contactform-banner p {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: #333;
}

.contactform_input {
	padding: 28px;
}

.contactform_form .filter-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.contactform_form .btn-4 {
	padding: 8px 14px;
	border: 1px solid #c8d2da;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
	font-size: 14px;
}

.contactform_form .btn-4.active {
	background: #007dbc;
	border-color: #007dbc;
	color: #fff;
}

.contactform_form label {
	display: block;
	margin: 12px 0 4px;
	font-size: 14px;
	font-weight: 600;
}

.contactform_form input[type="text"],
.contactform_form input[type="email"],
.contactform_form input[type="tel"],
.contactform_form select,
.contactform_form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 9px 10px;
	border: 1px solid #c8d2da;
	border-radius: 6px;
	font-size: 14px;
	line-height: 1.4;
}

.contactform_form select {
	margin-top: 12px;
}

.contactform_form textarea {
	resize: vertical;
}

.contactform_form .needs_input,
.contactform_form [aria-invalid="true"] {
	border-color: #c0392b;
	background: #fdf0ee;
}

.contactform_form .contactform_kb_hint {
	margin-top: 10px;
	padding: 10px 12px;
	border-radius: 6px;
	background: #fef6e0;
	font-size: 13px;
}

.contactform_form .contactform_note {
	margin: 12px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: #555;
}

.contactform_form .contactform_status {
	margin: 12px 0 0;
	padding: 8px 12px;
	border-radius: 6px;
	background: #eef6fb;
	color: #1f4b66;
	font-size: 14px;
	line-height: 1.4;
}

.contactform_form .contactform_status[hidden] {
	display: none;
}

.contactform_form .contactform_status.is-error {
	background: #fdf0ee;
	color: #a5281b;
}

/* The popup sits outside .rr-source, so the route stylesheets do not style this button. */
.contactform_inner .btn-2 {
	min-width: 120px;
	margin-top: 16px;
	padding: 10px 24px;
	border: 1px solid #007dbc;
	border-radius: 6px;
	background: #007dbc;
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
	transition: background-color 0.15s ease, opacity 0.15s ease;
}

.contactform_inner .btn-2:hover {
	border-color: #006a9e;
	background: #006a9e;
}

.contactform_inner .btn-2:focus-visible {
	outline: 2px solid #007dbc;
	outline-offset: 2px;
}

.contactform_inner .btn-2:disabled,
.contactform_inner .btn-2.is-busy {
	cursor: progress;
	opacity: 0.7;
}

.tmk-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	z-index: 2147483001;
	max-width: min(92vw, 420px);
	padding: 12px 18px;
	border-radius: 8px;
	background: #1b2b36;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
	color: #fff;
	font-size: 15px;
	line-height: 1.4;
	text-align: center;
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 12px);
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
	pointer-events: none;
}

.tmk-toast.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

/* Keep clear of the cookie notice when it is showing. */
body:has(.tmk-consent:not([hidden])) .tmk-toast {
	bottom: 110px;
}

@media (prefers-reduced-motion: reduce) {
	.tmk-toast,
	.contactform_inner .btn-2 {
		transition: none;
	}
}

.contactform_form .label_small {
	font-size: 12px;
	font-weight: 400;
	color: #666;
}

@media (max-width: 760px) {
	.contact-wrapper {
		padding: 0;
	}

	.contact-wrapper-inner {
		height: 100dvh;
		max-height: 100dvh;
		border-radius: 0;
	}

	.contactform_inner {
		height: 100%;
		max-height: 100%;
		overflow: hidden;
	}

	.contact-wrapper .grid {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: minmax(0, 1fr);
		height: 100%;
		min-height: 0;
	}

	.contactform_body {
		grid-template-columns: minmax(0, 1fr);
		flex: 1 1 auto;
		overflow-y: auto;
	}

	.contactform-banner,
	.contactform_input {
		overflow: visible;
	}

	.contactform-banner {
		padding: 24px 20px;
	}

	.contactform_input {
		padding: 20px;
	}

	.contactform_footer {
		padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
	}

	.contactform_footer .btn-2 {
		width: 100%;
	}
}
