:root {
  color-scheme: light;
  --paper: #fbf5ec;
  --petrol: #0c414a;
  --peach: #f2a277;
  --ink: #183439;
  --muted: #546668;
  --line: #c3cdc7;
  --light: #f6e6d6;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.55 "Source Sans 3", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--petrol); text-underline-offset: .18em; }
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: 76rem; margin: 0 auto; padding: 1.25rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.brand { font: 800 1.6rem/1.25 Manrope, system-ui, sans-serif; text-decoration: none; letter-spacing: -.06em; }
.brand span { font-weight: 500; }
.return { font-size: .9rem; font-weight: 650; }
main { width: min(100% - 2rem, 50rem); margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) 0 2rem; }
.intro { max-width: 40rem; margin-bottom: 1.75rem; }
.eyebrow { font-size: .76rem; font-weight: 800; letter-spacing: .15em; color: var(--petrol); margin: 0 0 .7rem; }
h1, h2, h3 { color: var(--petrol); font-family: Manrope, system-ui, sans-serif; line-height: 1.17; }
h1 { margin: 0 0 .6rem; font-size: clamp(2.2rem, 6vw, 4rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.55rem, 4vw, 2.15rem); letter-spacing: -.03em; margin: 0 0 .45rem; }
h3 { margin: 0; font-size: 1.12rem; }
.intro > p:last-child { font-size: 1.08rem; margin: 0; color: var(--muted); }
form, .success { background: #fffdf8; border: 1px solid var(--line); border-radius: 1.25rem; padding: clamp(1rem, 4vw, 2.2rem); }
.progress { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.6rem; font-size: .9rem; font-weight: 700; color: var(--petrol); }
progress { width: 100%; height: .48rem; border: 0; border-radius: 1rem; color: var(--petrol); background: #e4e8df; overflow: hidden; }
progress::-webkit-progress-bar { background: #e4e8df; }
progress::-webkit-progress-value { background: var(--petrol); border-radius: 1rem; }
progress::-moz-progress-bar { background: var(--petrol); border-radius: 1rem; }
.step-intro { margin: 0 0 1.45rem; color: var(--muted); }
.field { margin-top: 1.2rem; }
.field > label, legend { font-weight: 700; }
fieldset { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; margin-bottom: .45rem; }
.required { color: #8f3c24; }
.options { display: flex; flex-wrap: wrap; gap: .5rem; }
.option { display: flex; align-items: center; gap: .55rem; min-height: 2.75rem; padding: .5rem .72rem; border: 1px solid var(--line); border-radius: .65rem; cursor: pointer; }
.option:has(input:checked) { border-color: var(--petrol); background: #edf4ee; }
input, textarea, button { font: inherit; color: inherit; }
input[type=radio], input[type=checkbox] { width: 1.05rem; height: 1.05rem; margin: 0; accent-color: var(--petrol); flex: 0 0 auto; }
.field > input, textarea { display: block; width: 100%; min-width: 0; min-height: 2.8rem; padding: .55rem .65rem; margin: .35rem 0 0; border: 1px solid #99aaa4; border-radius: .55rem; background: #fff; }
textarea { resize: vertical; }
input[type=file] { padding: .55rem; }
input[type=file]::file-selector-button { margin-right: .65rem; border: 0; border-radius: .4rem; background: var(--light); padding: .35rem .65rem; cursor: pointer; font: inherit; }
.hint { color: var(--muted); margin: .35rem 0 0; font-size: .88rem; }
.actions { display: flex; justify-content: flex-end; gap: .7rem; margin-top: 1.7rem; }
.primary, .secondary { display: inline-block; border: 1px solid var(--petrol); border-radius: 2rem; padding: .7rem 1.2rem; min-height: 2.75rem; font-weight: 750; cursor: pointer; text-decoration: none; text-align: center; }
.primary { color: #fff; background: var(--petrol); }
.primary:hover { background: #165862; }
.secondary { color: var(--petrol); background: transparent; }
.secondary:hover, .edit:hover { background: var(--light); }
button:disabled { opacity: .65; cursor: wait; }
:focus-visible { outline: 3px solid #167b85; outline-offset: 3px; }
h2:focus { outline: none; }
[aria-invalid=true] { outline: 2px solid #a73b24; outline-offset: 2px; }
.error, .notice { margin: 1rem 0 0; padding: .75rem .9rem; border-radius: .6rem; background: var(--light); }
.error { color: #802915; background: #fae8e0; font-weight: 650; }
.review-card { margin-top: .85rem; padding: .85rem; border: 1px solid var(--line); border-radius: .75rem; display: grid; grid-template-columns: 1fr auto; gap: .65rem; align-items: center; }
.edit { border: 1px solid var(--line); border-radius: .55rem; color: var(--petrol); background: transparent; padding: .3rem .7rem; cursor: pointer; }
dl { grid-column: 1 / -1; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .5rem .9rem; font-size: .93rem; }
dt { font-weight: 650; }
dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.privacy { margin: 1.2rem 0 .8rem; font-size: .92rem; }
.privacy summary { font-weight: 700; color: var(--petrol); cursor: pointer; }
.privacy p { margin: .5rem 0; }
.acknowledgment { align-items: flex-start; font-size: .94rem; }
.acknowledgment input { margin-top: .2rem; }
.support { color: var(--muted); font-size: .92rem; text-align: center; margin: 1.15rem 0 0; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 34rem) {
  .options { display: grid; grid-template-columns: 1fr; }
  dl { grid-template-columns: 1fr; gap: .15rem; }
  dd { margin-bottom: .45rem; }
}
