/* LOC Verification — neumorphic (soft UI). No JavaScript anywhere. */
:root {
  --bg: #e4e9f0;
  --ink: #26303f;
  --muted: #5d6879;
  --hi: #ffffff;            /* light-side shadow */
  --lo: #bcc4d0;            /* dark-side shadow */
  --accent: #2f5fc8;
  --accent-soft: #dfe7f6;
  --ok: #17663a;  --ok-bg: #dcefe3;
  --err: #a32323; --err-bg: #f6dfdf;
  --raise: 7px 7px 16px var(--lo), -7px -7px 16px var(--hi);
  --raise-sm: 4px 4px 9px var(--lo), -4px -4px 9px var(--hi);
  --press: inset 4px 4px 9px var(--lo), inset -4px -4px 9px var(--hi);
  --r: 18px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #262b34; --ink: #e5e9f0; --muted: #a3adbd;
    --hi: #313744; --lo: #1a1e25;
    --accent: #86a9ff; --accent-soft: #2d3545;
    --ok: #8fe0ad; --ok-bg: #213a2c; --err: #f4a7a7; --err-bg: #3d2426;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
.shell { max-width: 560px; margin: 0 auto; padding: 28px 16px 40px; }

/* header */
.top { display: flex; gap: 14px; align-items: center; margin: 4px 4px 22px; }
.badge {
  flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  font-weight: 800; letter-spacing: .04em; font-size: 15px; color: var(--accent);
  box-shadow: var(--raise);
}
.school { margin: 0; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
h1 { margin: 2px 0 0; font-size: 22px; line-height: 1.25; }

/* card */
.card { border-radius: 26px; padding: 24px 20px; box-shadow: var(--raise); }
.lead { margin: 0 0 18px; color: var(--muted); }

/* form */
.form { display: grid; gap: 6px; }
fieldset { border: 0; padding: 0; margin: 6px 0 4px; min-width: 0; }
legend, .lbl { font-weight: 650; font-size: 14px; padding: 0; margin: 10px 0 8px 4px; }
.muted { color: var(--muted); font-weight: 400; }
.field {
  width: 100%; font: inherit; color: inherit; background: var(--bg);
  border: 0; border-radius: 14px; padding: 13px 16px; box-shadow: var(--press);
  min-height: 48px;
}
.field::placeholder { color: var(--muted); opacity: .75; }
.field:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* segmented choices: radios styled as soft buttons */
.seg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.seg3 { grid-template-columns: repeat(3, 1fr); }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label {
  display: grid; place-items: center; text-align: center; min-height: 48px; padding: 8px 6px;
  border-radius: 14px; cursor: pointer; font-weight: 600; font-size: 14px; line-height: 1.2;
  box-shadow: var(--raise-sm); color: var(--muted); user-select: none;
  transition: box-shadow .15s, color .15s;
}
.seg input:checked + label { box-shadow: var(--press); color: var(--accent); }
.seg input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }

/* show only the field for the chosen method (all fields shown if :has is unsupported) */
.f { display: grid; gap: 6px; }
@supports selector(:has(*)) {
  .f { display: none; }
  .form:has(#m-dob:checked) .f-dob,
  .form:has(#m-parent:checked) .f-parent,
  .form:has(#m-adm:checked) .f-adm { display: grid; }
  .form:has(#c12:checked) .opt-dob { opacity: .45; }
  .form:has(#c12:checked):has(#m-dob:checked) .f-dob { display: none; }
  .form:has(#c12:checked):has(#m-dob:checked) .f-parent { display: grid; }
}

/* buttons */
.btn {
  display: block; width: 100%; margin-top: 20px; padding: 14px 18px; border: 0; border-radius: 16px;
  background: var(--bg); color: var(--accent); font: inherit; font-weight: 700; text-align: center;
  text-decoration: none; cursor: pointer; box-shadow: var(--raise); transition: box-shadow .12s;
}
.btn:hover { box-shadow: var(--raise-sm); }
.btn:active { box-shadow: var(--press); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* messages */
.err, .ok, .msg, .note { border-radius: 14px; padding: 11px 14px; margin: 0 0 12px; font-size: 14.5px; }
.err { background: var(--err-bg); color: var(--err); }
.ok  { background: var(--ok-bg); color: var(--ok); font-weight: 600; margin: 8px 0 0; display: inline-block; }
.msg { box-shadow: var(--press); }
.note { box-shadow: var(--press); margin-top: 20px; }
.small { font-size: 12.5px; color: var(--muted); margin: 14px 4px 0; }

/* result */
.who { display: flex; gap: 18px; align-items: center; margin-bottom: 20px; }
.photo { flex: none; padding: 8px; border-radius: 18px; box-shadow: var(--raise); }
.photo img { display: block; width: 104px; height: auto; border-radius: 12px; }
.tag { margin: 0; font-size: 12.5px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
h2 { margin: 2px 0 0; font-size: 21px; line-height: 1.25; word-break: break-word; }
h3 { margin: 22px 4px 10px; font-size: 15px; }
.grid { display: grid; grid-auto-flow: row dense; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.cell.wide { grid-column: 1 / -1; }
.cell { border-radius: 14px; padding: 10px 12px; box-shadow: var(--press); min-width: 0; }
dt { font-size: 12px; color: var(--muted); }
dd { margin: 2px 0 0; font-weight: 650; font-size: 14.5px; word-break: break-word; }
.subjects { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.subjects li { border-radius: 12px; padding: 10px 14px; box-shadow: var(--raise-sm); font-weight: 600; font-size: 14px; }

.foot { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 26px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 420px) {
  .seg3 label { font-size: 13px; }
  .who { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
