/* Homepage plate campaign modal. Same palette as the plate page:
   teal #04475C, orange #F8AB3B, cream #FBF5D9. */

.gtm[hidden] {
	display: none;
}

.gtm {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.gtm-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(4, 71, 92, 0.72);
	opacity: 0;
	transition: opacity 0.28s ease;
}

.gtm-box {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	background: #FBF5D9;
	border-radius: 10px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	padding: 40px 44px 44px;
	text-align: center;
	font-family: 'Montserrat', sans-serif;
	color: #2b3a42;
	opacity: 0;
	transform: translateY(20px) scale(0.98);
	transition: opacity 0.28s ease, transform 0.28s ease;
}

.gtm.is-open .gtm-backdrop {
	opacity: 1;
}

.gtm.is-open .gtm-box {
	opacity: 1;
	transform: none;
}

.gtm-plate {
	display: block;
	width: 100%;
	height: auto;
	max-width: 380px;
	margin: 0 auto 24px;
	border-radius: 6px;
}

.gtm-kicker {
	margin: 0 0 8px;
	padding: 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #c07f14;
}

.gtm h2 {
	font-family: Neutra2Display, 'Montserrat', sans-serif;
	font-weight: 900;
	text-transform: uppercase;
	font-size: 34px;
	line-height: 1.05;
	color: #04475C;
	margin: 0 0 14px;
	padding: 0;
}

.gtm-lede {
	margin: 0 0 30px;
	padding: 0;
	font-size: 17px;
	line-height: 1.6;
}

.gtm .gtm-btn {
	display: block;
	width: 100%;
	box-sizing: border-box;
	background-color: #F8AB3B;
	color: #04475C !important;
	font-family: Neutra2Display, 'Montserrat', sans-serif;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 26px;
	line-height: 1.15;
	padding: 22px 30px;
	border-radius: 6px;
	text-decoration: none;
	box-shadow: 0 8px 20px rgba(4, 71, 92, 0.28);
	transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.gtm-btn:hover {
	background-color: #ffc266;
	transform: translateY(-3px);
	box-shadow: 0 14px 28px rgba(4, 71, 92, 0.34);
}

/* Slow pulse pulls the eye to the CTA once the modal has settled */
@keyframes gtm-btn-pulse {
	0%, 100% { box-shadow: 0 8px 20px rgba(4, 71, 92, 0.28), 0 0 0 0 rgba(248, 171, 59, 0.55); }
	50%      { box-shadow: 0 8px 20px rgba(4, 71, 92, 0.28), 0 0 0 14px rgba(248, 171, 59, 0); }
}

.gtm.is-open .gtm-btn {
	animation: gtm-btn-pulse 2.4s ease-out 0.6s 3;
}

.gtm-btn:hover,
.gtm-btn:focus-visible {
	animation: none;
}

.gtm-dismiss {
	display: block;
	margin: 20px auto 0;
	background: none;
	border: 0;
	padding: 4px;
	font-family: inherit;
	font-size: 14px;
	color: #6a7780;
	text-decoration: underline;
	cursor: pointer;
}

.gtm-dismiss:hover {
	color: #04475C;
}

.gtm-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 40px;
	height: 40px;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	border-radius: 50%;
}

.gtm-close::before,
.gtm-close::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 2px;
	background: #04475C;
	transform-origin: center;
}

.gtm-close::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.gtm-close::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.gtm-close:hover {
	background: rgba(4, 71, 92, 0.1);
}

@media (max-width: 480px) {
	.gtm {
		padding: 16px;
	}

	.gtm-box {
		padding: 32px 24px 34px;
	}

	.gtm h2 {
		font-size: 27px;
	}

	.gtm-lede {
		font-size: 16px;
	}

	.gtm .gtm-btn {
		font-size: 21px;
		padding: 18px 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gtm-backdrop,
	.gtm-box {
		transition: none;
	}

	.gtm.is-open .gtm-btn {
		animation: none;
	}
}
