/* Full-page reset when this template is used */
body.vw-page {
  margin: 0;
  padding: 0;
}

.vw {
  --ink: #16205b;
  --ink-2: #222e78;
  --signal: #ffc72c;
  --paper: #ffffff;
  --text: #0f1535;
  --muted: #6b7194;
  --line: #d9dcea;
  --error: #c62b3b;

  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(300px, 38%) 1fr;
  font-family: "Public Sans", system-ui, sans-serif;
  color: var(--text);
  background: var(--paper);
  box-sizing: border-box;
}
.vw *, .vw *::before, .vw *::after { box-sizing: border-box; }

/* ---------- Left panel ---------- */
.vw-side {
  background: var(--ink);
  color: #fff;
  padding: clamp(32px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 56px;
}
.vw-title {
  font-family: "Archivo", sans-serif;
  font-stretch: 75%;
  font-weight: 800;
  font-size: clamp(40px, 5vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0;
}
.vw-title span { display: block; color: var(--signal); }
.vw-lead { margin: 20px 0 0; max-width: 34ch; color: #c9cdf0; font-size: 17px; line-height: 1.55; }

.vw-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.vw-steps li {
  display: flex; align-items: center; gap: 14px;
  padding: 8px 0; font-size: 15px; color: #8d95d6;
  transition: color .3s;
}
.vw-steps .n {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid currentColor;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 600; flex: none;
  transition: background .3s, color .3s, border-color .3s;
}
.vw-steps li.done { color: #fff; }
.vw-steps li.done .n { background: #fff; color: var(--ink); border-color: #fff; }
.vw-steps li.active { color: var(--signal); font-weight: 600; }
.vw-steps li.active .n { background: var(--signal); color: var(--ink); border-color: var(--signal); }

/* ---------- Right panel ---------- */
.vw-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: clamp(28px, 5vw, 72px);
  min-height: 100vh;
}
.vw-top {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 860px;
  margin: 0;
}
.vw-bar { flex: 1; height: 6px; background: #eceef7; border-radius: 99px; overflow: hidden; }
.vw-bar i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 99px; transition: width .5s ease; }
.vw-count { font-size: 14px; color: var(--muted); white-space: nowrap; }

.vw-stage { width: 100%; max-width: 860px; margin: 0; position: relative; }
.vw-step { display: none; }
.vw-step.on { display: block; animation: vwIn .4s ease both; }
.vw-step.back.on { animation-name: vwInBack; }
@keyframes vwIn     { from { opacity: 0; transform: translateX(32px); }  to { opacity: 1; transform: none; } }
@keyframes vwInBack { from { opacity: 0; transform: translateX(-32px); } to { opacity: 1; transform: none; } }

.vw-q {
  font-family: "Archivo", sans-serif;
  font-stretch: 85%;
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  color: var(--ink);
}
.vw-hint { margin: 0 0 40px; color: var(--muted); font-size: 17px; }

.vw-input, .vw-select {
  width: 100%;
  font: 500 clamp(24px, 2.8vw, 36px)/1.2 "Public Sans", sans-serif;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 3px solid var(--line);
  border-radius: 0;
  padding: 14px 0;
  outline: none;
  transition: border-color .2s;
  box-shadow: none;
}
.vw-input::placeholder { color: #b4b8d0; }
.vw-input:focus, .vw-select:focus { border-color: var(--ink); box-shadow: none; }
.vw-select { appearance: none; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='12' fill='none' stroke='%2316205b' stroke-width='2.5'%3E%3Cpath d='M2 2l8 8 8-8'/%3E%3C/svg%3E") no-repeat right 4px center; }

.vw-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.vw-choice { position: relative; }
.vw-choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.vw-choice span {
  display: block; padding: 26px 24px;
  border: 2px solid var(--line); border-radius: 14px;
  font-size: 22px; font-weight: 600; color: var(--text);
  transition: border-color .2s, background .2s, color .2s;
}
.vw-choice:hover span { border-color: var(--ink-2); }
.vw-choice input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.vw-choice input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }

.vw-error { min-height: 24px; margin-top: 14px; color: var(--error); font-size: 15px; font-weight: 500; }

.vw-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.vw-btn {
  font: 600 18px/1 "Public Sans", sans-serif;
  padding: 20px 40px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s, background .2s, border-color .2s;
}
.vw-btn:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
.vw-next { background: var(--ink); color: #fff; margin-left: auto; }
.vw-next:hover { background: var(--ink-2); transform: translateY(-1px); }
.vw-next.submit { background: var(--signal); color: var(--ink); }
.vw-next.submit:hover { background: #ffd04f; }
.vw-back { background: transparent; color: var(--ink); border-color: var(--line); }
.vw-back:hover { border-color: var(--ink); }
.vw-back[hidden] { display: none; }
.vw-btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- Thank-you ---------- */
.vw-done { display: none; }
.vw-done.on { display: block; animation: vwIn .5s ease both; }
.vw-done .tick {
  width: 72px; height: 72px; border-radius: 50%; background: var(--signal);
  display: grid; place-items: center; margin-bottom: 28px;
}

/* ---------- Review step: filter summary ---------- */
.vw-summary {
  margin: 0 0 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.vw-summary .row {
  display: grid;
  grid-template-columns: minmax(140px, 30%) 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
}
.vw-summary dt {
  color: var(--muted);
  font-weight: 500;
  margin: 0;
}
.vw-summary dd {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  word-break: break-word;
}
.vw-summary dd.empty {
  color: #b4b8d0;
  font-weight: 500;
  font-style: italic;
}

/* ---------- Loading state ---------- */
.vw-loading {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 17px;
  color: var(--ink);
  font-weight: 600;
  margin-top: 8px;
}
.vw-loading[hidden] { display: none; }
.vw-spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid #dfe2f0;
  border-top-color: var(--ink);
  animation: vwSpin .8s linear infinite;
  flex: none;
}
@keyframes vwSpin { to { transform: rotate(360deg); } }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .vw { grid-template-columns: 1fr; }
  .vw-side { padding: 28px 24px; gap: 0; }
  .vw-steps, .vw-lead { display: none; }
  .vw-title { font-size: 34px; }
  .vw-main { min-height: 0; padding: 28px 24px 40px; gap: 24px; justify-content: flex-start; }
  .vw-stage { margin: 0; }
  .vw-btn { padding: 18px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .vw-step.on, .vw-done.on { animation: none; }
  .vw-bar i { transition: none; }
  .vw-spinner { animation-duration: 2s; }
}