/* Mangalya Vivah — new registration. Mobile-first, app-like. */
:root {
  /* Paithani theme (matches mv.css) */
  --brand: #A3195B;
  --brand-dark: #7F1246;
  --brand-soft: #F8EEF2;
  --accent: #C79A3B;
  --ink: #241C26;
  --muted: #6D6170;
  --line: #ECE3E8;
  --bg: #FCFAF7;
  --card: #FFFFFF;
  --ok: #2F7A4D;
  --err: #B3261E;
  --radius: 14px;
  --font: "Mukta", "Hind Vadodara", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Tiro Devanagari Marathi", "Tiro Gujarati", Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.su {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--brand); }

/* App shell: full screen on phones, centred card on larger screens */
.su-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--card);
  max-width: 480px;
  margin: 0 auto;
}
@media (min-width: 600px) {
  body.su { background: var(--bg); min-height: 100vh; }
  .su-shell {
    min-height: auto;
    margin: 32px auto;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(110, 20, 40, 0.12);
    overflow: hidden;
  }
}

/* Top bar */
.su-top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--card);
  padding: max(10px, env(safe-area-inset-top)) 16px 0;
  border-bottom: 1px solid var(--line);
}
.su-top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.su-logo { height: 32px; width: auto; display: block; }
.su-icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); text-decoration: none; margin-left: -8px;
}
.su-icon-btn:active { background: var(--brand-soft); }
.su-langs { display: flex; gap: 4px; background: #F3ECEE; padding: 3px; border-radius: 999px; }
.su-lang {
  font-size: 13px; text-decoration: none; color: var(--muted);
  padding: 5px 10px; border-radius: 999px; white-space: nowrap; font-weight: 500;
}
.su-lang.is-on { background: var(--card); color: var(--brand); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.su-progress { display: flex; gap: 4px; list-style: none; margin: 12px 0 0; padding: 0; }
.su-progress li { flex: 1; height: 5px; border-radius: 3px; background: #EFE3E7; }
.su-progress li.is-done { background: var(--brand); }
.su-progress li.is-now { background: linear-gradient(90deg, var(--brand), var(--accent)); }
.su-stepnote { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); margin: 8px 0 10px; }
.su-stepnote b { color: var(--ink, #2B1230); font-weight: 600; }
.su-stepnote span { text-align: right; }
/* Form controls do not inherit the page font by default; without this Marathi vowel signs can break on buttons. */
button, input, select, textarea { font-family: inherit; }
.su-testbar { background: #FFF4CC; color: #6B4E00; font-size: 12px; text-align: center; padding: 6px 12px; font-weight: 600; }

/* Content */
.su-main { flex: 1; padding: 20px 16px 24px; display: flex; flex-direction: column; }
.su-hero h1 { font-size: 24px; line-height: 1.3; margin: 4px 0 6px; letter-spacing: -0.01em; }
.su-help { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.su-badge {
  display: inline-block; font-size: 12px; font-weight: 600; color: var(--brand-dark);
  background: var(--brand-soft); padding: 4px 10px; border-radius: 999px; margin: 0 0 10px;
}
.su-form { display: flex; flex-direction: column; flex: 1; }
.su-field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.su-label { font-size: 14px; font-weight: 600; color: var(--ink); padding: 0; }
.su-hint, .su-fine { font-size: 13px; color: var(--muted); }
.su-fine { margin: 0 0 16px; }
.su-err { font-size: 13px; color: var(--err); font-weight: 500; }
.su-lock { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 6px; }

input[type=text], input[type=tel], input[type=email], input[type=password], input[type=date], select {
  width: 100%;
  height: 52px;
  font: inherit;
  font-size: 16px; /* prevents iOS zoom */
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236B6266' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
select:disabled { background-color: #F7F3F4; color: var(--muted); }
input:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(179, 22, 44, .12); }
.su-field:has(.su-err) input, .su-field:has(.su-err) select { border-color: var(--err); }

.su-phone { display: flex; align-items: stretch; }
.su-cc {
  display: inline-flex; align-items: center; padding: 0 12px; font-weight: 600;
  border: 1.5px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px; background: #F7F3F4;
}
.su-phone input { border-radius: 0 12px 12px 0; letter-spacing: .04em; }
.su-code { text-align: center; font-size: 26px !important; letter-spacing: .5em; font-weight: 600; padding-left: .5em !important; }
.su-pass { position: relative; display: block; }
.su-pass input { padding-right: 72px; }
.su-show {
  position: absolute; right: 6px; top: 6px; height: 40px; padding: 0 12px; border: 0;
  background: transparent; color: var(--brand); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}

.su-grid { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
@media (min-width: 380px) { .su-grid { grid-template-columns: 1fr 1fr; } }

/* Chips (radio buttons that look like app pills) */
.su-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.su-chips-2 { grid-template-columns: 1fr 1fr; }
.su-chips-wrap { display: flex; flex-wrap: wrap; }
.su-chip { position: relative; cursor: pointer; }
.su-chip input { position: absolute; opacity: 0; pointer-events: none; }
.su-chip span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 12px;
  font-size: 14px; font-weight: 500; background: #fff; transition: all .15s; line-height: 1.25;
}
.su-chip input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.su-chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(179, 22, 44, .2); }
.su-gender-hidden { display: none; }

/* Buttons: sticky at the bottom on phones, like an app */
.su-actions {
  position: sticky; bottom: 0; margin: auto -16px -24px; padding: 12px 16px max(16px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, #fff 70%, rgba(255,255,255,0));
}
.su-btn {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 54px;
  border: 0; border-radius: 14px; background: var(--brand); color: #fff;
  font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; text-decoration: none;
  box-shadow: 0 6px 16px rgba(179, 22, 44, .25); transition: transform .08s, background .15s;
}
.su-btn:hover { background: var(--brand-dark); }
.su-btn:active { transform: scale(.98); }
.su-btn[disabled], .su-btn.is-busy { opacity: .6; pointer-events: none; }
.su-btn-ghost { background: #fff; color: var(--brand); border: 1.5px solid var(--brand); box-shadow: none; }
.su-btn-ghost:hover { background: var(--brand-soft); }
.su-link { background: none; border: 0; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; padding: 10px; text-decoration: none; }
.su-link[disabled] { color: var(--muted); cursor: default; }
.su-resend, .su-center { text-align: center; margin: 8px 0 0; }

.su-alert, .su-note { border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; font-size: 14px; }
.su-alert { background: #FDECEC; color: var(--err); border: 1px solid #F5C2C2; }
.su-note { background: #EAF4FF; color: #164A80; border: 1px solid #C6DDF5; }

.su-benefits { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.su-benefits li { display: flex; gap: 10px; align-items: flex-start; background: #FBF8F9; border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 14px; }
.su-benefits span { font-size: 18px; line-height: 1.2; }
.su-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 0 0 16px; cursor: pointer; }
.su-consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.su-idbtns { display: grid; gap: 10px; }

.su-foot { text-align: center; font-size: 14px; color: var(--muted); padding: 0 16px 20px; margin: 0; }

/* Paithani theme: invitation serif headings, zari line under the top bar */
.su-hero h1 { font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1.15; color: #2B1230; }
.lang-gu { --font: "Hind Vadodara", "Mukta", system-ui, sans-serif; --display: "Tiro Gujarati", "Tiro Devanagari Marathi", Georgia, serif; }
.su-top { border-bottom: 0; box-shadow: 0 1px 0 #ECE3E8; }
.su-btn { border-radius: 14px; }
.su-lang.is-on { background: #2B1230; color: #fff; }

/* Date of birth: day | month | year */
.su-dob legend { margin-bottom: 6px; }
.su-dob-row { display: grid; grid-template-columns: 1fr 2fr 1.3fr; gap: 8px; }
.su-dob-row label { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.su-dob-row span { font-size: 12px; color: var(--muted); }
.su-dob-row input { text-align: center; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.su-dob-age { margin: 2px 0 0; min-height: 20px; font-size: 14px; font-weight: 600; color: var(--paithani, #2F7A4D); }
.su-dob-age.is-bad { color: var(--err); }
.su-field.su-dob:has(.su-err) input, .su-field.su-dob:has(.su-err) select { border-color: var(--err); }

/* Success note and password strength */
.su-ok { background: #E8F3EC; color: #1F5E38; border-color: #BFDDC9; }
.pw-meter { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; font-size: 13px; min-height: 18px; }
.pw-meter i { display: block; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--lvl-c, #ccc) var(--lvl, 0%), #EEE 0); }
.pw-meter b { font-weight: 600; color: var(--lvl-c, #888); }
.su-inline-link { white-space: nowrap; margin-left: 4px; }

/* ID step: matches waiting (counts only; faces are abstract shapes, never real photos) */
.su-teaser { background: linear-gradient(160deg, #2B1230 0%, #4A1C47 100%); color: #FFF; border-radius: 18px; padding: 18px 18px 16px; margin: 0 0 16px; }
.su-tz-faces { display: flex; align-items: center; margin-bottom: 12px; }
.su-tz-face, .su-tz-more { width: 42px; height: 42px; border-radius: 50%; border: 2px solid #2B1230; margin-left: -10px; flex: none; }
.su-tz-face:first-child { margin-left: 0; }
.su-tz-face { background: radial-gradient(circle at 50% 38%, rgba(255,255,255,.55) 0 22%, transparent 23%),
                          radial-gradient(ellipse at 50% 100%, rgba(255,255,255,.45) 0 46%, transparent 47%); }
.su-tz-face.f0 { background-color: #A3195B; } .su-tz-face.f1 { background-color: #C79A3B; } .su-tz-face.f2 { background-color: #2F7A4D; }
.su-tz-face.f3 { background-color: #7F1246; } .su-tz-face.f4 { background-color: #8A6A2A; }
.su-tz-more { display: grid; place-items: center; background: #FFF; color: #2B1230; font-weight: 700; font-size: 13px; }
.su-tz-title { font-size: 19px; font-weight: 700; line-height: 1.35; margin: 0 0 6px; }
.su-tz-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 8px; font-size: 14px; color: #F3DDEA; }
.su-tz-facts span::before { content: "•"; margin-right: 6px; color: #C79A3B; }
.su-tz-note { margin: 0; font-size: 14px; color: #FFF; opacity: .9; }
.su-mailnote { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.su-link-quiet { color: var(--muted); }
.su-change { margin: 6px 0 0; text-align: center; }
.su-change summary { list-style: none; cursor: pointer; display: inline-block; }
.su-change summary::-webkit-details-marker { display: none; }
.su-change[open] summary { margin-bottom: 10px; }
.su-change .su-form { text-align: left; }

/* ---- Verse from the marriage tradition (one per screen) ---- */
/* Phone: a quiet card at the top of the form. */
.su-verse { display: none; }
.su-verse-m {
  margin: 0 0 18px;
  padding: 10px 14px 10px 14px;
  border-left: 3px solid var(--accent);
  background: linear-gradient(90deg, #FBF4E6 0%, rgba(251, 244, 230, 0) 100%);
  border-radius: 0 10px 10px 0;
}
.su-verse-m blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.45;
  color: #5A1A3C;
  text-wrap: balance;
}
.su-verse-m figcaption { margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }

/* Wide screens: the whole window is used. Verse panel on the left, form on the right. */
@media (min-width: 960px) {
  body.su { background: var(--bg); }
  .su-page {
    display: grid;
    grid-template-columns: minmax(380px, 44%) 1fr;
    min-height: 100vh;
    min-height: 100dvh;
  }
  .su-verse {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    padding: 48px 56px;
    color: #F6E9D6;
    background:
      radial-gradient(120% 80% at 0% 100%, rgba(163, 25, 91, 0.45) 0%, rgba(163, 25, 91, 0) 60%),
      #2B1230;
    box-shadow: inset -1px 0 0 rgba(199, 154, 59, 0.35);
    overflow: hidden;
  }
  /* thin gold frame, like the border of a Paithani */
  .su-verse::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(199, 154, 59, 0.45);
    border-radius: 6px;
    pointer-events: none;
  }
  .su-verse-brand { margin: 0; font-size: 15px; color: #D9C3A8; }
  .su-verse-brand span { display: block; font-family: var(--display); font-size: 26px; color: #F6E9D6; margin-bottom: 2px; }
  .su-verse-fig { margin: 0; max-width: 30em; }
  .su-verse-fig blockquote {
    margin: 0 0 22px;
    font-family: var(--display);
    font-size: clamp(28px, 2.6vw, 38px);
    line-height: 1.4;
    color: #F3D9A0;
    text-wrap: balance;
  }
  .su-verse-fig figcaption p { margin: 0 0 10px; font-size: 18px; line-height: 1.6; color: #F6E9D6; }
  .su-verse-fig cite { font-style: normal; font-size: 14px; color: #C9AE8C; }
  .su-verse-foot { margin: 0; font-size: 14px; color: #C9AE8C; max-width: 32em; }

  .su-col { display: flex; align-items: center; justify-content: center; padding: 32px; }
  .su-shell { width: 100%; max-width: 520px; margin: 0; }
  .su-verse-m { display: none; }
}
@media (min-width: 960px) and (max-height: 640px) {
  .su-verse { padding: 32px 44px; }
  .su-verse-fig blockquote { font-size: 26px; margin-bottom: 14px; }
}

/* "Platform only, your decision" box at the top of the consent summary */
.cs-platform { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: #FBF4E6; border: 1px solid #E8D3A4; border-left: 4px solid var(--accent); }
.cs-platform p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.cs-platform .cs-platform-t { margin-bottom: 4px; font-weight: 700; font-size: 15.5px; color: #5A1A3C; }
