:root {
    --fg: #111; --bg: #fff; --muted: #444; --line: #565656;
    --err: #b00020; --focus: #0b5fff; --accent: #14467e; --ok: #0a6b2e;
  }
  * { box-sizing: border-box; }
  body {
    font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    font-size: 18px; line-height: 1.6; color: var(--fg); background: var(--bg); margin: 0;
  }
  main, header, footer { max-width: 800px; margin: 0 auto; padding: 0 22px; }
  header { padding-top: 26px; }
  h1 { font-size: 1.55rem; line-height: 1.3; margin: 0 0 4px; }
  h2 { font-size: 1.25rem; margin: 38px 0 4px; border-bottom: 3px solid var(--accent); padding-bottom: 6px; }
  .sub { font-weight: 700; margin: 2px 0; }
  .regno { font-weight: 700; letter-spacing: .5px; }

  a { color: var(--accent); }
  a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 3px solid var(--focus); outline-offset: 2px;
  }

  /* skip link */
  .skip {
    position: absolute; left: -9999px; top: 0; z-index: 20;
    background: #000; color: #fff; padding: 12px 18px; font-weight: 700;
  }
  .skip:focus { left: 8px; top: 8px; }

  .altlinks { margin: 14px 0 4px; font-size: 1rem; font-weight: 700; }
  .altlinks a { margin-right: 4px; }
  .intro {
    background: #eef3fb; border-left: 6px solid var(--accent);
    padding: 14px 18px; margin: 18px 0; border-radius: 4px;
  }

  fieldset { border: 1px solid var(--line); border-radius: 6px; margin: 18px 0; padding: 10px 18px 18px; }
  legend { font-weight: 700; padding: 0 6px; font-size: 1.05rem; }
  .grp legend { font-size: 1rem; }

  .field { margin: 18px 0; }
  label, .field-label { display: block; font-weight: 700; margin-bottom: 6px; }
  .req { color: var(--err); }                 /* visible asterisk (text "(required)" is also present) */
  .hint { font-weight: 400; color: var(--muted); font-size: .95rem; margin: 2px 0 6px; }

  input[type=text], input[type=email], input[type=tel], input[type=number],
  input[type=date], select {
    width: 100%; max-width: 440px; font-size: 1rem; padding: 10px 12px; min-height: 46px;
    border: 2px solid var(--line); border-radius: 6px; background: #fff; color: var(--fg);
  }
  input[size] { width: auto; }
  .short { max-width: 220px; }
  .tiny { max-width: 120px; }

  .radio-row { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 6px; }
  .radio-row label { font-weight: 400; display: flex; align-items: center; gap: 9px; margin: 0; cursor: pointer; }
  input[type=radio], input[type=checkbox] { width: 22px; height: 22px; flex: 0 0 auto; }

  /* errors — never colour-only: the word "Error:" + an icon char are included */
  .field.has-error input, .field.has-error select { border-color: var(--err); border-width: 2px; }
  .error-text { color: var(--err); font-weight: 700; margin-top: 6px; display: none; }
  .field.has-error .error-text { display: block; }

  .error-summary { border: 3px solid var(--err); border-radius: 6px; padding: 16px 20px; margin: 22px 0; background: #fff5f5; }
  .error-summary h2 { color: var(--err); border: 0; margin: 0 0 10px; padding: 0; font-size: 1.2rem; }
  .error-summary ul { margin: 0; padding-left: 22px; }
  .error-summary li { margin: 6px 0; }
  .error-summary a { color: var(--err); font-weight: 700; }

  .status { font-weight: 700; color: var(--ok); margin: 18px 0; font-size: 1.05rem; }

  .consent { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0; }
  .consent input { margin-top: 4px; }
  .consent label { font-weight: 400; }

  .btn {
    font-size: 1.08rem; font-weight: 700; padding: 15px 26px; margin: 8px 0 40px;
    background: var(--accent); color: #fff; border: 2px solid var(--accent); border-radius: 6px; cursor: pointer;
  }
  .btn:hover { background: #0e3360; }

  .legal { font-size: .95rem; }
  .legal h3 { font-size: 1rem; margin: 18px 0 4px; }
  .legal ol { margin: 4px 0; }
  .return { background: #f2f2f2; padding: 14px 18px; border-radius: 6px; margin: 24px 0; }

  hr { border: 0; border-top: 1px solid #ccc; margin: 30px 0; }

  @media print {
    .skip, .btn, .altlinks, #errorSummary, .status { display: none !important; }
    /* keep submitted (disabled/readonly) fields fully legible on paper */
    input, select, textarea { color: #000 !important; -webkit-text-fill-color: #000 !important; opacity: 1 !important; }
  }
  @media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
