@font-face {
  font-family: Manrope;
  src: url("assets/manrope.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --blue: #384a9f;
  --blue-dark: #293879;
  --soft-blue: #f0f2fd;
  --ink: #222a42;
  --muted: #5e6879;
  --line: #dde1e9;
  --paper: #f7f7f3;
  --pink: #ef416f;
  --green: #22634d;
  --pad: clamp(24px, 3.3vw, 46px);
  --font: Manrope, "Segoe UI", Arial, sans-serif;
  font: 100%/1.52 var(--font);
  color: var(--ink);
  background-color: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input, select, textarea { font: inherit; }
button, .button-link { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 1px; }
h1, h2, h3, p { margin: 0; }
a { color: var(--blue); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.shell { width: min(calc(100% - 80px), 1112px); margin-inline: auto; }
.site-header { background: white; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--blue-dark); font-weight: 800; text-decoration: none; }
.brand img { width: 156px; height: auto; max-height: 44px; object-fit: contain; }
.header-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .805rem; font-weight: 650; }
.header-meta svg { width: 16px; height: 16px; color: var(--blue); }
.header-meta i { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); }
.page-heading { padding: clamp(32px, 4.2vw, 59px) 0 29px; }
.page-eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; color: var(--blue); font-size: .69rem; font-weight: 790; letter-spacing: .09em; text-transform: uppercase; }
.page-eyebrow::before { content: ""; width: 21px; height: 2px; background: var(--pink); }
.page-heading h1 {
  max-width: 31ch; color: var(--ink); font-size: clamp(2.05rem, 4.1vw, 3.25rem);
  font-weight: 760; line-height: 1.1; letter-spacing: -.056em; text-wrap: balance;
}
.page-heading p { max-width: 72ch; margin-top: 10px; font-size: 1rem; color: var(--muted); }
.workspace { display: grid; grid-template-columns: minmax(232px, .41fr) minmax(0, 1fr); align-items: start; gap: 24px; padding-bottom: 48px; }
.side-panel, .form-panel { background: #fff; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 3px 16px rgb(37 45 60 / 3%); }
.side-panel { overflow: hidden; }
.side-image { width: 100%; height: clamp(125px, 14vw, 166px); position: relative; overflow: hidden; background: #d9dcd5; }
.side-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.side-body { padding: 19px 13px 15px; }
.side-caption, #step-kicker {
  margin: 0; color: var(--blue); font-size: .70rem; line-height: 1.4; font-weight: 800;
  letter-spacing: .105em; text-transform: uppercase;
}
.side-caption { margin: 0 11px 10px; color: var(--muted); }
.group-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 3px; }
.group-item {
  width: 100%; min-height: 44px; display: flex; align-items: center; text-align: left; gap: 10px;
  padding: 7px 10px; border: 1px solid transparent; border-radius: 8px; background: transparent;
  color: var(--muted); font-size: .87rem; line-height: 1.3; font-weight: 620;
}
.group-item:not(:disabled):hover { background: #f6f7fb; color: var(--blue); }
.group-item.is-current, .is-current > .group-item, .group-item[aria-current="step"] { background: var(--soft-blue); color: var(--blue); font-weight: 780; }
.group-icon, .group-state { display: inline-flex; flex: none; align-items: center; justify-content: center; }
.group-icon { width: 22px; height: 22px; color: inherit; }
.group-icon svg { width: 18px; height: 18px; }
.group-state { margin-left: auto; min-width: 12px; font-size: .72rem; }
.group-state svg { width: 14px; height: 14px; }
.group-item.is-done .group-state, .is-done > .group-item .group-state { color: var(--green); }
.group-item.is-current .group-state:empty::after, .is-current > .group-item .group-state:empty::after {
  content: ""; width: 7px; height: 7px; border-radius: 100%; background: var(--blue);
}
.mini-progress { display: none; }

.form-panel { min-width: 0; }
.progress-top { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 20px; padding: 20px var(--pad); border-bottom: 1px solid #e7e9ef; }
#current-group { color: var(--blue-dark); font-size: .82rem; font-weight: 740; }
.progress-top #step-count { margin-left: auto; }
#current-group ~ .progress-track { flex-basis: 100%; }
#step-count { color: var(--muted); font-size: .8rem; font-weight: 700; line-height: 1.4; white-space: nowrap; font-variant-numeric: tabular-nums; }
.progress-track { flex: 1 1 80px; display: block; height: 5px; overflow: hidden; background: #e8eaf1; border-radius: 99px; }
.progress-track > span { display: block; height: 100%; background: var(--blue); border-radius: inherit; transition: width .24s ease; }
.form-body { min-height: 328px; padding: 29px var(--pad) 32px; }
#step-title { margin: 6px 0 0; font-size: clamp(1.55rem, 2.45vw, 2.15rem); font-weight: 740; letter-spacing: -.045em; line-height: 1.2; text-wrap: balance; }
#step-title:focus:not(:focus-visible) { outline: none; }
#step-intro { max-width: 64ch; margin-top: 9px; color: var(--muted); font-size: .935rem; }
#step-intro:empty, #step-kicker:empty, .error:empty { display: none; }
#fields { margin-top: 24px; }
#fields, .field, .modern-detail { display: grid; gap: 16px; }
.field { min-width: 0; gap: 7px; padding: 0; margin: 0; border: 0; }
.field-label, .field > label, .dialog label { display: block; color: var(--ink); font-size: .9rem; font-weight: 700; }
.field legend { padding: 0; margin-bottom: 7px; }
.field-hint, .inline-note, .modern-detail > p { color: var(--muted); font-size: .82rem; line-height: 1.5; }
.inline-note { display: block; padding: 10px 13px; border-radius: 7px; background: #f5f6fa; }
.field-hint:empty { display: none; }
.two-columns, .address-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.address-grid .full, .two-columns .full, .span-all { grid-column: 1 / -1; }
.form-input, .dialog :is(input:not([type=checkbox]):not([type=radio]):not([type=file]), textarea, select) {
  width: 100%; min-width: 0; min-height: 48px; padding: 10px 13px; background: white;
  border: 1px solid #afb6c6; border-radius: 8px; color: var(--ink); font-size: 1rem;
}
.form-input::placeholder, .dialog input::placeholder { color: #6c7484; opacity: 1; }
textarea.form-input { resize: vertical; min-height: 90px; }
input[type=radio], input[type=checkbox] { accent-color: var(--blue); }
.form-input[aria-invalid="true"] { border-color: #ad294d; }
.error { color: #a32546; font-size: .85rem; font-weight: 650; }
#validation { margin-top: 12px; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice {
  position: relative; min-width: 0; min-height: 60px; padding: 11px 13px;
  display: flex; align-items: center; gap: 11px; text-align: left;
  color: var(--ink); background: white; border: 1px solid #cbd1dd; border-radius: 9px;
  font-size: .91rem; line-height: 1.35; font-weight: 640;
  transition: border-color .14s, box-shadow .14s, background .14s;
}
.choice:hover { border-color: #929dc8; background: #fafaff; }
.choice[aria-pressed=true], .choice[aria-checked=true] { background: var(--soft-blue); border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.choice-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; width: 30px; height: 30px; color: var(--blue); }
.choice-icon svg { width: 25px; height: 25px; }
.choice-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.choice-label small, .choice-label span + span { display: block; margin-top: 2px; color: var(--muted); font-size: .79rem; font-weight: 500; }
.choice-check { flex: 0 0 16px; width: 16px; height: 16px; margin-left: auto; display: inline-grid; place-items: center; border-radius: 100%; border: 1.5px solid #acb4c4; }
.choice-check svg { width: 12px; height: 12px; visibility: hidden; }
.choice[aria-pressed=true] .choice-check, .choice[aria-checked=true] .choice-check { border-color: var(--blue); background: var(--blue); color: #fff; }
.choice[aria-pressed=true] .choice-check svg, .choice[aria-checked=true] .choice-check svg { visibility: visible; }
.choice[aria-pressed=true] .choice-check:empty::after, .choice[aria-checked=true] .choice-check:empty::after {
  content: ""; width: 7px; height: 4px; border-left: 1.5px solid white; border-bottom: 1.5px solid white; transform: translateY(-1px) rotate(-45deg);
}
.modern-list, .review-list { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; }
.modern-row, .review-item, .addon-card {
  min-width: 0; padding: 13px 0; border-bottom: 1px solid var(--line);
}
.modern-row:first-child, .review-item:first-child { border-top: 1px solid var(--line); }
.modern-row label, .addon-card label { display: flex; align-items: center; min-height: 44px; gap: 10px; font-size: .92rem; font-weight: 675; }
.modern-row input[type=checkbox], .addon-card input[type=checkbox] { flex: none; width: 19px; height: 19px; margin: 0; }
.modern-detail { gap: 8px; margin-top: 9px; }
.modern-detail .form-input { max-width: 270px; }
.answer-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 5px 0; }
.review-item { font-size: .9rem; overflow-wrap: anywhere; }
.review-item h3 { font-size: 1rem; }
.review-item dd { margin: 0; }
.edit-link, .button-link, .save-action {
  display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 7px;
  padding: 6px 8px; color: var(--blue); border: 0; background: transparent; font-size: .85rem; font-weight: 720;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.chip { display: inline-block; padding: 4px 9px; border-radius: 20px; color: var(--blue-dark); background: var(--soft-blue); font-size: .75rem; font-weight: 650; }
.upload-zone { display: grid; gap: 6px; padding: 17px; border: 1px dashed #939fca; border-radius: 9px; background: #f8f9fd; }
.upload-zone input[type=file] { max-width: 100%; font-size: .875rem; }
input[type=file]:focus-visible + .upload-zone { outline: 3px solid var(--blue); outline-offset: 3px; }
.file-list { list-style: none; padding: 0; margin: 0; }
.file-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .84rem; }
.file-list li > span { min-width: 0; overflow-wrap: anywhere; }
input[type=file]::file-selector-button {
  min-height: 44px; margin-right: 9px; padding: 6px 12px; color: var(--blue); background: white;
  border: 1px solid #aeb7d3; border-radius: 6px; font: inherit; font-weight: 650; cursor: pointer;
}
.form-actions { display: flex; align-items: center; gap: 10px; padding: 17px var(--pad); border-top: 1px solid #e4e7ef; }
.form-actions .save-action { margin-left: auto; }
.primary, .back, .btn {
  min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 17px; border: 1px solid #c7cedc; border-radius: 8px; color: var(--blue-dark);
  background: #fff; font-weight: 740; font-size: .9rem; line-height: 1.3; text-decoration: none;
}
.primary { color: #fff; background: var(--blue); border-color: var(--blue); }
.primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.back:hover, .btn:not(.primary):hover { border-color: #98a3c4; background: #f7f8fe; }
.back:disabled, .primary:disabled { opacity: .52; }
.form-actions svg, .btn svg, .save-action svg { width: 17px; height: 17px; }
.form-actions .primary:last-child:not(.save-action + .primary) { margin-left: auto; }
.dialog {
  width: min(470px, calc(100vw - 28px)); max-height: calc(100dvh - 32px); margin: auto;
  padding: 26px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink);
  box-shadow: 0 20px 70px rgb(12 23 53 / 21%);
}
.dialog::backdrop { background: rgb(25 33 52 / 42%); }
.dialog-shell { position: relative; }
.dialog-shell h2 { padding-right: 30px; }
.dialog-close {
  position: absolute; z-index: 1; right: -12px; top: -13px; width: 44px; height: 44px;
  display: grid; place-items: center; color: var(--muted); background: transparent; border: none;
  border-radius: 8px; font-size: 1.5rem; line-height: 1;
}
.dialog-close:hover { color: var(--blue-dark); background: var(--soft-blue); }
.dialog form { display: grid; gap: 14px; min-width: 0; }
.dialog h2 { line-height: 1.22; font-size: 1.55rem; letter-spacing: -.035em; }
.dialog p { font-size: .91rem; color: var(--muted); }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; }
.toast { position: fixed; z-index: 5; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: min(92vw, 480px); width: max-content; padding: 10px 17px; border-radius: 9px; background: var(--ink); color: white; font-size: .9rem; box-shadow: 0 4px 18px rgb(28 37 56 / 16%); }
.toast:empty { display: none; }
.site-foot { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: baseline; gap: 5px 15px; margin: 0 0 21px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.site-foot a { color: inherit; }

@media (max-width: 960px) {
  .shell { width: min(calc(100% - 44px), 1112px); }
  .workspace { grid-template-columns: 224px minmax(0, 1fr); gap: 16px; }
  .choice { gap: 7px; padding-inline: 9px; }
  .group-item { font-size: .83rem; }
}
@media (max-width: 740px) {
  :root { --pad: clamp(15px, 4.6vw, 26px); }
  .shell { width: min(calc(100% - 2 * var(--pad)), 600px); }
  .header-inner { min-height: 56px; gap: 12px; }
  .brand img { width: 123px; max-width: 43vw; max-height: 34px; }
  .header-meta { gap: 5px; font-size: .7rem; }
  .header-meta svg { width: 14px; height: 14px; }
  .page-heading { padding: 23px 0 17px; }
  .page-eyebrow { font-size: .62rem; margin-bottom: 6px; }
  .page-heading h1 { font-size: clamp(1.85rem, 7.7vw, 2.4rem); letter-spacing: -.05em; }
  .page-heading p { margin-top: 7px; font-size: .84rem; line-height: 1.45; }
  .workspace { display: block; padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .site-foot { margin: -56px 0 calc(82px + env(safe-area-inset-bottom)); font-size: .7rem; }
  .side-panel { display: none; }
  .mini-progress { display: block; font-size: .77rem; color: var(--muted); }
  .form-panel { border-radius: 12px; }
  .progress-top { padding: 13px var(--pad); gap: 8px 12px; }
  .progress-top .nav-picker { min-height: 44px; }
  #step-count { font-size: .74rem; }
  .form-body { min-height: 0; padding: 20px var(--pad) 23px; }
  #step-kicker { font-size: .65rem; }
  #step-title { font-size: clamp(1.4rem, 5.3vw, 1.8rem); margin-top: 4px; }
  #step-intro { font-size: .86rem; margin-top: 7px; line-height: 1.45; }
  #fields { margin-top: 18px; }
  .choices { gap: 8px; }
  .choice { min-height: 51px; padding: 9px 10px; font-size: .85rem; }
  .choice-icon { width: 26px; height: 26px; flex-basis: 26px; }
  .choice-icon svg { width: 23px; height: 23px; }
  .form-actions {
    position: fixed; z-index: 3; left: 0; right: 0; bottom: 0;
    gap: 5px; padding: 9px max(var(--pad), calc((100vw - 600px) / 2)) calc(9px + env(safe-area-inset-bottom));
    background: white; box-shadow: 0 -3px 15px rgb(43 53 78 / 5%);
  }
  .form-actions .back, .form-actions .primary { padding-inline: 12px; }
  .form-actions .save-action { padding-inline: 5px; font-size: .76rem; }
  .form-actions .primary { margin-left: 3px; }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media (max-width: 500px) {
  .choices { grid-template-columns: minmax(0, 1fr); }
  .two-columns, .address-grid { gap: 11px; }
  .choice-check { width: 17px; height: 17px; flex-basis: 17px; }
  .choice { min-height: 47px; gap: 10px; }
  .answer-row { flex-wrap: wrap; gap: 2px 12px; }
}
@media (max-width: 360px) {
  :root { --pad: 12px; }
  .header-meta { font-size: .65rem; }
  .two-columns, .address-grid { grid-template-columns: minmax(0, 1fr); }
  .form-actions { flex-wrap: wrap; }
  .form-actions .save-action svg, .form-actions .back svg { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
