body.tdt-component-page.page-template-component-page .tdt-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	margin: 0;
	border: 0;
	max-width: none;
	max-height: none;
	width: 100%;
	height: 100%;
	background: transparent;
	color: inherit;
}

body.tdt-component-page.page-template-component-page .tdt-modal[open],
body.tdt-component-page.page-template-component-page .tdt-modal.tdt-modal--open {
	display: flex;
}

body.tdt-component-page.page-template-component-page .tdt-modal::backdrop {
	background-color: rgba(0, 0, 0, 0.72);
	opacity: 0;
	transition: opacity 0.28s ease;
}

body.tdt-component-page.page-template-component-page .tdt-modal.tdt-modal--visible::backdrop {
	opacity: 1;
}

body.tdt-component-page.page-template-component-page .tdt-modal-backdrop {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.72);
	opacity: 0;
	transition: opacity 0.28s ease;
}

body.tdt-component-page.page-template-component-page .tdt-modal.tdt-modal--visible .tdt-modal-backdrop {
	opacity: 1;
}

body.tdt-component-page.page-template-component-page .tdt-modal-panel {
	position: relative;
	z-index: 1;
	width: min(960px, 100%);
	max-height: min(94vh, 1200px);
	overflow: auto;
	overscroll-behavior: contain;
	padding: 40px 36px 36px;
	border-radius: 8px;
	background-color: #ffffff;
	color: #333333;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
	opacity: 0;
	transform: translateY(28px);
	transition:
		opacity 0.34s ease 0.12s,
		transform 0.38s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}

body.tdt-component-page.page-template-component-page .tdt-modal.tdt-modal--visible .tdt-modal-panel {
	opacity: 1;
	transform: translateY(0);
}

body.tdt-component-page.page-template-component-page .tdt-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: #302664;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

body.tdt-component-page.page-template-component-page .tdt-modal-close:hover,
body.tdt-component-page.page-template-component-page .tdt-modal-close:focus-visible {
	background-color: #f5f5f7;
	color: #302664;
	outline: none;
}

body.tdt-component-page.page-template-component-page #primary .entry-content .tdt-modal h2.tdt-modal-title,
body.tdt-component-page.page-template-component-page .tdt-modal h2.tdt-modal-title {
	margin: 0 40px 30px 0 !important;
	padding: 0 !important;
	font-family: "Inter", Helvetica, Arial, sans-serif !important;
	font-size: 27px !important;
	font-weight: 600 !important;
	line-height: 1.25em !important;
	text-align: left !important;
	color: #302664 !important;
}

body.tdt-component-page.page-template-component-page .tdt-modal-body {
	font-size: 16px !important;
	line-height: 1.7em !important;
	color: #4d4d4b !important;
}

body.tdt-component-page.page-template-component-page .tdt-modal-body > *:first-child {
	margin-top: 0 !important;
}

body.tdt-component-page.page-template-component-page .tdt-modal-body > *:last-child {
	margin-bottom: 0 !important;
}

body.tdt-component-page.page-template-component-page .tdt-modal-body p {
	margin: 0 0 16px !important;
	font-size: 16px !important;
	line-height: 1.7em !important;
	color: #4d4d4b !important;
}

body.tdt-component-page.page-template-component-page .tdt-modal-body p:last-child {
	margin-bottom: 0 !important;
}

body.tdt-component-page.page-template-component-page .tdt-modal-body .wpcf7,
body.tdt-component-page.page-template-component-page .tdt-modal-body .wpforms-container,
body.tdt-component-page.page-template-component-page .tdt-modal-body form {
	margin: 0;
}

/*
 * Modal open requires JS, so WPForms' "enable JavaScript" fallback is never useful
 * here — and can incorrectly remain visible when the form starts inside a closed dialog.
 */
body.tdt-component-page.page-template-component-page .tdt-modal noscript,
body.tdt-component-page.page-template-component-page .tdt-modal .wpforms-error-noscript,
body.tdt-component-page.page-template-component-page .tdt-modal [class*="wpforms-error-noscript"],
body.tdt-component-page.page-template-component-page .wpforms-container noscript,
body.tdt-component-page.page-template-component-page .wpforms-container .wpforms-error-noscript,
body.tdt-component-page.page-template-component-page .wpforms-container [class*="wpforms-error-noscript"] {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	max-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	position: absolute !important;
	clip: rect(0, 0, 0, 0) !important;
	border: 0 !important;
}

body.tdt-component-page.page-template-component-page button.tdt-cta {
	appearance: none;
	border: 0;
	cursor: pointer;
	font: inherit;
	font-family: inherit;
}

/* Keep page scrollbar visible so opening a modal does not shift layout width. */
html:has(body.tdt-component-page),
html:has(.tdt-modal) {
	overflow-y: scroll;
	scrollbar-gutter: stable;
}

@media (prefers-reduced-motion: reduce) {
	body.tdt-component-page.page-template-component-page .tdt-modal::backdrop,
	body.tdt-component-page.page-template-component-page .tdt-modal-backdrop,
	body.tdt-component-page.page-template-component-page .tdt-modal-panel {
		transition: none;
	}

	body.tdt-component-page.page-template-component-page .tdt-modal-panel {
		transform: none;
	}
}

@media screen and (max-width: 768px) {
	body.tdt-component-page.page-template-component-page .tdt-modal {
		padding: 16px;
	}

	body.tdt-component-page.page-template-component-page .tdt-modal-panel {
		padding: 32px 22px 24px;
		max-height: 94vh;
	}

	body.tdt-component-page.page-template-component-page #primary .entry-content .tdt-modal h2.tdt-modal-title,
	body.tdt-component-page.page-template-component-page .tdt-modal h2.tdt-modal-title {
		font-size: 24px !important;
		margin-right: 36px !important;
		margin-bottom: 14px !important;
	}
}
