:root{--navy:#463276;--ice:#f0eaf8;--mist:#c7b7ec;--brass:#f5d894;--slate:#665f74;--line:#ddd5e9;--paper:#faf8fd;--green:#255546;--red:#9d3434}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--navy);font:16px/1.5 var(--body)}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}a{color:inherit;text-underline-offset:4px}[hidden]{display:none!important}:focus-visible{outline:3px solid #8a62be;outline-offset:4px}.demo-banner{text-align:center;background:var(--ice);padding:8px 20px;font-size:12px;color:var(--slate)}header{height:96px;display:flex;align-items:center;justify-content:space-between;padding:0 6%;border-bottom:1px solid var(--line);background:white}.brand{text-decoration:none;font:29px/1.1 var(--display);letter-spacing:-.7px}.brand span{display:block;font:9px/1.5 var(--body);letter-spacing:2px;margin-top:8px}.plan-link{font-size:13px;text-decoration:none}.plan-link span{margin-left:12px}.layout{display:grid;grid-template-columns:32% 1fr;min-height:calc(100vh - 180px)}.story{background:var(--navy);color:white;padding:55px 14%;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:bold}.story .eyebrow{color:var(--mist);line-height:1.8;display:block}.story h1{font:42px/1.16 var(--display);letter-spacing:-1px;margin:24px 0}.story p{color:var(--mist);font-size:15px}.story-art{margin:0 -25px}.story-art svg{width:100%;max-height:230px}.small-rule{display:block;width:36px;height:2px;background:var(--brass);margin:16px 0}.story-bottom p{font-size:14px}.story-caption{display:block;font-size:11px;color:var(--mist);opacity:.85;max-width:270px;margin-top:24px}main{padding:38px 7% 58px;min-width:0}.form-shell{max-width:650px;margin:auto}.progress-top{display:flex;justify-content:space-between;gap:16px;font-size:12px;color:var(--slate);margin-bottom:13px}.progress-top strong{color:var(--navy);font-weight:normal}.progress-bars{display:grid;gap:6px}.progress-bars span{height:4px;background:#ddd5e9}.progress-bars span.current{background:var(--brass)}.progress-bars span.done{background:var(--navy)}.progress-labels{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:var(--slate);margin-top:10px}.progress-labels .current{color:var(--navy);font-weight:bold}.progress-labels .skipped{text-decoration:line-through;opacity:.7}.back{display:inline-flex;gap:8px;align-items:center;border:0;background:transparent;padding:0;color:var(--slate);font-size:13px;margin:30px 0 20px;min-height:25px}.back:disabled{visibility:hidden}.screen-title{font:34px/1.2 var(--display);letter-spacing:-.7px;margin:4px 0 12px;max-width:610px}.screen-copy{font-size:15px;color:var(--slate);margin:0 0 26px;max-width:580px}.screen-tag{font-size:10px;letter-spacing:1.6px;font-weight:bold;color:var(--slate);margin-bottom:12px;display:block}.choices{display:grid;gap:10px}.choice{display:flex;align-items:center;gap:18px;position:relative;min-height:72px;background:white;padding:15px 20px;border:1px solid var(--line);border-radius:5px;text-align:left;color:var(--navy);width:100%}.choice:hover{border-color:var(--slate);background:#faf8fd}.choice[aria-checked=true]{border:2px solid var(--navy);padding:14px 19px;background:var(--ice)}.choice-title{font-size:15px;font-weight:600;display:block}.choice-sub{font-size:12px;color:var(--slate);display:block;margin-top:4px}.choice svg{width:45px;height:40px;flex-shrink:0}.choice-radio{margin-left:auto;min-width:18px;height:18px;border:1px solid #bdafcf;border-radius:50%;display:flex;align-items:center;justify-content:center}.choice[aria-checked=true] .choice-radio{border-color:var(--navy)}.choice[aria-checked=true] .choice-radio:after{content:'';width:8px;height:8px;border-radius:50%;background:var(--navy)}.compact-choices{grid-template-columns:1fr 1fr}.compact-choices .choice{min-height:65px;gap:10px;padding:14px}.compact-choices .choice[aria-checked=true]{padding:13px}.actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-top:26px}.primary{padding:14px 24px;background:var(--navy);border:1px solid var(--navy);color:white;border-radius:3px;min-height:50px;font-size:15px;min-width:160px}.primary:hover{background:#35225f}.secondary{padding:12px 18px;border:1px solid var(--line);border-radius:3px;background:white;color:var(--navy);font-size:14px;min-height:46px}.text-button{background:transparent;border:0;padding:8px 0;color:var(--slate);font-size:13px;text-decoration:underline;text-underline-offset:4px}.field{margin-bottom:18px}.field label,.field-label{display:block;font-size:14px;font-weight:600;margin-bottom:7px}.field input,.field textarea,.field select{width:100%;display:block;padding:13px 14px;border:1px solid #bdafcf;border-radius:3px;background:white;color:var(--navy);font-size:16px;min-height:49px}.field textarea{min-height:116px;resize:vertical;line-height:1.55}.field textarea::placeholder,.field input::placeholder{color:#665f74}.field-hint{font-size:12px;color:var(--slate);margin:7px 0 0}.field input[aria-invalid=true],.field textarea[aria-invalid=true]{border:2px solid var(--red)}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:18px}.error{padding:13px 16px;border-left:3px solid var(--red);color:var(--red);background:#fff3f1;margin-top:18px;font-size:14px}.inline-note{background:var(--ice);padding:17px 20px;border-left:2px solid var(--brass);font-size:13px;color:var(--slate);margin:22px 0}.inline-note strong{color:var(--navy)}.dictation-row{display:flex;align-items:center;gap:12px;margin-top:12px;flex-wrap:wrap}.dictate{display:inline-flex;align-items:center;gap:8px;min-height:43px;padding:10px 15px;border:1px solid var(--line);border-radius:3px;background:white;color:var(--navy);font-size:13px}.dictate.listening{border-color:var(--red);color:var(--red)}.dictation-row span{font-size:12px;color:var(--slate)}.speech-info{font-size:12px;color:var(--slate);margin:12px 0}.speech-info summary{cursor:pointer}.speech-info p{padding:8px 0;line-height:1.6}.interim{min-height:20px;font-size:13px;color:var(--slate);margin-top:8px}.clinic{padding:22px;background:white;border:1px solid var(--line);border-radius:5px;display:flex;gap:20px;align-items:start;margin:22px 0}.clinic-icon{background:var(--ice);width:48px;height:48px;display:flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:50%;font:24px var(--display)}.clinic h3{font:22px var(--display);margin:0 0 6px}.clinic p{font-size:13px;color:var(--slate);margin:0}.clinic .badge{font-size:10px;letter-spacing:1px;display:block;color:var(--slate);margin-top:10px}.receipt{border:1px solid var(--line);border-radius:5px;background:white;padding:22px;margin:24px 0}.receipt dl{display:grid;grid-template-columns:130px 1fr;gap:14px;margin:0;font-size:14px}.receipt dt{color:var(--slate)}.receipt dd{margin:0;overflow-wrap:anywhere}.status-dot{display:inline-block;width:7px;height:7px;background:var(--green);border-radius:50%;margin-right:7px}.success-icon{width:54px;height:54px;background:#e7f1ed;color:var(--green);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:24px;margin-bottom:20px}.notes{margin-top:28px;padding-top:24px;border-top:1px solid var(--line)}.notes h3{font:23px var(--display);margin:0 0 8px}.check-row{display:flex;gap:12px;align-items:center;padding:13px 0;font-size:14px;cursor:pointer}.check-row input{width:18px;height:18px;accent-color:var(--navy)}.dates{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.date-button{border:1px solid var(--line);border-radius:4px;background:white;color:var(--navy);padding:14px 10px;min-height:75px}.date-button span{display:block;font-size:12px;color:var(--slate)}.date-button strong{display:block;font-size:18px;font-weight:normal;margin-top:4px}.date-button[aria-pressed=true],.time-button[aria-pressed=true]{background:var(--navy);color:white;border-color:var(--navy)}.date-button[aria-pressed=true] span{color:var(--mist)}.times{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:20px}.time-button{background:white;border:1px solid var(--line);border-radius:3px;padding:12px;min-height:46px;color:var(--navy);font-size:14px}.prefill{color:var(--green);font-size:12px;margin:4px 0 18px}.prefill:before{content:'✓';margin-right:8px}.microcopy{font-size:11px;color:var(--slate);margin-top:18px}.outcome-note{white-space:pre-wrap}.tag{display:inline-block;font-size:11px;letter-spacing:.4px;padding:5px 8px;border:1px solid var(--line);border-radius:2px;background:var(--ice);margin-top:14px}footer{display:flex;gap:20px;justify-content:flex-end;align-items:center;padding:18px 6%;border-top:1px solid var(--line);font-size:11px;color:var(--slate);background:white}footer span{margin-right:auto}footer button{background:transparent;border:0;text-decoration:underline;color:var(--slate);font-size:11px;padding:8px 0}#controls{position:fixed;right:20px;bottom:20px;width:min(460px,calc(100vw - 40px));max-height:85vh;overflow:auto;z-index:10;background:white;box-shadow:0 15px 70px #46327633;border:1px solid var(--line);border-radius:6px;padding:25px}.controls-head{display:flex;justify-content:space-between;gap:20px}.controls-head h2{font:26px var(--display);margin:0}.controls-head button{font-size:24px;background:transparent;border:0;color:var(--slate)}#controls p{font-size:12px;color:var(--slate)}.control-buttons{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.control-buttons button{font-size:12px;padding:8px 10px;background:var(--ice);border:1px solid var(--line);border-radius:3px;color:var(--navy)}.test-toggle{font-size:12px;display:flex;align-items:center;gap:8px;margin:12px 0}#controls h3{font-size:13px;margin-top:24px}#record{font-size:11px;background:var(--ice);padding:12px;white-space:pre-wrap;overflow-wrap:anywhere}#events{font-size:11px;padding-left:18px;color:var(--slate)}.noscript{padding:25px}.honeypot{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}#screen{animation:appear .2s ease}@keyframes appear{from{opacity:.4;transform:translateY(4px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){#screen{animation:none}}
/* The default experience is the phone layout. Wider screens retain one column. */
body{min-height:100svh;background:#faf8fd}
header{height:80px;max-width:640px;margin:auto;padding:0 22px;background:transparent}
.brand{font-size:25px}.brand span{font-size:8px;letter-spacing:1.5px}
.plan-link{font-size:12px;min-height:44px;display:inline-flex;align-items:center}
.demo-banner{font-size:10px;padding:7px max(15px,env(safe-area-inset-left));line-height:1.5}
.layout{display:block;min-height:calc(100svh - 178px);width:100%}
main{max-width:640px;margin:auto;padding:16px 22px 36px;width:100%}
.form-shell{max-width:560px;margin:auto}
#progress{position:sticky;top:0;z-index:3;background:#faf8fd;padding:0 0 20px}
.progress-top{font-size:12px;gap:10px;align-items:center;min-height:44px;margin-bottom:8px}.progress-top strong{text-align:right;margin-left:auto}.progress-bars{grid-template-columns:repeat(var(--progress-steps,4),minmax(0,1fr))}
.progress-labels{font-size:10px;gap:8px}.progress-bars{gap:5px}
.back{min-height:44px;min-width:70px;padding:0 10px 0 0;margin:0;touch-action:manipulation}
.back:disabled{visibility:hidden;cursor:default}
.screen-title{font-size:28px;line-height:1.2;margin-top:0}.screen-copy{font-size:14px;margin-bottom:22px}
.choice{min-height:64px;padding:12px 14px;gap:12px;touch-action:manipulation}
.choice[aria-checked=true]{padding:11px 13px}.choice-title{font-size:14px}.choice svg{width:38px}
.compact-choices{grid-template-columns:1fr}.compact-choices .choice{min-height:56px}
.actions{margin-top:24px}.actions .primary{width:100%;min-height:52px;font-size:15px}
.field-row{grid-template-columns:1fr;gap:0}
.field input,.field textarea{font-size:16px;scroll-margin-top:110px}
.dictate,.secondary,.text-button,.speech-info summary{min-height:44px;touch-action:manipulation}
.speech-info summary{display:flex;align-items:center;list-style-position:inside}
.speech-info summary:before{content:'›';font-size:18px;margin-right:8px}
.speech-info[open] summary:before{transform:rotate(90deg)}
.receipt{padding:18px}.receipt dl{grid-template-columns:95px 1fr;font-size:13px}
.dates{gap:8px}.times{gap:8px}.time-button{font-size:13px}
.clinic{padding:18px;gap:13px}.clinic h3{font-size:20px}
.check-row{min-height:48px}.check-row input{width:20px;height:20px}
footer{max-width:640px;margin:auto;background:transparent;padding:8px 22px max(8px,env(safe-area-inset-bottom));gap:12px;flex-wrap:wrap}
footer span{font-size:10px}footer button{font-size:11px;min-height:44px;touch-action:manipulation}
.controls-head button,.control-buttons button{min-height:44px}
@media(min-width:700px){
  header{height:88px;padding:0 40px}.brand{font-size:28px}.brand span{font-size:9px}
  .layout{padding:14px 24px 30px;min-height:calc(100svh - 172px)}
  main{background:white;border:1px solid var(--line);border-radius:8px;padding:22px 38px 36px;box-shadow:0 12px 40px #46327608}
  #progress{background:white}.screen-title{font-size:32px}
  footer{padding:8px 40px}.screen-copy{font-size:15px}
}
@media(max-width:360px){
  header,main{padding-left:16px;padding-right:16px}.brand{font-size:23px}
  .plan-link{max-width:85px;text-align:right;line-height:1.4}
  .progress-labels{font-size:9px}.screen-title{font-size:27px}
  .receipt dl{grid-template-columns:1fr;gap:3px}.receipt dd{margin-bottom:10px}
}

/* A compact confirmation summary opens the prefilled form only for editing. */
.submission-recovery{display:grid;gap:20px;padding:8px 0}
.submission-recovery .screen-title,.submission-recovery .screen-copy,.submission-recovery .recovery-detail,.submission-recovery .actions,.submission-recovery .submission-help{margin:0}
.submission-recovery .recovery-detail,.submission-help{font-size:14px;line-height:1.65;color:var(--slate)}
.submission-help{margin:16px 0 0;overflow-wrap:anywhere}
.submission-help a{color:var(--navy);text-decoration:underline;text-underline-offset:3px}
.submission-recovery #recovery-error[hidden]{display:none}
.patient-summary{padding:16px 18px;border:1px solid var(--line);border-radius:16px;background:white;margin:18px 0}
.summary-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.summary-heading h3{font-size:16px;margin:0;letter-spacing:-.02em}
.summary-heading .text-button{flex-shrink:0;color:var(--plum)}
.patient-summary .receipt{padding:0;margin:0;border:0;border-radius:0}
.patient-summary .receipt dl{gap:10px 12px}
.edit-actions .secondary{width:100%}
@media(min-width:700px){.edit-actions{flex-wrap:nowrap}.edit-actions .secondary{width:auto;min-width:100px}.edit-actions .primary{flex:1}}
@media(max-width:360px){.patient-summary .receipt dl{grid-template-columns:82px minmax(0,1fr);gap:10px 12px}.patient-summary .receipt dd{margin-bottom:0}}

/* Clinic profile and five-day consultation calendar. */
.clinic-profile{margin:22px 0;padding:20px;background:#faf8fd;border:1px solid #e3dcec;border-radius:18px}
.clinic-profile-heading,.dentist-profile{display:flex;align-items:center;gap:14px}
.clinic-profile-heading h3{margin:0 0 4px;font-size:18px}.clinic-profile p{margin:3px 0;line-height:1.5}
.dentist-profile{margin:18px 0;padding-top:18px;border-top:1px solid #e3dcec}.dentist-profile img{width:80px;height:80px;object-fit:cover;border-radius:50%;flex-shrink:0}.dentist-profile h4{font-size:16px;margin:0 0 4px}.dentist-profile .field-hint{margin-top:6px}
.clinic-reviews{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:14px}.review-stars{color:#856b28;letter-spacing:1px}.clinic-profile .clinic-fixture{font-size:12px;color:#71677f;margin-top:10px}
.calendar-navigation{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}.calendar-navigation span{font-weight:700}.calendar-page{width:44px;height:44px;display:grid;place-items:center;background:white;border:1px solid #d5cbe4;border-radius:12px;color:#463276;font-size:20px;cursor:pointer}.calendar-page:disabled{opacity:.4;cursor:default}
.date-accordions{display:grid;gap:10px}.date-accordion{border:1px solid #d9d2e4;border-radius:14px;background:#fff;overflow:hidden}.date-accordion[open]{border-color:#463276;box-shadow:0 0 0 1px #463276}
.date-accordion summary{display:grid;grid-template-columns:40px 1fr auto 18px;gap:12px;align-items:center;padding:16px;min-height:64px;cursor:pointer;list-style:none}.date-accordion summary::-webkit-details-marker{display:none}.date-day{color:#71677f;font-size:14px}.date-availability{color:#71677f;font-size:13px}.date-chevron{font-size:21px;line-height:1}.date-accordion[open] .date-chevron{transform:rotate(180deg)}
.day-slots{padding:0 16px 16px}.day-slots .field-hint{margin:0 0 12px}.day-slots .times{margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.day-slots .time-button{min-height:48px;width:100%;padding:10px 4px;display:flex;align-items:center;justify-content:center;gap:6px;font-size:14px}.selected-slot{margin:18px 0 0;line-height:1.5}
.primary:disabled{opacity:.45;cursor:default;box-shadow:none}.date-accordion summary:focus-visible,.calendar-page:focus-visible{outline:3px solid #c7b7ec;outline-offset:3px}
@media(min-width:768px){#screen{font-size:16px}#screen .screen-title{font-size:28px;line-height:1.3}#screen .screen-copy{font-size:16px;line-height:1.65}#screen .choice-title{font-size:16px}#screen input,#screen textarea,#screen .primary{font-size:16px}.consent-row{font-size:14px;line-height:1.6}}
@media(max-width:420px){.clinic-profile{padding:16px}.date-accordion summary{gap:8px;padding:14px;grid-template-columns:34px 1fr auto 16px}.date-availability{font-size:12px}.dentist-profile{gap:12px}.dentist-profile img{width:64px;height:64px}.day-slots{padding:0 12px 14px}}
