/* ==========================================================================
   Thank-you page — shared by every course form, so it wears the Lophocdan
   house style (homepage dark + brand gold) and a staff of course-coloured notes
   ========================================================================== */

.page-pages-thank_you { background: #0b0b0f; }

.ty-page {
  --ty-bg: #0b0b0f;
  --ty-card: rgba(255, 255, 255, 0.04);
  --ty-line: rgba(255, 255, 255, 0.09);
  --ty-text: #ffffff;
  --ty-muted: rgba(255, 255, 255, 0.68);
  --ty-gold: #d4a574;
  --ty-gold-soft: #e9bd87;
  background:
    radial-gradient(circle at 12% 8%, rgba(124, 58, 237, 0.18), transparent 30%),
    radial-gradient(circle at 88% 14%, rgba(5, 150, 105, 0.14), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(212, 165, 116, 0.14), transparent 40%),
    var(--ty-bg);
  color: var(--ty-text);
  font-family: 'Be Vietnam Pro', system-ui, sans-serif;
  text-align: center;
  overflow: hidden;
}

.ty-page .container { max-width: 860px; }

.ty-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
  color: var(--ty-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ty-eyebrow::before,
.ty-eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

/* ---------- Hero ---------- */

.ty-hero { padding: 96px 0 40px; }

.ty-hero__badge {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: 0 auto 1.75rem;
  border-radius: 50%;
  color: #1c1406;
  background: radial-gradient(circle at 30% 30%, #f3d2a6, var(--ty-gold) 60%, #a97a4c);
  box-shadow: 0 0 0 10px rgba(212, 165, 116, 0.12), 0 0 0 22px rgba(212, 165, 116, 0.05), 0 20px 50px rgba(212, 165, 116, 0.35);
  animation: ty-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.ty-hero__badge svg { width: 40px; height: 40px; }

.ty-hero__title {
  margin: 0 0 1.5rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ty-text);
}

.ty-hero__title em { color: var(--ty-gold-soft); }

.ty-hero__lede {
  max-width: 620px;
  margin: 0 auto 0.85rem;
  color: var(--ty-muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

/* Five-line staff with one bobbing note per course */
.ty-staff {
  position: relative;
  height: 64px;
  max-width: 560px;
  margin: 3rem auto 0;
}

.ty-staff__lines {
  position: absolute;
  inset: 8px 0;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 12px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.ty-staff__note {
  position: absolute;
  left: calc(8% + var(--step) * 9.2%);
  top: calc(8px + var(--pitch) * 6px + 6px);
  width: 15px;
  height: 11px;
  border-radius: 50%;
  background: var(--note);
  transform: rotate(-22deg);
  box-shadow: 0 0 14px var(--note);
  animation: ty-bob 3.2s ease-in-out calc(var(--step) * 0.18s) infinite;
}

.ty-staff__note::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 5px;
  width: 1.5px;
  height: 26px;
  background: var(--note);
  transform: rotate(22deg);
  transform-origin: bottom;
}

/* ---------- Next steps ---------- */

.ty-next { padding: 56px 0 104px; }

.ty-next__title {
  margin: 0 0 0.5rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  color: var(--ty-text);
}

.ty-next__lede { color: var(--ty-muted); margin-bottom: 2.5rem; }

.ty-steps {
  counter-reset: ty-step;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.ty-step {
  counter-increment: ty-step;
  position: relative;
  display: flex;
  gap: 1.1rem;
  padding: 1.75rem 1.6rem 1.6rem;
  background: var(--ty-card);
  border: 1px solid var(--ty-line);
  border-radius: 20px;
}

.ty-step::before {
  content: '0' counter(ty-step);
  position: absolute;
  top: 1.1rem;
  right: 1.4rem;
  font: italic 1.6rem Georgia, serif;
  color: rgba(212, 165, 116, 0.35);
}

.ty-step__icon {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  height: 46px;
  border-radius: 14px;
  color: var(--ty-gold-soft);
  background: rgba(212, 165, 116, 0.12);
  border: 1px solid rgba(212, 165, 116, 0.28);
}

.ty-step__icon svg { width: 22px; height: 22px; }

.ty-step h3 {
  margin: 0.15rem 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ty-text);
}

.ty-step p {
  margin: 0;
  color: var(--ty-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.ty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2.75rem;
}

.ty-button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  border-radius: 100px;
  border: 1px solid rgba(212, 165, 116, 0.45);
  color: var(--ty-gold-soft) !important;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.ty-button:hover { transform: translateY(-2px); background: rgba(212, 165, 116, 0.1); }

.ty-button--primary {
  border-color: transparent;
  background: linear-gradient(135deg, #e2b583, #b8956a);
  color: #17130f !important;
  box-shadow: 0 12px 30px rgba(212, 165, 116, 0.3);
}

.ty-button--primary:hover { background: linear-gradient(135deg, #e9c193, #c4a174); }
.ty-button--ghost { border-color: var(--ty-line); color: var(--ty-muted) !important; }

@keyframes ty-pop {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes ty-bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

@media (max-width: 767px) {
  .ty-hero { padding: 64px 0 24px; }
  .ty-staff { margin-top: 2rem; }
  .ty-next { padding: 40px 0 72px; }
  .ty-steps { grid-template-columns: 1fr; }
  .ty-button { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .ty-hero__badge, .ty-staff__note { animation: none; }
}
