/* Thank-you page (page-thank-you.php). Builds on .about-hero / .about-cta-band (styles.css) and .rh-404-* cards (error-404.css) */
.rh-ty-hero {
  padding: 3.4rem 0 4rem;
  text-align: center;
}

.rh-ty-inner {
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rh-ty-hero .about-hero-desc {
  max-width: 660px;
}

.rh-ty-actions {
  justify-content: center;
}

.rh-ty-badge {
  width: clamp(6rem, 4.6rem + 5vw, 8.5rem);
  height: clamp(6rem, 4.6rem + 5vw, 8.5rem);
  color: #FFFFFF;
  margin-bottom: 1.3rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  animation: rhTyPop 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.rh-ty-badge svg {
  width: 100%;
  height: 100%;
  display: block;
}

.rh-ty-ring {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transform: rotate(-90deg);
  transform-origin: 60px 60px;
  animation: rhTyDraw 1.2s cubic-bezier(0.65, 0, 0.35, 1) 0.2s forwards;
}

.rh-ty-check {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: rhTyDraw 0.6s cubic-bezier(0.65, 0, 0.35, 1) 1.1s forwards;
}

@keyframes rhTyDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes rhTyPop {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}

/* What happens next */
.rh-ty-steps {
  background: #FFFFFF;
  padding: var(--space-fluid-lg) 0 calc(var(--space-fluid-lg) * 0.6);
}

.rh-ty-section-title {
  font-size: var(--text-section);
  color: var(--rh-navy);
  text-align: center;
  margin-bottom: 1.6rem;
}

.rh-ty-steps-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: none;
}

.rh-ty-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  background: var(--bg-page);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.2rem 1.3rem;
  box-shadow: var(--shadow-card);
  animation: rhTyUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(0.35s + var(--i, 0) * 0.12s);
}

.rh-ty-step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #FFFFFF;
  background: var(--rh-teal);
  box-shadow: 0 8px 20px rgba(43, 122, 138, 0.28);
  margin-bottom: 0.4rem;
}

.rh-ty-step:first-child .rh-ty-step-num {
  background: var(--rh-navy);
}

.rh-ty-step strong {
  color: var(--rh-navy);
  font-size: 1.05rem;
}

.rh-ty-step small {
  color: var(--text-muted, #64748B);
  font-size: 0.9rem;
  line-height: 1.6;
}

.rh-ty-note {
  margin: 1.4rem auto 0;
  max-width: 640px;
  text-align: center;
  color: var(--text-muted, #64748B);
  font-size: 0.92rem;
}

@keyframes rhTyUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

html[dir="ltr"] .rh-ty-links .rh-404-card-arrow {
  transform: scaleX(-1);
}

@media (max-width: 900px) {
  .rh-ty-steps-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .rh-ty-badge, .rh-ty-step { animation: none; }
  .rh-ty-ring, .rh-ty-check { animation: none; stroke-dashoffset: 0; }
}

/* Centered hero: center the small accent line under the title (styles.css pins it to the start edge) */
.rh-ty-hero .about-hero-title::after,
.rh-404-hero .about-hero-title::after {
  left: 0;
  right: 0;
  inset-inline: 0;
  margin-inline: auto;
}
