  :root {
  --nhs-blue: #005eb8;
  --focus: #ffbf47;
  --border: #d8dde0;
  --danger: #b42318;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --radius: 6px;
  --muted: #6b7280;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  font-family: system-ui, sans-serif;
  color: #111;
}

.container {
  max-width: 900px;
  margin: 40px auto;
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius);
}

.hint {
  color: var(--muted);
}

fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

legend {
  font-weight: 600;
}

label {
  display: block;
  margin-top: 10px;
}

.inline label {
  display: inline-flex;
  gap: 6px;
  margin-right: 16px;
}

input,
select,
textarea {
  width: 100%;
  max-width: 600px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

input[type="radio"],
input[type="checkbox"] {
  width: auto;
}

input:focus,
select:focus {
  outline: 3px solid var(--focus);
}

.req::after {
  content: " *";
  color: var(--danger);
}

.hidden {
  display: none !important;
}

.msg {
  padding: 12px;
  margin-top: 12px;
  border-radius: var(--radius);
}

.msg.error {
  background: #fef3f2;
  border: 1px solid #fecdca;
  color: var(--danger);
}

.msg.warn {
  background: #fffaeb;
  border: 1px solid #fedf89;
}

button.primary {
  background: var(--nhs-blue);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 12px 18px;
  cursor: pointer;
}
 #confirmBlock > button{padding: 10px; font-size: 1em}
 #confirmBlock > button:focus, #confirmBlock > button:hover, #confirmBlock > button:active {background:#0000cd; color: #ffffff}


 /* 海角社区-inspired highlight for Reference membership */
#referenceBlock {
  background: #f4f7fb;                /* very light cool blue */
  border: 1px solid #d6dee8;          /* soft grey-blue border */
  border-left: 6px solid #003e74;     /* 海角社区-style navy accent */
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
  margin-top: 1rem;
  box-shadow: 0 2px 8px rgba(0, 35, 73, 0.08);
}

/* Legend as strong section heading */
#referenceBlock legend {
  color: #003e74;                     /* brand-like navy */
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0 0.4rem;
}

/* Body text readability */
#referenceBlock p {
  color: #1f2a37;
  line-height: 1.55;
  margin: 0 0 0.8rem;
}

/* Links in 海角社区-like blue */
#referenceBlock a {
  color: #00539f;
  text-decoration: underline;
}

#referenceBlock a:hover,
#referenceBlock a:focus-visible {
  color: #003e74;
  text-decoration-thickness: 2px;
}

/* Radio options as clean cards */
#referenceBlock label {
  display: block;
  background: #ffffff;
  border: 1px solid #cfd9e4;
  border-radius: 6px;
  padding: 0.65rem 0.8rem;
  margin-top: 0.55rem;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* Hover/focus states */
#referenceBlock label:hover {
  border-color: #00539f;
  background: #f9fbfe;
}

#referenceBlock label:has(input[type="radio"]:focus-visible) {
  border-color: #00539f;
  box-shadow: 0 0 0 3px rgba(0, 83, 159, 0.2);
}

/* Selected state (modern browsers) */
#referenceBlock label:has(input[type="radio"]:checked) {
  border-color: #003e74;
  background: #eef4fb;
}

/* Fallback focus ring directly on radio */
#referenceBlock input[type="radio"]:focus-visible {
  outline: 2px solid #00539f;
  outline-offset: 2px;
}

.ICLogo {width: 220px}