/* ==========================================================================
   VERA DENTAL — THANK YOU PAGE STYLES
   Brand palette: cream #FAF6EF | maroon #6E2A1E | rust #9A4A2E
                  orange #DD8C3E | dark navy #16262C | blue-gray #EEF3F6
   ========================================================================== */

.ty-page{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:120px 20px 80px;
  overflow:hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(221,140,62,.10), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(154,74,46,.10), transparent 45%),
    #FAF6EF;
  font-family:'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  box-sizing:border-box;
}
.ty-page *{box-sizing:border-box;}

/* Decorative floating shapes */
.ty-shape{
  position:absolute;
  border-radius:50%;
  filter:blur(2px);
  opacity:.5;
  pointer-events:none;
}
.ty-shape--one{
  width:260px;height:260px;
  top:-80px; left:-80px;
  background:radial-gradient(circle, rgba(221,140,62,.35), transparent 70%);
  animation:ty-float 9s ease-in-out infinite;
}
.ty-shape--two{
  width:320px;height:320px;
  bottom:-120px; right:-100px;
  background:radial-gradient(circle, rgba(110,42,30,.25), transparent 70%);
  animation:ty-float 11s ease-in-out infinite reverse;
}
@keyframes ty-float{
  0%,100%{ transform:translateY(0) translateX(0); }
  50%{ transform:translateY(-24px) translateX(14px); }
}

.ty-container{
  position:relative;
  z-index:2;
  width:100%;
  max-width:620px;
}

.ty-card{
  background:#FFFFFF;
  border-radius:28px;
  padding:56px 48px 48px;
  text-align:center;
  box-shadow:0 30px 70px rgba(30,20,10,.14), 0 6px 18px rgba(30,20,10,.06);
  border:1px solid #F0E7D8;
  position:relative;
  animation:ty-card-in .7s cubic-bezier(.25,.8,.25,1) both;
}
@keyframes ty-card-in{
  from{ opacity:0; transform:translateY(30px) scale(.97); }
  to{ opacity:1; transform:translateY(0) scale(1); }
}

/* ---------------- Animated checkmark ---------------- */
.ty-check-wrap{
  position:relative;
  width:130px;
  height:130px;
  margin:0 auto 26px;
}
.ty-check{ width:100%; height:100%; }
.ty-check-circle{
  fill:none;
  stroke-dasharray:365;
  stroke-dashoffset:365;
  stroke-linecap:round;
  transform-origin:center;
  animation:ty-draw-circle 1s cubic-bezier(.65,0,.35,1) forwards;
}
.ty-check-mark{
  fill:none;
  stroke-dasharray:70;
  stroke-dashoffset:70;
  stroke-linecap:round;
  stroke-linejoin:round;
  animation:ty-draw-mark .5s ease-out .85s forwards;
}
@keyframes ty-draw-circle{
  to{ stroke-dashoffset:0; }
}
@keyframes ty-draw-mark{
  to{ stroke-dashoffset:0; }
}
.ty-check-wrap::after{
  content:"";
  position:absolute;
  inset:-14px;
  border-radius:50%;
  border:2px solid rgba(221,140,62,.35);
  animation:ty-pulse-ring 1.8s ease-out .9s infinite;
}
@keyframes ty-pulse-ring{
  0%{ transform:scale(.85); opacity:.9; }
  80%{ transform:scale(1.25); opacity:0; }
  100%{ opacity:0; }
}

.ty-mark--spin{
  position:absolute;
  width:26px; height:26px;
  top:6px; right:-6px;
  opacity:0;
  animation:ty-mark-fade .6s ease-out 1.1s forwards, ty-spin 14s linear 1.1s infinite;
}
@keyframes ty-mark-fade{
  to{ opacity:.85; }
}
@keyframes ty-spin{
  from{ transform:rotate(0deg); }
  to{ transform:rotate(360deg); }
}

