/* ---------------------------------------------------------------------------
   Dentix design tokens - PHP build

   Ported verbatim from the Next.js app's globals.css so the two cannot drift.
   Components consume the tokens below and never hardcode a hex value.

   Palette is sampled from the Dentix brand assets:
     brand blue  #1264F2   logo mark
     navy        #002366   wordmark + headlines
     sky         #0D6CB4   campaign artwork field
     gold        #FBDC38   campaign artwork highlight
     accent pink #EB0354   campaign accent

   The page ground is a soft sky tint rather than white, so white cards and
   panels lift off it. Anything that needs to read as "paper" uses --surface.
--------------------------------------------------------------------------- */

:root {
  /* Surfaces */
  --canvas: #e9f1fb;
  --canvas-alt: #dbe8f8;
  --surface: #ffffff;
  --surface-muted: #f1f6fd;

  /* Brand blue */
  --brand-50: #eff5fe;
  --brand-100: #dce8fd;
  --brand-200: #bbd2fb;
  --brand-500: #1264f2;
  --brand-600: #0b52d4;
  --brand-700: #0a43ac;
  --navy: #002366;

  /* Campaign sky */
  --sky-500: #0d6cb4;
  --sky-700: #064f82;

  /* Campaign gold. Always pair with navy text, never white. */
  --gold-200: #ffe988;
  --gold-300: #fbdc38;

  /* Accent, used sparingly */
  --accent-500: #eb0354;

  --primary: #1264f2;
  --primary-hover: #0b52d4;

  /* Text */
  --ink: #15171c;
  --ink-soft: #3f4653;
  --muted: #717786;
  --faint: #9aa0ad;

  /* Lines - tinted towards the sky ground so borders never read as warm grey */
  --line: #dde8f6;
  --line-strong: #c6d8ec;

  /* Status - soft, non-clinical */
  --success: #0f9d58;
  --success-soft: #e8f6ee;
  --warning: #c98a04;
  --warning-soft: #fdf5e3;
  --danger: #d6453d;
  --danger-soft: #fdeeed;

  /* Radius */
  --radius-field: 0.75rem;
  --radius-card: 1.25rem;
  --radius-panel: 1.75rem;

  /* Soft, premium elevation - never harsh. Tinted navy so shadows sit in the
     sky ground rather than greying it. */
  --shadow-xs: 0 1px 2px 0 rgb(6 40 92 / 0.05);
  --shadow-soft: 0 1px 3px rgb(6 40 92 / 0.05), 0 8px 24px -12px rgb(6 40 92 / 0.12);
  --shadow-card: 0 1px 2px rgb(6 40 92 / 0.05), 0 12px 32px -16px rgb(6 40 92 / 0.16);
  --shadow-brand: 0 10px 24px -10px rgb(18 100 242 / 0.5);

  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, sans-serif;

  --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; border-color: var(--line); }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}

h1 { font-size: 1.75rem; line-height: 1.18; }
h2 { font-size: 1.15rem; line-height: 1.3; }

/* Visible, on-brand focus ring everywhere */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background-color: var(--brand-100); color: var(--navy); }

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }

/* --- layout ------------------------------------------------------------- */

.wrap { max-width: 560px; margin: 0 auto; padding: 30px 18px 56px; }
.wrap-wide { max-width: 1080px; }

/* Public header: logo left, the clinic's number right. The only link off the
   campaign page, deliberately. */
.site-top {
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 0.8);
  backdrop-filter: blur(8px);
}
.site-top-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 18px;
}
.brand-mark { display: block; height: 52px; width: auto; }

.call {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 13px; border-radius: var(--radius-field);
  font-size: 14px; font-weight: 600; color: var(--primary); text-decoration: none;
  transition: background-color .2s var(--ease-out-soft);
}
.call:hover { background: var(--brand-50); }
/* The number is long; on a narrow phone only the icon earns its space. */
.call-short { display: none; }
@media (max-width: 640px) {
  .call-full { display: none; }
  .call-short { display: inline; }
  .brand-mark { height: 42px; }
}

