:root {
  --ink: #25332f;
  --ink-soft: #5b6863;
  --forest: #3e5d52;
  --forest-dark: #2d463e;
  --sage: #aebeb4;
  --sage-light: #dfe7e1;
  --cream: #f7f3eb;
  --paper: #fcfaf5;
  --clay: #c48669;
  --white: #fff;
  --line: rgba(37, 51, 47, 0.14);
  --error: #9c3f35;
  --serif: "Newsreader", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --shadow: 0 24px 70px rgba(46, 64, 57, 0.13);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 7% 3%, rgba(255, 255, 255, 0.95), transparent 27rem),
    linear-gradient(145deg, var(--cream) 0 64%, var(--sage-light) 64% 100%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

body::after {
  position: fixed;
  z-index: -1;
  right: -15rem;
  bottom: -21rem;
  width: 46rem;
  height: 46rem;
  border: 1px solid rgba(62, 93, 82, 0.11);
  border-radius: 50%;
  content: "";
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.container {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  height: 88px;
  border-bottom: 1px solid rgba(37, 51, 47, 0.08);
  background: rgba(252, 250, 245, 0.78);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1;
}

.logo-mark {
  position: relative;
  width: 35px;
  height: 35px;
  border: 1px solid var(--forest);
  border-radius: 50% 50% 46% 54%;
}

.logo-mark::after {
  position: absolute;
  top: 7px;
  left: 13px;
  width: 12px;
  height: 18px;
  border: solid var(--clay);
  border-width: 0 0 1px 1px;
  border-radius: 0 0 0 100%;
  content: "";
  transform: rotate(-20deg);
}

.secure-note {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
}

.secure-note svg { color: var(--forest); }

main { padding: 58px 0 86px; }

.intro {
  display: grid;
  align-items: end;
  margin-bottom: 36px;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 60px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
  color: var(--clay);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 1px;
  background: currentColor;
  content: "";
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.85rem, 5.6vw, 5.15rem);
  letter-spacing: -0.045em;
}

.intro-copy {
  padding-bottom: 7px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.account-shell {
  display: grid;
  align-items: start;
  grid-template-columns: 255px minmax(0, 1fr);
  gap: 24px;
}

.steps,
.form-card {
  border: 1px solid rgba(37, 51, 47, 0.08);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.steps {
  position: sticky;
  top: 24px;
  padding: 28px;
}

.steps-label {
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.step-list { list-style: none; }

.step-item {
  position: relative;
  display: grid;
  min-height: 69px;
  grid-template-columns: 32px 1fr;
  gap: 12px;
}

.step-item:not(:last-child)::after {
  position: absolute;
  top: 34px;
  bottom: 2px;
  left: 15px;
  width: 1px;
  background: var(--line);
  content: "";
}

.step-number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 0.75rem;
  place-items: center;
}

.step-name {
  padding-top: 5px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 500;
}

.step-item.is-active .step-number {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--white);
}

.step-item.is-active .step-name { color: var(--ink); font-weight: 600; }
.step-item.is-complete .step-number { border-color: var(--sage); background: var(--sage-light); color: var(--forest-dark); }

.aside-note {
  margin-top: 12px;
  padding-top: 21px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.73rem;
}

.aside-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 0.78rem;
}

.form-card {
  min-height: 610px;
  padding: clamp(30px, 5vw, 62px);
}

.panel-heading { margin-bottom: 34px; }
.panel-kicker {
  margin-bottom: 7px;
  color: var(--clay);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.panel-heading h2 { font-size: clamp(2.1rem, 4vw, 3.35rem); letter-spacing: -0.035em; }
.panel-heading p:last-child { max-width: 620px; margin-top: 11px; color: var(--ink-soft); font-size: 0.9rem; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 21px 18px;
}

.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field.narrow { grid-column: span 1; }

label, .group-label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.77rem;
  font-weight: 600;
}

.optional { color: var(--ink-soft); font-weight: 400; }

input, select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  background: var(--white);
  color: var(--ink);
  padding: 0 15px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input:focus, select:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(62, 93, 82, 0.11);
}

input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--error); }
input::placeholder { color: #919a96; }

.password-wrap { position: relative; }
.password-wrap input { padding-right: 64px; }
.password-toggle {
  position: absolute;
  top: 0;
  right: 3px;
  min-height: 50px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--forest);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 600;
}

.field-hint { margin-top: 6px; color: var(--ink-soft); font-size: 0.7rem; }
.field-error { min-height: 1.1em; margin-top: 4px; color: var(--error); font-size: 0.7rem; }

.section-divider {
  grid-column: 1 / -1;
  margin-top: 10px;
  padding-top: 27px;
  border-top: 1px solid var(--line);
}
.section-divider h3 { margin-bottom: 4px; font-size: 1.55rem; }
.section-divider p { color: var(--ink-soft); font-size: 0.8rem; }

