:root {
  --background: #f5f4ed;
  --surface: #fff;
  --surface-soft: #faf9f5;
  --border: #dedcd2;
  --text: #171715;
  --muted: #66645f;
  --accent: #c96442;
  --accent-dark: #ad5033;
  --accent-pale: #f3e4da;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
.public-header { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 20px; padding: 12px max(20px, calc((100vw - 920px) / 2)); border-bottom: 1px solid var(--border); background: rgba(250,249,245,.96); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(201,100,66,.28); border-radius: 7px; background: var(--accent-pale); color: var(--accent-dark); font-size: 12px; font-weight: 800; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.secure-label { color: #4f7d5a; font-size: 11px; font-weight: 700; }
.public-main { width: min(880px, calc(100% - 32px)); margin: 28px auto 60px; }
.page-state { padding: 100px 24px; color: var(--muted); text-align: center; }
.page-state strong { display: block; margin-bottom: 8px; color: var(--text); font-size: 18px; }
.intake-form { overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.form-heading { padding: 30px 34px 25px; border-bottom: 1px solid var(--border); background: var(--surface-soft); }
.eyebrow { color: var(--accent-dark); font-size: 10px; font-weight: 800; }
.form-heading h1 { margin: 7px 0 6px; font-size: 24px; }
.form-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.form-section { padding: 26px 34px; border-bottom: 1px solid var(--border); }
.form-section h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; font-size: 15px; }
.form-section h2 span { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; background: var(--accent-pale); color: var(--accent-dark); font-size: 9px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.field { display: flex; min-width: 0; flex-direction: column; gap: 7px; }
.field.wide { grid-column: 1 / -1; }
.field > span { color: #4d4c48; font-size: 12px; font-weight: 650; }
.field > small { color: var(--muted); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.field input, .field select, .field textarea { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #ccc9bf; border-radius: 5px; background: #fff; color: var(--text); font-size: 13px; }
.field textarea { min-height: 78px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: 2px solid rgba(201,100,66,.14); }
.choice-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.choice-grid.countries { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: flex; min-height: 38px; align-items: center; justify-content: center; padding: 6px 8px; border: 1px solid #ccc9bf; border-radius: 5px; color: #55534f; font-size: 12px; text-align: center; cursor: pointer; }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-pale); color: var(--accent-dark); font-weight: 700; }
.country-groups { display: grid; gap: 8px; }
.country-group { overflow: hidden; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-soft); }
.country-group summary { display: flex; min-height: 42px; align-items: center; justify-content: space-between; padding: 9px 12px; font-size: 12px; font-weight: 700; cursor: pointer; }
.country-group summary small { color: var(--muted); font-size: 10px; font-weight: 500; }
.country-group[open] summary { border-bottom: 1px solid var(--border); background: #fff; }
.country-group .choice-grid { padding: 10px; }
.submission-block { display: grid; justify-items: start; gap: 16px; padding: 25px 34px 30px; }
.consent { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.consent input { margin-top: 2px; }
#submit-button { min-width: 150px; min-height: 42px; padding: 9px 18px; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; }
#submit-button:hover { background: var(--accent-dark); }
#submit-button:disabled { cursor: wait; opacity: .62; }
.form-error { min-height: 18px; color: #963b28; font-size: 12px; }
.honeypot { position: fixed; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.success-state { padding: 90px 28px; border: 1px solid var(--border); border-radius: 8px; background: #fff; text-align: center; }
.success-state strong { display: block; font-size: 21px; }
.success-state p { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
@media (max-width: 680px) {
  .public-main { width: min(100% - 20px, 880px); margin-top: 10px; }
  .form-heading, .form-section, .submission-block { padding-right: 18px; padding-left: 18px; }
  .grid { grid-template-columns: 1fr; }
  .field.wide { grid-column: auto; }
  .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice-grid.countries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #submit-button { width: 100%; }
}
