.tpm-header,
.tpm-footer,
.tpm-enquiry {
	--tpm-blue: #0d46b6;
	--tpm-navy: #032d7f;
	--tpm-bright: #0055ff;
	--tpm-gold: #f0ae0d;
	--tpm-ink: #000000;
	--tpm-text: #343434;
	--tpm-muted: #5b6472;
	--tpm-line: #e4e4e4;
	--tpm-mist: #f3f5f9;
	--tpm-serif: "Fraunces", Georgia, serif;
	--tpm-sans: "Golos Text", Arial, sans-serif;
	font-family: var(--tpm-sans);
	box-sizing: border-box;
}

.tpm-header *,
.tpm-footer *,
.tpm-enquiry * {
	box-sizing: border-box;
}

.tpm-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.tpm-skip {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 1000;
	padding: 0.75rem 1.25rem;
	background: #032d7f;
	color: #ffffff;
	font-family: "Golos Text", Arial, sans-serif;
	font-weight: 600;
	text-decoration: none;
	border-radius: 4px;
}

.tpm-skip:focus {
	top: 1rem;
	outline: 3px solid #f0ae0d;
	outline-offset: 2px;
}

.tpm-content-start:focus {
	outline: none;
}

/* Header */
.tpm-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: #ffffff;
	border-bottom: 1px solid var(--tpm-line);
	transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.admin-bar .tpm-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .tpm-header {
		top: 46px;
	}
}

.tpm-header.is-scrolled {
	border-color: transparent;
	box-shadow: 0 8px 28px rgba(3, 45, 127, 0.1);
}

.tpm-header__inner {
	display: flex;
	align-items: center;
	gap: 2rem;
	max-width: 76rem;
	margin: 0 auto;
	padding: 1.125rem 2rem;
}

.tpm-brand {
	display: flex;
	flex-direction: column;
	line-height: 1;
	color: var(--tpm-ink);
	text-decoration: none;
	flex-shrink: 0;
	border-left: 3px solid var(--tpm-blue);
	padding: 0.125rem 0 0.125rem 0.75rem;
}

.tpm-brand__name {
	font-family: var(--tpm-serif);
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.tpm-brand__sub {
	margin-top: 0.3rem;
	font-family: var(--tpm-sans);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--tpm-blue);
}

.tpm-brand:hover .tpm-brand__name {
	color: var(--tpm-blue);
}

.tpm-nav {
	margin-left: auto;
}

.tpm-nav__list {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tpm-nav__link {
	position: relative;
	display: block;
	padding: 0.625rem 0.75rem;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--tpm-ink);
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.tpm-nav__link::after {
	content: "";
	position: absolute;
	left: 0.75rem;
	right: 0.75rem;
	bottom: 0.25rem;
	height: 2px;
	background: var(--tpm-blue);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.25s ease;
}

.tpm-nav__link:hover,
.tpm-nav__link[aria-current="page"] {
	color: var(--tpm-blue);
}

.tpm-nav__link:hover::after,
.tpm-nav__link[aria-current="page"]::after {
	transform: scaleX(1);
}

.tpm-header__cta,
.tpm-mobile__cta,
.tpm-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.8125rem 1.375rem;
	font-family: var(--tpm-sans);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	color: #ffffff;
	background: var(--tpm-bright);
	border: 2px solid var(--tpm-bright);
	border-radius: 4px;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.tpm-header__cta:hover,
.tpm-mobile__cta:hover,
.tpm-form__submit:hover {
	color: #ffffff;
	background: var(--tpm-navy);
	border-color: var(--tpm-navy);
	transform: translateY(-1px);
}

.tpm-header a:focus-visible,
.tpm-header button:focus-visible,
.tpm-enquiry a:focus-visible,
.tpm-form__submit:focus-visible {
	outline: 3px solid var(--tpm-navy);
	outline-offset: 3px;
	border-radius: 4px;
}

.tpm-menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	margin-left: auto;
	padding: 0;
	background: transparent;
	border: 1px solid var(--tpm-line);
	border-radius: 4px;
	cursor: pointer;
}

.tpm-menu-toggle__bars {
	position: relative;
	display: block;
	width: 1.375rem;
	height: 1rem;
}

.tpm-menu-toggle__bars span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--tpm-ink);
	transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.tpm-menu-toggle__bars span:nth-child(1) { top: 0; }
