/* NovoCare Thank You — scoped to body.nc-thank-you-page */

body.nc-thank-you-page {
  margin: 0 !important;
  padding: 0 !important;
  background: #f0f9ff !important;
  overflow-x: hidden;
}

body.nc-thank-you-page .site-header,
body.nc-thank-you-page .site-footer,
body.nc-thank-you-page #masthead,
body.nc-thank-you-page #colophon,
body.nc-thank-you-page .elementor-location-header,
body.nc-thank-you-page .elementor-location-footer,
body.nc-thank-you-page .ast-header-wrap,
body.nc-thank-you-page .site-primary-footer-wrap {
  display: none !important;
}

:root {
  --ty-text: #0f172a;
  --ty-muted: #64748b;
  --ty-border: rgba(15, 23, 42, 0.08);
  --ty-grad: linear-gradient(135deg, #0891b2 0%, #06b6d4 40%, #6366f1 100%);
  --ty-grad-soft: linear-gradient(135deg, rgba(8, 145, 178, 0.14), rgba(99, 102, 241, 0.1));
  --ty-font: "Inter", system-ui, sans-serif;
  --ty-display: "Outfit", system-ui, sans-serif;
  --ty-shadow: 0 24px 64px rgba(8, 145, 178, 0.14);
  --ty-radius: 24px;
}

*, *::before, *::after { box-sizing: border-box; }

body.nc-thank-you-page,
body.nc-thank-you-page .nc-thank-you {
  font-family: var(--ty-font) !important;
  -webkit-font-smoothing: antialiased;
  color: var(--ty-text);
}

.nc-thank-you {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 40px;
}

/* Background */
.ty-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ty-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(6, 182, 212, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 80%, rgba(99, 102, 241, 0.2), transparent 50%),
    linear-gradient(180deg, #ecfeff 0%, #f8fafc 45%, #ffffff 100%);
}

.ty-bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(6, 182, 212, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: tyGridDrift 50s linear infinite;
}

@keyframes tyGridDrift {
  from { background-position: 0 0; }
  to { background-position: 40px 40px; }
}

.ty-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: tyOrbFloat 8s ease-in-out infinite;
}

.ty-orb-1 {
  width: 280px;
  height: 280px;
  top: -60px;
  right: -40px;
  background: rgba(6, 182, 212, 0.35);
}

.ty-orb-2 {
  width: 220px;
  height: 220px;
  bottom: 10%;
  left: -50px;
  background: rgba(99, 102, 241, 0.28);
  animation-delay: -3s;
}

.ty-orb-3 {
  width: 140px;
  height: 140px;
  top: 42%;
  right: 12%;
  background: rgba(34, 211, 238, 0.25);
  animation-delay: -5s;
}

@keyframes tyOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -18px) scale(1.06); }
}

/* Sparkles */
.ty-sparkles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.ty-sparkles span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ty-grad);
  opacity: 0;
  animation: tySparkle 4s ease-in-out infinite;
}

.ty-sparkles span:nth-child(1) { top: 18%; left: 12%; animation-delay: 0s; }
.ty-sparkles span:nth-child(2) { top: 28%; right: 18%; animation-delay: 0.8s; width: 4px; height: 4px; }
.ty-sparkles span:nth-child(3) { top: 62%; left: 8%; animation-delay: 1.6s; }
.ty-sparkles span:nth-child(4) { top: 72%; right: 10%; animation-delay: 2.2s; width: 5px; height: 5px; }
.ty-sparkles span:nth-child(5) { top: 44%; left: 22%; animation-delay: 3s; width: 3px; height: 3px; }
.ty-sparkles span:nth-child(6) { top: 52%; right: 28%; animation-delay: 3.6s; }

@keyframes tySparkle {
  0%, 100% { opacity: 0; transform: scale(0.5) translateY(0); }
  40% { opacity: 0.85; transform: scale(1) translateY(-8px); }
  70% { opacity: 0.2; transform: scale(0.8) translateY(-14px); }
}

/* Header */
.ty-header {
  position: relative;
  z-index: 3;
  width: min(680px, 100%);
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  animation: tyFadeUp 0.6s ease both;
}

.ty-logo {
  display: inline-flex;
  line-height: 0;
}

.ty-logo img {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(8, 145, 178, 0.12));
}

/* Card */
.ty-card {
  position: relative;
  z-index: 2;
  width: min(680px, 100%);
  padding: clamp(28px, 5vw, 44px) clamp(22px, 4vw, 40px);
  text-align: center;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--ty-radius);
  box-shadow:
    var(--ty-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  animation: tyFadeUp 0.7s ease 0.1s both;
}

