/* =========================================================
   Thank You
   ========================================================= */
.thanks-body {
  padding: 0;
  min-height: 100vh;
}

.thankyou-page {
  --t-ink: #1b2340;
  --t-ink-soft: #4b5373;
  --t-gold: #d4af37;
  --t-gold-dark: #b8941f;

  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 48px) clamp(14px, 3vw, 28px);
  background:
    radial-gradient(900px 520px at 88% -10%, rgba(212, 175, 55, 0.16), transparent 60%),
    radial-gradient(720px 520px at -10% 110%, rgba(27, 35, 64, 0.06), transparent 60%),
    linear-gradient(180deg, #fdfcf8 0%, #f4f0e6 100%);
}

.thankyou-container {
  width: min(100%, 560px);
  margin: 0 auto;
  text-align: center;
}

/* ---------- Card ---------- */
.thankyou-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4.4vw, 40px) clamp(20px, 3.4vw, 32px);
  background: linear-gradient(180deg, #ffffff 0%, #fffdf8 100%);
  border: 1px solid rgba(27, 35, 64, 0.08);
  border-radius: 24px;
  box-shadow:
    0 30px 70px -34px rgba(27, 35, 64, 0.5),
    0 4px 12px rgba(27, 35, 64, 0.05);
}

.thankyou-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--t-gold), #e8cd70, var(--t-gold));
}

/* ---------- Success mark ---------- */
.thankyou-halo {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.06));
  box-shadow: 0 0 0 8px rgba(212, 175, 55, 0.08);
}

.thankyou-check {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, var(--t-gold) 0%, var(--t-gold-dark) 100%);
  box-shadow: 0 10px 24px -10px rgba(184, 148, 31, 0.9);
}

/* ---------- Logo ---------- */
.thankyou-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto 18px;
}

.thankyou-logo img {
  display: block;
  width: min(100%, 320px);
  height: auto;
  max-height: 90px;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 8px;
}

/* ---------- Text ---------- */
.thankyou-badge {
  display: inline-block;
  padding: 6px 16px;
  margin-bottom: 14px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b5210;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 999px;
}

.thankyou-title {
  margin: 0 0 14px;
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--t-ink);
}

.thankyou-message {
  max-width: 40ch;
  margin: 0 auto 26px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--t-ink-soft);
}

.thankyou-divider {
  width: 72px;
  height: 1px;
  margin: 0 auto 26px;
  background: linear-gradient(90deg, transparent, var(--t-gold), transparent);
}

/* ---------- Exit ---------- */
.thankyou-exit {
  display: block;
  width: 100%;
  margin: 0 auto;
}

.thankyou-exit-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  max-width: 340px;
  min-height: 58px;
  margin: 0 auto;
  padding: 13px 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--t-gold) 0%, var(--t-gold-dark) 100%);
  border-radius: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 16px 32px -18px rgba(184, 148, 31, 0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.thankyou-exit-btn:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #c9a227 0%, #a67c12 100%);
  transform: translateY(-2px);
  box-shadow: 0 22px 40px -18px rgba(184, 148, 31, 0.85);
}

.thankyou-exit-btn:focus-visible {
  outline: 3px solid rgba(212, 175, 55, 0.45);
  outline-offset: 3px;
}

.thankyou-exit-label {
  font-size: 1.02rem;
}

.thankyou-domain {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.92;
}

/* ---------- Footer ---------- */
.thankyou-footer {
  margin-top: 24px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: #8a8f9f;
}

.thankyou-footer p {
  margin: 0;
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .thankyou-exit-btn {
    transition: none;
  }

  .thankyou-exit-btn:hover {
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .thankyou-card {
    padding: 26px 18px;
    border-radius: 20px;
  }

  .thankyou-halo {
    width: 60px;
    height: 60px;
  }

  .thankyou-check {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }

  .thankyou-title {
    font-size: 1.9rem;
  }

  .thankyou-message {
    font-size: 0.95rem;
  }
}
