:root { --ink:#1b1b1f; --muted:#5d606b; --line:#d9dbe3; --accent:#1f4e79; --bg:#f3f4f7; --err:#b3261e; }
* { box-sizing:border-box; }
html,body { margin:0; background:var(--bg); color:var(--ink); font:16px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif; -webkit-text-size-adjust:100%; }
.card { max-width:560px; margin:0 auto; padding:20px 18px 48px; background:#fff; min-height:100vh; }
@media (min-width:600px){ .card { margin:24px auto; min-height:auto; border-radius:12px; box-shadow:0 2px 12px rgba(0,0,0,.08); } }
.eyebrow { margin:0; font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); }
h1 { margin:4px 0 6px; font-size:22px; line-height:1.25; }
h2 { font-size:20px; }
.sub,.fine { color:var(--muted); font-size:14px; }
label { display:block; margin:14px 0 0; font-size:14px; font-weight:600; }
input[type=text],input[type=tel],input[type=email] { display:block; width:100%; margin-top:6px; padding:12px; font:inherit; border:1px solid var(--line); border-radius:8px; background:#fff; }
input:focus { outline:2px solid var(--accent); border-color:transparent; }
input[readonly] { background:#f6f7fa; color:var(--muted); }
.terms { margin:20px 0 10px; padding:14px; border:1px solid var(--line); border-radius:8px; background:#fafbfd; font-size:14px; max-height:280px; overflow-y:auto; }
.terms h3 { margin:12px 0 4px; font-size:14px; }
.terms h3:first-child { margin-top:0; }
.terms p { margin:0 0 6px; }
.check { display:flex; gap:10px; align-items:flex-start; font-weight:500; }
.check input { width:22px; height:22px; margin:2px 0 0; flex:none; }
.sig-block { margin-top:18px; }
.sig-head { display:flex; justify-content:space-between; align-items:center; font-size:14px; font-weight:600; }
.link { background:none; border:0; color:var(--accent); font:inherit; padding:4px 0; }
canvas#sig { display:block; width:100%; height:170px; margin-top:6px; border:1px dashed #9aa0ad; border-radius:8px; background:#fff; touch-action:none; }
.photo-block { margin-top:18px; }
.photo-label { margin:0 0 6px; }
#photo { font-size:14px; }
#photo-preview { display:block; margin-top:8px; max-width:160px; border-radius:8px; border:1px solid var(--line); }
.primary { display:block; width:100%; margin-top:20px; padding:15px; font:inherit; font-weight:600; font-size:17px; color:#fff; background:var(--accent); border:0; border-radius:10px; }
.primary[disabled] { opacity:.6; }
.error { color:var(--err); font-weight:600; margin:14px 0 0; }
