/* Zentra setup form: white, with the blue of the Zentra logo. Light only. */
:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --ink: #0b1630;          /* navy of the logo tile */
  --text: #1e293b;
  --muted: #64748b;
  --line: #e5e9f1;
  --line-strong: #cdd6e4;
  --blue: #1d5cff;         /* the Z, deep end */
  --blue-dark: #1745c9;
  --azure: #2fa4ff;        /* the Z, bright end */
  --blue-soft: #eef3ff;
  --blue-tint: #f6f9ff;
  --grad: linear-gradient(135deg, #1a47e0 0%, #1d63ff 48%, #2fa4ff 100%);
  --danger: #d92d20;
  --danger-soft: #fef3f2;
  --ok: #079455;
  --ok-soft: #ecfdf3;
  --warm: #fffaeb;
  --warm-ink: #8a4b0a;
  --ring: 0 0 0 4px rgba(29, 92, 255, .16);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 30px -14px rgba(18, 44, 110, .16);
  --radius: 18px;
  --radius-sm: 12px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); }
button, input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* ---------- top bar ---------- */
.topbar { background: var(--card); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 800px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.brand img { border-radius: 10px; box-shadow: 0 4px 12px -4px rgba(29, 92, 255, .45); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: #f0f3f8; border: 1px solid var(--line); }
.lang-switch button {
  border: 0; background: none; cursor: pointer; border-radius: 999px; padding: 6px 12px;
  font-size: 13px; font-weight: 700; color: var(--muted); transition: background .15s, color .15s, box-shadow .15s;
}
.lang-switch button[aria-pressed=true] { background: var(--card); color: var(--blue); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.lang-switch button:focus-visible { outline: 3px solid rgba(29, 92, 255, .35); outline-offset: 1px; }
.help-link {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; background: var(--card);
}
.help-link svg { color: var(--blue); }
.help-link:hover { border-color: var(--blue); }
@media (max-width: 560px) {
  .help-link { width: 38px; padding: 0; justify-content: center; }
  .help-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .brand span { font-size: 17px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--card); border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 140% at 100% 0%, rgba(47, 164, 255, .16), transparent 62%),
    radial-gradient(45% 120% at 0% 100%, rgba(29, 92, 255, .08), transparent 60%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(29, 92, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(29, 92, 255, .06) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; padding: 34px 16px 30px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 5px 12px 5px 10px; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue-dark); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 3px rgba(29, 92, 255, .15); }
.hero h1 { margin: 0; color: var(--ink); font-size: clamp(30px, 6vw, 42px); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
.lede { margin: 12px 0 0; max-width: 34em; color: var(--muted); font-size: 17px; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 0; padding: 0; }
.trust li { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--text); }
.trust svg { color: var(--blue); }
@media (max-width: 560px) {
  .hero-inner { padding: 22px 16px 20px; }
  .eyebrow { margin-bottom: 10px; font-size: 11px; }
  .hero h1 { font-size: 28px; }
  .lede { font-size: 15px; margin-top: 8px; }
  .trust { margin-top: 12px; gap: 6px 14px; }
  .trust li { font-size: 13px; }
}

/* ---------- layout ---------- */
.wrap { max-width: 800px; margin: 22px auto 0; padding: 0 16px 24px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.foot { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 13px; padding: 10px 16px 120px; }
.foot p { margin: 0; }
.foot img { border-radius: 6px; }
.foot a { color: var(--muted); }

/* ---------- progress ---------- */
.progress { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 14px 10px; margin-bottom: 14px; }
.progress-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--ink); margin: 0 4px 8px; }
.progress-top .pct { color: var(--blue); }
.bar { height: 6px; border-radius: 99px; background: #e9eef8; overflow: hidden; margin: 0 4px; }
.bar i { display: block; height: 100%; background: var(--grad); border-radius: inherit; transition: width .35s ease; }
.steps { list-style: none; display: flex; gap: 4px; margin: 12px 0 0; padding: 2px 2px 4px; overflow-x: auto; scrollbar-width: none; }
.steps::-webkit-scrollbar { display: none; }
.step {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  border: 1px solid transparent; background: none; border-radius: 999px; padding: 5px 11px 5px 5px; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.step .num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #f1f4f9; border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--muted); }
.step.done { color: var(--text); }
.step.done .num { background: var(--blue-soft); border-color: transparent; color: var(--blue); }
.step.current { background: var(--blue-soft); color: var(--blue-dark); }
.step.current .num { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 3px 8px -2px rgba(29, 92, 255, .5); }
.step:disabled { cursor: default; opacity: .55; }
.step:not(:disabled):not(.current):hover { background: var(--blue-tint); }

/* ---------- step card ---------- */
.step-card { padding: 24px 20px 10px; }
.step-head h2 { margin: 0; color: var(--ink); font-size: 25px; line-height: 1.25; font-weight: 800; letter-spacing: -.015em; }
.step-head h2:focus { outline: none; }
.step-head p { margin: 6px 0 4px; color: var(--muted); }
.group { padding: 20px 0 6px; border-top: 1px solid var(--line); margin-top: 18px; }
.step-head + .group, .step-head + .alert + .group { border-top: 0; margin-top: 0; padding-top: 12px; }
.group > h3 { margin: 0 0 4px; color: var(--ink); font-size: 17px; font-weight: 700; }
.group-note { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.group > h3 + .field, .group > h3 + .toggle { margin-top: 12px; }

.alert { margin: 14px 0 4px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--danger-soft); border: 1px solid #fecdca; color: var(--danger); font-weight: 600; font-size: 15px; }
.alert a { color: inherit; }
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--blue-tint); border: 1px solid #dbe5ff; margin: 4px 0 16px; font-size: 15px; }
.callout > span:last-child { display: grid; gap: 2px; }
.callout b { color: var(--ink); }
.callout-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--grad); color: #fff; }
.note { margin: 0 0 14px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--warm); border: 1px solid #fde7b0; color: var(--warm-ink); font-size: 14px; }
.empty { margin: 6px 0 12px; padding: 18px 16px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm); color: var(--muted); text-align: center; font-size: 15px; background: var(--blue-tint); }

/* ---------- fields ---------- */
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
fieldset.field:focus { outline: none; }
.field > label, .field > legend, .label { display: block; font-weight: 600; font-size: 15px; color: var(--ink); margin: 0 0 7px; padding: 0; }
.opt { font-weight: 500; font-size: 13px; color: var(--muted); }
.hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
legend + .hint, .label + .hint, .hint-top { margin: -2px 0 10px; }
.err { display: flex; gap: 6px; align-items: flex-start; margin: 7px 0 0; font-size: 14px; font-weight: 600; color: var(--danger); }
.err::before { content: "!"; flex: none; display: inline-grid; place-items: center; width: 17px; height: 17px; margin-top: 1px; border-radius: 50%; background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; }

input[type=text], input[type=tel], input[type=email], input[type=date], input[type=time], textarea {
  display: block; width: 100%; min-height: 50px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong); background: var(--card); color: var(--ink);
  font-size: 16px; box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 108px; }
input::placeholder, textarea::placeholder { color: #94a3b8; }
input:hover, textarea:hover { border-color: #b4c0d3; }
input:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: var(--ring); }
input[aria-invalid=true], textarea[aria-invalid=true] { border-color: var(--danger); background: #fffbfa; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } }

/* chips: the input is hidden; the span is the chip */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip > input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip > span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px;
  padding: 8px 15px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--card); color: var(--text);
  cursor: pointer; font-size: 15px; user-select: none; transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.chip > span b { font-weight: 600; }
.chip > span:hover { border-color: #9fb3d8; background: var(--blue-tint); }
.chip > input:checked + span { background: var(--blue-soft); border-color: var(--blue); color: var(--blue-dark); box-shadow: inset 0 0 0 .5px var(--blue); }
.chip > input[type=checkbox]:checked + span::before {
  content: ""; width: 16px; height: 16px; border-radius: 5px; flex: none;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.chip > input:focus-visible + span { box-shadow: var(--ring); }
fieldset[aria-invalid=true] .chip > span { border-color: #f4a49b; }
.chips-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.chip-card { display: flex; }
.chip-card > span { flex: 1; flex-direction: column; align-items: flex-start; gap: 3px; border-radius: var(--radius-sm); padding: 13px 15px; }
.chip-card > span small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.chip-card > input:checked + span small { color: var(--blue-dark); opacity: .8; }
.chip-card > input:checked + span::before { display: none; }
.days .chip > span { min-width: 56px; justify-content: center; padding: 8px 10px; }
.days .chip > input:checked + span::before { display: none; }
.compact .chip > span { min-height: 38px; padding: 6px 13px; font-size: 14px; }
.swatch { width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line-strong); flex: none; }
.chip-color input[type=color] { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; box-shadow: none; min-height: 0; }
.chip-color input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.chip-color input[type=color]::-webkit-color-swatch { border: 1px solid rgba(0, 0, 0, .15); border-radius: 50%; }

.chip-btn {
  display: inline-flex; align-items: center; min-height: 40px; padding: 7px 14px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--card); color: var(--text); cursor: pointer; font-size: 14px; font-weight: 600;
}
.chip-btn:hover { border-color: #9fb3d8; background: var(--blue-tint); }
.chip-btn[aria-pressed=true] { background: var(--blue-soft); border-color: var(--blue); color: var(--blue-dark); }
.chip-btn:focus-visible, .btn:focus-visible, .link:focus-visible, .add:focus-visible, .step:focus-visible, .icon-x:focus-visible, .thumb-x:focus-visible, .help-link:focus-visible {
  outline: 3px solid rgba(29, 92, 255, .35); outline-offset: 2px;
}
.suggest { margin: 4px 0 16px; }
.add-chip { border-style: dashed; color: var(--blue-dark); background: var(--blue-tint); border-color: #b9c9ee; }

/* toggles */
.toggle { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; cursor: pointer; border-bottom: 1px solid var(--line); }
.toggle:last-child { border-bottom: 0; }
.toggle > input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle-ui { flex: none; position: relative; width: 46px; height: 28px; border-radius: 99px; background: #d5dce8; transition: background .2s; margin-top: 1px; }
.toggle-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(16, 24, 40, .25); transition: transform .2s; }
.toggle > input:checked + .toggle-ui { background: var(--grad); }
.toggle > input:checked + .toggle-ui::after { transform: translateX(18px); }
.toggle > input:focus-visible + .toggle-ui { box-shadow: var(--ring); }
.toggle-text { display: grid; gap: 2px; }
.toggle-text b { font-weight: 600; color: var(--ink); }
.toggle-text small { color: var(--muted); font-size: 13px; }
.toggle + .row, .toggle + .field { margin-top: 12px; }

/* repeated items */
.item { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 2px; margin: 0 0 14px; background: #fbfcfe; }
.item-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.item-head h3 { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--ink); font-size: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-num { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--grad); color: #fff; font-size: 13px; font-weight: 800; }
.add {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; margin: 0 0 20px;
  border: 1.5px dashed #b9c9ee; border-radius: var(--radius-sm); background: var(--blue-tint); cursor: pointer;
  color: var(--blue-dark); font-weight: 700; font-size: 15px; transition: background .15s, border-color .15s;
}
.add:hover { border-color: var(--blue); background: var(--blue-soft); }
.addon-row { display: grid; grid-template-columns: 1fr 140px 46px; gap: 0 10px; align-items: start; }
.addon-row .field { margin-bottom: 12px; }
.icon-x { margin-top: 31px; width: 46px; height: 50px; border-radius: var(--radius-sm); border: 1.5px solid var(--line-strong); background: var(--card); cursor: pointer; font-size: 22px; color: var(--muted); }
.icon-x:hover { color: var(--danger); border-color: var(--danger); background: var(--danger-soft); }
@media (max-width: 480px) { .addon-row { grid-template-columns: 1fr 100px 46px; gap: 0 8px; } }

.link { background: none; border: 0; padding: 4px 2px; cursor: pointer; color: var(--blue); font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.link.danger { color: var(--danger); }

/* images */
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.thumb { position: relative; margin: 0; width: 108px; height: 108px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: repeating-conic-gradient(#f1f4f9 0 25%, #fff 0 50%) 50% / 16px 16px; box-shadow: var(--shadow-sm); }
.thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.thumb-x { position: absolute; top: 5px; right: 5px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(11, 22, 48, .78); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.upload { position: relative; display: grid; place-items: center; width: 108px; height: 108px; border-radius: var(--radius-sm); border: 1.5px dashed #b9c9ee; background: var(--blue-tint); cursor: pointer; text-align: center; color: var(--blue-dark); font-size: 13px; font-weight: 700; padding: 8px; }
.upload span { display: grid; gap: 4px; justify-items: center; }
.upload em { font-style: normal; line-height: 1.25; }
.upload:hover { border-color: var(--blue); background: var(--blue-soft); }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.upload:focus-within { outline: 3px solid rgba(29, 92, 255, .35); outline-offset: 2px; }

/* review */
.sums { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.sum { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--card); }
.sum header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.sum h3 { margin: 0; color: var(--ink); font-size: 15px; font-weight: 700; }
.sum dl { margin: 0; display: grid; }
.sum dl > div { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; }
.sum dl > div:first-child { border-top: 0; }
.sum dt { color: var(--muted); }
.sum dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; white-space: pre-wrap; }
.table-scroll { overflow-x: auto; margin: 0 -2px 6px; }
.sum table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sum th, .sum td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sum th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; background: #f8fafc; }
.sum td { color: var(--ink); }
.sum td:nth-child(2) { white-space: nowrap; }
/* Phones: each table row becomes a small stacked block. */
@media (max-width: 560px) {
  .table-scroll { overflow: visible; margin: 0; }
  .sum table, .sum tbody, .sum tr { display: block; width: 100%; }
  .sum thead { display: none; }
  .sum tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
  .sum td { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: 12px; padding: 2px 0; border: 0; white-space: normal !important; overflow-wrap: anywhere; }
  .sum td::before { content: attr(data-label); color: var(--muted); }
  .sum td:first-child { display: block; font-weight: 700; padding-bottom: 4px; }
  .sum td:first-child::before { content: none; }
  .sum td:empty { display: none; }
}
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--blue-tint); border: 1px solid #dbe5ff; color: var(--text); }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--blue); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* bottom nav */
.step-nav {
  position: sticky; bottom: 0; z-index: 5; margin: 14px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -18px rgba(18, 44, 110, .35);
}
.step-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nav-spacer { width: 1px; }
.saved { display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 13px; text-align: center; flex: 1; min-width: 0; }
.saved::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.saved.is-saving::before { background: var(--azure); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px; padding: 12px 22px;
  border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform .1s, box-shadow .15s, filter .15s;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px -8px rgba(29, 92, 255, .7); }
.btn.primary:hover { filter: brightness(1.06); box-shadow: 0 10px 24px -8px rgba(29, 92, 255, .8); }
.btn.primary:disabled { opacity: .8; cursor: progress; }
.btn.ghost { background: var(--card); border-color: var(--line-strong); color: var(--ink); }
.btn.ghost:hover { border-color: var(--blue); color: var(--blue-dark); }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.saved-short { display: none; }
@media (max-width: 440px) {
  .next-label { display: none; }
  .saved-full { display: none; }
  .saved-short { display: inline; }
  .is-last .saved { display: none; }
  .btn { padding: 12px 18px; }
}
.saved { white-space: nowrap; }
@media (max-width: 340px) { .saved { display: none; } }
.start-over { text-align: center; margin: 16px 0 0; }
.start-over .link { color: var(--muted); font-weight: 500; }

/* success */
.success { text-align: center; padding: 34px 22px 28px; }
.tick { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 0 0 8px var(--blue-soft), 0 12px 28px -10px rgba(29, 92, 255, .7); }
.success h2 { margin: 0 0 8px; color: var(--ink); font-size: 27px; font-weight: 800; letter-spacing: -.015em; }
.success h2:focus { outline: none; }
.success > p { margin: 0 auto 14px; max-width: 32em; color: var(--muted); }
.success > p b { color: var(--ink); }
.ref { display: inline-grid; gap: 2px; padding: 12px 24px; border-radius: var(--radius-sm); background: var(--blue-tint); border: 1px solid #dbe5ff; color: var(--blue-dark) !important; font-size: 13px; font-weight: 600; }
.ref strong { font-size: 22px; letter-spacing: .06em; color: var(--ink); }
.success .note { text-align: left; max-width: 32em; margin-left: auto; margin-right: auto; }
.success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.printable { margin-top: 14px; padding: 20px; }
.printable h2 { margin: 0 0 2px; color: var(--ink); font-size: 20px; }
.print-meta { margin: 0 0 14px; color: var(--muted); font-size: 14px; }

/* ---------- easier filling ---------- */
/* Keep the box being typed in clear of the top and the sticky bar. */
html { scroll-padding-top: 16px; scroll-padding-bottom: 120px; }

/* "More details (optional)" sections */
.more { margin: 0 0 16px; }
.more > summary {
  display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none;
  color: var(--blue-dark); font-weight: 600; font-size: 15px;
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before {
  content: "+"; flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 8px;
  background: var(--blue-soft); color: var(--blue); font-weight: 800; font-size: 16px; line-height: 1;
}
.more[open] > summary::before { content: "−"; }
.more > summary:focus-visible { outline: 3px solid rgba(29, 92, 255, .35); outline-offset: 2px; border-radius: 8px; }
.more-body { padding-top: 10px; }

/* "or type your prices" line between the photo upload and the typed list */
.or-divider { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; color: var(--muted); font-size: 14px; font-weight: 600; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* One-tap shortcuts: hour/day presets, "Use my mobile", "@gmail.com" */
.chip-sm { min-height: 44px; padding: 6px 13px; font-size: 14px; }
.presets { margin: -8px 0 18px; }
.days + .presets { margin-top: -6px; }
.use-mobile { margin: -8px 0 18px; }
.email-help:empty { display: none; }
.email-help { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.email-help .link { text-align: left; padding: 6px 0; }

/* Pricing unit chips show a short explanation under each choice. */
.compact .chip > span:has(small) { flex-direction: column; align-items: flex-start; gap: 0; border-radius: var(--radius-sm); padding: 7px 13px; }
.compact .chip > span small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.compact .chip > input:checked + span small { color: var(--blue-dark); opacity: .8; }
.compact .chip > input[type=radio]:checked + span::before { display: none; }

/* Bigger tap targets on small screens */
.item-head .link { min-height: 44px; padding: 10px 12px; }
.thumb-x { width: 36px; height: 36px; }
.compact .chip > span, .chip-btn { min-height: 44px; }

@media (max-width: 600px) {
  /* While the keyboard is up, the Next bar sits at the end of the form
     instead of floating over the box being typed in. */
  body.typing .step-nav { position: static; }
}
@media (max-width: 420px) {
  .step-card { padding-left: 14px; padding-right: 14px; }
  .item { padding-left: 12px; padding-right: 12px; }
}

@media (min-width: 720px) {
  .step-card { padding: 32px 34px 14px; }
  .hero-inner { padding: 44px 16px 38px; }
  .wrap { padding-bottom: 32px; margin-top: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  body { background: #fff; font-size: 12px; }
  .topbar, .hero, .progress, .step-nav, .start-over, .success-actions, .foot, .tick, .success .note { display: none !important; }
  .wrap { margin: 0; padding: 0; max-width: none; }
  .card { box-shadow: none; border: 0; }
  .success { padding: 0 0 10px; text-align: left; }
  .success > p { margin-left: 0; }
  .ref { background: none; border: 0; padding: 0; }
  .printable { padding: 0; }
  .sum { break-inside: avoid; }
}
