:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #223a38;
  background: #f4f5f1;
  font-synthesis: none;
  --teal: #0f766e;
  --teal-dark: #114e49;
  --ink: #223a38;
  --muted: #61726d;
  --line: #d9e2dc;
  --error: #a52d23;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  line-height: 1.5;
}

[hidden] { display: none !important; }

button, input, textarea, select { font: inherit; }
button, input, textarea, select, a { -webkit-tap-highlight-color: transparent; }
button, label, input { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }

:focus-visible {
  outline: 3px solid #159c90;
  outline-offset: 4px;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); }

.site-header {
  color: #fff;
  background: linear-gradient(110deg, #173d42, #0d655e 72%, #19776d);
  border-bottom: 3px solid #a9c3aa;
}

.header-inner {
  max-width: 1112px;
  min-height: 88px;
  margin-inline: auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  color: #fff;
  font-size: 30px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.07em;
  text-decoration: none;
}

.header-context {
  color: #e0eeea;
  font-size: 13px;
  letter-spacing: .035em;
}

.page-shell {
  width: min(1064px, calc(100% - 48px));
  margin: 38px auto 60px;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 26px;
}

.hero-copy { max-width: 690px; }

.hero h1 {
  margin-bottom: 10px;
  font-size: clamp(30px, 3.5vw, 42px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.045em;
}

.hero p {
  max-width: 610px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.hero-art {
  width: 116px;
  height: 88px;
  flex: 0 0 116px;
  color: #7c9e91;
}

.hero-art svg { width: 100%; height: 100%; }

.preview-notice {
  display: flex;
  align-items: baseline;
  gap: 13px;
  margin-bottom: 20px;
  padding: 12px 17px;
  border: 1px solid #dfd6b6;
  border-radius: 8px;
  background: #fbf8ed;
  color: #6f5a2c;
  font-size: 13px;
}

.preview-notice strong { flex-shrink: 0; font-weight: 650; }
.preview-notice p { margin: 0; }

.form-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #dce3dd;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 9px 25px -20px #143d33;
}

.steps-sidebar {
  padding: 38px 24px;
  border-right: 1px solid #e0e7e1;
  background: linear-gradient(150deg, #eff5ee, #f7f8f3);
}

.step-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.step-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  margin-bottom: 32px;
  color: #73817a;
  font-size: 14px;
}

.step-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 40px;
  width: 1px;
  height: 32px;
  background: #cedcd1;
}

.step-item:last-child { margin-bottom: 0; }

.step-number {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  border: 1px solid #cddbd2;
  border-radius: 50%;
  background: #fff;
  font-size: 13px;
  font-weight: 650;
}

.step-label { max-width: 126px; line-height: 1.35; }
.step-item[aria-current="step"] { color: var(--teal-dark); font-weight: 650; }

.step-item[aria-current="step"] .step-number {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
  box-shadow: 0 0 0 4px #e1ede2;
}

.step-item.is-complete .step-number,
.step-item.completed .step-number {
  border-color: #b7d4c7;
  color: var(--teal);
  background: #e3f0e8;
}

.form-content { min-width: 0; padding: 36px 40px 32px; }
.step-panel { min-width: 0; }

.step-panel h2 {
  margin-bottom: 9px;
  font-size: 24px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -.025em;
  scroll-margin-top: 28px;
}

.step-panel h2:focus { outline: none; }
.step-description { margin-bottom: 27px; color: var(--muted); font-size: 14px; }

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend, .section-label {
  display: block;
  width: 100%;
  margin-bottom: 13px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.category-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 27px;
}

.category-card {
  position: relative;
  display: flex;
  min-height: 132px;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 17px 18px;
  border: 1px solid #d4dfd7;
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}

.category-card:hover { border-color: #76a595; background: #fafcf9; }
.category-card:has(input:checked) { border-color: var(--teal); background: #f0f7f1; box-shadow: inset 0 0 0 1px var(--teal); }
.category-card:has(input:focus-visible) { outline: 3px solid #159c90; outline-offset: 4px; }

.category-card input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.category-icon { width: 34px; height: 34px; color: var(--teal); }
.category-copy { display: grid; gap: 3px; }
.category-copy strong { font-size: 17px; font-weight: 650; }
.category-copy small { font-size: 12px; color: var(--muted); line-height: 1.45; }

.radio-dot {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 18px;
  height: 18px;
  border: 1px solid #b8c9be;
  border-radius: 50%;
  background: #fff;
}

input:checked ~ .radio-dot { border: 5px solid var(--teal); }

.fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
  row-gap: 21px;
}

.field { min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field > label, .upload-label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 650; }
.field > label span { font-weight: 400; color: var(--muted); }

input[type="text"], input[type="email"], input[type="number"], input[type="tel"], textarea, select {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #cbd8cf;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
  transition: border-color .15s, box-shadow .15s;
}

input::placeholder, textarea::placeholder { color: #7f8a85; opacity: 1; }
textarea { min-height: 112px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--teal); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); }
.field-hint, .upload-description, .upload-help { display: block; margin: 7px 0 0; font-size: 12px; line-height: 1.55; color: var(--muted); }
.field-error { display: block; margin-top: 7px; color: var(--error); font-size: 13px; }

.photo-fields { margin-top: 28px; padding-top: 25px; border-top: 1px solid #e7ece6; }
.photo-fields > legend { float: left; margin-bottom: 5px; }
.photo-fields > legend + * { clear: both; }
.photo-fields .upload-help { margin-top: 0; margin-bottom: 18px; }
.upload-field { min-width: 0; margin-top: 20px; }
.upload-field:first-child { margin-top: 0; }
.upload-description { margin-top: -2px; margin-bottom: 10px; }

.file-control { position: relative; border-radius: 7px; }

.file-control input[type="file"] {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 65px;
  padding: 14px;
  border: 1px dashed #a8beb0;
  border-radius: 7px;
  background: #fafbf8;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.upload-trigger svg { width: 22px; height: 22px; flex: 0 0 22px; }
.file-control:hover .upload-trigger { background: #f1f6ef; border-color: var(--teal); }
.file-control:focus-within { outline: 3px solid #159c90; outline-offset: 3px; }
.file-control:has(input[aria-invalid="true"]) .upload-trigger { border-color: var(--error); }
.upload-preview { margin-top: 12px; overflow-wrap: anywhere; color: var(--muted); font-size: 12px; }
.upload-preview img, .upload-preview video { display: block; width: 100%; max-width: 260px; max-height: 180px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 7px; object-fit: contain; background: #f4f5f1; }
.upload-preview p { margin-bottom: 6px; }

.button-remove {
  min-height: 36px;
  margin-top: 5px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #8a3931;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid #e7ece6;
}

.button-primary, .button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 21px;
  border: 1px solid var(--teal);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  transition: background .15s, border-color .15s;
}

.button-primary { color: #fff; background: var(--teal); }
.button-primary:hover { border-color: var(--teal-dark); background: var(--teal-dark); }
.button-secondary { color: var(--teal-dark); border-color: #cfdcd2; background: #fff; }
.button-secondary:hover { border-color: #8eafa0; background: #f4f8f2; }
.button-primary svg, .button-secondary svg { width: 17px; height: 17px; }
.button-primary:disabled { color: #75847c; border-color: #dbe3dd; background: #e9eeea; }
.submit-note { margin: 13px 0 0; font-size: 13px; color: var(--muted); }

.review-summary { margin-top: 25px; }
.review-summary section { margin-bottom: 27px; }
.review-summary h3 { margin-bottom: 14px; font-size: 16px; font-weight: 650; }
.review-summary dl { margin: 0; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 0; }
.review-row { display: contents; }
.review-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.review-summary dt, .review-summary dd { min-width: 0; margin: 0; padding: 11px 0; border-bottom: 1px solid #e7ece6; font-size: 14px; overflow-wrap: anywhere; }
.review-summary dt { padding-right: 20px; color: var(--muted); }
.review-summary dd { color: var(--ink); white-space: pre-wrap; }
.review-summary img, .review-summary video { display: block; width: 100%; max-width: 260px; max-height: 190px; border-radius: 7px; object-fit: contain; background: #f4f5f1; border: 1px solid var(--line); }
.review-summary figure { min-width: 0; margin: 0 0 18px; }
.review-summary figcaption { margin-top: 7px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.review-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.review-actions .button-secondary { min-height: 40px; padding: 8px 13px; font-size: 12px; }

@media (max-width: 780px) {
  .header-inner { min-height: 74px; }
  .page-shell { margin-top: 28px; }
  .form-layout { grid-template-columns: 1fr; }
  .steps-sidebar { padding: 21px 26px; border-right: 0; border-bottom: 1px solid #dfe8df; }
  .step-list { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
  .step-item { min-height: auto; margin: 0; gap: 9px; font-size: 12px; flex: 1; }
  .step-item:not(:last-child)::after { display: none; }
  .step-number { width: 30px; height: 30px; flex-basis: 30px; }
  .step-label { padding-top: 1px; }
  .form-content { padding: 28px 30px; }
  .hero-art { width: 88px; height: 80px; flex-basis: 88px; }
}

@media (max-width: 520px) {
  .header-inner { padding-inline: 20px; min-height: 68px; }
  .brand { font-size: 26px; }
  .header-context { font-size: 11px; letter-spacing: 0; }
  .page-shell { width: calc(100% - 32px); margin-top: 26px; margin-bottom: 30px; }
  .hero { margin-bottom: 21px; }
  .hero h1 { font-size: 31px; }
  .hero p { font-size: 14px; }
  .hero-art { display: none; }
  .preview-notice { display: block; padding: 11px 13px; font-size: 12px; }
  .preview-notice strong { display: block; margin-bottom: 3px; }
  .form-layout { border-radius: 11px; }
  .steps-sidebar { padding: 18px 16px; }
  .step-list { gap: 9px; }
  .step-item { flex-direction: column; align-items: flex-start; gap: 8px; font-size: 11px; }
  .step-label { max-width: 90px; }
  .step-number { width: 27px; height: 27px; flex-basis: 27px; font-size: 12px; }
  .form-content { padding: 25px 20px; }
  .step-panel h2 { font-size: 22px; }
  .step-description { font-size: 13px; margin-bottom: 22px; }
  .category-options { gap: 10px; margin-bottom: 23px; }
  .category-card { min-height: 130px; padding: 14px 12px; }
  .category-icon { width: 30px; height: 30px; }
  .category-copy strong { font-size: 16px; }
  .category-copy small { font-size: 11px; }
  .radio-dot { top: 14px; right: 12px; width: 16px; height: 16px; }
  input:checked ~ .radio-dot { border-width: 4px; }
  .fields-grid { grid-template-columns: 1fr; gap: 20px; }
  .form-actions { margin-top: 25px; padding-top: 20px; gap: 9px; }
  .form-actions .button-primary { flex: 1; }
  .button-primary, .button-secondary { padding-inline: 16px; font-size: 13px; }
  .review-summary dl { grid-template-columns: 1fr; }
  .review-summary dt { border-bottom: 0; padding: 12px 0 2px; font-size: 12px; }
  .review-summary dd { padding-top: 2px; }
}

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