.thank-you-page {
	position: relative;
	isolation: isolate;
	display: grid;
	align-items: center;
	min-height: 100svh;
	padding: clamp(6.75rem, 13vh, 8.5rem) var(--ldh-gutter) clamp(1.25rem, 4vh, 2.75rem);
	overflow: hidden;
	background: var(--ldh-navy);
	color: var(--ldh-white);
}

.thank-you-page__media,
.thank-you-page__overlay {
	position: absolute;
	inset: 0;
}

.thank-you-page__media { z-index: -4; }

.thank-you-page__media picture,
.thank-you-page__media img {
	display: block;
	width: 100%;
	height: 100%;
}

.thank-you-page__media img {
	object-fit: cover;
	object-position: center 48%;
	filter: saturate(0.72) contrast(1.04);
	transform: scale(1.015);
}

.thank-you-page__overlay {
	z-index: -3;
	background:
		linear-gradient(180deg, rgba(5, 12, 24, 0.72) 0%, rgba(5, 12, 24, 0.46) 46%, rgba(5, 12, 24, 0.86) 100%),
		linear-gradient(90deg, rgba(5, 12, 24, 0.58) 0%, rgba(5, 12, 24, 0.12) 48%, rgba(5, 12, 24, 0.58) 100%);
}

.thank-you-page__glow {
	position: absolute;
	z-index: -2;
	width: clamp(18rem, 38vw, 34rem);
	aspect-ratio: 1;
	border-radius: 50%;
	pointer-events: none;
}

.thank-you-page__glow--one {
	top: -19rem;
	right: -10rem;
	border: 1px solid rgba(201, 173, 118, 0.22);
	box-shadow: 0 0 0 5rem rgba(201, 173, 118, 0.035), 0 0 0 10rem rgba(201, 173, 118, 0.025);
}

.thank-you-page__glow--two {
	bottom: -23rem;
	left: -12rem;
	border: 1px solid rgba(244, 241, 233, 0.08);
	box-shadow: 0 0 0 7rem rgba(244, 241, 233, 0.02);
}

.thank-you-page__inner {
	position: relative;
	z-index: 1;
	display: flex;
	justify-content: center;
	width: min(100%, var(--ldh-wide));
	margin-inline: auto;
	transform: translateY(clamp(-1.5rem, -2vh, -0.5rem));
}

.thank-you-card {
	position: relative;
	width: min(100%, 47rem);
	padding: clamp(2rem, 5vh, 3.5rem) clamp(1.5rem, 6vw, 5.75rem);
	overflow: hidden;
	border: 1px solid rgba(201, 173, 118, 0.44);
	background: linear-gradient(145deg, rgba(12, 22, 35, 0.9), rgba(5, 12, 24, 0.76)), rgba(5, 12, 24, 0.78);
	box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.07);
	text-align: center;
	backdrop-filter: blur(18px);
}

.thank-you-card::before,
.thank-you-card::after {
	content: "";
	position: absolute;
	width: 5.5rem;
	height: 5.5rem;
	pointer-events: none;
}

.thank-you-card::before {
	top: 0.9rem;
	left: 0.9rem;
	border-top: 1px solid rgba(201, 173, 118, 0.58);
	border-left: 1px solid rgba(201, 173, 118, 0.58);
}

.thank-you-card::after {
	right: 0.9rem;
	bottom: 0.9rem;
	border-right: 1px solid rgba(201, 173, 118, 0.58);
	border-bottom: 1px solid rgba(201, 173, 118, 0.58);
}

.thank-you-card__mark {
	display: grid;
	place-items: center;
	width: 4.75rem;
	height: 4.75rem;
	margin: 0 auto 1.7rem;
	border: 1px solid rgba(201, 173, 118, 0.84);
	border-radius: 50%;
	background: rgba(201, 173, 118, 0.09);
	box-shadow: 0 0 0 0.5rem rgba(201, 173, 118, 0.045), 0 1rem 2.2rem rgba(0, 0, 0, 0.2);
}

.thank-you-card__mark span {
	display: block;
	width: 0.9rem;
	height: 1.7rem;
	margin-top: -0.35rem;
	border-right: 2px solid var(--ldh-gold);
	border-bottom: 2px solid var(--ldh-gold);
	transform: rotate(45deg);
}

.thank-you-card__eyebrow {
	margin: 0;
	color: var(--ldh-gold);
	font-size: 0.76rem;
	font-weight: 600;
	letter-spacing: 0.19em;
	text-transform: uppercase;
}

