/* ===========================================================
   TOKENS
=========================================================== */
:root{
  --cream: #F8F4EA;
  --cream-soft: #F1ECDE;
  --forest: #123F35;
  --forest-2: #1D5A4A;
  --forest-3: #2E6E5B;
  --sage: #A9BBAA;
  --sage-soft: #DCE4D8;
  --gold: #C7A85C;
  --gold-soft: #E7D8AE;
  --ink: #1E2620;
  --ink-soft: #5B6B60;
  --white: #FFFFFF;
  --line: rgba(18,63,53,0.12);
  --shadow-1: 0 1px 2px rgba(18,63,53,0.06);
  --shadow-2: 0 10px 30px rgba(18,63,53,0.10);
  --shadow-3: 0 24px 60px rgba(18,63,53,0.16);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
button{ font-family: inherit; }

/* ===========================================================
   BACKGROUND SCENE
=========================================================== */
.bg-scene{
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.glow{
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}
.glow-a{
  width: 46vw; height: 46vw;
  top: -14vw; left: -10vw;
  background: radial-gradient(circle, rgba(169,187,170,0.55), rgba(169,187,170,0) 70%);
}
.glow-b{
  width: 38vw; height: 38vw;
  bottom: -14vw; right: -8vw;
  background: radial-gradient(circle, rgba(199,168,92,0.28), rgba(199,168,92,0) 70%);
}
.glow-c{
  width: 30vw; height: 30vw;
  top: 30%; right: 18%;
  background: radial-gradient(circle, rgba(18,63,53,0.10), rgba(18,63,53,0) 70%);
}
.grain{
  position:absolute; inset:0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ===========================================================
   PAGE LAYOUT
=========================================================== */
.page{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
  align-items: stretch;
}
.side{
  position: relative;
  padding: 64px 56px;
  display: flex;
  align-items: center;
}
.side-trust{
  justify-content: flex-end;
}
.side-inner{
  max-width: 460px;
  width: 100%;
  animation: rise .8s cubic-bezier(.22,.9,.3,1) both;
}
.side-form{
  justify-content: flex-start;
}

@keyframes rise{
  from{ opacity: 0; transform: translateY(18px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* ===========================================================
   LEFT SIDE — TRUST
=========================================================== */
.eyebrow{
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest-3);
  margin: 0 0 18px;
}
.headline{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--forest);
  margin: 0 0 20px;
}
.accent-text{
  font-style: italic;
  color: var(--forest-3);
  position: relative;
}
.accent-text::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 10px;
  background: linear-gradient(90deg, rgba(199,168,92,0.35), rgba(199,168,92,0.05));
  z-index: -1;
  border-radius: 4px;
}
.sub-copy{
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 380px;
  margin: 0 0 34px;
}

.trust-chips{
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.trust-chip{
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 13px 18px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--forest);
  box-shadow: var(--shadow-1);
  animation: chip-in .6s cubic-bezier(.22,.9,.3,1) both;
  animation-delay: calc(var(--stagger) * 0.12s + 0.25s);
}
@keyframes chip-in{
  from{ opacity:0; transform: translateX(-10px); }
  to{ opacity:1; transform: translateX(0); }
}
.chip-icon{
  font-size: 18px;
  line-height: 1;
}

.doctor-card{
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: var(--shadow-2);
  max-width: 400px;
}
.doctor-photo{
  width: 56px; height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(145deg, var(--sage-soft), var(--sage));
  border: 2px solid var(--gold-soft);
}
.doctor-photo img{
  width: 100%; height: 100%; object-fit: cover;
}
.doctor-photo.img-fallback{
  display:flex; align-items:center; justify-content:center;
}
.doctor-photo.img-fallback::after{
  content: "DG";
  font-family: var(--font-display);
  color: var(--forest);
  font-weight: 600;
  font-size: 15px;
}
.doctor-name{
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--forest);
}
.doctor-title{
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* ===========================================================
   FLOATING 3D DECOR
=========================================================== */
.float-layer{
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.float-obj{
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floaty 6s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes floaty{
  0%, 100%{ transform: translateY(0px); }
  50%{ transform: translateY(-9px); }
}

.obj-shield{
  top: 8%; right: 6%;
  width: 54px; height: 54px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-2);
  border: 1px solid var(--line);
}
.obj-lock{
  top: 46%; right: -2%;
  width: 42px; height: 42px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-1);
  border: 1px solid var(--line);
  animation-duration: 7s;
}
.obj-sparkle{
  color: var(--gold);
  font-size: 20px;
  animation-duration: 5s;
}
.spk1{ top: 20%; left: 4%; }
.spk2{ bottom: 22%; right: 14%; font-size: 16px; }
.obj-orb{
  border-radius: 50%;
  filter: blur(1px);
  animation-duration: 8s;
}
.orb1{
  width: 70px; height: 70px;
  bottom: 8%; left: -4%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.9), var(--sage-soft) 60%, var(--sage) 100%);
  box-shadow: var(--shadow-2);
}
.orb2{
  width: 30px; height: 30px;
  top: 4%; left: 30%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.95), var(--gold-soft) 70%);
  box-shadow: var(--shadow-1);
}