/* The gold emblem that replaces the headline. */
.hero { text-align: center; margin-bottom: 26px; }
.plaque { display: block; width: 100%; max-width: 21rem; height: auto; margin: 0 auto; }
@media (min-width: 640px) { .plaque { max-width: 27rem; } }

/* Hidden visually, still read aloud. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
}

.site-foot {
  border-top: 1px solid var(--line);
  padding: 28px 18px;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}
.site-foot p { margin: 4px 0 0; }
.site-foot .name { font-weight: 600; color: var(--ink-soft); margin: 0; }
.site-foot a { color: var(--primary); font-weight: 500; text-decoration: none; }

/* Centred only on the campaign pages, which are a single column built around
   the emblem. The dashboard is a left-aligned working screen. */
.lead { font-size: 1.5rem; line-height: 1.2; text-align: center; }
.sub { color: var(--muted); margin: 8px 0 24px; font-size: 15px; }
main.wrap > .sub, main.wrap > .lead + .sub { text-align: center; }
.card .sub { text-align: left; }

/* Soft campaign wash: sky at the corners, a breath of gold, white in the
   middle so text stays comfortable. */
.bg-sky-wash {
  background-color: var(--canvas);
  background-image:
    radial-gradient(70% 90% at 88% 0%, rgb(13 108 180 / 0.20) 0%, transparent 60%),
    radial-gradient(60% 80% at 8% 4%, rgb(251 220 56 / 0.18) 0%, transparent 55%);
}

.bg-grid-soft {
  background-image: radial-gradient(circle at 1px 1px, var(--line-strong) 1px, transparent 0);
  background-size: 28px 28px;
}

/* --- cards -------------------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 22px;
}

.card + .card { margin-top: 16px; }

.card h2 { margin-bottom: 4px; }

/* --- forms -------------------------------------------------------------- */

label { display: block; font-weight: 600; font-size: 13.5px; color: var(--ink-soft); margin: 18px 0 7px; }
label:first-of-type { margin-top: 0; }
.req { color: var(--accent-500); }

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-field);
  transition: border-color .2s var(--ease-out-soft), box-shadow .2s var(--ease-out-soft);
}

input:hover, select:hover, textarea:hover { border-color: var(--brand-200); }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgb(18 100 242 / 0.14);
}

textarea { min-height: 96px; resize: vertical; }

.hint { color: var(--muted); font-size: 13px; margin-top: 6px; }
.err { color: var(--danger); font-size: 13px; margin-top: 6px; font-weight: 500; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 430px) { .row { grid-template-columns: 1fr; } }

/* Honeypot - off-screen, never shown, never focusable by tab order */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  font: inherit;
  font-weight: 600;
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius-field);
  cursor: pointer;
  text-decoration: none;
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-brand);
  transition: background-color .2s var(--ease-out-soft), box-shadow .2s var(--ease-out-soft), transform .2s;
}