.thank-you-card__title {
	max-width: 12ch;
	margin: 1rem auto 0;
	color: var(--ldh-ivory);
	font-family: var(--ldh-serif);
	font-size: clamp(2.45rem, 6vw, 4.65rem);
	font-weight: 500;
	line-height: 0.98;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

.thank-you-card__description {
	max-width: 35rem;
	margin: 1.55rem auto 0;
	color: rgba(244, 241, 233, 0.76);
	font-size: clamp(0.98rem, 1.6vw, 1.08rem);
	line-height: 1.8;
	text-wrap: balance;
}

.thank-you-card__description p { margin: 0; }
.thank-you-card__description p + p { margin-top: 0.75rem; }

.thank-you-card__button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.9rem;
	min-width: min(100%, 15.5rem);
	margin-top: 2.2rem;
	padding: 1rem 1.55rem;
	overflow: hidden;
	border: 1px solid var(--ldh-gold);
	background: var(--ldh-gold);
	color: var(--ldh-navy);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.11em;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.thank-you-card__button::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.2) 50%, transparent 80%);
	transform: translateX(-130%);
	transition: transform 340ms ease;
}

.thank-you-card__button span { position: relative; z-index: 1; }

.thank-you-card__button-arrow {
	width: 1.5rem;
	height: 1px;
	background: currentColor;
	transition: transform 180ms ease;
}

.thank-you-card__button-arrow::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 0;
	width: 0.42rem;
	height: 0.42rem;
	border-top: 1px solid currentColor;
	border-right: 1px solid currentColor;
	transform: translateY(-50%) rotate(45deg);
}

.thank-you-card__button:hover,
.thank-you-card__button:focus-visible {
	border-color: var(--ldh-ivory);
	background: var(--ldh-ivory);
	box-shadow: 0 1rem 2.3rem rgba(201, 173, 118, 0.25);
	color: var(--ldh-navy);
	transform: translateY(-2px);
}

.thank-you-card__button:hover::before,
.thank-you-card__button:focus-visible::before { transform: translateX(130%); }

.thank-you-card__button:hover .thank-you-card__button-arrow,
.thank-you-card__button:focus-visible .thank-you-card__button-arrow { transform: translateX(0.22rem); }

.thank-you-card__button:focus-visible {
	outline: 2px solid var(--ldh-white);
	outline-offset: 4px;
}

.thank-you-card__note {
	margin: 1.25rem 0 0;
	color: rgba(244, 241, 233, 0.58);
	font-family: var(--ldh-serif);
	font-size: 0.95rem;
	font-style: italic;
	letter-spacing: 0.015em;
}

@media (max-width: 780px) {
	.thank-you-page {
		min-height: 100svh;
		padding-top: 6.25rem;
		padding-bottom: 1rem;
	}

	.thank-you-page__media img { object-position: 57% center; }
	.thank-you-page__inner { transform: none; }
	.thank-you-card { padding: 2rem 1.35rem; }
	.thank-you-card::before,
	.thank-you-card::after { width: 3.25rem; height: 3.25rem; }
	.thank-you-card__mark { width: 3.6rem; height: 3.6rem; margin-bottom: 1rem; }
	.thank-you-card__title { margin-top: 0.65rem; font-size: clamp(2.1rem, 10vw, 3rem); }
	.thank-you-card__description { margin-top: 1rem; line-height: 1.6; }
	.thank-you-card__button { margin-top: 1.5rem; padding-block: 0.85rem; }
	.thank-you-card__note { margin-top: 0.85rem; }
}

@media (min-width: 781px) and (max-height: 720px) {
	.thank-you-page { align-items: start; padding-top: 6.25rem; padding-bottom: 1rem; }
	.thank-you-page__inner { transform: none; }
	.thank-you-card { padding-top: 1.5rem; padding-bottom: 1.5rem; }
	.thank-you-card__mark { width: 3.25rem; height: 3.25rem; margin-bottom: 0.75rem; }
	.thank-you-card__mark span { width: 0.7rem; height: 1.3rem; }
	.thank-you-card__title { margin-top: 0.5rem; font-size: clamp(2.2rem, 7vh, 3.1rem); }
	.thank-you-card__description { margin-top: 0.75rem; line-height: 1.55; }
	.thank-you-card__button { margin-top: 1.1rem; padding-block: 0.8rem; }
	.thank-you-card__note { margin-top: 0.65rem; }
}

@media (prefers-reduced-motion: reduce) {
	.thank-you-card__button,
	.thank-you-card__button::before,
	.thank-you-card__button-arrow { transition: none; }
}