/* ---------------- Text ---------------- */
.ty-eyebrow{
  display:inline-block;
  font-size:.72rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  font-weight:700;
  color:#9A4A2E;
  background:#EEF3F6;
  padding:6px 16px;
  border-radius:99px;
  margin-bottom:16px;
  opacity:0;
  animation:ty-fade-up .6s ease-out .3s forwards;
}
.ty-title{
  font-family:'Fraunces', Georgia, serif;
  font-weight:700;
  font-size:clamp(2rem, 5vw, 2.75rem);
  color:#6E2A1E;
  margin:0 0 14px;
  opacity:0;
  animation:ty-fade-up .6s ease-out .4s forwards;
}
.ty-message{
  font-size:1.08rem;
  line-height:1.7;
  color:#5F5750;
  max-width:440px;
  margin:0 auto 34px;
  opacity:0;
  animation:ty-fade-up .6s ease-out .5s forwards;
}
@keyframes ty-fade-up{
  from{ opacity:0; transform:translateY(14px); }
  to{ opacity:1; transform:translateY(0); }
}

/* ---------------- Meta row (phone / hours) ---------------- */
.ty-meta{
  display:flex;
  gap:16px;
  justify-content:center;
  flex-wrap:wrap;
  margin-bottom:34px;
  opacity:0;
  animation:ty-fade-up .6s ease-out .6s forwards;
}
.ty-meta-item{
  display:flex;
  align-items:center;
  gap:12px;
  background:#EEF3F6;
  border-radius:16px;
  padding:14px 18px;
  text-align:left;
  min-width:220px;
  transition:transform .3s ease, box-shadow .3s ease;
}
.ty-meta-item:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 24px rgba(30,20,10,.08);
}
.ty-meta-ic{
  flex:none;
  width:38px; height:38px;
  border-radius:50%;
  background:#fff;
  display:flex; align-items:center; justify-content:center;
  color:#9A4A2E;
}
.ty-meta-ic svg{ width:18px; height:18px; }
.ty-meta-item strong{
  display:block;
  font-size:.8rem;
  color:#2A2420;
  margin-bottom:2px;
}
.ty-meta-item a,
.ty-meta-item span{
  font-size:.85rem;
  color:#5F5750;
  text-decoration:none;
}
.ty-meta-item a:hover{ color:#DD8C3E; }

/* ---------------- Buttons ---------------- */
.ty-actions{
  display:flex;
  gap:14px;
  justify-content:center;
  flex-wrap:wrap;
  margin-bottom:22px;
  opacity:0;
  animation:ty-fade-up .6s ease-out .7s forwards;
}
.ty-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:14px 28px;
  border-radius:99px;
  font-weight:700;
  font-size:.85rem;
  letter-spacing:.02em;
  text-decoration:none;
  transition:transform .3s cubic-bezier(.25,.8,.25,1), box-shadow .3s ease, background .3s ease;
}
.ty-btn svg{ width:16px; height:16px; transition:transform .3s ease; }
.ty-btn:hover svg{ transform:translateX(4px); }

.ty-btn--primary{
  background:#DD8C3E;
  color:#fff;
  box-shadow:0 12px 24px rgba(221,140,62,.35);
}
.ty-btn--primary:hover{
  background:#C97A2E;
  transform:translateY(-3px);
  box-shadow:0 16px 30px rgba(221,140,62,.45);
}
.ty-btn--outline{
  background:transparent;
  border:1.5px solid #6E2A1E;
  color:#6E2A1E;
}
.ty-btn--outline:hover{
  background:#6E2A1E;
  color:#fff;
  transform:translateY(-3px);
}

.ty-footnote{
  font-size:.78rem;
  color:#9c9284;
  margin:0;
  opacity:0;
  animation:ty-fade-up .6s ease-out .8s forwards;
}

/* ---------------- Responsive ---------------- */
@media (max-width:560px){
  .ty-card{ padding:42px 24px 34px; border-radius:22px; }
  .ty-meta-item{ min-width:100%; }
  .ty-actions{ flex-direction:column; }
  .ty-btn{ width:100%; justify-content:center; }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce){
  .ty-card,
  .ty-eyebrow, .ty-title, .ty-message, .ty-meta, .ty-actions, .ty-footnote,
  .ty-check-circle, .ty-check-mark, .ty-mark--spin, .ty-shape{
    animation:none !important;
    opacity:1 !important;
    stroke-dashoffset:0 !important;
    transform:none !important;
  }
}