.ty-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--ty-radius) + 1px);
  padding: 1px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.45), rgba(99, 102, 241, 0.35), rgba(6, 182, 212, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@keyframes tyFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Robot visual */
.ty-hero-visual {
  position: relative;
  width: min(240px, 58vw);
  height: min(240px, 58vw);
  margin: 0 auto 24px;
}

.ty-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed rgba(6, 182, 212, 0.35);
  inset: 0;
  animation: tySpin 24s linear infinite;
}

.ty-ring-inner {
  inset: 14px;
  border-style: solid;
  border-color: rgba(99, 102, 241, 0.18);
  animation-direction: reverse;
  animation-duration: 18s;
}

@keyframes tySpin {
  to { transform: rotate(360deg); }
}

.ty-check-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 4;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ty-grad);
  color: #fff;
  box-shadow: 0 8px 20px rgba(8, 145, 178, 0.35);
  animation: tyPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
}

.ty-check-badge svg {
  width: 22px;
  height: 22px;
}

@keyframes tyPop {
  from { opacity: 0; transform: scale(0.3); }
  to { opacity: 1; transform: scale(1); }
}

.ty-robot-wrap {
  position: absolute;
  inset: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: tyBob 4s ease-in-out infinite;
}

@keyframes tyBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.ty-robot {
  width: 100%;
  height: auto;
  max-width: 180px;
  filter: drop-shadow(0 16px 28px rgba(8, 145, 178, 0.18));
}

/* Typography */
.ty-label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0891b2;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.ty-card h1 {
  margin: 0 0 14px;
  font-family: var(--ty-display) !important;
  font-size: clamp(2.2rem, 7vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ty-text);
}

.ty-gradient {
  background: var(--ty-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ty-lead {
  margin: 0 auto 28px;
  max-width: 420px;
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  line-height: 1.65;
  color: var(--ty-muted);
}

/* Steps */
.ty-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
  text-align: left;
}

.ty-step {
  padding: 14px 12px;
  border-radius: 14px;
  background: var(--ty-grad-soft);
  border: 1px solid rgba(6, 182, 212, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ty-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(8, 145, 178, 0.1);
}

.ty-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
  border-radius: 50%;
  font-family: var(--ty-display) !important;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  background: var(--ty-grad);
}

.ty-step p {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ty-text);
}

/* Buttons */
.ty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
}

.ty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--ty-font) !important;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ty-btn-primary {
  color: #fff;
  background: var(--ty-grad);
  box-shadow: 0 10px 28px rgba(8, 145, 178, 0.32);
}

.ty-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(8, 145, 178, 0.38);
}

.ty-btn-outline {
  color: #0891b2;
  background: rgba(255, 255, 255, 0.85);
  border: 2px solid rgba(6, 182, 212, 0.35);
}

.ty-btn-outline:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: #0891b2;
}

/* Divider */
.ty-divider {
  height: 1px;
  margin-bottom: 24px;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.35), transparent);
}

/* Social */
.ty-social h2 {
  margin: 0 0 16px;
  font-family: var(--ty-display) !important;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ty-text);
}

.ty-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.ty-social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ty-text);
  background: #fff;
  border: 1px solid var(--ty-border);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.ty-social-pill svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.ty-social-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

.ty-social-tiktok:hover { color: #010101; border-color: rgba(0, 0, 0, 0.15); }
.ty-social-instagram:hover { color: #e1306c; border-color: rgba(225, 48, 108, 0.3); }
.ty-social-facebook:hover { color: #1877f2; border-color: rgba(24, 119, 242, 0.3); }

/* Footnote */
.ty-footnote {
  position: relative;
  z-index: 2;
  margin: 20px 0 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ty-muted);
  text-align: center;
  animation: tyFadeUp 0.7s ease 0.25s both;
}

/* Responsive */
@media (max-width: 640px) {
  .ty-steps {
    grid-template-columns: 1fr;
  }

  .ty-step {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
  }

  .ty-step-num {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .ty-actions {
    flex-direction: column;
  }

  .ty-btn {
    width: 100%;
  }

  .ty-social-row {
    flex-direction: column;
    align-items: stretch;
  }

  .ty-social-pill {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ty-bg-grid,
  .ty-orb,
  .ty-sparkles span,
  .ty-ring,
  .ty-robot-wrap,
  .ty-check-badge,
  .ty-header,
  .ty-card,
  .ty-footnote {
    animation: none !important;
  }
}
