/* Targeted fixes only. Every layout override is tied to a known page/node. */

/* BUG-A11Y-003: #2f91d1 on #11202a is 4.82:1. */
.site-footer a,
.site-footer a:visited,
.site-footer .menu-link,
.site-footer .menu-link:visited {
	color: #2f91d1 !important;
}

.site-footer a:hover,
.site-footer a:focus-visible,
.site-footer .menu-link:hover,
.site-footer .menu-link:focus-visible {
	color: #5db2e8 !important;
}

/* BUG-A11Y-001: visible keyboard focus for the Choices combobox. */
.wpforms-container .choices:focus-visible,
.wpforms-container .choices.is-focused {
	outline: 3px solid #2f91d1 !important;
	outline-offset: 2px !important;
}

/* BUG-FORM-002: preserve WPForms' own 1px honeypot treatment after the
 * second instance receives unique DOM IDs. */
body.page-id-2856 .fl-node-yvlmi7h2t301 form[data-formid="2723"] [data-field-id="1"] {
	display: inline !important;
	height: 1px !important;
	overflow: hidden !important;
	padding: 0 !important;
	position: absolute !important;
	width: 1px !important;
	z-index: -1000 !important;
}

body.page-id-2856 .fl-node-yvlmi7h2t301 form[data-formid="2723"] [data-field-id="1"] input {
	visibility: hidden !important;
}

/* BUG-INT-001: the consultation form stays within the visual viewport. */
#pum-2633 {
	box-sizing: border-box !important;
	overflow: auto !important;
}

#pum-2633 .pum-container {
	box-sizing: border-box !important;
	display: flex !important;
	flex-direction: column !important;
	height: auto !important;
	left: 50% !important;
	margin: 0 !important;
	max-height: calc(100vh - 24px) !important;
	max-height: calc(100dvh - 24px) !important;
	max-width: calc(100vw - 24px) !important;
	overflow: hidden !important;
	position: fixed !important;
	right: auto !important;
	top: 12px !important;
	transform: translateX(-50%) !important;
	width: min(720px, calc(100vw - 24px)) !important;
}

#pum-2633 .pum-content {
	box-sizing: border-box !important;
	flex: 1 1 auto !important;
	min-height: 0 !important;
	overflow-x: hidden !important;
	overflow-y: auto !important;
	overscroll-behavior: contain;
	padding-top: 0 !important;
	-webkit-overflow-scrolling: touch;
}

#pum-2633 .pum-title {
	box-sizing: border-box !important;
	flex: 0 0 auto !important;
	padding-right: 52px !important;
}

#pum-2624 .pum-close {
	align-items: center !important;
	bottom: auto !important;
	box-sizing: border-box !important;
	display: flex !important;
	height: 44px !important;
	justify-content: center !important;
	left: auto !important;
	min-height: 44px !important;
	min-width: 44px !important;
	padding: 0 !important;
	right: 0 !important;
	top: 0 !important;
	width: 44px !important;
}

#pum-2633 .pum-close {
	align-items: center !important;
	bottom: auto !important;
	box-sizing: border-box !important;
	display: flex !important;
	height: 44px !important;
	justify-content: center !important;
	left: auto !important;
	min-height: 44px !important;
	min-width: 44px !important;
	padding: 0 !important;
	right: 0 !important;
	top: 0 !important;
	width: 44px !important;
	z-index: 3 !important;
}

@media (max-width: 768px) {
	/* BUG-LAYOUT-002: expose the 01-03 row and stack all process cards. */
	body.page-id-2516 .fl-node-3ybesa76dglh {
		display: block !important;
	}

	body.page-id-2516 .fl-node-vufyq0mcs6h2 {
		display: flex !important;
		flex-direction: column !important;
		width: 100% !important;
	}

	body.page-id-2516 .fl-node-vufyq0mcs6h2 > .fl-col,
	body.page-id-2516 .fl-node-ln8uw59jdv3m,
	body.page-id-2516 .fl-node-s87ewz4d9lf5,
	body.page-id-2516 .fl-node-hsdc9lytnu20,
	body.page-id-2516 .fl-node-qo2nfcmt5di3 {
		float: none !important;
		flex: 0 0 auto !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		max-width: 100% !important;
		width: 100% !important;
	}

	/* BUG-LAYOUT-003: remove inherited custom widths from all five items. */
	body.page-id-2516 .fl-node-up3or576984j,
	body.page-id-2516 .fl-node-i8jxnetdkoa7 {
		display: flex !important;
		flex-direction: column !important;
		width: 100% !important;
	}

	body.page-id-2516 .fl-node-up3or576984j > .fl-col,
	body.page-id-2516 .fl-node-i8jxnetdkoa7 > .fl-col,
	body.page-id-2516 .fl-node-r6sbw2g1t0ze,
	body.page-id-2516 .fl-node-wsv6bofh8kax,
	body.page-id-2516 .fl-node-rz5m1oedh27i,
	body.page-id-2516 .fl-node-1lwvfy95cdm3,
	body.page-id-2516 .fl-node-4omyeplvn0s3 {
		float: none !important;
		flex: 0 0 auto !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		max-width: 100% !important;
		width: 100% !important;
	}

	/* BUG-LAYOUT-005: replace only the bad 10px mobile H1 rule. */
	body.page-id-2856 .fl-node-gdlribapt4uf .fl-heading {
		font-size: clamp(30px, 8vw, 50px) !important;
		line-height: 1.2 !important;
	}

	/* BUG-LAYOUT-007: enlarge the hit area, not the menu icon. */
	.main-header-menu-toggle {
		min-height: 44px !important;
		min-width: 44px !important;
	}

	/* BUG-LAYOUT-008: safe minimum touch sizes for shared WPForms controls. */
	.wpforms-container input[type="text"],
	.wpforms-container input[type="email"],
	.wpforms-container input[type="tel"],
	.wpforms-container input[type="url"],
	.wpforms-container input[type="number"],
	.wpforms-container input[type="password"],
	.wpforms-container select,
	.wpforms-container textarea,
	.wpforms-container button.wpforms-submit,
	.wpforms-container .choices,
	.wpforms-container .choices__inner {
		box-sizing: border-box !important;
		min-height: 44px !important;
	}

	.wpforms-container .iti__selected-country {
		min-height: 44px !important;
		min-width: 44px !important;
	}
}

@media (max-width: 430px) {
	/* BUG-LAYOUT-006: stack the primary footer so the QR-adjacent email has a
	 * normal line width instead of the inherited narrow second column. */
	.site-primary-footer-wrap .site-primary-footer-inner-wrap {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.site-primary-footer-wrap .site-footer-primary-section-1,
	.site-primary-footer-wrap .site-footer-primary-section-2,
	.site-primary-footer-wrap .ast-footer-html-3 {
		grid-column: 1 !important;
		min-width: 0 !important;
		width: 100% !important;
	}

	.site-primary-footer-wrap .ast-footer-html-3 span {
		display: inline-block;
		overflow-wrap: normal !important;
		white-space: nowrap !important;
		word-break: normal !important;
	}
}

@media (max-width: 480px) {
	#pum-2633 .pum-container {
		padding: 16px !important;
	}
}
