/* 6. The closing form as a short chat: route pills, a few questions, contact details, then an editable summary and Send.
   No box: the site's own type, chips and underline field. */
.cx{--gut:clamp(20px,6vw,88px);width:min(560px,calc(100vw - 2 * var(--gut)));pointer-events:auto}
.cx [hidden]{display:none!important}
.cx-chat{position:relative}
/* one question at a time, in a box of a set height, so the answer field under it does not move; a longer one makes it grow.
   Nothing scrolls inside it, so there is no fade over the text. */
.cx-log{display:flex;flex-direction:column;gap:30px;min-height:clamp(190px,22vh,240px);padding:8px 0 14px}
.cx-log:has(.sm){min-height:0}
@media (max-width:560px){.cx-log{gap:22px;min-height:290px}}
.cx-m{font-size:clamp(22px,2.1vw,27px);line-height:1.35;letter-spacing:-.015em;animation:cx-in .35s ease;max-width:100%;color:var(--ink)}
.cx-typing{display:inline-flex;gap:5px;padding:8px 0}.cx-typing i{width:6px;height:6px;border-radius:50%;background:var(--ink);opacity:.5;animation:cx-b 1s infinite}.cx-typing i:nth-child(2){animation-delay:.15s}.cx-typing i:nth-child(3){animation-delay:.3s}
@keyframes cx-b{50%{opacity:.12}}@keyframes cx-in{from{opacity:0;transform:translateY(8px)}}
.cx-qrs{display:flex;flex-wrap:wrap;gap:12px;flex:none}.cx-qrs:empty{display:none}
.cx-qrs button{all:unset;cursor:pointer}
.cx-qrs button span{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border:1px solid #c9c9c4;border-radius:999px;font-weight:500;font-size:16px;background:#ffffffd9;transition:border-color .2s}
.cx-qrs button:hover span{border-color:var(--ink)}.cx-qrs button:focus-visible span{outline:2px solid var(--ink);outline-offset:3px}
.cx-in{display:flex;gap:12px;align-items:flex-end;margin-top:22px}
.cx-in .field{flex:1;margin:0}
.cx-send{flex:none;width:44px;height:44px;border-radius:50%;border:0;background:var(--ink);color:#fff;display:grid;place-items:center;cursor:pointer}
.cx-send svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.cx-back,.sm-back{all:unset;cursor:pointer;font:500 14px "Inter Tight",system-ui,sans-serif;color:var(--muted)}
.cx-back{display:block;margin-top:16px}
.cx-back:hover,.sm-back:hover{color:var(--ink)}.cx-back:focus-visible,.sm-back:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
/* the summary: no box, the site's own underline fields; everything is a real field you can edit */
.sm{display:grid;grid-template-columns:minmax(0,1fr);gap:34px;animation:cx-in .35s ease}
.sm-back{justify-self:start}
.sm h3{margin:0 0 14px;font-size:12px;letter-spacing:.08em;text-transform:uppercase;font-weight:600;color:var(--muted)}
.sm-sec{display:grid}
.sm-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px 28px;align-items:start}
.sm-sec>.sm-f+.sm-f{margin-top:20px}
.sm-short{margin:12px 0 0;font-size:13px;color:#b3261e}
.sm-f{display:grid;gap:2px;font-size:13px;color:var(--muted)}
.sm-f textarea{font:400 18px/1.4 "Inter Tight",system-ui,sans-serif;color:var(--ink);background:transparent;border:0;border-bottom:1px solid #b9b9b4;border-radius:0;padding:4px 0 8px;resize:none;overflow:hidden;width:100%;caret-color:var(--ink)}
.sm-f textarea:hover{border-bottom-color:#7c7c76}
.sm-f textarea:focus{outline:none;border-bottom-color:var(--ink);box-shadow:0 1px 0 var(--ink)}
.sm-f.bad textarea{border-bottom-color:#b3261e;box-shadow:0 1px 0 #b3261e}
.sm-f em{font-style:normal;color:#b3261e}.sm-f em:empty{display:none}
.sm-foot{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap;position:sticky;bottom:0;z-index:4;padding:18px 0 16px;background:linear-gradient(rgba(255,255,255,0),#fff 28%)}
.sm-ts{min-height:65px}
.sm .btn{border:0;cursor:pointer;font-family:inherit;height:52px;padding:0 26px;transition:opacity .2s}
.sm .btn:disabled{opacity:.35;cursor:not-allowed}
.sm .btn[aria-busy="true"]:disabled{opacity:1;cursor:progress;justify-content:center}
.sm-spin{width:15px;height:15px;margin-right:10px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:sm-spin .8s linear infinite}
@keyframes sm-spin{to{transform:rotate(1turn)}}
.sm .btn svg{width:15px;height:15px;margin-left:10px;fill:none;stroke:currentColor;stroke-width:1.6}
.sm .sent{flex-basis:100%;margin:0;font-size:15px;color:var(--ink)}.sm .sent:empty{display:none}.sm .sent.err{color:#b3261e}
@media (max-width:560px){.sm-grid{grid-template-columns:1fr}.sm .btn{width:100%;justify-content:center}}
@media (prefers-reduced-motion:reduce){.cx *{animation:none!important}}
/* the redesigned chat: progress above the question, and the last card's organisation pills, inputs and notes */
.cx-prog{font-size:13px;letter-spacing:.02em;color:var(--muted);margin-bottom:-18px}
.cx-lead{font-size:clamp(18px,1.6vw,21px)!important;color:var(--muted)!important}
.sm h3 small{text-transform:none;letter-spacing:0;font-weight:400;font-size:12px}
.sm-f input{font:400 18px/1.4 "Inter Tight",system-ui,sans-serif;color:var(--ink);background:transparent;border:0;border-bottom:1px solid #b9b9b4;border-radius:0;padding:4px 0 8px;width:100%;caret-color:var(--ink)}
.sm-f input:hover{border-bottom-color:#7c7c76}
.sm-f input:focus{outline:none;border-bottom-color:var(--ink);box-shadow:0 1px 0 var(--ink)}
.sm-f.bad input{border-bottom-color:#b3261e;box-shadow:0 1px 0 #b3261e}
.sm-org{display:flex;flex-wrap:wrap;gap:8px}
.sm-org button{all:unset;cursor:pointer;border:1px solid #c9c9c4;border-radius:999px;padding:8px 14px;font-size:14px;font-weight:500;background:#ffffffd9;transition:border-color .2s}
.sm-org button:hover{border-color:var(--ink)}
.sm-org button{display:inline-flex;align-items:center;gap:8px}
.sm-org button b{width:14px;height:14px;box-sizing:border-box;border:1.5px solid #9a9a95;border-radius:50%;flex:none;transition:border .15s}
.sm-org button[aria-checked=true]{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.sm-org button[aria-checked=true] b{border:4.5px solid var(--ink)}
/* their answers: read-only, so a line of text in a quiet panel, not pills */
.sm-told{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;background:#f3f3f0;border-radius:14px;padding:16px 18px}
.sm-told>div{min-width:0}
.sm-told h3{margin:0 0 6px}
.sm-told p{margin:0;font-size:16px;line-height:1.5}
.sm-told p span{white-space:nowrap}
.sm-told p i{font-style:normal;color:#9a9a95;margin:0 .15em}
.sm-told .sm-back{flex:none;text-decoration:underline;text-underline-offset:3px}
/* a pill's short line, for people who do not know a product's name yet */
.cx-qrs button small{margin-left:.4em;font-size:.86em;font-weight:400;color:var(--muted)}
.sm-org button:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.sm-urgent{margin:0;padding:12px 14px;background:#fff4e5;border-radius:10px;font-size:15px}
.sm-next{margin:-20px 0 0;font-size:15px;color:var(--muted)}
.cx-done small{display:block;margin-top:10px;font-size:16px;letter-spacing:0;color:var(--muted)}
.sm:focus{outline:none}
