:root{
  --ink:#1E2A44;
  --marigold:#E8890C;
  --marigold-dark:#C97207;
  --cream:#FBF5E9;
  --charcoal:#2B241C;
  --sage:#5C7A5C;
  --line:#E4D9C4;
  --card:#FFFFFF;
}
*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  background:var(--cream);
  color:var(--charcoal);
  font-family:'Noto Sans Gujarati','Inter',sans-serif;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
}

/* ---------- Top brand bar ---------- */
.brandbar{
  width:100%;
  background:var(--ink);
  color:#F4EEDF;
  padding:14px 20px;
  text-align:center;
  position:relative;
}
.brandbar::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:-6px;
  height:6px;
  background:linear-gradient(90deg,var(--marigold) 0 50%, var(--sage) 50% 100%);
  opacity:.85;
}
.brandbar h1{
  font-family:'Noto Serif Gujarati',serif;
  font-weight:700;
  font-size:22px;
  margin:0 0 2px;
  letter-spacing:.3px;
}
.brandbar p{
  margin:0;
  font-size:13px;
  opacity:.85;
  font-family:'Noto Sans Gujarati',sans-serif;
}

/* ---------- Rangoli progress strip ---------- */
.progress-wrap{
  width:100%;
  max-width:640px;
  padding:22px 20px 0;
}
.progress-label{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  font-family:'Inter',sans-serif;
  font-size:12px;
  color:#8A7B5E;
  margin-bottom:8px;
}
.progress-label b{
  color:var(--ink);
  font-size:13px;
  font-weight:700;
}
.rangoli-track{
  display:flex;
  gap:5px;
  width:100%;
}
.rangoli-dot{
  flex:1;
  height:7px;
  border-radius:4px;
  background:#E9DFC8;
  position:relative;
  overflow:hidden;
  transition:background .3s ease;
}
.rangoli-dot.done{ background:var(--marigold); }
.rangoli-dot.current{ background:var(--sage); }

/* ---------- Card ---------- */
.stage{
  width:100%;
  max-width:640px;
  padding:26px 20px 140px;
  flex:1;
}
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:14px;
  padding:30px 26px;
  box-shadow:0 2px 18px rgba(30,42,68,.06);
  animation:fadein .35s ease;
}
@keyframes fadein{
  from{opacity:0; transform:translateY(6px);}
  to{opacity:1; transform:translateY(0);}
}
.eyebrow{
  font-family:'Inter',sans-serif;
  font-size:12px;
  font-weight:600;
  color:var(--marigold-dark);
  text-transform:uppercase;
  letter-spacing:.08em;
  margin:0 0 6px;
}
.qtitle{
  font-family:'Noto Serif Gujarati',serif;
  font-weight:700;
  font-size:22px;
  color:var(--ink);
  margin:0 0 4px;
  line-height:1.35;
}
.qsub{
  font-size:14px;
  color:#6B6152;
  margin:0 0 22px;
  line-height:1.5;
}

/* ---------- Fields ---------- */
.field{ margin-bottom:18px; }
.field label{
  display:block;
  font-size:14px;
  font-weight:600;
  color:var(--ink);
  margin-bottom:6px;
}
.field input[type=text],
.field input[type=tel],
.field input[type=email],
.field input[type=date],
.field textarea,
.field select{
  width:100%;
  padding:11px 13px;
  border:1.5px solid var(--line);
  border-radius:9px;
  font-family:'Noto Sans Gujarati','Inter',sans-serif;
  font-size:15px;
  color:var(--charcoal);
  background:#FFFDF9;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus{
  outline:none;
  border-color:var(--marigold);
  box-shadow:0 0 0 3px rgba(232,137,12,.15);
}
.field textarea{ min-height:90px; resize:vertical; }
.row2{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width:520px){ .row2{ grid-template-columns:1fr; } }

.required-mark{ color:var(--marigold-dark); margin-left:2px; }

