/* The consultation form page (/free-consultation/; the practice's new patient form of 2026-11-10) and the short form of 2026-11-30
   (/new-patient-form/). Loaded by those two pages only, after base.css and the content page frame (body.tp). The kit's palette from base.css: the form on porcelain over the mist ground, forest
   plates for the actions, the lime wash for a chosen answer, oak-deep for the small caps. Base styles are the finished frame: with
   scripts off every page of the form shows at once; the one motion is a short settle of a page as it opens, off under Reduce Motion. */
.fp{--kf-line:#66766F;--kf-err:#9B2C1F;--kf-err-bg:#FBEFEC;--kf-wash:rgba(203,229,158,.42)}
.fp .page{padding:28px 0 var(--sec)}
.fp-top{margin-top:18px;max-width:46rem}
.fp-top .lede{margin-top:14px;font:400 19px/1.55 var(--body);color:var(--ink);max-width:44ch;text-wrap:pretty}
.fp-grid{margin-top:32px;display:grid;grid-template-columns:minmax(0,1fr) 340px;column-gap:48px;align-items:start;scroll-margin-top:calc(var(--headh,112px) + 16px)}
.fp-main{background:var(--paper);border-radius:3px;padding:32px 40px 40px;box-shadow:0 1px 2px rgba(1,27,17,.08);min-width:0}
.fp-side{background:var(--paper);border-radius:3px;padding:24px 24px 26px;position:sticky;top:calc(var(--headh,112px) + 24px)}
.fp-side .fp-team{display:block;width:calc(100% + 48px);max-width:none;height:auto;aspect-ratio:3/2;object-fit:cover;margin:-24px -24px 20px;border-radius:3px 3px 0 0}
.fp-side h2{font:700 1.5rem/1.15 var(--display);margin:0}
.fp-side p{margin-top:10px;font:400 16px/1.55 var(--body)}
.fp-side .acts{margin-top:16px;display:flex;flex-direction:column;gap:10px}
.fp-side .acts .plate{height:48px;width:100%}
.fp-side .hours{display:block;margin-top:14px;font:400 14px/1.5 var(--body);color:var(--muted)}

/* the count: pages and minutes left, and the rail */
.kf-prog{display:grid;grid-template-columns:1fr auto;align-items:baseline;column-gap:16px;padding-bottom:18px;border-bottom:1px solid var(--rule-terrazzo);scroll-margin-top:calc(var(--headh,112px) + 16px)}
.kf-f{scroll-margin-top:calc(var(--headh,112px) + 24px)}
.kf-count{font:700 12px/1.2 var(--caps);letter-spacing:.09em;text-transform:uppercase;color:var(--oak-deep)}
.kf-time{font:400 15px/1.4 var(--body);color:var(--muted);text-align:right}
.kf-rail{grid-column:1/-1;display:flex;gap:6px;margin-top:12px;padding:0;min-height:4px}
.kf-rail li{flex:1;height:4px;border-radius:2px;background:var(--silver)}
.kf-rail li.is-done{background:var(--forest)}
.kf-rail li.is-here{background:var(--ink)}
html:not(.js) .kf-prog{display:none}

/* the pages: one at a time with scripts on; all of them, in order, with scripts off */
.kf-step{padding-top:26px}
html:not(.js) .kf-step + .kf-step{margin-top:36px;border-top:1px solid var(--rule-terrazzo)}
.js .kf-step:not(.is-current){display:none}
html:not(.js) .kf-acts{display:none}
.kf-h{font:700 clamp(1.6rem,1.25rem + 1.1vw,2.125rem)/1.12 var(--display);letter-spacing:-.01em;margin:0 0 6px;outline:none}
.kf-h:focus-visible{outline:2px solid var(--ink);outline-offset:4px}
@media (prefers-reduced-motion:no-preference){
  .js .kf-step.is-current,.kf-done:not([hidden]){animation:kf-settle .24s var(--brake) both}
}
@keyframes kf-settle{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* a field */
.kf-f{margin:22px 0 0;padding:0;border:0;min-width:0}
fieldset.kf-f{margin-inline:0}
.kf-lab{display:block;padding:0;font:700 16px/1.35 var(--body);color:var(--ink);margin:0 0 8px;text-wrap:pretty}
legend.kf-lab{float:left;width:100%}
legend.kf-lab + *{clear:both}
.kf-group{font:700 16px/1.35 var(--body);margin:0 0 14px}
.kf-req{color:var(--kf-err);margin-left:2px}
.kf-opt{margin-left:6px;font:600 11px/1 var(--caps);letter-spacing:.06em;text-transform:uppercase;color:var(--muted);white-space:nowrap}
.kf-hint{margin:8px 0 0;font:400 15px/1.5 var(--body);color:var(--muted);max-width:60ch}
.kf-radio .kf-hint,.kf-file .kf-hint{margin:0 0 12px}
.kf-in{display:block;width:100%;height:48px;padding:0 14px;border:1px solid var(--kf-line);border-radius:3px;background:#fff;color:var(--ink);
  font:400 16px/1.3 var(--body);-webkit-appearance:none;appearance:none}
.kf-in::placeholder{color:#6F7D78;opacity:1}
.kf-in:focus{outline:2px solid var(--ink);outline-offset:1px;border-color:var(--ink)}
.kf-sel{padding-right:40px;background-image:linear-gradient(45deg,transparent 50%,var(--ink) 50%),linear-gradient(135deg,var(--ink) 50%,transparent 50%);
  background-position:calc(100% - 20px) 21px,calc(100% - 15px) 21px;background-size:5px 5px,5px 5px;background-repeat:no-repeat}
.kf-area{height:auto;min-height:120px;padding:12px 14px;line-height:1.5;resize:vertical}
.kf-in[aria-invalid="true"]{border-color:var(--kf-err);box-shadow:inset 0 0 0 1px var(--kf-err)}
.kf-err{margin:8px 0 0;font:700 15px/1.4 var(--body);color:var(--kf-err)}
.kf-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.kf-part{display:block}
.kf-sub{display:block;margin-top:6px;font:400 14px/1.3 var(--body);color:var(--muted)}
.kf-addr{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px}
.kf-addr .kf-street,.kf-addr .kf-street2{grid-column:1/-1}
.kf-date .kf-in,.kf-age .kf-in{max-width:220px}

/* a photo the practice asks for on a form that takes none (type attach, the short form since 2026-12-01): its request in its words,
   how to take the photo, and where it goes. Set apart by a rule at its side, with nothing to type or tap; and a page's opening
   sentence (the practice's own: why it asks what follows) */
.kf-attach{padding:2px 0 2px 16px;border-left:3px solid var(--kf-line)}
.kf-attach .kf-lab{margin-bottom:6px}
.kf-attach .kf-hint{margin:0}
.kf-how{margin:6px 0 0;font:400 15px/1.5 var(--body);color:var(--ink);max-width:60ch}
.kf-note{margin:8px 0 0;font:400 16px/1.5 var(--body);color:var(--muted);max-width:60ch;text-wrap:pretty}
.kf-send-p.kf-attach-line{font-size:16px;line-height:1.5}

/* choices: native radios in cards; a chosen card takes the lime wash and a forest edge */
.kf-choices{display:grid;gap:10px}
.kf-paths{grid-template-columns:repeat(3,minmax(0,1fr))}
.kf-choice{position:relative;display:flex;align-items:center;gap:12px;min-height:56px;padding:12px 16px;border:1px solid var(--kf-line);border-radius:3px;background:#fff;cursor:pointer;
  font:400 16px/1.35 var(--body);-webkit-tap-highlight-color:transparent}
.kf-choice input{flex:0 0 auto;width:20px;height:20px;margin:0;accent-color:var(--forest)}
.kf-choice:has(input:checked){border-color:var(--forest);box-shadow:inset 0 0 0 1px var(--forest);background:var(--kf-wash)}
.kf-choice:has(input:focus-visible){outline:2px solid var(--ink);outline-offset:2px}
.kf-path{min-height:92px;align-items:flex-start;padding:18px;font:700 18px/1.25 var(--display)}
.kf-path input{margin-top:2px}
.kf-radio[aria-invalid="true"] .kf-choice{border-color:var(--kf-err)}
@media (hover:hover){.kf-choice:hover{border-color:var(--ink)}}

/* photos: a drop zone over a real file input, then the list of what was added */
.kf-drop{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:112px;padding:18px;border:2px dashed var(--kf-line);
  border-radius:3px;background:#fff;text-align:center;cursor:pointer}
.kf-file-in{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.kf-zone{font:400 16px/1.4 var(--body);color:var(--ink)}
.kf-zone b{color:var(--forest);text-decoration:underline;text-underline-offset:3px}
.kf-limit{font:400 14px/1.3 var(--body);color:var(--muted)}
.kf-drop:focus-within{outline:2px solid var(--ink);outline-offset:2px;border-color:var(--ink)}
.kf-drop.is-over{border-color:var(--forest);background:var(--kf-wash)}
.kf-file[aria-invalid="true"] .kf-drop{border-color:var(--kf-err)}
.kf-thumbs{display:grid;gap:8px;margin:12px 0 0;padding:0}
.kf-thumbs:empty{display:none}
.kf-thumbs li{display:grid;grid-template-columns:56px minmax(0,1fr) auto;align-items:center;gap:12px;padding:8px;border:1px solid var(--rule-terrazzo);border-radius:3px;background:#fff}
.kf-thumbs img,.kf-thumbs .kf-noimg{width:56px;height:56px;object-fit:cover;border-radius:2px;background:var(--mist)}
.kf-thumbs .kf-noimg{display:flex;align-items:center;justify-content:center;font:700 10px/1 var(--caps);letter-spacing:.06em;color:var(--muted)}
.kf-thumbs .kf-fn{font:400 15px/1.3 var(--body);overflow-wrap:anywhere}
.kf-thumbs .kf-fn small{display:block;color:var(--muted);font-size:13px}
.kf-thumbs button{height:40px;padding:0 12px;border:1px solid var(--kf-line);border-radius:3px;background:transparent;font:600 13px/1 var(--caps);cursor:pointer}

/* the error summary at a page's head */
.kf-sum{margin:14px 0 0;padding:12px 14px;border-left:4px solid var(--kf-err);background:var(--kf-err-bg);font:700 15px/1.45 var(--body);color:var(--kf-err)}

/* the actions */
.kf-acts{display:flex;justify-content:space-between;gap:12px;margin-top:32px;padding-top:22px;border-top:1px solid var(--rule-terrazzo)}
.kf-acts .plate{height:52px;min-width:140px}
.kf-step[data-step="start"] .kf-acts{justify-content:flex-end}
.kf-next{margin-left:auto}

/* the confirmation, in the practice's words */
.kf-done{padding-top:8px}
.kf-lab-note{margin:0 0 20px;padding:12px 14px;border:1px dashed var(--oak-deep);border-radius:3px;font:400 15px/1.5 var(--body);color:var(--ink);background:#FFFDF8}
.kf-done-h{font:700 clamp(1.9rem,1.4rem + 1.6vw,2.75rem)/1.08 var(--display);letter-spacing:-.012em;margin:0;outline:none;text-wrap:balance}
.kf-done h3{margin:22px 0 0;font:700 13px/1.2 var(--caps);letter-spacing:.09em;text-transform:uppercase;color:var(--oak-deep)}
.kf-done ul{margin:10px 0 0;padding:0}
.kf-done li{margin:8px 0 0;font:400 18px/1.5 var(--body);max-width:52ch}
.kf-done .kf-acts{border-top:0;padding-top:0;margin-top:24px;justify-content:flex-start;flex-wrap:wrap}
.kf-mailto{margin-top:14px;font:400 16px/1.5 var(--body)}
.kf-mailto a{color:var(--oak-deep);text-underline-offset:3px}

/* the lab's preview of the practice's email (lab transport only) */
.kf-mail{margin-top:36px;padding-top:26px;border-top:1px solid var(--rule-terrazzo)}
.kf-mail-h{font:700 13px/1.2 var(--caps);letter-spacing:.09em;text-transform:uppercase;color:var(--oak-deep);margin:0}
.kf-mail-head{display:grid;grid-template-columns:auto 1fr;gap:4px 14px;margin:14px 0 0;font:400 15px/1.45 var(--body)}
.kf-mail-head dt{font-weight:700}
.kf-mail-head dd{margin:0;overflow-wrap:anywhere}
.kf-mail-body{margin-top:16px;padding:20px 22px;border:1px solid var(--rule-terrazzo);border-radius:3px;background:#fff;font:400 15px/1.5 var(--body)}
.kf-mail-body h4{margin:0;font:700 20px/1.25 var(--body)}
.kf-mail-body h5{margin:18px 0 6px;font:700 16px/1.3 var(--body)}
.kf-mail-body p{margin:6px 0 0;overflow-wrap:anywhere}

/* the send step and the step after it (the handoff transport: the short form at /new-patient-form/): the request as it is written, the
   ways out to the visitor's own mail or text app, and the one question the page can ask on the way back */
.kf-send,.kf-sent{padding-top:26px}
.kf-send-p{margin:10px 0 0;font:400 18px/1.5 var(--body);max-width:52ch;text-wrap:pretty}
.kf-cap{margin:28px 0 0;font:700 12px/1.2 var(--caps);letter-spacing:.09em;text-transform:uppercase;color:var(--oak-deep)}
.kf-sent > .kf-cap:first-child{margin:0 0 10px}
.kf-msg{margin:10px 0 0;padding:16px 18px;border:1px solid var(--rule-terrazzo);border-radius:3px;background:#fff;color:var(--ink);
  font:400 15px/1.55 var(--body);white-space:pre-wrap;overflow-wrap:anywhere}
.kf-msg:empty{display:none}
.kf-ways{justify-content:flex-start;flex-wrap:wrap;border-top:0;padding-top:0;margin-top:24px}
.kf-fine{margin:14px 0 0;font:400 15px/1.5 var(--body);color:var(--muted);max-width:60ch}
.kf-acts-back{margin-top:24px}
.kf-said{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
@media (prefers-reduced-motion:no-preference){
  .kf-send:not([hidden]),.kf-sent:not([hidden]){animation:kf-settle .24s var(--brake) both}
}

/* the honeypot: a field no person sees or reaches; a bot that fills it is answered as sent and nothing is sent */
.kf-hp{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}

/* the chat launcher (Ask Us, .ak-launch) steps away while a field of the form has focus (form.js sets html.kf-typing), as base.css already hides it
   while its own panel is open. On the short form's page (body.fp-short) it stays away altogether: the page is one screen of questions and a
   send step, and the launcher, fixed at the screen's foot, sat on Review and send and on the ways out in Mobile Safari (the simulator
   pass of 2026-11-30). Ask Us is still one tap away there, in the menu and in the phone bar */
html.kf-typing .ak-launch,.fp-short .ak-launch{visibility:hidden;pointer-events:none}

.kf-noscript{margin:0 0 20px;padding:14px 16px;border-left:4px solid var(--oak-deep);background:#FFFDF8;font:400 16px/1.5 var(--body)}
.kf-noscript a{color:var(--oak-deep)}

@media (max-width:1079px){
  .fp .wrap{width:auto;padding:0 16px}
  .fp .page{padding:20px 0 56px}
  .fp-grid{display:block;margin-top:24px}
  .fp-main{padding:22px 18px 26px}
  .fp-side{position:static;margin-top:20px}
  .fp-side .acts{flex-direction:row;flex-wrap:wrap}
  .fp-side .acts .plate{width:auto;flex:1 1 200px}
}
@media (max-width:799px){
  .kf-paths{grid-template-columns:1fr}
  .kf-path{min-height:64px;align-items:center;padding:14px 16px}
  .kf-path input{margin-top:0}
}
@media (max-width:599px){
  .kf-prog{grid-template-columns:1fr;row-gap:4px}
  .kf-time{text-align:left}
  .kf-two{grid-template-columns:1fr}
  .kf-addr{grid-template-columns:1fr 1fr}
  .kf-addr .kf-city{grid-column:1/-1}
  .kf-acts .plate{min-width:0;flex:1 1 0;padding:0 18px}
  .kf-done .kf-acts .plate{flex:1 1 100%}
  .kf-ways .plate{flex:1 1 100%}
}
@media print{
  .kf-acts,.kf-prog,.fp-side{display:none}
  .js .kf-step:not(.is-current){display:block}
}