.float-layer-form .obj-shield-sm{
  top: 4%; right: 8%;
  width: 40px; height: 40px;
  background: var(--white);
  border-radius: 13px;
  box-shadow: var(--shadow-1);
  border: 1px solid var(--line);
}
.float-layer-form .obj-calendar{
  bottom: 14%; left: -3%;
  width: 40px; height: 40px;
  background: var(--white);
  border-radius: 13px;
  box-shadow: var(--shadow-1);
  border: 1px solid var(--line);
  animation-duration: 7s;
}

/* ===========================================================
   FORM CARD
=========================================================== */
.form-card{
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  background: var(--white);
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-3);
  padding: 38px 38px 32px;
  animation: rise .85s cubic-bezier(.22,.9,.3,1) both;
  animation-delay: .1s;
}

.progress-block{ margin-bottom: 22px; }
.progress-row{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.progress-label{
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest-3);
}
.progress-step{
  font-size: 12px;
  color: var(--ink-soft);
}
.progress-track{
  width: 100%;
  height: 5px;
  border-radius: 4px;
  background: var(--sage-soft);
  overflow: hidden;
}
.progress-fill{
  width: 50%;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--forest-3), var(--gold));
}
.progress-next{
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.form-eyebrow{
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 8px;
}
.form-heading{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  color: var(--forest);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.form-sub{
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0 0 26px;
}

/* ===========================================================
   FIELDS
=========================================================== */
.field{
  position: relative;
  margin-bottom: 18px;
}
.field label{
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 7px;
  transition: color .2s ease;
}
.req{ color: var(--gold); margin-left: 2px; }

.input-wrap{
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrap input{
  width: 100%;
  height: 52px;
  padding: 0 40px 0 16px;
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream-soft);
  border: 1.5px solid transparent;
  border-radius: 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.input-wrap input::placeholder{ color: #9AA79C; }
.input-wrap input:focus{
  border-color: var(--forest-3);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(46,110,91,0.10);
}
.field.valid .input-wrap input{
  border-color: rgba(46,110,91,0.5);
}
.field.error .input-wrap input{
  border-color: #B5573F;
  background: #FBF2EF;
}

.input-wrap-phone{
  align-items: stretch;
}
.country-code{
  display:flex; align-items:center;
  padding: 0 12px 0 16px;
  height: 52px;
  background: var(--cream-soft);
  border-radius: 14px 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--forest);
  border: 1.5px solid transparent;
  border-right: 1px solid var(--line);
}
.input-wrap-phone input{
  border-radius: 0 14px 14px 0;
}
.input-wrap-phone:focus-within .country-code{
  border-color: var(--forest-3);
}

.check-mark{
  position: absolute;
  right: 14px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(46,110,91,0.12);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .25s ease, transform .25s ease;
}
.field.valid .check-mark{
  opacity: 1;
  transform: scale(1);
}

.field-msg{
  margin: 6px 0 0;
  font-size: 12.5px;
  color: #B5573F;
  min-height: 0;
  opacity: 0;
  transition: opacity .2s ease;
}
.field.error .field-msg{ opacity: 1; }

/* micro-float messages */
.micro-float{
  position: absolute;
  top: -6px;
  right: 0;
  transform: translateY(-100%) translateY(-4px) scale(.96);
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--forest);
  color: var(--cream);
  padding: 7px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: var(--shadow-2);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s cubic-bezier(.22,.9,.3,1), transform .3s cubic-bezier(.22,.9,.3,1);
  z-index: 5;
}
.micro-float::after{
  content:"";
  position: absolute;
  bottom: -5px; right: 22px;
  width: 10px; height: 10px;
  background: var(--forest);
  transform: rotate(45deg);
  border-radius: 2px;
}
.field.is-focused .micro-float{
  opacity: 1;
  transform: translateY(-100%) translateY(-10px) scale(1);
}
.mf-emoji{ font-size: 14px; }

/* ===========================================================
   PRICE BLOCK
=========================================================== */
.price-block{
  margin: 28px 0 22px;
  background: linear-gradient(160deg, var(--cream-soft), var(--sage-soft) 140%);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 22px;
}
.price-title{
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--forest);
}
.price-sub{
  margin: 0 0 2px;
  font-size: 13px;
  color: var(--ink-soft);
}
.price-meta{
  margin: 0 0 14px;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--forest-3);
  text-transform: uppercase;
  font-weight: 600;
}
.price-bottom{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}
.price-amount{
  font-family: var(--font-display);
  color: var(--forest);
}
.rupee{ font-size: 20px; font-weight: 500; margin-right: 2px; }
.amount{ font-size: 32px; font-weight: 600; }
.price-note{
  font-size: 12px;
  color: var(--ink-soft);
}

