:root { --ink:#1a1a2e; --accent:#2b4570; --line:#d8dee9; --bg:#f7f8fa; --ok:#1f7a4d; }
* { box-sizing: border-box; }
body { margin:0; font:16px/1.5 system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif; color:var(--ink); background:var(--bg); }
.bmyds-header { text-align:center; padding:24px 16px 8px; position:relative; }
.bmyds-header .bh { position:absolute; right:16px; top:8px; font-size:12px; color:#888; }
.bmyds-header h1 { margin:.2em 0; font-size:1.5rem; color:var(--accent); }
.bmyds-header p { margin:0; color:#666; }
.progress { display:flex; flex-wrap:wrap; gap:6px; list-style:none; padding:8px 16px; margin:0 auto; max-width:840px; font-size:12px; }
.progress li { padding:4px 10px; border-radius:999px; background:#e9edf3; color:#778; }
.progress li.active { background:var(--accent); color:#fff; }
.progress li.done { background:#cfe3d6; color:var(--ok); }
.card { max-width:840px; margin:16px auto; background:#fff; border:1px solid var(--line); border-radius:12px; padding:20px; }
.card h2 { margin-top:0; color:var(--accent); }
.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:14px; }
.field { display:flex; flex-direction:column; gap:4px; font-size:14px; }
.field-label { color:#555; }
.field input, .field select { padding:10px; border:1px solid var(--line); border-radius:8px; font-size:16px; }
.field input[type=checkbox] { width:20px; height:20px; }
.block { border:1px solid var(--line); border-radius:10px; margin:12px 0; padding:12px; }
.block legend { font-weight:600; color:var(--accent); padding:0 6px; }
.note { color:#555; background:#f0f4fa; border-left:3px solid var(--accent); padding:8px 12px; border-radius:6px; }
.calc { margin-top:12px; font-weight:600; color:var(--accent); }
.terms { max-height:220px; overflow-y:auto; border:1px solid var(--line); border-radius:8px; padding:10px 12px; margin:8px 0; background:#fff; font-size:13px; }
.terms p { margin:0 0 8px; }
.terms strong { color:var(--accent); }
.sigpad { border:1px dashed #aaa; border-radius:8px; background:#fff; touch-action:none; display:block; margin:6px 0; }
.nav { display:flex; justify-content:space-between; gap:12px; margin-top:18px; }
button { padding:10px 18px; border:1px solid var(--accent); background:#fff; color:var(--accent); border-radius:8px; font-size:15px; cursor:pointer; }
button.primary { background:var(--accent); color:#fff; }
button:hover { filter:brightness(.96); }
.confirm h2 { color:var(--ok); }
.submit-msg { color:#b00; margin:10px 0; }
.hp { position:absolute; left:-9999px; width:1px; height:1px; opacity:0; }
.bmyds-footer { text-align:center; color:#999; font-size:12px; padding:20px; }
/* Required field indicator */
.req { color:#c00; font-weight:700; margin-left:2px; }
/* Validation error states */
.field.invalid input, .field.invalid select { border-color:#c00; }
.field-error { color:#c00; font-size:12px; margin-top:2px; }
.step-error { background:#fdecec; border-left:3px solid #c00; color:#a00; padding:8px 12px; border-radius:6px; margin-bottom:12px; }
/* Answer recap on Review step */
.recap { margin-bottom:16px; }
.recap .block { background:#f8fafc; }
.recap .edit { font-size:12px; padding:4px 10px; }
.recap dl { display:grid; grid-template-columns:180px 1fr; gap:2px 12px; margin:6px 0; }
.recap dt { color:#667; }