.tpm-menu-toggle__bars span:nth-child(2) { top: 7px; }
.tpm-menu-toggle__bars span:nth-child(3) { top: 14px; }

.tpm-menu-toggle[aria-expanded="true"] .tpm-menu-toggle__bars span:nth-child(1) {
	top: 7px;
	transform: rotate(45deg);
}

.tpm-menu-toggle[aria-expanded="true"] .tpm-menu-toggle__bars span:nth-child(2) {
	opacity: 0;
}

.tpm-menu-toggle[aria-expanded="true"] .tpm-menu-toggle__bars span:nth-child(3) {
	top: 7px;
	transform: rotate(-45deg);
}

.tpm-mobile {
	border-top: 1px solid var(--tpm-line);
	background: #ffffff;
	max-height: calc(100vh - 5rem);
	overflow-y: auto;
}

.tpm-mobile[hidden] {
	display: none;
}

.tpm-mobile__nav {
	padding: 0.5rem 1rem 1.5rem;
}

.tpm-mobile__list {
	margin: 0 0 1.25rem;
	padding: 0;
	list-style: none;
}

.tpm-mobile__link {
	display: block;
	padding: 0.95rem 0.25rem;
	font-size: 1.0625rem;
	font-weight: 500;
	color: var(--tpm-ink);
	text-decoration: none;
	border-bottom: 1px solid var(--tpm-line);
}

.tpm-mobile__link[aria-current="page"] {
	color: var(--tpm-blue);
	box-shadow: inset 3px 0 0 var(--tpm-blue);
	padding-left: 0.875rem;
}

.tpm-mobile__cta {
	width: 100%;
	padding: 1rem;
}

@media (max-width: 1100px) {
	.tpm-nav,
	.tpm-header__cta {
		display: none;
	}

	.tpm-menu-toggle {
		display: inline-flex;
	}
}

@media (min-width: 1101px) {
	.tpm-mobile {
		display: none;
	}
}

@media (max-width: 767px) {
	.tpm-header__inner {
		padding: 0.875rem 1rem;
	}

	.tpm-brand__name {
		font-size: 1.3125rem;
	}
}

/* Footer */
.tpm-footer {
	background: var(--tpm-navy);
	color: rgba(255, 255, 255, 0.86);
}

.tpm-footer__inner {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
	gap: 3rem;
	max-width: 76rem;
	margin: 0 auto;
	padding: 5rem 2rem 4rem;
}

.tpm-footer .tpm-brand {
	color: #ffffff;
	border-left-color: var(--tpm-gold);
	margin-bottom: 1.5rem;
}

.tpm-footer .tpm-brand__sub {
	color: var(--tpm-gold);
}

.tpm-footer .tpm-brand:hover .tpm-brand__name {
	color: #ffffff;
}

.tpm-footer__heading {
	margin: 0 0 1.25rem;
	font-family: var(--tpm-sans);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--tpm-gold);
}

.tpm-footer__text {
	margin: 0 0 1rem;
	font-size: 0.9375rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.86);
}

.tpm-footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tpm-footer__list li + li {
	margin-top: 0.25rem;
}

.tpm-footer__link {
	display: inline-block;
	padding: 0.375rem 0;
	font-size: 0.9375rem;
	color: #ffffff;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.tpm-footer__link:hover {
	color: #ffffff;
	border-bottom-color: var(--tpm-gold);
}

.tpm-footer__external {
	font-weight: 600;
	border-bottom-color: rgba(255, 255, 255, 0.4);
}

.tpm-footer a:focus-visible {
	outline: 3px solid var(--tpm-gold);
	outline-offset: 3px;
}

.tpm-footer__bar {
	border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.tpm-footer__bar-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	max-width: 76rem;
	margin: 0 auto;
	padding: 1.5rem 2rem;
}

.tpm-footer__legal {
	margin: 0;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.8);
}

.tpm-footer__policies {
	display: flex;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (max-width: 1024px) {
	.tpm-footer__inner {
		grid-template-columns: 1fr 1fr;
		gap: 2.5rem;
	}
}

@media (max-width: 767px) {
	.tpm-footer__inner {
		grid-template-columns: 1fr;
		gap: 2.25rem;
		padding: 3.5rem 1rem 3rem;
	}

	.tpm-footer__bar-inner {
		padding: 1.25rem 1rem;
	}

	.tpm-footer__link {
		padding: 0.5rem 0;
	}
}

/* Enquiry section */
.tpm-enquiry {
	padding: 5.5rem 2rem 6.5rem;
	background: var(--tpm-mist);
	color: var(--tpm-text);
}

.tpm-enquiry__inner {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: 4rem;
	max-width: 72rem;
	margin: 0 auto;
	align-items: start;
}

.tpm-enquiry__eyebrow {
	margin: 0 0 1rem;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--tpm-blue);
}

