:root {
  --thanks-ink: #073d55;
  --thanks-blue: #075f89;
  --thanks-gold: #bf8a2a;
  --thanks-cream: #e7e1d9;
  --thanks-cream-soft: #eee8e0;
  --thanks-line: rgba(174, 126, 45, 0.34);
}

body.thanks-screen-open {
  overflow: hidden;
}

.request-thanks-screen {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: grid;
  place-items: start center;
  min-height: 100svh;
  padding: clamp(18px, 4vh, 42px) 20px 28px;
  overflow-y: auto;
  background: #e1d8d0;
}

.request-thanks-screen[hidden],
.request-thanks-screen.hidden {
  display: none !important;
}

.thanks-confirmation-card {
  position: relative;
  width: min(470px, 100%);
  padding: 28px 38px 24px;
  border: 1px solid rgba(157, 112, 46, .42);
  border-radius: 30px;
  color: var(--thanks-ink);
  text-align: center;
  background: #e7e1d9;
  box-shadow: 0 24px 64px rgba(69, 53, 42, .13), 0 4px 14px rgba(69, 53, 42, .06);
}

.thanks-confirmation-card::after {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 23px;
}

.thanks-confirmation-card > * {
  position: relative;
  z-index: 1;
}

.thanks-radar-mark {
  display: block;
  width: 205px;
  height: 205px;
  margin: -10px auto 6px;
  background: url("/radar/assets/nuage-1.png") center / cover no-repeat;
  -webkit-mask-image: radial-gradient(circle closest-side at center, #000 0 70%, rgba(0,0,0,.92) 78%, rgba(0,0,0,.48) 88%, transparent 100%);
  mask-image: radial-gradient(circle closest-side at center, #000 0 70%, rgba(0,0,0,.92) 78%, rgba(0,0,0,.48) 88%, transparent 100%);
}

.thanks-radar-mark::before,
.thanks-radar-mark::after {
  display: none;
}

.thanks-radar-mark svg {
  display: none;
}

.thanks-kicker {
  margin: 0 0 10px;
  color: var(--thanks-gold);
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.thanks-confirmation-card h1,
.thanks-confirmation-card h2 {
  max-width: 390px;
  margin: 0 auto 14px;
  color: var(--thanks-ink);
  font-size: 32px !important;
  font-weight: 700 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.thanks-lead {
  max-width: 380px;
  margin: 0 auto;
  color: rgba(7, 61, 85, 0.78);
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.58 !important;
  text-wrap: pretty;
}

.thanks-spam-note {
  max-width: 380px;
  margin: 12px auto 0;
  color: rgba(7, 61, 85, 0.72);
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
}

.thanks-next-step {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 2px 12px;
  width: min(100%, 380px);
  margin: 19px auto 0;
  padding: 13px 16px;
  border: 1px solid rgba(7, 95, 137, 0.12);
  border-radius: 16px;
  text-align: left;
  background: rgba(255, 255, 255, .28);
}

.thanks-next-step > i {
  grid-row: 1 / span 2;
  align-self: start;
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 50%;
  background: #2d9b7c;
  box-shadow: 0 0 0 5px rgba(45, 155, 124, 0.12);
}

.thanks-next-step strong {
  color: var(--thanks-ink);
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.35;
}

.thanks-next-step p {
  margin: 0;
  color: rgba(7, 61, 85, 0.65);
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
}

.thanks-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: min(100%, 380px);
  margin-left: auto;
  margin-right: auto;
  margin-top: 20px;
}

.thanks-actions .button,
.thanks-actions .share-button,
.thanks-actions .thanks-return,
.thanks-action-primary,
.thanks-action-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin: 0;
  padding: 12px 22px;
  border: 1px solid rgba(7, 95, 137, 0.22);
  border-radius: 12px;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  text-decoration: none;
  cursor: pointer;
}

.thanks-actions .share-button:first-child,
.thanks-action-primary {
  color: #fff;
  border-color: var(--thanks-blue);
  background: var(--thanks-blue);
  box-shadow: 0 10px 24px rgba(7, 95, 137, 0.16);
}

.thanks-actions .share-button:not(:first-child),
.thanks-actions .thanks-return,
.thanks-action-secondary {
  color: var(--thanks-ink);
  background: rgba(255, 255, 255, .34);
}

.thanks-actions a:hover,
.thanks-actions button:hover,
.thanks-action-primary:hover,
.thanks-action-secondary:hover {
  transform: translateY(-1px);
}

.thanks-actions a:focus-visible,
.thanks-actions button:focus-visible,
.thanks-action-primary:focus-visible,
.thanks-action-secondary:focus-visible {
  outline: 3px solid rgba(13, 131, 181, 0.32);
  outline-offset: 3px;
}

@media (max-width: 620px) {
  .request-thanks-screen {
    align-items: start;
    padding: max(16px, env(safe-area-inset-top)) 14px max(16px, env(safe-area-inset-bottom));
  }

  .thanks-confirmation-card {
    margin: auto 0;
    padding: 24px 20px 22px;
    border-radius: 30px;
  }

  .thanks-confirmation-card::after {
    inset: 7px;
    border-radius: 20px;
  }

  .thanks-radar-mark {
    width: 178px;
    height: 178px;
    margin: -8px auto 4px;
  }

  .thanks-confirmation-card h1,
  .thanks-confirmation-card h2 { font-size: 29px !important; }

  .thanks-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .thanks-actions > * {
    width: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .request-thanks-screen:not([hidden]):not(.hidden) .thanks-confirmation-card {
    animation: thanks-card-in 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  @keyframes thanks-card-in {
    from { opacity: 0; transform: translateY(12px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
}
