:root {
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  color: #22323c;
  background: #f4f6f8;
  --accent: #185d83;
  --soft: #e7f0f5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 32px 18px;
}
.shell {
  max-width: 720px;
  margin: auto;
  background: white;
  border: 1px solid #dbe2e8;
  border-radius: 12px;
  padding: 32px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
}
a {
  color: var(--accent);
}
#brand {
  font-weight: 700;
  text-decoration: none;
  font-size: 20px;
}
nav {
  display: flex;
  gap: 16px;
  font-size: 14px;
}
h1 {
  font-size: 34px;
  line-height: 1.15;
  margin: 0 0 12px;
}
h2 {
  font-size: 23px;
}
p {
  line-height: 1.6;
}
#description {
  color: #52616b;
  margin-bottom: 28px;
}
.steps {
  padding: 0;
  list-style: none;
  display: flex;
  gap: 8px;
  counter-reset: step;
}
.steps li {
  flex: 1;
  padding: 12px 8px;
  border-bottom: 3px solid #dce3e8;
  color: #53636e;
  font-size: 14px;
}
.steps li[aria-current] {
  color: var(--accent);
  border-color: var(--accent);
  font-weight: 700;
}
label {
  display: block;
  font-weight: 600;
  margin: 20px 0;
}
label span,
legend span {
  font-size: 13px;
  font-weight: 400;
  color: #53636e;
}
input:not([type="radio"]):not([type="checkbox"]),
textarea,
select {
  display: block;
  width: 100%;
  font: inherit;
  border: 1px solid #9caab3;
  border-radius: 6px;
  padding: 12px;
  margin-top: 8px;
  background: #fff;
  color: #22323c;
}
textarea {
  resize: vertical;
}
input:focus,
textarea:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #79b8e4;
  outline-offset: 3px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.hint {
  color: #52616b;
  font-size: 14px;
}
.choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  line-height: 1.5;
}
.choice input {
  margin: 5px 0;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 24px 0;
}
legend {
  font-weight: 600;
}
.actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 30px;
}
button {
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 12px 24px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: white;
}
button.secondary {
  background: white;
  color: var(--accent);
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
small[data-error] {
  color: #ab2424;
  display: block;
  font-size: 14px;
  font-weight: 400;
  margin-top: 6px;
}
input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #ab2424;
}
#status {
  color: #ab2424;
  font-size: 14px;
}
.notice {
  background: var(--soft);
  padding: 12px;
  font-size: 13px;
  border-radius: 6px;
  margin-bottom: 22px;
}
dl {
  background: var(--soft);
  padding: 20px;
  border-radius: 6px;
}
dt {
  font-size: 13px;
  font-weight: 700;
  margin: 16px 0 4px;
}
dt:first-child {
  margin-top: 0;
}
dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
[hidden] {
  display: none !important;
}
/* America: understated civic stationery, with a restrained red rule. */
body[data-theme="america"] {
  background: #f1f4fa;
  color: #173660;
  --accent: #173660;
  --soft: #edf2fa;
  --red: #b52e38;
}
body[data-theme="america"] .shell {
  background: #ffffff;
  border-color: #dbe2ed;
  border-top: 3px solid var(--red);
  border-radius: 3px;
  box-shadow: 0 6px 24px #17366008;
}
body[data-theme="america"] #brand {
  font-family: Georgia, serif;
  letter-spacing: 0.03em;
}
body[data-theme="america"] h1,
body[data-theme="america"] h2 {
  font-family: Georgia, serif;
  font-weight: 400;
}
body[data-theme="america"] h1 {
  font-size: clamp(32px, 6vw, 40px);
}
body[data-theme="america"] .steps li[aria-current] {
  border-color: var(--red);
}
body[data-theme="america"] input:not([type="radio"]):not([type="checkbox"]),
body[data-theme="america"] textarea,
body[data-theme="america"] select {
  background: #ffffff;
  border-color: #9aabc3;
  border-radius: 3px;
}
body[data-theme="america"] input[type="radio"],
body[data-theme="america"] input[type="checkbox"] {
  accent-color: var(--accent);
}
body[data-theme="america"] button {
  border-radius: 3px;
}
#receipt-id {
  word-break: break-all;
}
@media (max-width: 540px) {
  body {
    padding: 12px;
  }
  .shell {
    padding: 22px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 30px;
  }
  .steps li {
    font-size: 12px;
    padding: 12px 3px;
  }
  .actions button {
    flex: 1;
  }
}
body[data-theme="america"] #brand {
  font-size: 16px;
  line-height: 1.4;
  max-width: 65%;
}
body[data-theme="america"] nav {
  font-size: 12px;
  gap: 12px;
}
