/* VeriMedic Connect: the public lead form. The CRM's palette and faces, sized for a 12.9" iPad Pro
   in either orientation with no scrolling, and for a phone opened from the QR code. */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/dm-sans-latin.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500 800; font-display: swap; src: url('/fonts/manrope-latin.woff2') format('woff2'); }

:root {
  --blue: #0d2b5e;
  --blue-bright: #2455a4;
  --blue-hover: #1c4686;
  --blue-pale: #eaf1fc;
  --ink: #202126;
  --muted: #5b6170;
  --line: #dce1e9;
  --field: #c3cad6;
  --bg: #f4f6fa;
  --danger: #b42318;
  --ring: 0 0 0 3px rgb(36 85 164 / 25%);
  --display: 'Manrope', 'DM Sans', system-ui, sans-serif;
  --tap: 52px;
  --fs: 17px;
  color-scheme: light;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: var(--fs);
  line-height: 1.4;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body { min-height: 100dvh; }

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.brand { text-align: center; margin: 4px 0 16px; }
.wordmark { font-family: var(--display); font-weight: 800; letter-spacing: 0.32em; color: var(--blue); font-size: 1.9rem; padding-left: 0.32em; }
.wordmark-light { color: #fff; }
.tagline { margin: 4px 0 0; color: var(--muted); font-size: 1rem; letter-spacing: 0.02em; }

.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 20px; box-shadow: 0 1px 2px rgb(13 43 94 / 6%); }
.title { font-family: var(--display); font-size: 1.3rem; font-weight: 700; margin: 0 0 16px; color: var(--blue); }

.grid { display: grid; grid-template-columns: 1fr; gap: 14px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.req { color: var(--danger); }
.hint { font-weight: 400; color: var(--muted); font-size: 0.9rem; margin-left: 6px; }

input[type="text"], input[type="email"], input[type="tel"], select {
  font: inherit;
  font-size: max(16px, 1rem); /* below 16px, iOS zooms the page on focus */
  min-height: var(--tap);
  padding: 10px 14px;
  border: 1px solid var(--field);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
input:focus-visible, select:focus-visible { outline: none; border-color: var(--blue-bright); box-shadow: var(--ring); }
[aria-invalid="true"] { border-color: var(--danger) !important; }

.interests { border: 0; margin: 18px 0 0; padding: 0; }
.interests legend { padding: 0; margin-bottom: 8px; }
.interests[aria-invalid="true"] .chip span { border-color: var(--danger); }
.chips { display: grid; grid-template-columns: 1fr; gap: 10px; }
.chip { position: relative; display: block; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: var(--tap); padding: 10px 14px; border: 2px solid var(--field); border-radius: 12px;
  font-weight: 600; cursor: pointer; user-select: none; -webkit-user-select: none; background: #fff;
}
.chip input:checked + span { border-color: var(--blue-bright); background: var(--blue-pale); color: var(--blue); }
.chip input:checked + span::before { content: '✓'; margin-right: 8px; }
.chip input:focus-visible + span { box-shadow: var(--ring); }

.consent { display: flex; align-items: center; gap: 14px; margin: 18px 0 0; min-height: var(--tap); cursor: pointer; }
.consent input { width: 30px; height: 30px; flex: none; accent-color: var(--blue-bright); margin: 0; }

.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.error { color: var(--danger); font-weight: 600; margin: 14px 0 0; }

.submit {
  display: block; width: 100%; margin-top: 18px; min-height: 60px;
  font: inherit; font-family: var(--display); font-size: 1.2rem; font-weight: 700;
  border-radius: 12px; border: 0; background: var(--blue-bright); color: #fff; cursor: pointer;
}
.submit:hover { background: var(--blue-hover); }
.submit:focus-visible { outline: none; box-shadow: var(--ring); }
.submit:disabled { opacity: 0.6; }
.phi { text-align: center; color: var(--muted); margin: 12px 0 0; font-size: 0.95rem; }

.thanks {
  position: fixed; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center;
  background: var(--blue); color: #fff; text-align: center; padding: 24px;
}
.thanks[hidden] { display: none; }
.thanks h2 { font-family: var(--display); font-size: 2.6rem; margin: 28px 0 8px; }
.thanks p { font-size: 1.3rem; margin: 0; opacity: 0.9; }
.again { margin-top: 32px; min-height: var(--tap); padding: 0 28px; font: inherit; font-weight: 700; border-radius: 12px; border: 2px solid #fff; background: transparent; color: #fff; cursor: pointer; }

.pending {
  position: fixed; right: max(10px, env(safe-area-inset-right)); bottom: max(10px, env(safe-area-inset-bottom)); z-index: 20;
  font-size: 12px; font-weight: 600; color: var(--muted); background: rgb(255 255 255 / 85%);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px;
}
.pending[hidden] { display: none; }

/* Wider than a phone: two columns of fields, three interest buttons in a row. */
@media (min-width: 700px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .chips { grid-template-columns: repeat(3, 1fr); }
  .card { padding: 28px 32px; }
}

/* The booth iPad (?src=ipad): bigger type and targets. Sized so a 12.9" iPad Pro (1024 x 1366 CSS px)
   fits the whole form without scrolling in landscape and portrait. Kiosk mode hides "Send another":
   the form resets itself. */
.kiosk { --tap: 64px; --fs: 20px; }
.kiosk .page { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; }
.kiosk .wordmark { font-size: 2.4rem; }
.kiosk .title { font-size: 1.5rem; margin-bottom: 20px; }
.kiosk .grid { gap: 18px 24px; }
.kiosk .submit { min-height: 76px; font-size: 1.5rem; }
.kiosk .again { display: none; }
.kiosk .thanks h2 { font-size: 4rem; }
.kiosk .thanks p { font-size: 1.8rem; }
@media (min-width: 700px) and (max-height: 1100px) {
  /* Landscape iPad: 1024 px tall, so trim the vertical rhythm. */
  .kiosk .page { padding-top: max(14px, env(safe-area-inset-top)); }
  .kiosk .brand { margin-bottom: 10px; }
  .kiosk .grid { gap: 14px 24px; }
  .kiosk .interests, .kiosk .consent { margin-top: 14px; }
}