.btn:hover { background: var(--primary-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[disabled] { opacity: .55; pointer-events: none; }

.btn-block { width: 100%; margin-top: 24px; }

/* Secondary: paper, navy ink, a line that warms to brand on hover */
.btn-secondary {
  background: var(--surface);
  color: var(--navy);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover { background: var(--surface-muted); border-color: var(--brand-200); }

/* Campaign gold. Navy text only - white fails contrast on this yellow. */
.btn-gold { background: var(--gold-300); color: var(--navy); box-shadow: 0 10px 24px -10px rgb(201 164 10 / .45); }
.btn-gold:hover { background: var(--gold-200); }

.btn-danger { background: var(--danger); box-shadow: var(--shadow-soft); }
.btn-danger:hover { background: var(--danger); filter: brightness(.95); }

.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; box-shadow: none; }

/* --- notices ------------------------------------------------------------ */

.notice {
  border-radius: var(--radius-field);
  padding: 13px 16px;
  margin-bottom: 18px;
  font-size: 14.5px;
  border: 1px solid transparent;
}
.notice.good { background: var(--success-soft); border-color: #bcdfc4; color: #0c6b3c; }
.notice.bad  { background: var(--danger-soft);  border-color: #f5c3bf; color: #9c2a23; }
.notice.warn { background: var(--warning-soft); border-color: #f0dca6; color: #8a5a12; }

/* --- data display ------------------------------------------------------- */

dl { margin: 18px 0 0; }
dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 14px; font-weight: 600; }
dd { margin: 3px 0 0; font-weight: 600; font-size: 16.5px; color: var(--navy); }

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .05em;
}
.badge.ok   { background: var(--success-soft); color: #0c6b3c; }
.badge.warn { background: var(--warning-soft); color: #8a5a12; }
.badge.bad  { background: var(--danger-soft);  color: #9c2a23; }
.badge.mute { background: var(--surface-muted); color: var(--muted); }

.muted { color: var(--muted); }

.login-pane { max-width: 400px; margin: 56px auto 0; }
.login-logo { display: block; height: 52px; width: auto; margin: 0 0 28px; }

/* --- admin shell --------------------------------------------------------
   Ported from components/admin/admin-shell.tsx: a fixed sidebar on desktop,
   the same markup reused as a drawer below lg.
------------------------------------------------------------------------- */

body.admin { background: var(--canvas); }

.side {
  position: fixed; inset: 0 auto 0 0; width: 15rem; z-index: 50;
  display: flex; flex-direction: column;
  background: var(--surface); border-right: 1px solid var(--line);
}

.side-head {
  height: 72px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; border-bottom: 1px solid var(--line);
}
/* The logo is a wide lockup; at 15rem the sidebar is narrower than it is, so
   height alone would overflow and clip. Bound the width too and let the
   aspect ratio pick the height. */
.side-head a { display: block; min-width: 0; }
.side-head img { display: block; width: 100%; max-width: 152px; height: auto; }

.drawer-close, .drawer-open {
  display: none; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0;
  background: transparent; border: 0; border-radius: var(--radius-field);
  color: var(--ink-soft); cursor: pointer;
}
.drawer-close:hover, .drawer-open:hover { background: var(--surface-muted); color: var(--navy); }

.side-nav { flex: 1 1 auto; overflow-y: auto; padding: 16px 12px; }
.side-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }

.nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--radius-field);
  font-size: 14px; font-weight: 500; color: var(--ink-soft); text-decoration: none;
  transition: background-color .2s var(--ease-out-soft), color .2s var(--ease-out-soft);
}
.nav-link:hover { background: var(--surface-muted); color: var(--navy); }
.nav-link .nav-ico { flex: 0 0 auto; color: var(--muted); }
/* Active is a brand tint, never a heavy fill - the dashboard is a working
   screen and a loud selection would compete with the data on it. */
.nav-link.is-active { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.nav-link.is-active .nav-ico { color: var(--primary); }

.side-user { flex: 0 0 auto; border-top: 1px solid var(--line); padding: 12px; }
.who { display: flex; align-items: center; gap: 12px; padding: 8px; }
.who-text { min-width: 0; flex: 1; }
.who-name { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--navy);
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-role { margin: 0; font-size: 11.5px; color: var(--muted); }

.avatar {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--brand-50); color: var(--brand-700);
  font-size: 12px; font-weight: 700;
}

.signout {
  display: flex; align-items: center; gap: 10px; width: 100%;
  margin-top: 4px; padding: 9px 12px; border-radius: var(--radius-field);
  font-size: 13.5px; font-weight: 500; color: var(--ink-soft); text-decoration: none;
}
.signout:hover { background: var(--surface-muted); color: var(--navy); }
.signout .nav-ico { color: var(--muted); }

.admin-body { padding-left: 15rem; }
.admin-top { display: none; }
.admin-main { min-height: 100dvh; }
.admin-main-plain { padding-left: 0; }
.admin-page { max-width: 1060px; padding: 28px 24px 64px; }

.scrim {
  position: fixed; inset: 0; z-index: 40;
  background: rgb(0 35 102 / 0.3); backdrop-filter: blur(2px);
}
.scrim[hidden] { display: none; }

@media (max-width: 1023px) {
  .side {
    transform: translateX(-100%);
    transition: transform .24s var(--ease-out-soft);
    width: 82%; max-width: 17rem;
  }
  .side.is-open { transform: none; }
  .drawer-close, .drawer-open { display: inline-flex; }

  .admin-body { padding-left: 0; }
  .admin-top {
    position: sticky; top: 0; z-index: 30; height: 68px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 0 16px;
    background: rgb(233 241 251 / 0.9); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .admin-top img { height: 40px; width: auto; }
  .admin-page { padding: 22px 16px 56px; }
}

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-xs);
  padding: 16px 18px;
}
.stat .k { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.stat .v { font-family: var(--font-display); font-size: 1.85rem; font-weight: 800; line-height: 1.1; margin-top: 5px; color: var(--navy); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); font-weight: 600; padding: 11px 10px; border-bottom: 1px solid var(--line);
}
td { padding: 13px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td a { color: var(--primary); font-weight: 600; text-decoration: none; }
td a:hover { text-decoration: underline; }

/* The filter bar is a single row. The base rule above sets width:100% on
   every control, which would otherwise push each one onto its own line. */
form.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
form.filters input[type=search] { flex: 1 1 220px; width: auto; min-width: 0; }
form.filters select { flex: 0 0 auto; width: auto; }
form.filters .btn { height: 44px; flex: 0 0 auto; }
form.filters input, form.filters select { height: 44px; padding: 0 14px; }

.pager { display: flex; gap: 8px; align-items: center; margin-top: 18px; font-size: 14px; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

@media (max-width: 640px) { .hide-sm { display: none; } }

/* ---------------------------------------------------------------------------
   Campaign module. Everything below reuses the tokens defined above - no new
   colours are introduced, so the camps dashboard and the voucher dashboard
   cannot drift apart visually.
   --------------------------------------------------------------------------- */

.page-head { display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.page-head h1 { margin: 0 0 .25rem; }
.head-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.muted { color: var(--ink-soft, #5b6b84); }
.block { display: block; }
.num { text-align: right; }
.empty { text-align: center; color: var(--ink-soft, #5b6b84); }
.inline { display: inline-flex; align-items: center; gap: .5rem; margin: 0; }
.stack { display: grid; gap: .5rem; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.pane-title { font-size: .95rem; font-weight: 700; margin: 0 0 .5rem; }
.pane-group { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-soft, #5b6b84); margin: .75rem 0 .35rem; }

/* Three panels at desktop width; stacked below it, palette first, because on
   a tablet you are adding fields far more often than tuning one. */
.builder { display: grid; gap: 1rem; grid-template-columns: 15rem minmax(0, 1fr) 19rem; align-items: start; }
@media (max-width: 1100px) { .builder { grid-template-columns: 1fr; } }
.builder-pane, .builder-main { background: #fff; border: 1px solid var(--line, #dde8f6);
  border-radius: 14px; padding: 1rem; }

.palette { display: grid; gap: .35rem; }
.palette form { margin: 0; }
.palette-item { width: 100%; text-align: left; background: var(--canvas, #e9f1fb);
  border: 1px solid var(--line, #dde8f6); border-radius: 9px; padding: .45rem .6rem;
  font: inherit; font-size: .85rem; cursor: pointer; }
.palette-item:hover { background: var(--brand-50, #eaf2fe); border-color: var(--brand-500, #1264f2); }

.field-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.field-row { display: flex; align-items: center; gap: .5rem; border: 1px solid var(--line, #dde8f6);
  border-radius: 10px; padding: .5rem .6rem; background: #fff; }
.field-row.is-selected { border-color: var(--brand-500, #1264f2); background: var(--brand-50, #eaf2fe); }
.field-grab { flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.field-name { display: block; font-weight: 600; }
.field-meta { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center;
  font-size: .78rem; color: var(--ink-soft, #5b6b84); }
.field-meta em { font-style: normal; color: var(--accent-500, #eb0354); }
.field-meta code, .list code { font-size: .75rem; background: var(--canvas, #e9f1fb);
  padding: .05rem .3rem; border-radius: 5px; }
.field-section { display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink-soft, #5b6b84); margin-top: .75rem; }
.field-tools { display: flex; gap: .2rem; }
.icon-btn { border: 1px solid var(--line, #dde8f6); background: #fff; border-radius: 7px;
  width: 1.75rem; height: 1.75rem; cursor: pointer; line-height: 1; }
.icon-btn:hover { border-color: var(--brand-500, #1264f2); }
.link-danger { background: none; border: 0; color: var(--accent-500, #eb0354);
  cursor: pointer; font: inherit; font-size: .78rem; padding: 0; }

.check { display: flex; align-items: center; gap: .5rem; }
.check input { width: auto; }
.preview { background: var(--canvas, #e9f1fb); }

.list { width: 100%; border-collapse: collapse; }
.list th, .list td { text-align: left; padding: .55rem .5rem;
  border-bottom: 1px solid var(--line, #dde8f6); vertical-align: top; }
.list th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink-soft, #5b6b84); }
.list th.num, .list td.num { text-align: right; }
.row-actions { display: flex; gap: .6rem; flex-wrap: wrap; font-size: .82rem; }

.filters { display: flex; gap: .6rem; flex-wrap: wrap; align-items: flex-end; margin: 0; }
.filters > div { display: grid; gap: .2rem; }
.filters .grow { flex: 1; min-width: 12rem; }
.filters label { font-size: .75rem; margin: 0; }
.filters input, .filters select { width: auto; min-width: 8rem; }
.filter-go { align-self: end; }
.pager { display: flex; gap: .75rem; align-items: center; justify-content: center; margin-top: 1rem; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: .75rem; margin-bottom: 1rem; }
.stat { background: #fff; border: 1px solid var(--line, #dde8f6); border-radius: 14px;
  padding: 1rem; text-align: center; }
.stat-n { font-size: 1.9rem; font-weight: 800; margin: 0; line-height: 1;
  font-family: 'Plus Jakarta Sans', Inter, system-ui, sans-serif; color: var(--navy, #002366); }
.stat-l { margin: .3rem 0 0; font-size: .8rem; color: var(--ink-soft, #5b6b84); }

.bar { background: var(--canvas, #e9f1fb); border-radius: 999px; height: .55rem; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--brand-500, #1264f2); border-radius: 999px; }
.barcell { width: 45%; }

.spark { display: flex; align-items: flex-end; gap: 2px; height: 5rem;
  padding: .5rem; background: var(--canvas, #e9f1fb); border-radius: 10px; }
.spark-bar { flex: 1; min-width: 3px; background: var(--brand-500, #1264f2); border-radius: 2px 2px 0 0; }

.answers { display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr; gap: .4rem 1rem; margin: 0; }
.answers dt { font-weight: 600; color: var(--ink-soft, #5b6b84); }
.answers dd { margin: 0; }

/* Public form */
.hero-plain { text-align: center; padding: 1.5rem 0 .5rem; }
.camp-title { font-family: 'Plus Jakarta Sans', Inter, system-ui, sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.25rem); color: var(--navy, #002366); margin: 0; }
.camp-sub { color: var(--ink-soft, #5b6b84); margin: .4rem 0 0; }
.section { border: 0; border-top: 1px solid var(--line, #dde8f6); padding: 1rem 0 0; margin: 1rem 0 0; }
.section:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.section legend { font-weight: 700; color: var(--navy, #002366); padding: 0 .4rem 0 0; }
.form-heading { font-size: 1.05rem; color: var(--navy, #002366); margin: 1rem 0 .25rem; }
.form-note { color: var(--ink-soft, #5b6b84); font-size: .9rem; margin: .25rem 0 .75rem; }
.field { margin-bottom: .85rem; }
.field .hint { font-size: .8rem; color: var(--ink-soft, #5b6b84); margin: 0 0 .3rem; }
.field .req { color: var(--accent-500, #eb0354); }
.field.has-error input, .field.has-error select, .field.has-error textarea {
  border-color: var(--accent-500, #eb0354); }
.err { color: var(--accent-500, #eb0354); font-size: .82rem; margin: .25rem 0 0; }
.choices { display: grid; gap: .35rem; }
.choice { display: flex; align-items: center; gap: .5rem; font-weight: 400; margin: 0; }
.choice input { width: auto; }

/* The honeypot must be unreachable rather than merely invisible: display:none
   alone is a tell that some bots check for. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
