:root {
  color-scheme: light;
  --ink: #1c3d3c;
  --muted: #6b7280;
  --green: #1c3d3c;
  --green-dark: #0c1a1a;
  --gold: #a8c030;
  --gold-dark: #8a9f28;
  --line: #e5e7eb;
  --surface: #ffffff;
  --wash: #f7f9f4;
  --pale-green: #f5f9e8;
  --warning-bg: #fefce8;
  --warning-border: #d4e88b;
  font-family: Montserrat, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  line-height: 1.55;
}

.form-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid #f3f4f6;
  box-shadow: 0 1px 3px rgb(17 24 39 / 7%);
}

.form-header-inner {
  width: min(100% - 32px, 672px);
  margin: 0 auto;
  padding: 12px 0;
}

.form-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  margin-bottom: 12px;
}

.brand { display: inline-flex; align-items: center; }
.brand-logo { display: block; width: auto; height: 32px; }

.header-note {
  color: #6b7280;
  font-size: 11px;
  font-weight: 600;
}

.current-step-label {
  margin: 6px 0 0;
  color: #6b7280;
  text-align: center;
  font-size: 12px;
}

.current-step-label strong {
  color: var(--ink);
  font-weight: 700;
}

.form-main {
  width: min(100% - 32px, 672px);
  margin: 0 auto;
  padding: 20px 0 112px;
}

.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;
}

.notice {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--warning-border);
  border-radius: 12px;
  background: var(--warning-bg);
  color: #515e17;
  font-size: 14px;
}

.progress-track {
  height: 6px;
  margin-bottom: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #f3f4f6;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
  transition: width 500ms ease-out;
}

.step-indicators {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
}

.step-indicator {
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #f3f4f6;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 700;
  transition: all 200ms ease;
}

.step-indicator:not(:disabled) { cursor: pointer; }
.step-indicator.is-current {
  background: var(--ink);
  color: white;
  box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px white;
}
.step-indicator.is-complete { background: var(--gold); color: white; }
.step-indicator:disabled:not(.is-current):not(.is-complete) { cursor: default; }
.step-indicator:hover:not(:disabled) { background: #eaf3c6; color: var(--ink); }
.step-indicator.is-current:hover { background: var(--ink); color: white; }

.form-section {
  margin-top: 0;
  padding: 24px;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 1px 3px rgb(17 24 39 / 6%);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.step {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eaf3c6;
  color: #6d7e1f;
  font-size: 11px;
  font-weight: 800;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.section-heading p, .section-copy {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px 20px;
}

.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
}

.field.full { grid-column: 1 / -1; }

.field > label, .field legend {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.field legend { margin-bottom: 2px; padding: 0; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input:not([type]),
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

input::placeholder, textarea::placeholder { color: #9ca3af; }

input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgb(168 192 48 / 20%);
}

select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 200ms ease;
}

.choice:hover { border-color: #d4e88b; background: #f5f9e8; }
.choice input { accent-color: var(--gold-dark); }

.hint {
  color: var(--muted);
  font-size: 12px;
}

.conditional {
  display: grid;
  gap: 8px;
  max-width: 380px;
  margin-top: 8px;
}

.conditional.full {
  grid-column: 1 / -1;
  max-width: none;
}
.conditional[hidden] { display: none; }

.subheading {
  margin: 30px 0 0;
  font-size: 16px;
  letter-spacing: -.015em;
}

.section-copy { margin: 5px 0 20px; }

.document-list {
  display: grid;
  gap: 10px;
}

.document-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 2px dashed #e5e7eb;
  border-radius: 12px;
  background: #fff;
  transition: border-color 200ms ease, background 200ms ease;
}

.document-item:hover { border-color: var(--gold); background: #f5f9e8; }
.document-item span { display: grid; gap: 3px; }
.document-item strong { font-size: 14px; }
.document-item small { color: var(--muted); font-size: 12px; }
.document-item input { max-width: 245px; font-size: 12px; }
.document-item input[type="file"] { color: #6b7280; }

.file-status {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.consent-section { padding-bottom: 30px; }

.consent-choice {
  align-items: flex-start;
  padding: 0;
  border: 0;
  font-size: 13px;
  line-height: 1.5;
}

.consent-choice input {
  flex: none;
  margin: 3px 0 0;
  accent-color: var(--gold-dark);
}

.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 24px;
  border: 0;
  border-radius: 30px;
  background: #16a34a;
  color: white;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 200ms ease;
}

.submit-button:hover { background: #15803d; }

.submit-note {
  margin: 11px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.form-status {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--warning-bg);
  color: #594512;
  font-size: 14px;
}

.form-status[hidden] { display: none; }

.wizard-navigation {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  background: var(--surface);
  border-top: 1px solid #f3f4f6;
  box-shadow: 0 -4px 12px rgb(17 24 39 / 8%);
}

.wizard-navigation-inner {
  display: flex;
  width: min(100% - 32px, 672px);
  min-height: 66px;
  align-items: center;
  gap: 12px;
  margin: 0 auto;
  padding: 10px 0;
}

.wizard-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 0;
  border-radius: 30px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 200ms ease;
}

.button-icon {
  width: 16px;
  height: 16px;
  flex: none;
}

.wizard-button-primary {
  background: var(--gold);
  color: var(--ink);
}

.wizard-button-primary:hover { background: var(--gold-dark); color: #fff; }
.wizard-button[hidden], .submit-button[hidden] { display: none; }

.wizard-button-secondary {
  background: transparent;
  color: #4b5563;
}

.wizard-button-secondary:hover { background: #f3f4f6; color: var(--ink); }

.navigation-spacer { flex: 1; }

.wizard-submit-button {
  min-width: 0;
}

.wizard-status {
  margin: 12px 0;
  padding: 10px 14px;
  border: 1px solid var(--warning-border);
  border-radius: 12px;
  background: var(--warning-bg);
  color: #515e17;
  font-size: 13px;
}

.wizard-status[hidden] { display: none; }

@media (max-width: 620px) {
  .form-header-inner { width: min(100% - 24px, 672px); }
  .form-main { width: min(100% - 24px, 672px); padding: 16px 0 100px; }
  .header-note { font-size: 10px; text-align: right; }
  .form-section { padding: 21px 17px; }
  .fields { grid-template-columns: 1fr; gap: 17px; }
  .field.full, .conditional.full { grid-column: auto; }
  .wizard-navigation-inner { width: min(100% - 24px, 672px); }
  .wizard-button, .wizard-submit-button { min-width: 0; }
  .document-item { align-items: flex-start; flex-direction: column; gap: 10px; }
  .document-item input { max-width: 100%; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 300ms ease-out; }

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.slide-in-right { animation: slideInRight 300ms ease-out; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