.payment-grid { display: grid; gap: 12px; }
.choice { position: relative; }
.choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.choice-card {
  position: relative;
  display: grid;
  min-height: 88px;
  align-items: center;
  padding: 18px 54px 18px 20px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  grid-template-columns: 43px 1fr;
  gap: 14px;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.choice-card:hover { border-color: var(--sage); transform: translateY(-1px); }
.choice input:checked + .choice-card { border-color: var(--forest); background: rgba(223, 231, 225, 0.52); }
.choice input:focus-visible + .choice-card { outline: 3px solid rgba(196, 134, 105, 0.35); outline-offset: 3px; }

.choice-card::after {
  position: absolute;
  top: 50%;
  right: 20px;
  display: grid;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: transparent;
  content: "✓";
  font-size: 0.7rem;
  place-items: center;
  transform: translateY(-50%);
}

.choice input:checked + .choice-card::after { border-color: var(--forest); background: var(--forest); color: var(--white); }
.choice-icon { display: grid; width: 43px; height: 43px; border-radius: 50%; background: var(--cream); color: var(--forest); place-items: center; }
.choice-title { display: block; margin-bottom: 2px; font-family: var(--serif); font-size: 1.2rem; line-height: 1.2; }
.choice-copy { display: block; color: var(--ink-soft); font-size: 0.72rem; }

.payment-notice {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  padding: 15px 17px;
  border-left: 2px solid var(--clay);
  background: var(--cream);
  color: var(--ink-soft);
  font-size: 0.75rem;
}
.payment-notice strong { color: var(--ink); }

.consents { display: grid; gap: 13px; margin-top: 27px; }
.checkbox-row { position: relative; display: grid; grid-template-columns: 21px 1fr; gap: 11px; cursor: pointer; }
.checkbox-row input { width: 19px; min-height: 19px; margin-top: 2px; accent-color: var(--forest); }
.checkbox-row span { color: var(--ink-soft); font-size: 0.76rem; }
.checkbox-row strong { color: var(--ink); }

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 38px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 100px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--forest); color: var(--white); }
.btn-primary:hover { background: var(--forest-dark); }
.btn-secondary { border-color: var(--line); background: transparent; color: var(--forest-dark); }
.btn-secondary:hover { border-color: var(--forest); }
.btn[disabled] { cursor: wait; opacity: 0.65; transform: none; }
.step-context { color: var(--ink-soft); font-size: 0.72rem; }

.form-status {
  margin-top: 16px;
  padding: 12px 15px;
  border: 1px solid rgba(156, 63, 53, 0.25);
  background: rgba(156, 63, 53, 0.06);
  color: var(--error);
  font-size: 0.77rem;
}

.success {
  display: grid;
  min-height: 480px;
  align-content: center;
  justify-items: start;
  max-width: 650px;
}
.success-mark { display: grid; width: 58px; height: 58px; margin-bottom: 25px; border-radius: 50%; background: var(--forest); color: var(--white); font-size: 1.25rem; place-items: center; }
.success h2 { margin-bottom: 16px; font-size: clamp(2.5rem, 5vw, 4.3rem); letter-spacing: -0.04em; }
.success > p { max-width: 570px; color: var(--ink-soft); }
.account-chip { display: inline-flex; margin-top: 28px; padding: 10px 15px; background: var(--sage-light); color: var(--forest-dark); font-size: 0.75rem; font-weight: 600; }
.success-note { margin-top: 22px; font-size: 0.75rem; }

@media (max-width: 850px) {
  .intro { display: block; }
  .intro-copy { max-width: 620px; margin-top: 18px; }
  .account-shell { display: block; }
  .steps { position: static; margin-bottom: 18px; padding: 19px 22px; }
  .steps-label, .aside-note { display: none; }
  .step-list { display: grid; grid-template-columns: repeat(3, 1fr); }
  .step-item { display: flex; min-height: 32px; align-items: center; }
  .step-item:not(:last-child)::after { top: 15px; right: 10px; bottom: auto; left: 39px; width: auto; height: 1px; }
  .step-name { display: none; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1160px); }
  .site-header { height: 74px; }
  .secure-note span { display: none; }
  main { padding: 38px 0 56px; }
  .intro { margin-bottom: 26px; }
  h1 { font-size: clamp(2.65rem, 14vw, 4rem); }
  .form-card { min-height: 0; padding: 28px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .field, .field.narrow { grid-column: 1; }
  .choice-card { padding-left: 15px; grid-template-columns: 38px 1fr; gap: 11px; }
  .choice-icon { width: 38px; height: 38px; }
  .form-actions { align-items: stretch; flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; }
  .step-context { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
