/* ═══════════════════════════════════════════════════════════
   THANK YOU – after contact form submission. Not in Figma:
   Contact page head style (off-white, green pills top-right,
   mirrored pill bottom-left). Mobile-first.
   ═══════════════════════════════════════════════════════════ */

.thanks {
	--s: 0.3;
	position: relative;
	padding-block: 120px 40px;
}

.thanks__shapes {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
}

.thanks__pill {
	position: absolute;
	top: calc(-250px * var(--s));
	height: calc(575px * var(--s));
	background: var(--color-green);
	border-radius: var(--radius-pill) 0 0 var(--radius-pill);
}

.thanks__pill--a {
	left: calc(100% - 333px * var(--s));
	width: calc(574px * var(--s));
}

.thanks__pill--b {
	left: calc(100% - 705px * var(--s));
	width: calc(378px * var(--s));
	background: var(--color-green-dark);
}

.thanks__pill-left {
	display: none;
	--deco-color: var(--color-orange);
}

.thanks__inner {
	position: relative;
	z-index: 1;
	max-width: 560px;
}

.thanks__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border: 1px solid var(--color-orange);
	color: var(--color-green-dark);
	animation: thanks-pop 600ms var(--ease-out) both;
}

.thanks__icon path {
	stroke-dasharray: 32;
	stroke-dashoffset: 32;
	animation: thanks-tick 500ms 250ms var(--ease-out) forwards;
}

.thanks__title {
	margin-top: 32px;
	color: var(--color-black);
	font-size: var(--text-display);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: var(--ls-base);
	text-transform: uppercase;
}

.thanks__message {
	margin-top: 16px;
}

.thanks__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 40px;
}

.btn--fill {
	border-color: var(--color-green-dark);
	background: var(--color-green-dark);
	color: var(--color-offwhite);
}

.btn--fill:hover,
.btn--fill:focus-visible {
	border-color: var(--color-orange);
	background: var(--color-orange);
	color: var(--color-white);
}

.thanks__contact {
	margin-top: 56px;
	padding-top: 24px;
	border-top: 1px solid var(--color-line);
}

.thanks__contact-label {
	font-size: var(--text-small);
	font-weight: 500;
	letter-spacing: var(--ls-base);
	text-transform: uppercase;
	opacity: 0.6;
}

.thanks__contact-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 32px;
	margin-top: 10px;
	font-size: 16px;
}

.thanks__contact-links a:hover,
.thanks__contact-links a:focus-visible {
	color: var(--color-green-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* 404 reuses this layout: the icon box shows the status code. */
.not-found__code {
	color: var(--color-green-dark);
	font-size: 18px;
	font-weight: 600;
	letter-spacing: var(--ls-base);
}

@keyframes thanks-pop {
	from { opacity: 0; transform: scale(0.8); }
	to   { opacity: 1; transform: none; }
}

@keyframes thanks-tick {
	to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.thanks__icon,
	.thanks__icon path {
		animation: none;
		stroke-dashoffset: 0;
	}
}

@media (min-width: 768px) {
	.thanks {
		--s: 0.6;
		padding-block: 120px 80px;
	}

	.thanks__pill-left {
		display: block;
		left: calc(-143px * 0.6);
		bottom: -40px;
		width: calc(378px * 0.6);
		height: calc(575px * 0.6);
	}
}

@media (min-width: 1200px) {
	.thanks {
		--s: 1;
		min-height: 620px;
		padding-block: 150px 120px;
	}

	.thanks__inner {
		margin-left: 50px;
	}

	.thanks__pill-left {
		left: -143px;
		bottom: -120px;
		width: 300px;
		height: 456px;
	}
}
