/* ==========================================================================
   VeriVow — Register
   Shares the login page's design system (navy + gold, seal mark, ledger-style
   fields) and extends it for the multi-step wizard: progress, pills, custom
   selects, dual sliders, photo upload, thumbnails, and toggles.
   ========================================================================== */

:root {
  --ink: #0f2247;
  --ink-deep: #0a1a38;
  --ink-soft: #1a3566;
  --paper: #faf7f1;
  --paper-raised: #ffffff;
  --gold: #c9a227;
  --gold-bright: #e9ce8a;
  --wine: #7a2e2e;
  --line: #dfd7c6;
  --text-on-ink: #f3efe6;
  --text-on-ink-muted: #b7b2a4;
  --text-body: #23262d;
  --text-muted: #767162;
  --danger: #a23b3b;
  --radius-s: 3px;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

button, select { font-family: inherit; }

/* ------------------------------ shell ------------------------------ */

.vv3-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

/* ------------------------------ hero (shared with login) ------------------------------ */

.vv3-hero {
  position: relative;
  background: radial-gradient(120% 100% at 30% 20%, var(--ink-soft) 0%, var(--ink) 45%, var(--ink-deep) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 3rem;
}

.vv3-hero-center {
  position: relative;
  z-index: 1;
  max-width: 460px;
  text-align: center;
}

.vv3-seal {
  width: 74px;
  height: 74px;
  margin: 0 auto 1.75rem;
}

.vv3-seal circle,
.vv3-seal path {
  vector-effect: non-scaling-stroke;
}

.vv3-seal-ring {
  stroke: var(--gold-bright);
  stroke-width: 1.4;
  fill: none;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: vv3-draw 1.1s ease-out 0.15s forwards;
}

.vv3-seal-tick {
  stroke: var(--gold-bright);
  stroke-width: 1.4;
  fill: none;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: vv3-draw 0.6s ease-out 1s forwards;
}

.vv3-seal-check {
  stroke: var(--gold-bright);
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  animation: vv3-draw 0.4s ease-out 1.15s forwards;
}

@keyframes vv3-draw {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .vv3-seal-ring, .vv3-seal-tick, .vv3-seal-check {
    animation: none;
    stroke-dashoffset: 0;
  }
}

.vv3-logo { display: none; } /* superseded by the SVG seal mark */

.vv3-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--text-on-ink);
  margin: 0 0 1.1rem;
}

.vv3-hero h1 .accent {
  color: var(--gold-bright);
  font-style: italic;
}

.vv3-hero p {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text-on-ink-muted);
  margin: 0 auto;
  max-width: 34ch;
}

.vv3-badge-row {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.vv3-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 1.05rem;
  font-size: 0.82rem;
  color: var(--text-on-ink-muted);
  white-space: nowrap;
}

.vv3-badge:not(:last-child) {
  border-right: 1px solid rgba(233, 206, 138, 0.22);
}

.vv3-badge:first-child { padding-left: 0; }
.vv3-badge:last-child { padding-right: 0; }

.vv3-badge svg { flex-shrink: 0; }

/* ------------------------------ form panel ------------------------------ */

.vv3-form-panel {
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
}

.vv3-form-inner {
  width: 100%;
  max-width: 380px;
}

.vv3-form-inner.vv3-wizard {
  max-width: 430px;
}

.vv3-mobile-brand {
  display: none;
}

.vv3-tabs {
  display: flex;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.vv3-tab {
  background: none;
  border: none;
  padding: 0 0 0.85rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  margin-bottom: -1px;
}

.vv3-tab.is-active {
  color: var(--ink);
  font-weight: 600;
}

.vv3-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--gold);
}

.vv3-form-body h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.55rem;
  margin: 0 0 0.4rem;
  color: var(--ink);
}

.vv3-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
}

.vv3-alert {
  background: #f7e9e4;
  border-left: 3px solid var(--danger);
  color: #7a2b2b;
  font-size: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-s);
  margin-bottom: 1.5rem;
}

/* ------------------------------ progress ------------------------------ */

.vv3-progress-track {
  height: 4px;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 2.25rem;
}

.vv3-progress {
  height: 100%;
  width: 12.5%;
  background: var(--gold);
  border-radius: 4px;
  transition: width 0.35s ease;
}

/* ------------------------------ wizard steps ------------------------------ */

.vv3-step {
  display: none;
}

.vv3-step.is-active {
  display: block;
  animation: vv3-step-in 0.25s ease;
}

@keyframes vv3-step-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .vv3-step.is-active { animation: none; }
}

/* underline-style fields, closer to a ledger line than a boxed pill */
.vv3-field {
  margin-bottom: 1.5rem;
}

.vv3-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.65rem;
  position: relative;
  transition: border-color 0.15s ease;
}

.vv3-input-wrap svg {
  flex-shrink: 0;
  stroke: var(--text-muted);
  transition: stroke 0.15s ease;
}

.vv3-input-wrap:focus-within {
  border-color: var(--gold);
}

.vv3-input-wrap:focus-within svg {
  stroke: var(--gold);
}

.vv3-input-wrap input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-body);
  padding: 0.15rem 0;
}

.vv3-input-wrap input::placeholder {
  color: #a29c8c;
}

/* custom selects, styled to match the underline text fields */
.vv3-select-wrap .vv3-input-wrap {
  padding-right: 1.6rem;
}

.vv3-select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-body);
  padding: 0.15rem 0;
  cursor: pointer;
}

.vv3-caret {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.15s ease;
}

