/* The client's page, after design/mockup/Intake.dc.html: paper ground, the practice's green, serif for
   what the client reads, sans for the form. Fonts are served from this site, so the client's browser
   talks to nobody else. */
@font-face { font-family: Montserrat; font-weight: 400; font-display: swap; src: url(/fonts/Montserrat-400.ttf) format('truetype'); }
@font-face { font-family: Montserrat; font-weight: 600; font-display: swap; src: url(/fonts/Montserrat-600.ttf) format('truetype'); }
@font-face { font-family: 'Source Serif 4'; font-weight: 400; font-display: swap; src: url(/fonts/SourceSerif4-400.ttf) format('truetype'); }
@font-face { font-family: 'Source Serif 4'; font-weight: 600; font-display: swap; src: url(/fonts/SourceSerif4-600.ttf) format('truetype'); }

:root {
  --paper: #F5F0E6;
  --field: #FFFDF8;
  --ink: #1B1830;
  --ink-soft: #3B3646;
  --muted: #5E5648;
  --brand: #23443F;
  --rule: rgba(27, 24, 48, 0.12);
  --edge: rgba(27, 24, 48, 0.25);
  --off: #D8CFBD;
  --error: #8A2B1E;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 Montserrat, system-ui, sans-serif; }
a { color: var(--brand); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
[hidden] { display: none !important; }

.bar { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--rule); color: var(--brand); }
.practice { font: 600 18px/1.3 'Source Serif 4', Georgia, serif; }

main { max-width: 560px; margin: 0 auto; padding: 24px 20px 40px; }
.view { display: flex; flex-direction: column; gap: 18px; }
h1 { margin: 0; font: 600 30px/1.15 'Source Serif 4', Georgia, serif; }
h2 { margin: 0; font: 600 20px/1.3 'Source Serif 4', Georgia, serif; }
.intro { display: flex; flex-direction: column; gap: 8px; }
.lead { margin: 0; font: 400 16px/1.55 'Source Serif 4', Georgia, serif; color: var(--ink-soft); }
#done .lead { font-size: 17px; line-height: 1.6; color: var(--ink); }
.small { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.quiet { font-weight: 400; color: var(--muted); }
.error { margin: 0; font-size: 14px; color: var(--error); }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
label, legend { font-size: 14px; font-weight: 600; }
input[type='text'], input[type='email'], input[type='date'], input[type='time'], textarea {
  width: 100%; min-height: 48px; border-radius: 10px; border: 1px solid var(--edge); background: var(--field);
  color: var(--ink); font: 400 16px Montserrat, system-ui, sans-serif; padding: 0 14px;
}
input[type='date'], input[type='time'] { padding: 0 10px; font-size: 15px; }
textarea { padding: 10px 14px; font: 400 16px/1.5 'Source Serif 4', Georgia, serif; resize: vertical; min-height: 96px; }
::placeholder { color: #8A8170; }
.pair { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 12px; }

.choices { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 2px; }
.choices legend { margin-bottom: 6px; }
.choices label { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; font-weight: 400; cursor: pointer; }
input[type='radio'], input[type='checkbox'] { width: 20px; height: 20px; margin: 0; accent-color: var(--brand); flex: none; }

.consents { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; border-top: 1px solid var(--rule); }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; font-weight: 400; line-height: 1.5; cursor: pointer; flex-wrap: wrap; }
.check input { margin-top: 1px; }
.check span:first-of-type { flex: 1; min-width: 0; }
.check .quiet { flex-basis: 100%; padding-left: 32px; margin-top: -8px; font-size: 13px; }

button { min-height: 52px; border-radius: 12px; border: 0; background: var(--brand); color: var(--paper); font: 600 16px Montserrat, system-ui, sans-serif; cursor: pointer; }
button[aria-disabled='true'] { background: var(--off); color: var(--muted); cursor: not-allowed; }

.foot { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; font-size: 12px; color: var(--muted); }
.links { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.links p { margin: 0; }
.privacy { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--rule); }
.privacy p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-soft); }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
#privacy-text { display: flex; flex-direction: column; gap: 10px; }
.download { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 12px; background: var(--brand); color: var(--paper); font: 600 16px Montserrat, system-ui, sans-serif; text-decoration: none; }
.download:hover { color: var(--paper); opacity: 0.92; }

.captcha {
  min-height: 65px;
}
