* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, sans-serif; background: #f2f2f0; color: #1d1d1f; }
.card { max-width: 640px; margin: 2rem auto; padding: 1.5rem; background: #fff; border-radius: 12px; box-shadow: 0 1px 6px rgba(0,0,0,.08); }
h1 { margin: 0 0 .25rem; font-size: 1.5rem; }
.sub { margin: 0 0 1.5rem; color: #6e6e73; font-size: .9rem; }
fieldset { border: 1px solid #e3e3e0; border-radius: 8px; margin: 0 0 1.25rem; padding: 1rem; }
legend { font-weight: 600; padding: 0 .4rem; }
label, .field { display: block; margin: 0 0 .9rem; font-size: .92rem; font-weight: 500; }
.label { display: block; margin-bottom: .35rem; }
input[type=text], input[type=date], input[type=number], select, textarea {
  display: block; width: 100%; margin-top: .3rem; padding: .55rem .6rem;
  border: 1px solid #c9c9c5; border-radius: 6px; font: inherit; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid #2d6cdf; border-color: #2d6cdf; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .3rem .8rem; }
.check-row { display: flex; align-items: center; gap: .45rem; font-weight: 400; margin: .2rem 0; }
.check-row input { width: auto; margin: 0; }
.hint { color: #6e6e73; font-size: .8rem; margin: .2rem 0 0; }
.hp { position: absolute; left: -9999px; height: 0; opacity: 0; }
.error { background: #fdecea; color: #b3261e; border-radius: 6px; padding: .7rem .9rem; margin-bottom: 1rem; font-size: .9rem; white-space: pre-line; }
.field-error { color: #b3261e; font-size: .8rem; font-weight: 400; margin-top: .2rem; }
button { width: 100%; padding: .8rem; font: inherit; font-weight: 600; color: #fff; background: #2d6cdf; border: 0; border-radius: 8px; cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
#success { text-align: center; padding: 2rem 0; }
@media (max-width: 480px) { .card { margin: 0; border-radius: 0; min-height: 100vh; } }
