/*--------------------------------------------------------------
# Thank You Block
--------------------------------------------------------------*/

.thank-you {
  --thank-you-header-clearance: calc(var(--space-5) + var(--space-3) + 56px + var(--space-3) + 2px);
  --thank-you-pad-top: 70px;
  --thank-you-pad-bottom: clamp(60px, 10vw, 140px);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--color-ink, #001219);
  padding: calc(var(--thank-you-header-clearance) + var(--thank-you-pad-top)) clamp(16px, 3vw, 48px) var(--thank-you-pad-bottom);
}

.admin-bar .thank-you {
  padding-top: calc(var(--thank-you-header-clearance) + var(--thank-you-pad-top) - 32px);
}

.thank-you::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(253, 167, 31, 0.68) 0%, #001219 41.83%, #428399 100%);
  opacity: 0.56;
  filter: blur(260px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.thank-you::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: clamp(120px, 22vw, 220px);
  background: linear-gradient(to bottom, transparent 0%, var(--color-ink, #001219) 100%);
  pointer-events: none;
  z-index: 0;
}

.thank-you__inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.thank-you__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.85) 12%, rgba(0, 0, 0, 0.85) 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.85) 12%, rgba(0, 0, 0, 0.85) 88%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

/* ---------- Checkmark icon ---------- */

.thank-you__icon-wrap {
  margin-bottom: 32px;
  animation: ty-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes ty-pop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.thank-you__check {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
}

/* ---------- Typography ---------- */

.thank-you__heading {
  color: var(--color-white, #ffffff);
  font-weight: var(--fw-semibold);
  line-height: 66px;
  margin: 0 0 16px;
}

.thank-you__accent {
  background: linear-gradient(90.3deg, #FDA71F -1.16%, #FFFFFF 46.68%, #FDA71F 96.52%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}

.thank-you__message {
  max-width: 640px;
  margin: 0 auto 40px;
  color: #E9E9E9;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-light);
  line-height: var(--lh-body);
}

.thank-you__message p {
  margin: 0;
}

/* ---------- CTA ---------- */

.thank-you .cta-button {
  color: var(--color-ink, #001219);
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .thank-you {
    --thank-you-header-clearance: calc(var(--space-5) + var(--space-3) + 44px + var(--space-3) + 2px);
  }

  .thank-you__heading {
    line-height: var(--lh-h2);
  }
}

@media (max-width: 900px) {
  .thank-you {
    --thank-you-pad-top: 60px;
    --thank-you-pad-bottom: 60px;
  }

  .thank-you::before {
    filter: blur(180px);
  }
}

@media screen and (max-width: 782px) {
  .admin-bar .thank-you {
    padding-top: calc(var(--thank-you-header-clearance) + var(--thank-you-pad-top) - 46px);
  }
}

@media (max-width: 640px) {
  .thank-you {
    --thank-you-header-clearance: calc(var(--space-5) + var(--space-2) + 40px + var(--space-2) + 2px);
  }
}

@media (max-width: 600px) {
  .thank-you::before {
    filter: blur(120px);
  }

  .thank-you__inner::before {
    background-size: 48px 48px;
  }

  .thank-you__heading {
    line-height: 44px;
  }

  .thank-you__icon-wrap .thank-you__check {
    width: 56px;
    height: 56px;
  }

  .thank-you .cta-button {
    width: 100%;
  }
}
