/* The survey pop-up, shared by /start and the home page (start/start.js runs it on both).
   Self-contained: its own colours, resets and button, so it looks the same on either page. The values match start.css's :root. */
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/InterTight-latin-1.woff2) format('woff2'); } /* the variable file both pages already load */
.survey { --bg: #f4f7fb; --ink: #0d0d0f; --ink-2: #2a2b30; --mut: rgba(13,20,35,.56); --line: rgba(15,30,55,.09); --ring: rgba(15,30,55,.2); --card: #fff; --blue: #1f6fe5;
  --f: 'Inter Tight', system-ui, sans-serif; --ease: cubic-bezier(.22,.61,.36,1); --r: 20px; --r-sm: 12px; font: 400 17px/1.55 var(--f); -webkit-font-smoothing: antialiased; }
:where(.survey) button { font: inherit; color: inherit; border: 0; cursor: pointer; }
:where(.survey) a { color: inherit; }
:where(.survey) :focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.survey [hidden] { display: none !important; }
.survey .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* the main button, complete here so it does not depend on either page's own .pill */
:where(.survey) .sv-next { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 56px; padding: 0 28px; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: 16px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; transition: background-color .2s, transform .2s; }
:where(.survey) .sv-next:hover { background: var(--ink-2); transform: translateY(-1px); }
/* the home page hides the system cursor for its own drawn one, which sits under a modal: give the cursor back inside the survey */
html.has-cursor .survey, html.has-cursor .survey * { cursor: auto !important; }
html.has-cursor .survey :is(button, label, a, .ch input) { cursor: pointer !important; }
html.locked :is(.cur-dot, .cur-ring) { opacity: 0 !important; }
/* ---------- survey (approved mockup design/survey-r1.html?v=c, 18 Nov 2026) ---------- */
.survey { margin: auto; width: min(680px, calc(100vw - 48px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 24px; background: var(--card); color: var(--ink); overflow: auto; }
.survey::backdrop { background: rgba(11,15,25,.55); }
/* open, step, close and Confirm motion: start/motion.js */
.survey form { display: flex; flex-direction: column; padding: 32px clamp(28px, 3.4vw, 48px) 40px; }
.sv-hd { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; }
.sv-close { margin-left: auto; }
.survey[data-step="1"] .sv-back { display: none; }
.circ { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: none; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s var(--ease); }
.circ:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.circ svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sv-bar { display: none; flex: 1 0 100%; height: 2px; margin-top: 20px; background: var(--line); border-radius: 2px; overflow: hidden; }
.sv-bar i { display: block; height: 100%; width: var(--p, 0%); background: var(--blue); transition: width .4s var(--ease); }
.sv-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.sv-chips:empty { display: none; }
.sv-chips button { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; height: 36px; padding: 0 14px 0 10px; border-radius: 999px; background: var(--bg); font-size: 15px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background-color .2s var(--ease); }
.sv-chips button::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.2 8.6 12.8 14 7.2' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.sv-chips button:hover { background: #e8eef6; }
.sv-chips button:disabled { cursor: default; background: var(--bg); }
.sv-body { margin-top: 28px; }
.sv-chips:empty + .sv-body { margin-top: 36px; }
.q { border: 0; min-width: 0; }
.q legend { padding: 0; margin-bottom: 28px; font-size: clamp(30px, 2.6vw, 40px); font-weight: 600; line-height: 1.06; letter-spacing: -.045em; text-wrap: balance; outline: none; }
.chs { display: grid; gap: 8px; }
.ch { position: relative; display: flex; align-items: center; min-height: 64px; padding: 12px 24px; font-size: 18px; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; background: var(--card); border: 1px solid var(--ring); border-radius: var(--r-sm);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.ch:hover { border-color: var(--ink); background: var(--bg); }
.ch:has(:checked) { color: #fff; background: var(--ink); border-color: var(--ink); }
.ch:has(:focus-visible) { outline: 2px solid var(--blue); outline-offset: 3px; }
.ch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ch span { white-space: nowrap; }
.q input:not([type=radio]) { width: 100%; height: 64px; padding: 0; font: 400 clamp(20px, 2vw, 26px) var(--f); letter-spacing: -.02em; color: var(--ink); caret-color: var(--blue); border: 0; border-radius: 0; outline: none;
  background: linear-gradient(var(--blue), var(--blue)) 0 100% / 0 2px no-repeat, linear-gradient(var(--ring), var(--ring)) 0 100% / 100% 1px no-repeat; transition: background-size .4s var(--ease); }
.q input::placeholder { color: rgba(13,20,35,.5); }
.q input:not([type=radio]):focus { background-size: 100% 2px, 100% 1px; }
.two { display: grid; gap: 20px; }
.fld label { display: block; font-size: 15px; font-weight: 500; color: var(--mut); }
.sv-url { margin-top: 24px; }
.sv-help { margin-top: 8px; font-size: 15px; color: var(--mut); }
.sv-hint { min-height: 1.5em; margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.sv-act { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 8px; }
.sv-act .pill { height: 56px; padding: 0 28px; font-size: 16px; }
.survey[data-step="8"] .sv-chips { display: none; }
/* Confirm pressed: the label gives way to a check that draws itself while the booking lands */
.sv-next { position: relative; }
.sv-tick { position: absolute; inset: 0; margin: auto; width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.sv-next.ok { background: var(--blue); }
.sv-next.ok span { opacity: 0; }
.sv-next.ok .sv-tick { opacity: 1; animation: draw .5s .1s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.txt { min-height: 48px; padding: 0; background: none; font-size: 16px; color: var(--mut); text-decoration: underline; text-underline-offset: 3px; transition: color .2s var(--ease); }
.txt:hover { color: var(--ink); }
.sv-next:disabled { opacity: 1; background: rgba(13,13,15,.12); color: var(--mut); cursor: default; transform: none; }
.sv-consent, .sv-err { max-width: 34em; margin-top: 16px; font-size: 14px; line-height: 1.5; color: var(--mut); }
.sv-err { font-size: 15px; color: var(--ink); }
.sv-consent a, .sv-err a { text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute; left: -9999px; }
html.locked { overflow: hidden; }
/* booking (Calendly pattern): month calendar left, the chosen day's times right; the next 3 days with free times are tappable */
.sv-book legend { margin-bottom: 8px; }
.sv-tz { margin-bottom: 24px; font-size: 15px; color: var(--mut); }
.sv-slotmsg { font-size: 17px; }
.sv-cols { display: grid; gap: 28px; }
.sv-mh { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; margin-bottom: 8px; }
.sv-mh b { flex: 1; font-size: 18px; font-weight: 600; letter-spacing: -.02em; text-align: center; }
.sv-mh button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #1f6fe5; transition: background-color .2s var(--ease); }
.sv-mh button:hover:not(:disabled) { background: rgba(31,111,229,.1); }
.sv-mh button:disabled { color: var(--ring); cursor: default; }
.sv-mh svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sv-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px 0; text-align: center; }
.sv-grid i { padding: 8px 0; font-style: normal; font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--mut); }
.sv-grid button { position: relative; background: none; justify-self: center; width: 44px; height: 44px; border-radius: 50%; font-size: 16px; font-weight: 400; color: var(--mut); transition: background-color .2s var(--ease), color .2s var(--ease); }
.sv-grid button:disabled { cursor: default; }
.sv-grid .on { background: rgba(31,111,229,.1); color: #1f6fe5; font-weight: 700; }
.sv-grid .on:hover { background: rgba(31,111,229,.2); }
.sv-grid .sel, .sv-grid .sel:hover { background: #1f6fe5; color: #fff; }
.sv-grid .today::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.sv-dayname { display: flex; align-items: center; height: 44px; margin-bottom: 8px; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.sv-times { display: flex; flex-direction: column; gap: 8px; }
.sv-times > button { height: 48px; border-radius: 8px; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sv-times > button { flex: none; width: 100%; background: var(--card); color: #1f6fe5; box-shadow: inset 0 0 0 1px rgba(31,111,229,.45); transition: box-shadow .2s var(--ease), background-color .2s var(--ease); }
.sv-times > button:hover { box-shadow: inset 0 0 0 2px #1f6fe5; }
.sv-times > button[aria-pressed="true"] { background: #1f6fe5; color: #fff; box-shadow: none; }
.sv-bkerr { margin-top: 12px; font-size: 15px; color: var(--ink); }
.sv-bkerr:empty { display: none; }
@media (min-width: 700px) {
  .survey[data-step="7"] { width: min(860px, calc(100vw - 48px)); }
  .sv-cols { grid-template-columns: 340px minmax(0, 1fr); gap: 48px; align-items: start; }
  .sv-pick { display: flex; flex-direction: column; height: 396px; }
  .sv-times { flex: 1; min-height: 0; overflow-y: auto; padding-right: 6px; }
}
/* booked */
.sv-when { padding: 28px 32px; border-radius: var(--r); background: var(--bg); }
.sv-wday { font-size: clamp(48px, 4.4vw, 64px); font-weight: 300; line-height: 1; letter-spacing: -.045em; }
.sv-wtime { margin-top: 12px; font-size: 18px; color: var(--mut); }
.sv-wnote { margin-top: 20px; font-size: 17px; }
/* thank-you screen (home page): what happens next as three plain rows, then the nudge to book */
.sv-steps { display: grid; list-style: none; }
.sv-steps li { display: flex; align-items: flex-start; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.45; }
.sv-steps li:last-child { border-bottom: 1px solid var(--line); }
.sv-steps b { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--bg); color: var(--blue); font-size: 13px; font-weight: 600; }
.sv-lead { margin-top: 24px; font-size: 19px; font-weight: 500; letter-spacing: -.015em; }
/* on a short desktop window the answer chips step aside at the booking step so the panel fits */
@media (min-width: 700px) and (max-height: 900px) { .survey[data-step="7"] .sv-chips { display: none; } }
@media (max-width: 699px) {
  /* full screen: header and progress on top, the question under it, the button pinned to the foot; tap steps sit in the optical centre */
  .survey { width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; border-radius: 0; overflow: hidden; }
  .survey form { height: 100%; padding: 12px 20px max(20px, env(safe-area-inset-bottom)); overflow-y: auto; }
  .sv-bar { display: block; }
  .sv-chips { margin-top: 24px; gap: 6px; }
  .sv-chips button { height: 32px; font-size: 14px; }
  .sv-chips + .sv-body, .sv-chips:empty + .sv-body { margin-top: 28px; }
  .survey[data-step="7"] .sv-chips, .survey[data-step="8"] .sv-chips { display: none; }
  .sv-body { flex: 1; display: flex; flex-direction: column; }
  .q legend { font-size: 32px; margin-bottom: 24px; }
  .ch { min-height: 60px; padding: 10px 18px; font-size: 16px; }
  .two { gap: 16px; }
  .sv-act { margin-top: auto; padding-top: 24px; }
  .sv-act .sv-next { align-self: stretch; }
  .sv-act .txt { align-self: center; }
  .sv-body:has(.sv-next[hidden]) { justify-content: center; padding-bottom: 56px; }
  .sv-body:has(.sv-next[hidden]) .sv-act { margin-top: 0; padding-top: 0; }
  .survey[data-step="7"] .sv-body { justify-content: flex-start; }
  .sv-tz { margin-bottom: 18px; }
  .sv-when { padding: 24px; }
}