/* checkbox / radio grid */
.choice-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
@media (max-width:520px){ .choice-grid{ grid-template-columns:1fr; } }
.choice{
  display:flex;
  align-items:center;
  gap:9px;
  border:1.5px solid var(--line);
  border-radius:9px;
  padding:11px 13px;
  cursor:pointer;
  font-size:14.5px;
  transition:border-color .15s ease, background .15s ease;
  background:#FFFDF9;
}
.choice:hover{ border-color:#D8C79B; }
.choice input{ accent-color:var(--marigold); width:17px; height:17px; flex-shrink:0; }
.choice.checked{ border-color:var(--marigold); background:#FFF6E8; }

/* table-style repeat sections */
.rep-card{
  border:1.5px solid var(--line);
  border-radius:10px;
  padding:16px 14px;
  margin-bottom:12px;
  background:#FFFDF9;
  position:relative;
}
.rep-card .rep-label{
  font-family:'Inter',sans-serif;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--sage);
  margin-bottom:10px;
}
.rep-remove{
  position:absolute;
  top:10px; right:10px;
  background:none;
  border:none;
  color:#B5482D;
  font-size:13px;
  cursor:pointer;
  font-family:'Inter',sans-serif;
  font-weight:600;
}
.add-row-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:none;
  border:1.5px dashed #C9BB98;
  color:var(--ink);
  padding:10px 16px;
  border-radius:9px;
  font-family:'Noto Sans Gujarati',sans-serif;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  width:100%;
  justify-content:center;
  transition:border-color .15s ease, background .15s ease;
}
.add-row-btn:hover{ border-color:var(--marigold); background:#FFF6E8; }

/* ---------- Nav bar (fixed bottom) ---------- */
.navbar{
  position:fixed;
  bottom:0; left:0; right:0;
  background:#FFFDF9;
  border-top:1px solid var(--line);
  padding:14px 20px;
  display:flex;
  justify-content:center;
  z-index:10;
}
.navbar-inner{
  width:100%;
  max-width:640px;
  display:flex;
  justify-content:space-between;
  gap:12px;
}
.btn{
  font-family:'Noto Sans Gujarati',sans-serif;
  font-size:15.5px;
  font-weight:700;
  padding:13px 26px;
  border-radius:10px;
  border:none;
  cursor:pointer;
  transition:transform .1s ease, background .15s ease, opacity .15s ease;
}
.btn:active{ transform:scale(.97); }
.btn-prev{
  background:#EFE7D4;
  color:var(--ink);
}
.btn-prev:hover{ background:#E7DCC0; }
.btn-next{
  background:var(--marigold);
  color:#fff;
  margin-left:auto;
}
.btn-next:hover{ background:var(--marigold-dark); }
.btn-next:disabled{ opacity:.45; cursor:not-allowed; }
.btn.ghost{ visibility:hidden; }

/* ---------- Intro & thank-you screens ---------- */
.hero-card{ text-align:center; padding:44px 26px; }
.hero-card .glyph{
  width:56px;height:56px;
  margin:0 auto 18px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--marigold),var(--sage));
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-family:'Noto Serif Gujarati',serif;font-size:26px;font-weight:700;
}
.hero-card h1{
  font-family:'Noto Serif Gujarati',serif;
  font-size:26px;
  color:var(--ink);
  margin:0 0 8px;
  line-height:1.4;
}
.hero-card p{ font-size:15px; color:#665D4E; line-height:1.6; margin:0 0 26px; }
.meta-fields{ display:grid; grid-template-columns:1fr 1fr; gap:14px; text-align:left; margin-bottom:8px; }
@media (max-width:520px){ .meta-fields{ grid-template-columns:1fr; } }

.step{ display:none; }
.step.active{ display:block; }

.note-inline{
  font-size:12.5px;
  color:#8A7B5E;
  margin-top:-10px;
  margin-bottom:18px;
}

/* review screen */
.review-section{ margin-bottom:16px; }
.review-section h3{
  font-family:'Noto Serif Gujarati',serif;
  font-size:15px;
  color:var(--ink);
  margin:0 0 8px;
  padding-bottom:6px;
  border-bottom:1.5px solid var(--line);
}
.review-row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:13.5px;
  padding:4px 0;
  color:#4A4232;
}
.review-row span:first-child{ color:#8A7B5E; }
.review-row span:last-child{ font-weight:600; text-align:right; }
.edit-link{
  background:none;border:none;color:var(--marigold-dark);
  font-family:'Inter',sans-serif;font-size:12px;font-weight:600;
  cursor:pointer; margin-top:6px;
}