.vv3-select-wrap .vv3-input-wrap:focus-within .vv3-caret {
  color: var(--gold);
}

/* gender pills */
.vv3-gender-row {
  display: flex;
  gap: 0.85rem;
}

.vv3-gender-pill {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  font-size: 0.9rem;
  color: var(--text-body);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  position: relative;
}

.vv3-gender-pill input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.vv3-radio-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.15s ease;
}

.vv3-radio-dot::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  bottom: 3px;
  left: 3px;
  border-radius: 50%;
  background: var(--gold);
  transform: scale(0);
  transition: transform 0.15s ease;
}

.vv3-gender-pill input:checked ~ .vv3-radio-dot {
  border-color: var(--gold);
}

.vv3-gender-pill input:checked ~ .vv3-radio-dot::after {
  transform: scale(1);
}

.vv3-gender-pill:has(input:checked) {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--text-on-ink);
}

.vv3-gender-pill:has(input:checked) .vv3-radio-dot {
  border-color: var(--gold-bright);
}

/* dual-thumb range sliders */
.vv3-slider-block {
  margin-bottom: 1.85rem;
}

.vv3-slider-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.vv3-slider-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.vv3-slider-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.vv3-range {
  position: relative;
  height: 26px;
}

.vv3-range-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  transform: translateY(-50%);
}

.vv3-range-fill {
  position: absolute;
  top: 50%;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  transform: translateY(-50%);
}

.vv3-range-lo,
.vv3-range-hi {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 26px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: none;
  pointer-events: none;
}

.vv3-range-lo::-webkit-slider-runnable-track,
.vv3-range-hi::-webkit-slider-runnable-track {
  background: transparent;
  height: 3px;
}

.vv3-range-lo::-moz-range-track,
.vv3-range-hi::-moz-range-track {
  background: transparent;
  height: 3px;
}

.vv3-range-lo::-webkit-slider-thumb,
.vv3-range-hi::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: auto;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--gold-bright);
  cursor: pointer;
  margin-top: -7px;
}

.vv3-range-lo::-moz-range-thumb,
.vv3-range-hi::-moz-range-thumb {
  pointer-events: auto;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--gold-bright);
  cursor: pointer;
}

/* photo upload */
.vv3-photo-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.vv3-photo-box {
  flex: 1;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-s);
  padding: 1.65rem 1rem;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.vv3-photo-box svg {
  stroke: var(--text-muted);
  transition: stroke 0.15s ease;
}

.vv3-photo-box:hover {
  border-color: var(--gold);
  color: var(--ink);
}

.vv3-photo-box:hover svg {
  stroke: var(--gold);
}

.vv3-photo-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  overflow: hidden;
  background: var(--paper-raised);
}

.vv3-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vv3-photo-empty {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* thumbnail strip */
.vv3-thumb-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.vv3-thumb-strip {
  flex: 1;
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.vv3-thumb-strip::-webkit-scrollbar {
  display: none;
}

.vv3-thumb-strip img,
.vv3-thumb-strip .vv3-thumb-item {
  width: 62px;
  height: 62px;
  border-radius: var(--radius-s);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--line);
}

.vv3-thumb-nav {
  border: 1px solid var(--line);
  background: var(--paper-raised);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.vv3-thumb-nav:hover {
  border-color: var(--gold);
  color: var(--ink);
}

.vv3-photo-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
}

/* toggle rows */
.vv3-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--text-body);
}

.vv3-toggle-row:last-of-type {
  border-bottom: none;
  margin-bottom: 1.5rem;
}

.vv3-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 21px;
  flex-shrink: 0;
}

.vv3-switch input {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.vv3-switch-track {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--line);
  border-radius: 22px;
  transition: background 0.15s ease;
  pointer-events: none;
}

.vv3-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--paper-raised);
  transition: transform 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.vv3-switch input:checked ~ .vv3-switch-track {
  background: var(--gold);
}

.vv3-switch input:checked ~ .vv3-switch-thumb {
  transform: translateX(17px);
}

/* step navigation */
.vv3-step-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.vv3-step-nav .vv3-btn-submit {
  flex: 1;
}

.vv3-btn-back {
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 0.95rem 1.3rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.vv3-btn-back:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.vv3-btn-submit {
  background: var(--ink);
  color: var(--gold-bright);
  border: none;
  border-radius: var(--radius-s);
  padding: 0.95rem 1.2rem;
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  transition: background 0.15s ease;
}

.vv3-btn-submit svg { stroke: currentColor; }

.vv3-btn-submit:hover { background: var(--ink-soft); }

.vv3-btn-submit:focus-visible,
.vv3-btn-back:focus-visible,
.vv3-tab:focus-visible,
.vv3-thumb-nav:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.vv3-switch-line {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 1.75rem 0 0;
}

.vv3-switch-line a {
  color: var(--wine);
  font-weight: 600;
}

.vv3-switch-line a:hover { text-decoration: underline; }

/* ------------------------------ responsive ------------------------------ */

@media (max-width: 900px) {
  .vv3-shell {
    grid-template-columns: 1fr;
  }

  .vv3-hero {
    display: none;
  }

  .vv3-mobile-brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 2rem;
  }

  .vv3-mobile-brand span {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--ink);
  }

  .vv3-mobile-brand em {
    font-style: italic;
    color: var(--gold);
  }

  .vv3-form-panel {
    min-height: 100vh;
    padding: 2.5rem 1.75rem 3rem;
  }
}

@media (max-width: 420px) {
  .vv3-photo-row { flex-direction: column; }
}