:root {
  color-scheme: light;
  --ink: #172522;
  --muted: #52645f;
  --brand: #123d36;
  --brand-strong: #092b26;
  --accent: #d99b2b;
  --accent-soft: #fff5dd;
  --surface: #ffffff;
  --surface-soft: #f3f6f3;
  --border: #bdcbc6;
  --border-strong: #758b84;
  --error: #a52b25;
  --error-soft: #fff2f0;
  --success: #236b43;
  --success-soft: #edf8f0;
  --focus: #a942df;
  --shadow: 0 12px 34px rgb(15 45 38 / 10%);
  --radius-small: 6px;
  --radius: 12px;
  --space-attached: 0.35rem;
  --space-associated: 0.65rem;
  --space-grouped: 1.25rem;
  --space-separated: 2rem;
  --space-sectional: clamp(2.5rem, 6vw, 4.5rem);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface-soft);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}

button,
input {
  font: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: -10rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-small);
  background: var(--surface);
  color: var(--brand-strong);
  font-weight: 700;
}

.skip-link:focus {
  top: 0.75rem;
}

.site-header {
  border-bottom: 5px solid var(--accent);
  background: var(--brand);
  color: white;
}

.header-inner,
.footer-inner,
.page-shell {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.header-inner {
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-grouped);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: white;
  text-decoration: none;
}

