* { box-sizing: border-box; }
body { margin: 0; background: #fffaf0; color: #30251d; font-family: Arial, Helvetica, sans-serif; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px max(5%, calc((100% - 800px) / 2)); background: #ffd414; }
a { color: #81251c; }
main { max-width: 800px; min-height: 70vh; margin: auto; padding: 36px 20px 60px; }
h1 { margin: 0; color: #9c2c20; font-size: clamp(32px, 5vw, 46px); }
h2 { margin: 0 0 12px; font-size: 23px; }
p { line-height: 1.5; }
#progress { color: #745a49; font-size: 14px; }
form section, #success { padding: 24px; border: 1px solid #ead8b7; border-radius: 6px; background: #fff; }
label { display: block; margin: 16px 0; font-size: 14px; font-weight: 700; }
input, select { display: block; width: 100%; min-height: 44px; margin-top: 7px; padding: 10px; border: 1px solid #cbbba9; border-radius: 4px; background: #fff; color: #30251d; font: inherit; }
fieldset { margin: 20px 0; padding: 16px; border: 1px solid #ead8b7; border-radius: 4px; }
legend { padding: 0 6px; font-weight: 700; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
[hidden] { display: none !important; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.checkbox input { width: 20px; min-height: 20px; margin: 1px 0 0; flex: none; }
button { min-height: 44px; padding: 10px 18px; border: 1px solid #a71f22; border-radius: 4px; background: #a71f22; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
button:hover { background: #85191c; }
button:disabled { cursor: not-allowed; opacity: .6; }
.secondary { background: #fff; color: #81251c; }
.secondary:hover { background: #fff0cc; }
.actions { display: flex; gap: 12px; justify-content: space-between; margin-top: 22px; }
.error { color: #a71f22; font-weight: 700; }
.error:empty { display: none; }
.review-person { padding: 10px 0; border-top: 1px solid #ead8b7; overflow-wrap: anywhere; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #6b2118; outline-offset: 3px; }
footer { padding: 20px 5%; background: #fff1d2; font-size: 14px; }
@media (max-width: 600px) {
  .header { padding: 16px; font-size: 14px; }
  main { padding: 28px 16px 40px; }
  form section, #success { padding: 18px; }
  .fields { grid-template-columns: 1fr; }
}