/* ===========================================================
   CTA
=========================================================== */
.cta-btn{
  width: 100%;
  height: 58px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--forest-3), var(--forest));
  color: var(--cream);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(18,63,53,0.28), inset 0 1px 0 rgba(255,255,255,0.08);
  border: 1px solid rgba(199,168,92,0.4);
  transition: transform .2s cubic-bezier(.22,.9,.3,1), box-shadow .2s ease, filter .2s ease;
}
.cta-btn:hover{
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(18,63,53,0.34), inset 0 1px 0 rgba(255,255,255,0.1);
}
.cta-btn:active{
  transform: translateY(-1px);
}
.cta-btn:disabled{
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}
.cta-arrow{ transition: transform .25s ease; }
.cta-btn:hover .cta-arrow{ transform: translateX(4px); }

.secure-line{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 16px 0 2px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--forest);
}
.secure-sub{
  margin: 0 0 16px;
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-soft);
}

.slots-line{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  color: var(--ink-soft);
}
.pulse-dot{
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #B5573F;
  position: relative;
  flex-shrink: 0;
}
.pulse-dot::after{
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: rgba(181,87,63,0.35);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse{
  0%{ transform: scale(0.6); opacity: 1; }
  100%{ transform: scale(2.2); opacity: 0; }
}

/* ===========================================================
   RESPONSIVE
=========================================================== */
@media (max-width: 1080px){
  .side{ padding: 56px 40px; }
}

@media (max-width: 880px){
  .page{
    grid-template-columns: 1fr;
  }
  .side-trust{
    justify-content: center;
    padding: 48px 24px 32px;
  }
  .side-form{
    justify-content: center;
    padding: 0 20px 56px;
  }
  .side-inner{ max-width: 520px; text-align: center; }
  .trust-chips{ align-items: stretch; }
  .doctor-card{ margin: 0 auto; }
  .headline{ font-size: clamp(30px, 8vw, 40px); }
  .sub-copy{ margin-left: auto; margin-right: auto; }

  .obj-lock, .orb1, .spk1{ display: none; }
  .float-layer-form .obj-calendar{ display: none; }
}

@media (max-width: 520px){
  .side{ padding-left: 16px; padding-right: 16px; }
  .form-card{ padding: 28px 20px 26px; border-radius: 22px; }
  .price-block{ padding: 16px; }
  .cta-btn{ font-size: 14px; }
  .micro-float{ font-size: 11px; right: -4px; }
  .obj-shield, .obj-shield-sm, .orb2, .spk2{ display: none; }
}

/* ===========================================================
   MOTION SAFETY
=========================================================== */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
