.thank-you-page {
  background: var(--brand-silver-soft);
}

.thank-you-section {
  min-height: calc(100vh - 80px);
  display: grid;
  place-items: start center;
  padding: 72px 16px 86px;
}

.thank-you-card {
  width: min(360px, 100%);
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 0 0 8px 8px;
  padding: 82px 34px 42px;
  background: #ffffff;
  text-align: center;
}

.thank-you-icon {
  position: relative;
  width: 128px;
  height: 104px;
  margin-bottom: 28px;
}

.thank-you-envelope {
  position: absolute;
  left: 6px;
  top: 10px;
  width: 116px;
  height: 86px;
  border: 2px solid #dce6ea;
  border-radius: 8px;
  background: var(--silver-gradient);
  overflow: hidden;
}

.thank-you-envelope::before,
.thank-you-envelope::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 82px;
  height: 82px;
  border: 2px solid #b7c2c8;
  background: #ffffff;
  transform: rotate(45deg);
}

.thank-you-envelope::before {
  left: -22px;
}

.thank-you-envelope::after {
  right: -22px;
}

.thank-you-check {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 50px;
  height: 50px;
  border: 5px solid #ffffff;
  border-radius: 50%;
  background: var(--blue-gradient);
  box-shadow: 0 8px 18px rgba(133, 182, 214, 0.28);
}

.thank-you-check::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 12px;
  width: 20px;
  height: 12px;
  border-left: 4px solid #ffffff;
  border-bottom: 4px solid #ffffff;
  transform: rotate(-45deg);
}

.thank-you-card h1 {
  margin: 0 0 20px;
  color: var(--brand-charcoal);
  font-size: 32px;
  line-height: 1.2;
  font-weight: 400;
}

.thank-you-message,
.thank-you-email,
.thank-you-countdown {
  margin: 0;
  color: var(--brand-charcoal);
  font-size: 16px;
  line-height: 1.75;
}

.thank-you-email {
  margin-top: 22px;
}

.thank-you-back {
  min-width: 130px;
  min-height: 44px;
  margin-top: 52px;
  border: 0;
  border-radius: 4px;
  color: var(--brand-black);
  background: var(--brand-silver-soft);
  font-weight: 400;
  transition: background 160ms ease, transform 160ms ease;
}

.thank-you-back:hover,
.thank-you-back:focus-visible {
  background: #dce6ea;
  transform: translateY(-1px);
}

.thank-you-countdown {
  margin-top: 32px;
  color: #64748b;
  font-size: 14px;
}

.thank-you-countdown span {
  color: var(--brand-blue-deep);
}

@media (max-width: 720px) {
  .thank-you-section {
    min-height: unset;
    padding: 34px 16px 52px;
  }

  .thank-you-card {
    min-height: auto;
    padding: 58px 24px 34px;
  }
}
