.thanks-page {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--brand-dark);
}

.thanks-page main {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.thanks-hero {
	flex: 1;
	min-height: 640px;
}

.thanks-grid {
	min-height: 640px;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.8fr);
	align-items: center;
	gap: clamp(40px, 6vw, 88px);
	padding-block: 72px;
}

.thanks-copy,
.thanks-card {
	animation: thanksIn 640ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.thanks-card {
	animation-delay: 140ms;
}

@keyframes thanksIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.thanks-copy {
	max-width: 640px;
}

.thanks-check {
	width: 68px;
	height: 68px;
	display: grid;
	place-items: center;
	margin-bottom: 26px;
	color: var(--brand-deep);
	background: var(--brand-spring);
	border-radius: 50%;
	box-shadow: 0 0 0 10px rgba(168, 223, 107, 0.16), 0 18px 40px rgba(0, 24, 18, 0.3);
	animation: thanksPop 560ms 120ms cubic-bezier(0.3, 1.4, 0.5, 1) both;
}

.thanks-check svg {
	width: 34px;
	height: 34px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@keyframes thanksPop {
	from {
		opacity: 0;
		transform: scale(0.4);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.thanks-hero h1 {
	max-width: 11ch;
	font-size: clamp(2.7rem, 5vw, 5.1rem);
}

.thanks-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 18px;
	margin-top: 34px;
}

.thanks-action {
	min-width: 232px;
	color: var(--brand-deep);
	background: var(--brand-spring);
	box-shadow: 0 16px 34px rgba(0, 24, 18, 0.28);
	text-decoration: none;
}

.thanks-action:hover,
.thanks-action:focus-visible {
	background: #b7eb7d;
	box-shadow: 0 20px 38px rgba(0, 24, 18, 0.34);
	transform: translateY(-2px);
}

.thanks-action:focus-visible,
.thanks-phone:focus-visible {
	outline: 3px solid var(--brand-cream);
	outline-offset: 4px;
}

.thanks-phone {
	min-height: 54px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 0 20px;
	color: var(--brand-cream);
	font-size: var(--type-label);
	text-decoration: none;
	border: 1px solid rgba(241, 255, 238, 0.28);
	border-radius: 999px;
	background: rgba(241, 255, 238, 0.08);
	backdrop-filter: blur(10px) saturate(130%);
	-webkit-backdrop-filter: blur(10px) saturate(130%);
	transition: border-color 160ms ease, background 160ms ease;
}

.thanks-phone:hover {
	border-color: rgba(168, 223, 107, 0.72);
	background: rgba(241, 255, 238, 0.14);
}

.thanks-phone svg {
	width: 18px;
	height: 18px;
	flex: none;
	fill: none;
	stroke: var(--brand-spring);
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.thanks-phone strong {
	font-weight: 700;
	white-space: nowrap;
}

.thanks-card {
	position: relative;
	width: min(100%, 470px);
	justify-self: end;
	padding: 24px;
	border-radius: var(--radius-xl);
	overflow: hidden;
	background: linear-gradient(145deg, rgba(241, 255, 238, 0.34), rgba(0, 80, 61, 0.2)),
	rgba(0, 80, 61, 0.2);
	border-color: rgba(255, 255, 255, 0.58);
}

.thanks-card::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(125deg, rgba(255, 255, 255, 0.26), transparent 38%, rgba(127, 187, 71, 0.18));
}

.thanks-card-heading {
	position: relative;
	padding: 2px 6px 18px;
}

.thanks-card-heading p {
	margin: 0;
	color: rgba(241, 255, 238, 0.8);
	font-size: var(--type-caption);
	font-weight: 700;
}

.thanks-card-heading h2 {
	margin: 5px 0 0;
	color: var(--brand-cream);
	font-size: clamp(1.42rem, 2.1vw, 1.82rem);
	line-height: 1.1;
	letter-spacing: -0.03em;
}

.thanks-panel {
	position: relative;
	padding: 22px;
	color: #0b3025;
	border: 1px solid rgba(255, 255, 255, 0.76);
	border-radius: 22px;
	background: linear-gradient(145deg, rgba(249, 255, 247, 0.9), rgba(224, 246, 225, 0.76)),
	rgba(241, 255, 238, 0.76);
	box-shadow: 0 18px 42px rgba(0, 80, 61, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.thanks-progress {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 6px;
	margin: 2px 0 24px;
}

.thanks-progress span {
	height: 6px;
	border-radius: 999px;
	background: linear-gradient(90deg, #86c94c, #a2e461);
}

.thanks-steps {
	margin: 0;
	padding: 0;
	list-style: none;
}

.thanks-steps li {
	position: relative;
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr);
	gap: 14px;
	padding-bottom: 22px;
}

.thanks-steps li:last-child {
	padding-bottom: 0;
}

.thanks-steps li:not(:last-child)::before {
	content: "";
	position: absolute;
	top: 42px;
	bottom: 4px;
	left: 18px;
	width: 2px;
	border-radius: 2px;
	background: rgba(0, 80, 61, 0.16);
}

.thanks-step-marker {
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	color: var(--brand-green);
	font-size: 0.9rem;
	font-weight: 700;
	border: 1px solid rgba(0, 80, 61, 0.22);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.7);
}

.thanks-steps li.is-done .thanks-step-marker {
	color: var(--brand-cream);
	border-color: transparent;
	background: linear-gradient(145deg, #0f7d58, var(--brand-green));
	box-shadow: 0 8px 18px rgba(0, 80, 61, 0.22);
}

.thanks-step-marker svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.thanks-steps h3 {
	margin: 8px 0 0;
	color: #0b3025;
	font-size: 1rem;
	line-height: 1.25;
	letter-spacing: -0.015em;
}

.thanks-steps p {
	margin: 5px 0 0;
	color: rgba(11, 48, 37, 0.78);
	font-size: var(--type-body-sm);
	line-height: 1.5;
}

@media (max-width: 980px) {
	.thanks-grid {
		grid-template-columns: 1fr;
		gap: 44px;
		padding-block: 58px 72px;
	}

	.thanks-card {
		justify-self: start;
		width: min(100%, 560px);
	}
}

@media (max-width: 700px) {
	.thanks-hero,
	.thanks-grid {
		min-height: auto;
	}

	.thanks-grid {
		gap: 32px;
		padding-block: 40px 56px;
	}

	.thanks-check {
		width: 56px;
		height: 56px;
		margin-bottom: 20px;
	}

	.thanks-check svg {
		width: 28px;
		height: 28px;
	}

	.thanks-hero h1 {
		font-size: clamp(2.28rem, 10.5vw, 2.8rem);
		line-height: 0.98;
	}

	.thanks-actions {
		margin-top: 26px;
	}

	.thanks-action,
	.thanks-phone {
		width: 100%;
		justify-content: center;
	}

	.thanks-card {
		padding: 18px;
		border-radius: 24px;
	}

	.thanks-card-heading {
		padding: 2px 2px 14px;
	}

	.thanks-panel {
		padding: 18px;
		border-radius: 18px;
	}
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.thanks-card-heading p,
	.thanks-card-heading h2 {
		color: var(--brand-green);
	}
}
