/* ==========================================================
   Advanced Chiropractic – Event landing page
   Design tokens
   ========================================================== */
:root {
  /* Brand */
  --brand-blue: #1faefc;      /* decorative only: bars, accents, borders (fails contrast as text) */
  --brand-grey: #717c84;      /* logo grey (fails contrast as small text) */
  --white: #ffffff;

  /* Accessible working shades */
  --blue-deep: #0274b3;       /* text, links, buttons – 5:1 on white */
  --blue-deeper: #015a8b;     /* hover */
  --blue-tint: #eaf6ff;       /* page background */
  --blue-tint-2: #f5fbff;     /* code box */
  --ink: #3a4147;             /* headings / body */
  --ink-soft: #4f5960;        /* paragraphs */
  --ink-muted: #5b656c;       /* small text */
  --line: #b9c4cb;            /* input borders */
  --focus: #9fdbff;

  /* Type */
  --font: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Shape */
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-card: 0 20px 50px rgba(2, 60, 95, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--blue-tint);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-deep); }
a:hover { color: var(--blue-deeper); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 24px;
}

/* ---------- Header ---------- */
.brand-bar { height: 6px; background: var(--brand-blue); }

.site-header { background: var(--white); }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 20px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; color: var(--ink-muted); }
.logo-main { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.logo-sub { font-size: 16px; font-weight: 600; }

.reviews-badge { display: flex; align-items: center; gap: 10px; }
.reviews-num { font-size: 30px; font-weight: 300; line-height: 1; color: var(--blue-deep); }
.reviews-label { font-size: 13px; font-weight: 700; line-height: 1.2; }

/* ---------- Main layout ---------- */
.main-grid {
  flex: 1 0 auto;
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px;
  padding-top: 64px; padding-bottom: 88px;
}

.intro { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

.event-pill {
  align-self: flex-start;
  padding: 8px 14px; border-radius: 999px; background: var(--white);
  font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue-deep);
}

h1 {
  margin: 0;
  font-size: clamp(42px, 5.5vw, 66px); line-height: 1.04; font-weight: 800; letter-spacing: -0.02em;
}
.h1-accent { color: var(--blue-deep); }

.lead { margin: 0; font-size: 20px; color: var(--ink-soft); max-width: 500px; }

/* ---------- Clinics ---------- */
.clinics { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.clinic {
  background: var(--white); border-radius: var(--radius-lg); padding: 22px 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.clinic-info { display: flex; gap: 14px; align-items: flex-start; }
.pin { flex: none; fill: none; stroke: var(--blue-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.clinic-name { margin: 0; font-size: 19px; font-weight: 800; }
.clinic-address { margin: 0; font-size: 15px; color: var(--ink-muted); }
.site-link { font-size: 16px; font-weight: 700; padding: 4px 0; }

.btn-pill {
  min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px;
  border-radius: 999px; border: 2px solid var(--blue-deep); color: var(--blue-deep);
  text-decoration: none; font-weight: 800; font-size: 16px;
}
.btn-pill:hover { background: var(--blue-tint); }

/* ---------- Card ---------- */
.card {
  flex: 1 1 420px; max-width: 520px; min-width: 0;
  background: var(--white); border-radius: var(--radius-xl); box-shadow: var(--shadow-card);
  overflow: hidden;
}
.card-bar { height: 8px; background: var(--brand-blue); }
.card-body { padding: 32px; display: flex; flex-direction: column; gap: 22px; }

.offer p { margin: 0; }
.offer { display: flex; flex-direction: column; gap: 6px; }
.offer-kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-deep); }
.offer-title { font-size: 28px; font-weight: 800; line-height: 1.15; }
.offer-meta { font-size: 15px; color: var(--ink-muted); }

/* ---------- Form ---------- */
.claim-form { display: flex; flex-direction: column; gap: 18px; }

.leaflet-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.leaflet-group legend { padding: 0; margin-bottom: 10px; font-size: 15px; font-weight: 700; }
.leaflet-options { display: flex; flex-wrap: wrap; gap: 10px; }
.leaflet-option { flex: 1 1 120px; position: relative; cursor: pointer; }
.leaflet-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.leaflet-option span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; padding: 8px 12px; border-radius: var(--radius-md);
  border: 2px solid var(--line); background: var(--white);
  font-size: 16px; font-weight: 700; color: var(--ink);
}
.leaflet-option:hover span { border-color: var(--blue-deep); }
.leaflet-option input:checked + span { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--white); }
.leaflet-option input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 160px; }
.field label { font-size: 14px; font-weight: 700; }
.field input, .field select {
  height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: 16px; color: var(--ink); background: var(--white);
}
.field input:focus, .field select:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--blue-deep); }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.field-row { display: flex; flex-wrap: wrap; gap: 16px; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue-deep); flex: none; }

.form-error { margin: 0; color: #b3261e; font-size: 14px; font-weight: 600; }

.btn-primary {
  height: 56px; border: 0; border-radius: var(--radius-md);
  background: var(--blue-deep); color: var(--white);
  font: inherit; font-size: 18px; font-weight: 800; cursor: pointer;
}
.btn-primary:hover { background: var(--blue-deeper); }
.btn-primary[disabled] { opacity: 0.6; cursor: progress; }

.small-print { margin: 0; font-size: 13px; color: var(--ink-muted); text-align: center; }

/* ---------- Success ---------- */
.success { display: flex; flex-direction: column; gap: 16px; }
.success[hidden] { display: none; }
.success:focus { outline: none; }
.success p { margin: 0; font-size: 16px; color: var(--ink-soft); }
.success-head { display: flex; align-items: center; gap: 12px; }
.success-head h2 { margin: 0; font-size: 22px; font-weight: 800; }
.tick {
  width: 44px; height: 44px; border-radius: 999px; background: var(--blue-tint);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.tick svg { fill: none; stroke: var(--blue-deep); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.code-box {
  border: 2px dashed var(--brand-blue); border-radius: var(--radius-md); padding: 18px;
  text-align: center; background: var(--blue-tint-2);
}
.code-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); }
.code-value { display: block; font-size: 30px; font-weight: 800; letter-spacing: 0.08em; color: var(--blue-deep); }

.call-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-call {
  flex: 1 1 160px; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: var(--radius-md); text-decoration: none; font-weight: 800; font-size: 16px; line-height: 1.2;
}
.btn-call small { font-size: 12px; font-weight: 600; }
.btn-call--solid { background: var(--blue-deep); color: var(--white); }
.btn-call--solid:hover { background: var(--blue-deeper); color: var(--white); }
.btn-call--outline { border: 2px solid var(--blue-deep); color: var(--blue-deep); }
.btn-call--outline:hover { background: var(--blue-tint); }

.btn-link {
  align-self: center; min-height: 44px; padding: 0 12px; border: 0; background: transparent;
  color: var(--ink-muted); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--white); }
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-block: 18px; font-size: 14px; color: var(--ink-muted);
}

/* ---------- Small screens ---------- */
@media (max-width: 560px) {
  .main-grid { padding-top: 40px; padding-bottom: 56px; gap: 32px; }
  .card-body { padding: 24px; }
  .lead { font-size: 18px; }
}