.brand-mark,
.footer-mark {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  flex: 0 0 auto;
  border: 2px solid var(--accent);
  border-radius: 50% 50% 46% 54%;
  color: var(--accent-soft);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.brand strong,
.brand span span {
  display: block;
}

.brand strong {
  font-size: 1.15rem;
  line-height: 1.15;
}

.brand span span {
  color: #d4e3df;
  font-size: 0.78rem;
}

.service-label {
  color: #e8f1ee;
  font-weight: 700;
}

main {
  min-height: calc(100vh - 15rem);
}

.page-shell {
  padding-block: clamp(1.5rem, 4vw, 3rem) var(--space-sectional);
}

.progress {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.progress p {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.progress-track {
  height: 0.5rem;
  overflow: hidden;
  border-radius: 99px;
  background: #dbe3e0;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 180ms ease-out;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(17rem, 0.82fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}

.content-main {
  min-width: 0;
  max-width: 47rem;
}

.eyebrow {
  margin: 0 0 var(--space-associated);
  color: var(--success);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
ul,
dl {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--brand-strong);
  line-height: 1.16;
}

h1 {
  max-width: 17ch;
  margin-bottom: var(--space-grouped);
  font-size: clamp(2rem, 5vw, 3.35rem);
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: var(--space-associated);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

h3 {
  margin-bottom: var(--space-associated);
  font-size: 1.08rem;
}

.lede {
  max-width: 62ch;
  margin-bottom: var(--space-separated);
  color: #334a44;
  font-size: clamp(1.08rem, 2vw, 1.25rem);
}

.stack > * {
  margin-bottom: 0;
}

.stack > * + * {
  margin-top: var(--space-grouped);
}

.stack-small > * + * {
  margin-top: var(--space-associated);
}

.info-panel,
.side-panel,
.review-section,
.success-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.info-panel {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-left: 5px solid var(--accent);
}

.info-panel ul,
.side-panel ul {
  margin-bottom: 0;
  padding-left: 1.3rem;
}

.info-panel li + li,
.side-panel li + li {
  margin-top: 0.55rem;
}

.side-panel {
  padding: 1.4rem;
  background: #e9f1ee;
}

.side-panel p:last-child {
  margin-bottom: 0;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: var(--space-separated);
}

.button {
  min-height: 3rem;
  padding: 0.68rem 1.15rem;
  border: 2px solid transparent;
  border-radius: var(--radius-small);
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  border-color: var(--brand);
  background: var(--brand);
  color: white;
}

.button-primary:hover {
  border-color: var(--brand-strong);
  background: var(--brand-strong);
}

.button-secondary {
  border-color: var(--brand);
  background: transparent;
  color: var(--brand);
}

.button-secondary:hover {
  background: #e9f1ee;
}

.button-danger {
  border-color: var(--error);
  background: var(--error);
  color: white;
}

.button-danger:hover {
  background: #7f1f1b;
}

.button:disabled {
  border-color: #9ba9a5;
  background: #dfe5e3;
  color: #5d6a66;
  cursor: not-allowed;
}

.text-button {
  padding: 0.25rem 0;
  border: 0;
  border-bottom: 2px solid currentColor;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
  font-weight: 800;
}

.form-stack {
  display: grid;
  gap: var(--space-grouped);
  margin-top: var(--space-separated);
}

.field {
  display: grid;
  gap: var(--space-associated);
}

label,
legend {
  color: var(--ink);
  font-weight: 800;
}

.required-note,
.hint {
  color: var(--muted);
  font-size: 0.9rem;
}

.required-note {
  margin-bottom: var(--space-grouped);
}

.required-mark {
  color: var(--error);
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  min-height: 3rem;
  padding: 0.72rem 0.8rem;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-small);
  background: white;
  color: var(--ink);
}

input:hover {
  border-color: var(--brand);
}

input[aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 1px var(--error);
}

.field-error {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  margin: 0;
  color: var(--error);
  font-size: 0.92rem;
  font-weight: 700;
}

.field-error::before {
  content: "!";
  display: inline-grid;
  width: 1.15rem;
  height: 1.15rem;
  place-items: center;
  flex: 0 0 auto;
  margin-top: 0.12rem;
  border-radius: 50%;
  background: var(--error);
  color: white;
  font-size: 0.75rem;
}

.form-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-grouped);
}

.error-summary,
.load-error {
  padding: 1rem 1.1rem;
  border: 2px solid var(--error);
  border-radius: var(--radius-small);
  background: var(--error-soft);
  color: var(--ink);
}

.error-summary h2,
.load-error h3 {
  margin-bottom: var(--space-associated);
  color: var(--error);
}

.error-summary ul {
  margin: 0;
  padding-left: 1.25rem;
}

.error-summary a {
  color: var(--error);
  font-weight: 700;
}

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

fieldset + fieldset {
  margin-top: var(--space-separated);
}

legend {
  width: 100%;
  margin-bottom: var(--space-associated);
  padding: 0;
  color: var(--brand-strong);
  font-size: 1.25rem;
}

.fieldset-hint {
  margin-bottom: var(--space-grouped);
  color: var(--muted);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.choice {
  position: relative;
  display: flex;
  min-height: 8.25rem;
  cursor: pointer;
}

.choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice-content {
  display: flex;
  width: 100%;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.choice-content::before {
  content: "";
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  margin-top: 0.15rem;
  border: 2px solid var(--border-strong);
  border-radius: 50%;
  background: white;
  box-shadow: inset 0 0 0 3px white;
}

.choice-title,
.choice-detail {
  display: block;
}

.choice-title {
  color: var(--brand-strong);
  font-weight: 800;
}

.choice-detail {
  margin-top: var(--space-attached);
  color: var(--muted);
  font-size: 0.9rem;
}

.choice:hover .choice-content {
  border-color: var(--brand);
}

.choice input:checked + .choice-content {
  border-color: var(--brand);
  background: #edf5f2;
  box-shadow: inset 0 0 0 1px var(--brand);
}

.choice input:checked + .choice-content::before {
  border-color: var(--brand);
  background: var(--brand);
}

.choice input:focus-visible + .choice-content {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.group-error {
  margin-top: var(--space-associated);
}

.window-panel {
  min-height: 8.5rem;
}

.loading-state {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  padding: 1rem 0;
  color: var(--muted);
}

.spinner {
  width: 1.4rem;
  height: 1.4rem;
  flex: 0 0 auto;
  border: 3px solid #cbd7d3;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.load-error p {
  margin-bottom: var(--space-associated);
}

.load-error .button {
  margin-top: 0.25rem;
}

.review-list {
  display: grid;
  gap: var(--space-grouped);
  margin: 0;
}

.review-section {
  padding: clamp(1.15rem, 3vw, 1.6rem);
}

.review-section-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: var(--space-grouped);
}

.review-section-header h2 {
  margin: 0;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-grouped) var(--space-separated);
  margin: 0;
}

.review-grid div {
  min-width: 0;
}

.review-grid dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.review-grid dd {
  overflow-wrap: anywhere;
  margin: var(--space-attached) 0 0;
  color: var(--ink);
  font-weight: 700;
}

.success-card {
  overflow: hidden;
  box-shadow: var(--shadow);
}

.success-top {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: clamp(1.35rem, 4vw, 2rem);
  background: var(--success-soft);
}

.success-symbol {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--success);
  color: white;
  font-size: 1.5rem;
  font-weight: 900;
}

.success-top h1 {
  margin-bottom: var(--space-associated);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.success-top p {
  margin-bottom: 0;
}

.reference-panel {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem clamp(1.35rem, 4vw, 2rem);
  border-block: 1px solid var(--border);
}

.reference-panel span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

.reference-panel strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--brand-strong);
  font-family: "Courier New", monospace;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  letter-spacing: 0.035em;
}

.saved-label {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  color: var(--success);
  font-size: 0.88rem;
  font-weight: 800;
}

.confirmation-details {
  padding: clamp(1.35rem, 4vw, 2rem);
}

.confirmation-details h2 {
  font-size: 1.3rem;
}

.confirmation-actions {
  margin-top: var(--space-separated);
  padding-top: var(--space-grouped);
  border-top: 1px solid var(--border);
}

footer {
  padding-block: 2rem;
  background: var(--brand-strong);
  color: #d8e6e2;
}

.footer-inner {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-inner p {
  margin: 0;
  font-size: 0.88rem;
}

dialog {
  width: min(calc(100% - 2rem), 32rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  color: var(--ink);
  box-shadow: 0 22px 70px rgb(4 24 20 / 30%);
}

dialog::backdrop {
  background: rgb(4 24 20 / 70%);
  backdrop-filter: blur(2px);
}

.dialog-body {
  padding: clamp(1.35rem, 4vw, 2rem);
}

.dialog-symbol {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  margin-bottom: var(--space-grouped);
  border-radius: 50%;
  background: var(--error-soft);
  color: var(--error);
  font-size: 1.35rem;
  font-weight: 900;
}

.dialog-actions {
  justify-content: flex-end;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 4.75rem;
  }

  .service-label {
    display: none;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: var(--space-separated);
  }

  .form-row,
  .review-grid {
    grid-template-columns: 1fr;
  }

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

  .choice {
    min-height: 5.8rem;
  }

  .reference-panel,
  .review-section-header {
    align-items: flex-start;
  }

  .reference-panel {
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .header-inner,
  .footer-inner,
  .page-shell {
    width: min(100% - 1.25rem, 72rem);
  }

  .button-row:not(.dialog-actions) {
    align-items: stretch;
    flex-direction: column;
  }

  .button-row:not(.dialog-actions) .button {
    width: 100%;
  }

  .dialog-actions {
    flex-direction: column;
  }

  .dialog-actions .button {
    width: 100%;
  }

  .success-top {
    display: block;
  }

  .success-symbol {
    margin-bottom: var(--space-grouped);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