.tpm-enquiry__title {
	margin: 0 0 1.5rem;
	font-family: var(--tpm-serif);
	font-size: 2.25rem;
	font-weight: 600;
	line-height: 1.15;
	color: var(--tpm-ink);
}

.tpm-enquiry__intro p {
	margin: 0 0 1rem;
	font-size: 1.0625rem;
	line-height: 1.7;
}

.tpm-enquiry__links {
	margin: 1.75rem 0 0;
	padding: 0;
	list-style: none;
}

.tpm-enquiry__links li + li {
	margin-top: 0.75rem;
}

.tpm-enquiry__links a {
	font-weight: 600;
	color: var(--tpm-blue);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.tpm-enquiry__links a:hover {
	color: var(--tpm-navy);
}

.tpm-enquiry__panel {
	padding: 2.5rem;
	background: #ffffff;
	border: 1px solid var(--tpm-line);
	border-top: 3px solid var(--tpm-blue);
	border-radius: 6px;
	box-shadow: 0 20px 50px rgba(3, 45, 127, 0.08);
}

.tpm-form__required-note {
	margin: 0 0 1.5rem;
	font-size: 0.875rem;
	color: var(--tpm-muted);
}

.tpm-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
}

.tpm-form__field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.tpm-form__field--wide {
	grid-column: 1 / -1;
}

.tpm-form label {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--tpm-ink);
}

.tpm-form input[type="text"],
.tpm-form input[type="email"],
.tpm-form select,
.tpm-form textarea {
	width: 100%;
	min-height: 3rem;
	padding: 0.75rem 0.875rem;
	font-family: var(--tpm-sans);
	font-size: 1rem;
	color: var(--tpm-ink);
	background: #ffffff;
	border: 1px solid #8a93a3;
	border-radius: 4px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tpm-form textarea {
	resize: vertical;
}

.tpm-form input:focus,
.tpm-form select:focus,
.tpm-form textarea:focus {
	outline: none;
	border-color: var(--tpm-blue);
	box-shadow: 0 0 0 3px rgba(13, 70, 182, 0.35);
}

.tpm-form [aria-invalid="true"] {
	border-color: #b3261e;
}

.tpm-form__error {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 500;
	color: #b3261e;
}

.tpm-form__check {
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 0.75rem;
	align-items: start;
}

.tpm-form__check input {
	width: 1.25rem;
	height: 1.25rem;
	margin-top: 0.2rem;
	accent-color: var(--tpm-blue);
}

.tpm-form__check label {
	font-weight: 400;
	line-height: 1.6;
}

.tpm-form__check .tpm-form__error {
	grid-column: 2;
}

.tpm-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.tpm-form__submit {
	margin-top: 1.75rem;
	padding: 1rem 2rem;
	font-size: 1rem;
}

.tpm-notice {
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	font-size: 0.9375rem;
	line-height: 1.6;
	border-radius: 4px;
	border-left: 4px solid;
}

.tpm-notice--ok {
	background: #e9f5ec;
	border-color: #1e7a3c;
	color: #14532a;
}

.tpm-notice--error {
	background: #fdecea;
	border-color: #b3261e;
	color: #7a1a14;
}

.tpm-notice--admin {
	background: #fff6dd;
	border-color: var(--tpm-gold);
	color: #4a3700;
}

@media (max-width: 1024px) {
	.tpm-enquiry__inner {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}
}

@media (max-width: 767px) {
	.tpm-enquiry {
		padding: 3.5rem 1rem 4.5rem;
	}

	.tpm-enquiry__title {
		font-size: 1.75rem;
	}

	.tpm-enquiry__panel {
		padding: 1.5rem;
	}

	.tpm-form__grid {
		grid-template-columns: 1fr;
	}

	.tpm-form__submit {
		width: 100%;
	}
}

/* Keep page content from hiding beneath the sticky header when jumping to anchors. */
html {
	scroll-padding-top: 6rem;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
