/* Matches www.clinilabs.co.uk and consumables.clinilabs.co.uk: Poppins, near-black headings, royal-blue actions, light grey page */
:root {
  --ink: #111111;
  --text: #4a5260;
  --muted: #6b7385;
  --line: #e3e8f0;
  --bg: #f4f7fa;
  --card: #ffffff;
  --blue: #2463eb;
  --blue-dark: #1d4fc4;
  --blue-soft: #e9effd;
  --green: #108474;
  --red: #d0473e;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5;
  min-height: 100vh; display: flex; flex-direction: column;
}
body > main { flex: 1 0 auto; width: 100%; }
a { color: var(--blue); }
[hidden] { display: none !important; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

.topbar { background: var(--blue); color: #fff; text-align: center; font-size: 13px; font-weight: 600; padding: 8px 16px; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 14px; height: 68px; }
.logo img { height: 28px; display: block; }
.header-label { font-size: 13px; font-weight: 600; color: var(--blue); background: var(--blue-soft); border-radius: 999px; padding: 4px 12px; }

.hero { padding: 36px 0 20px; max-width: 720px; }
.hero h1 { font-size: clamp(28px, 4.5vw, 44px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.hero p { margin-top: 12px; color: var(--text); font-size: 16px; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; padding-bottom: 48px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; }
.card-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.card h2 { font-size: 18px; font-weight: 700; line-height: 1.3; }
.card-desc { color: var(--muted); font-size: 13px; margin-top: 2px; }
.step {
  flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--blue-soft); color: var(--blue);
  font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center;
}
.divider { height: 1px; background: var(--line); margin: 20px 0; }

.field { margin-bottom: 14px; }
.field.narrow { max-width: 220px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 14px; }
label, .label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.req { color: var(--red); }
.opt { color: var(--muted); font-weight: 400; font-size: 12px; margin-left: 4px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.hint-top { margin: -6px 0 14px; }
.field input, textarea {
  width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px;
  font: inherit; color: var(--ink); background: #fff; outline: none;
}
textarea { resize: vertical; }
input:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
input::placeholder, textarea::placeholder { color: #a0a7b4; }
.invalid { border-color: var(--red) !important; box-shadow: 0 0 0 3px #fbe9e7 !important; }
.error-msg { display: none; color: var(--red); font-size: 12.5px; margin-top: 6px; }
.error-msg.show { display: block; }
.hp { position: absolute; left: -9999px; }

.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: 14px; cursor: pointer; margin: 4px 0 12px; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); flex: none; cursor: pointer; }
.sub-panel { margin: 0 0 12px; }
.weekend { margin-top: 6px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px;
  padding: 8px 18px; font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }

.pw { position: relative; }
.pw input { padding-right: 70px; }
.pw-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none;
  font: inherit; font-size: 12.5px; font-weight: 600; color: var(--blue); cursor: pointer; padding: 6px 8px; border-radius: 8px;
}
.pw-toggle:hover { background: var(--blue-soft); }
.strength { height: 4px; background: var(--line); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.strength span { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }

.choice { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-bottom: 14px; }
.choice-opt {
  display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 14px;
  padding: 14px 16px; cursor: pointer; margin: 0; font-weight: 400;
}
.choice-opt:hover { border-color: var(--blue); }
.choice-opt:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.choice-opt input { accent-color: var(--blue); width: 18px; height: 18px; margin-top: 2px; flex: none; }
.choice-opt strong { display: block; font-size: 14.5px; font-weight: 600; }
.choice-opt small { display: block; color: var(--text); font-size: 12.5px; margin-top: 2px; }
.choice.invalid-group .choice-opt { border-color: var(--red); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 28px;
  border-radius: 999px; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; border: 1.5px solid transparent;
  text-decoration: none; transition: background .15s;
}
.btn-primary { background: var(--blue); color: #fff; width: 100%; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-primary:disabled { background: #a8b8e6; cursor: default; }
.submit-row { margin-top: 4px; }
.form-error { color: var(--red); font-size: 13.5px; margin: 0 0 10px; }
.small { font-size: 12.5px; color: var(--muted); margin-top: 12px; text-align: center; }
.small.left { text-align: left; }

.side-col { position: sticky; top: 16px; }
.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.summary h2 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.steps-list { list-style: none; counter-reset: s; }
.steps-list li { counter-increment: s; position: relative; padding: 0 0 14px 38px; font-size: 13.5px; }
.steps-list li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--blue-soft); color: var(--blue); font-weight: 700; font-size: 12.5px; display: flex; align-items: center; justify-content: center;
}
.steps-list strong { display: block; font-weight: 600; }
.steps-list span { color: var(--text); }

.modal { position: fixed; inset: 0; background: rgba(17,17,17,.45); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.modal-card { background: #fff; border-radius: 20px; width: 100%; max-width: 480px; padding: 32px 28px; }
.done { text-align: center; }
.done h2 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.done p { color: var(--text); margin-bottom: 20px; }
.tick { width: 64px; height: 64px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.tick svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 20px 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.site-footer a { color: var(--muted); }

@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side-col { position: static; }
  .summary { padding: 18px; }
}
@media (max-width: 600px) {
  .hero { padding: 24px 0 14px; }
  .card { padding: 18px; }
  .grid2, .choice { grid-template-columns: minmax(0, 1fr); }
  .field.narrow { max-width: none; }
  .header-label { display: none; }
}
