:root {
  --green: #3aaa35;
  --green-dark: #238f25;
  --orange: #e5531c;
  --navy: #051a2d;
  --charcoal: #3f4243;
  --ink: #3f4243;
  --muted: #697071;
  --line: #dfe4e4;
  --paper: #ffffff;
  --mist: #f5f8f5;
  --shadow: 0 24px 70px rgba(5, 26, 45, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Lato, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 100% 0%, rgba(63, 66, 67, 0.11) 0 3px, transparent 4px 100%),
    linear-gradient(90deg, rgba(58, 170, 53, 0.08), transparent 38%),
    #f7f8f6;
  background-size: 28px 28px, auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.page-shell {
  width: min(100%, 1040px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  align-items: center;
}

.form-panel {
  background: var(--paper);
  border: 1px solid rgba(63, 66, 67, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.brand-bar {
  min-height: 92px;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.brand-logo {
  display: block;
  width: clamp(176px, 28vw, 280px);
  height: auto;
}

.brand-kicker {
  padding: 8px 12px;
  border-left: 4px solid var(--green);
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.progress-wrap {
  padding: 22px 28px 0;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.progress-track {
  height: 8px;
  margin-top: 12px;
  border-radius: 999px;
  background: #ecefee;
  overflow: hidden;
}

.progress-fill {
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--orange));
  transition: width 180ms ease;
}

.question-card {
  padding: 48px 28px 30px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 680px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
}

.question-mount {
  margin-top: 32px;
}

.field-label {
  display: block;
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 23px;
  font-weight: 900;
  line-height: 1.25;
}

.field-help {
  margin: -4px 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.field-input,
.field-textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  border: 1px solid #c8d0d0;
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
}

.field-input:focus,
.field-textarea:focus {
  outline: 3px solid rgba(58, 170, 53, 0.22);
  border-color: var(--green);
}

.field-textarea {
  min-height: 104px;
  resize: vertical;
}

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

.field-stack {
  display: grid;
  gap: 14px;
}

.choice-list {
  display: grid;
  gap: 12px;
}

.choice {
  min-height: 64px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #cfd6d6;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.choice:hover {
  border-color: var(--green);
  box-shadow: 0 10px 28px rgba(58, 170, 53, 0.12);
  transform: translateY(-1px);
}

.choice:has(input:checked) {
  border-color: var(--green);
  background: #f3fbf2;
  box-shadow: inset 4px 0 0 var(--green);
}

.choice input {
  width: 20px;
  height: 20px;
  accent-color: var(--green);
  flex: 0 0 auto;
}

.choice span {
  font-weight: 700;
}

.inline-choice {
  min-height: 54px;
  width: fit-content;
  max-width: 100%;
}

.summary-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.summary-list li {
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7faf7;
}

.summary-list b {
  flex: 0 0 42%;
}

.error-message {
  min-height: 24px;
  margin: 22px 0 0;
  color: #b42318;
  font-weight: 700;
}

.actions {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.secondary-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button {
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 900;
  cursor: pointer;
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.button.primary {
  color: #fff;
  background: var(--green);
}

.button.primary:hover:not(:disabled) {
  background: var(--green-dark);
}

.button.ghost {
  color: var(--ink);
  background: #fff;
  border-color: #bfc8c8;
}

.button.ghost:hover:not(:disabled) {
  border-color: var(--charcoal);
}

.button.text {
  min-height: 40px;
  padding: 0 8px;
  color: var(--muted);
  background: transparent;
}

.button.text:hover:not(:disabled) {
  color: var(--charcoal);
}

.success-state {
  padding: 16px;
  border-left: 4px solid var(--green);
  background: #f1faf0;
}

@media (max-width: 700px) {
  .page-shell {
    padding: 16px;
    align-items: stretch;
  }

  .form-panel {
    min-height: calc(100vh - 32px);
  }

  .brand-bar {
    min-height: 78px;
    padding: 18px;
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-kicker {
    font-size: 12px;
  }

  .progress-wrap,
  .question-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .summary-list li {
    display: block;
  }

  .summary-list b {
    display: block;
    margin-bottom: 4px;
  }

  .actions {
    flex-wrap: wrap;
  }

  .secondary-actions {
    flex: 1 1 auto;
  }
}
