:root {
  color-scheme: light;
  --paper: #fff;
  --background: #f7f8f6;
  --ink: #161d19;
  --muted: #56635b;
  --line: #dce2dc;
  --primary: #176c4f;
  --primary-hover: #0f513b;
  --error: #9f2920;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  line-height: 1.5;
}

.shell { width: min(100% - 32px, 544px); margin: clamp(24px, 8vh, 84px) auto 48px; }

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 20px;
  font-size: 15px;
  font-weight: 720;
}

.brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: #e8f1ff;
  color: #1556b9;
  font-weight: 820;
}

.card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(20px, 6vw, 36px);
  background: var(--paper);
  box-shadow: 0 18px 48px rgba(28, 39, 32, .08);
}

.progress-header { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; }
.step-number, .product { margin: 0; font-size: 13px; font-weight: 650; color: var(--muted); }
.product { grid-column: 2; grid-row: 1; text-align: right; }

.progress {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
  margin: 2px 0 28px;
  padding: 0;
  list-style: none;
}

.progress li { flex: 1; height: 4px; background: #e6ebe7; border-radius: 99px; }
.progress li[aria-current], .progress li.done { background: var(--primary); }

h1 { margin: 0 0 10px; font-size: clamp(23px, 5vw, 30px); line-height: 1.21; letter-spacing: -.025em; }
.muted { margin: 0 0 21px; color: var(--muted); }
form { display: grid; gap: 12px; }
label { font-size: 14px; font-weight: 650; }
input, button, .primary { font: inherit; }

input {
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #aeb9b0;
  border-radius: 10px;
  color: var(--ink);
  background: var(--paper);
}

.primary, .secondary, .back {
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 680;
  text-align: center;
}

.primary {
  display: block;
  width: 100%;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

.primary:hover { background: var(--primary-hover); }
.secondary { width: 100%; margin-top: 8px; border-color: var(--line); background: var(--paper); color: var(--primary-hover); }
.back { margin: 12px 0 -7px -11px; background: transparent; color: var(--muted); }
button:disabled { opacity: .63; cursor: wait; }
:is(input, button, a):focus-visible { outline: 3px solid #2f774d; outline-offset: 3px; }
.notice { margin: 12px 0 0; color: var(--muted); }
.notice[data-error="true"] { color: var(--error); }
