/* find-driver.com booking calendar (booker.js).
   Same tokens as the rest of the site: ink #15181C, muted #50565E, line #E2E2DC,
   paper #F3F3EF, accent #FFC21A (hover #F2B200), 8px controls, 14px card.
   Self-contained: every rule is scoped under .fdb, so it renders the same on the
   Astro pages and inside the homepage bundle. */

/* The host element: a size container, so the card lays out by its own width. */
[data-fd-booker]{container:fdbook / inline-size;display:block;min-width:0;width:100%}
[data-fd-booker]:not([data-fdb-mounted]){min-height:520px}

.fdb{--fdb-ink:#15181C;--fdb-ink2:#50565E;--fdb-ink3:#7A818A;--fdb-line:#E2E2DC;--fdb-paper:#F3F3EF;
  --fdb-acc:#FFC21A;--fdb-acc-h:#F2B200;--fdb-acc-soft:#FFF4D1;--fdb-acc-soft-h:#FFE9A6;--fdb-bad:#C8282E;
  display:grid;grid-template-columns:minmax(0,1fr);background:#FFFFFF;color:var(--fdb-ink);
  border:1px solid #2E343B;border-top:4px solid var(--fdb-acc);border-radius:14px;overflow:hidden;
  box-shadow:0 18px 50px rgba(0,0,0,.45);text-align:left;
  font-family:'Atkinson Hyperlegible Next',system-ui,-apple-system,'Segoe UI',sans-serif;
  font-size:16px;line-height:1.45;-webkit-font-smoothing:antialiased}
.fdb *,.fdb *::before,.fdb *::after{box-sizing:border-box}
/* Resets carry zero specificity (:where) so every .fdb-* rule below wins over
   them, while still beating the browser's own button and list styles. */
:where(.fdb) :where(h2,h3,h4,p,ul,ol,fieldset,legend){margin:0;padding:0}
:where(.fdb) :where(fieldset){border:0;min-width:0}
:where(.fdb) :where(ul,ol){list-style:none}
:where(.fdb) :where(button,input,textarea){font:inherit;color:inherit;letter-spacing:normal;text-transform:none}
:where(.fdb) :where(button){cursor:pointer;-webkit-tap-highlight-color:transparent}
:where(.fdb) :where(button:disabled){cursor:default}
.fdb a{color:var(--fdb-ink);text-decoration:underline;text-decoration-color:var(--fdb-acc);
  text-decoration-thickness:2px;text-underline-offset:3px}
.fdb a:hover{color:var(--fdb-ink2)}
.fdb :focus-visible{outline:3px solid var(--fdb-acc);outline-offset:2px}
.fdb svg{width:16px;height:16px;display:block;flex:0 0 auto}

/* --- left column: who, length, how, time zone ---------------------------- */
.fdb-side{padding:22px 20px;border-bottom:1px solid var(--fdb-line)}
.fdb-who{display:flex;align-items:center;gap:14px}
.fdb-who img{width:64px;height:64px;border-radius:50%;object-fit:cover;object-position:center 22%;flex:0 0 64px;
  background:var(--fdb-paper);box-shadow:0 0 0 3px #FFFFFF,0 0 0 5px var(--fdb-acc)}
.fdb-mono{width:64px;height:64px;border-radius:50%;flex:0 0 64px;display:grid;place-items:center;
  background:var(--fdb-ink);color:var(--fdb-acc);font-family:Archivo,'Arial Narrow',Arial,sans-serif;
  font-weight:800;font-size:26px;line-height:1}
.fdb-name{font-size:18px;font-weight:700;line-height:1.25}
.fdb-role{font-size:14px;color:var(--fdb-ink2);line-height:1.3;margin-top:2px}
.fdb-badges{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.fdb-badge{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border-radius:999px;
  background:var(--fdb-ink);color:#FFFFFF;font-size:14px;font-weight:700;font-variant-numeric:tabular-nums}
.fdb-badge svg{width:15px;height:15px;color:var(--fdb-acc)}
.fdb-facts{margin-top:14px;display:flex;flex-direction:column;gap:10px}
.fdb-facts li{display:flex;gap:10px;align-items:flex-start;font-size:15px;line-height:1.45;color:#2B3036}
.fdb-ic{margin-top:2px;color:var(--fdb-ink3)}
.fdb-facts li > div{min-width:0;flex:1}
.fdb-tzbox{position:relative}
.fdb-tzname{display:block;font-weight:700;color:var(--fdb-ink)}
.fdb-tzrow{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;margin-top:4px}
.fdb-link{background:none;border:0;padding:0;min-height:44px;display:inline-flex;align-items:center;
  font-size:15px;font-weight:700;color:var(--fdb-ink);text-decoration:underline;text-decoration-color:var(--fdb-acc);
  text-decoration-thickness:2px;text-underline-offset:3px;text-align:left}
.fdb-link:hover{color:var(--fdb-ink2)}
.fdb-seg{display:inline-flex;border:1px solid var(--fdb-line);border-radius:10px;padding:2px}
.fdb-seg button{min-height:40px;min-width:48px;padding:0 10px;border:0;border-radius:8px;background:transparent;
  font-size:13px;font-weight:700;color:var(--fdb-ink2);font-variant-numeric:tabular-nums}
.fdb-seg button:hover{color:var(--fdb-ink)}
.fdb-seg button[aria-pressed="true"]{background:var(--fdb-paper);color:var(--fdb-ink)}
.fdb-tzpop{position:absolute;z-index:6;left:-30px;top:calc(100% + 6px);width:min(320px,calc(100vw - 40px));
  max-height:min(440px,70vh);overflow-y:auto;overscroll-behavior:contain;
  background:#FFFFFF;border:1px solid var(--fdb-line);border-radius:12px;padding:6px;
  box-shadow:0 14px 40px rgba(21,24,28,.18)}
.fdb-tzpop[hidden]{display:none}
.fdb-poph{font-size:13px;font-weight:700;color:var(--fdb-ink2);padding:8px 10px 4px}
.fdb-tzpop button{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;min-height:52px;
  padding:6px 10px;border:0;border-radius:8px;background:transparent;font-size:15px;text-align:left;line-height:1.25}
.fdb-tzpop button:hover{background:var(--fdb-paper)}
.fdb-tzpop button[aria-current="true"]{background:var(--fdb-acc-soft);font-weight:700}
.fdb-popn{display:flex;flex-direction:column;min-width:0}
.fdb-popn > span{display:inline-flex;align-items:center;gap:6px}
.fdb-popn small{font-size:13px;font-weight:400;color:var(--fdb-ink2);margin-top:2px}
.fdb-star svg{width:14px;height:14px;color:#D69E00}
.fdb-popt{font-size:13px;font-weight:400;color:var(--fdb-ink2);white-space:nowrap;font-variant-numeric:tabular-nums}

/* --- right column ------------------------------------------------------ */
.fdb-main{padding:24px 20px 26px;min-width:0}
.fdb-main.fdb-anim{animation:fdb-in .26s ease-out}
@keyframes fdb-in{from{opacity:0;transform:translateX(14px)}to{opacity:1;transform:none}}
.fdb-h{font-family:Archivo,'Arial Narrow',Arial,sans-serif;font-weight:800;font-size:24px;line-height:1.15;
  letter-spacing:-.01em;word-spacing:.08em;outline:none;scroll-margin-top:90px}
.fdb-p{margin-top:10px;color:#2B3036}
.fdb-note{margin-top:12px;padding:10px 14px;border-radius:8px;background:var(--fdb-acc-soft);
  border-left:4px solid var(--fdb-acc);font-size:15px;font-weight:700}
.fdb-pick{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;margin-top:16px}
.fdb-calhead{display:flex;align-items:center;justify-content:space-between;gap:12px}
.fdb-calhead h3{font-size:17px;font-weight:700}
.fdb-nav{display:flex;margin-right:-8px}
.fdb-nav button{width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:8px;
  background:transparent;color:var(--fdb-ink)}
.fdb-nav button:hover:not(:disabled){background:var(--fdb-paper)}
.fdb-nav button:disabled{color:#C9CCD0}
/* No spacing between cells: each day button fills its whole cell (the tap
   target), and the coloured pill is drawn 2px inside it (background-clip). */
.fdb-grid{width:100%;margin:6px 0 0;table-layout:fixed;border-collapse:separate;border-spacing:0}
.fdb-grid th{padding:0 0 4px;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  color:var(--fdb-ink3);text-align:center}
.fdb-grid td{padding:0}
.fdb-day{position:relative;width:100%;height:46px;border:0;border-radius:11px;padding:2px;
  background:transparent;background-clip:content-box;
  font-size:16px;font-variant-numeric:tabular-nums;color:#A3A8AE;transition:background .12s ease}
.fdb-day:focus-visible{outline-offset:-3px}
.fdb-day.today::after{content:"";position:absolute;left:50%;bottom:8px;width:12px;height:2px;margin-left:-6px;
  border-radius:1px;background:currentColor;opacity:.7}
.fdb-day.av{background:var(--fdb-acc-soft);color:var(--fdb-ink);font-weight:700}
.fdb-day.av:hover{background:var(--fdb-acc-soft-h)}
.fdb-day.av[aria-pressed="true"]{background:var(--fdb-ink);color:#FFFFFF}
.fdb-day.av[aria-pressed="true"].today::after{background:var(--fdb-acc);opacity:1}
.fdb-timeshead{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 16px}
.fdb-timeshead h3{font-size:17px;font-weight:700}
.fdb-timeshead p{font-size:14px;color:var(--fdb-ink2)}
.fdb-group{margin-top:14px}
.fdb-group + .fdb-group{margin-top:18px}
.fdb-part{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:700;letter-spacing:.08em;
  text-transform:uppercase;color:var(--fdb-ink2)}
.fdb-part::after{content:"";flex:1;height:1px;background:var(--fdb-line)}
.fdb-tlist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}
.fdb-t{width:100%;min-height:52px;border:1.5px solid var(--fdb-line);border-radius:10px;background:#FFFFFF;
  font-size:17px;font-weight:700;font-variant-numeric:tabular-nums;color:var(--fdb-ink);
  transition:border-color .12s ease,background .12s ease,transform .12s ease}
.fdb-t:hover{border-color:var(--fdb-ink);background:var(--fdb-acc-soft)}
.fdb-t:active{transform:scale(.98)}
.fdb-skel{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin-top:22px;max-width:340px}
.fdb-skel i{display:block;height:40px;border-radius:10px;background:var(--fdb-paper);animation:fdb-pulse 1.4s ease-in-out infinite}
@keyframes fdb-pulse{50%{opacity:.45}}

/* --- details form ------------------------------------------------------ */
.fdb-sum{display:flex;flex-wrap:wrap;align-items:center;gap:0 14px;margin-top:6px;color:#2B3036;font-size:16px}
.fdb-sum > span{font-weight:700}
.fdb-texas{display:block;margin-top:2px;font-size:14px;font-weight:400;color:var(--fdb-ink2)}
.fdb-form{display:flex;flex-direction:column;gap:16px;margin-top:16px;max-width:520px}
.fdb-row2{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
.fdb-f{display:flex;flex-direction:column;min-width:0}
.fdb-f label,.fdb-fleet legend{font-size:15px;font-weight:700;margin-bottom:6px;color:var(--fdb-ink)}
.fdb-f label span,.fdb-fleet legend span{font-weight:400;color:var(--fdb-ink2)}
.fdb-f input,.fdb-f textarea{width:100%;border:1.5px solid #C9CCD0;border-radius:8px;background:#FFFFFF;
  font-size:17px;color:var(--fdb-ink);transition:border-color .12s ease}
.fdb-f input{height:52px;padding:0 14px}
.fdb-f textarea{min-height:76px;padding:12px 14px;resize:vertical;line-height:1.4}
.fdb-f input:focus,.fdb-f textarea:focus{outline:0;border-color:var(--fdb-ink);box-shadow:0 0 0 3px var(--fdb-acc)}
.fdb-f input::placeholder,.fdb-f textarea::placeholder{color:#6E737B}
/* The contact placeholder is long ("+1 (555) 000-0000 or john@fleet.com", 17.5em):
   on a narrow card its type shrinks to fit the field instead of being cut off. The
   typed text stays 17px (iOS zooms into inputs under 16px). */
.fdb-f-contact input::placeholder{font-size:15px;font-size:clamp(13px,calc((100cqw - 68px) / 17.9),17px)}
@media (max-width:359px){.fdb-f-contact input::placeholder{font-size:clamp(13px,calc((100cqw - 52px) / 17.9),17px)}}
@container fdbook (max-width:420px){.fdb-f input{padding:0 12px}}
.fdb-f [aria-invalid="true"]{border-color:var(--fdb-bad)}
.fdb-hint{font-size:13px;color:var(--fdb-ink2);margin-top:5px;min-height:1.45em}
.fdb-err{font-size:14px;font-weight:700;color:var(--fdb-bad);margin-top:5px}
.fdb-err[hidden],.fdb-formerr[hidden]{display:none}
.fdb-formerr{padding:10px 14px;border-radius:8px;background:#FDECEC;color:#8E1B20;font-size:15px;font-weight:700}
/* honeypot: invisible to people and to screen readers */
.fdb-hp{display:none!important;visibility:hidden!important;position:absolute!important;left:-10000px!important}
/* fleet size: four chips, one tap */
.fdb-chips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.fdb-chip{position:relative;display:block}
.fdb-chip input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.fdb-chip span{display:flex;align-items:center;justify-content:center;height:48px;border:1.5px solid #C9CCD0;
  border-radius:8px;background:#FFFFFF;font-size:16px;font-weight:700;font-variant-numeric:tabular-nums;
  color:var(--fdb-ink);transition:border-color .12s ease,background .12s ease}
.fdb-chip:hover span{border-color:var(--fdb-ink)}
.fdb-chip input:checked + span{background:var(--fdb-ink);border-color:var(--fdb-ink);color:#FFFFFF}
.fdb-chip input:focus-visible + span{outline:3px solid var(--fdb-acc);outline-offset:2px}
.fdb-addnotes{align-self:flex-start;margin-top:-6px}
.fdb-actions{display:flex;flex-wrap:wrap;gap:10px 12px;margin-top:4px}
.fdb-btn,.fdb-btn2{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:0 24px;
  border-radius:8px;font-size:17px;font-weight:700;text-decoration:none!important;white-space:nowrap}
.fdb-btn{border:0;background:#FFC21A;color:var(--fdb-ink)!important}
.fdb-btn:hover{background:var(--fdb-acc-h)}
.fdb-btn2{border:2px solid var(--fdb-ink);background:transparent;color:var(--fdb-ink)!important}
.fdb-btn2:hover{background:var(--fdb-paper)}
.fdb-btn:disabled,.fdb-btn2:disabled{opacity:.6}
.fdb-go{height:52px;width:100%;font-size:18px}
.fdb-go svg{width:20px;height:20px;transition:transform .15s ease}
.fdb-go:hover svg{transform:translateX(3px)}
.fdb-fine{font-size:13px;color:var(--fdb-ink2);margin-top:2px}

/* --- confirmation ------------------------------------------------------ */
.fdb-ok{display:inline-flex;align-items:center;gap:8px;margin-bottom:10px;font-size:15px;font-weight:700;color:#1E7A45}
.fdb-check{width:26px;height:26px;border-radius:50%;background:#DDF3E5;display:grid;place-items:center}
.fdb-check svg{width:15px;height:15px}
.fdb-when{margin-top:8px;font-size:19px;font-weight:700}
.fdb-donelist{margin:16px 0 4px;display:flex;flex-direction:column;gap:8px}
.fdb-donelist li{position:relative;padding-left:22px;color:#2B3036}
.fdb-donelist li::before{content:"";position:absolute;left:0;top:.5em;width:10px;height:10px;border-radius:3px;
  background:var(--fdb-acc)}
.fdb-main[data-step="done"] .fdb-actions,.fdb-main[data-step="empty"] .fdb-actions{margin-top:18px}

/* --- "What we cover" --------------------------------------------------- */
.fdb-cover{padding:20px;border-top:1px solid var(--fdb-line)}
.fdb-cover h3{font-size:15px;font-weight:700}
.fdb-cover ol{margin-top:10px;display:flex;flex-direction:column;gap:8px}
.fdb-cover li{display:flex;align-items:center;gap:12px;font-size:15px;line-height:1.45;color:#2B3036}
.fdb-cover li > span:first-child{flex:0 0 24px;height:24px;border-radius:6px;background:var(--fdb-acc);
  color:var(--fdb-ink);font-size:13px;font-weight:700;display:grid;place-items:center}
.fdb-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);
  white-space:nowrap;border:0}

/* --- wider screens ------------------------------------------------------ */
/* Phones under 360px: seven day columns get tight, so the card widens into the
   page gutter and its padding shrinks, keeping each day a 40px tap target. */
@media (max-width:359px){
  [data-fd-booker]{width:auto;margin-left:-12px;margin-right:-12px}
  .fdb-main{padding-left:12px;padding-right:12px}
  .fdb-side,.fdb-cover{padding-left:16px;padding-right:16px}
  .fdb-day{font-size:15px}
}
@media (min-width:420px){
  .fdb-chips{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (min-width:480px){
  .fdb-tlist{grid-template-columns:repeat(3,minmax(0,1fr))}
  .fdb-row2{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
}
@media (min-width:768px){
  .fdb{grid-template-columns:280px minmax(0,1fr);grid-template-rows:auto 1fr}
  .fdb-side{grid-column:1;grid-row:1;border-bottom:0;border-right:1px solid var(--fdb-line);padding:26px 24px 20px}
  .fdb-cover{grid-column:1;grid-row:2;border-top:0;border-right:1px solid var(--fdb-line);padding:0 24px 24px}
  .fdb-coverin{border-top:1px solid var(--fdb-line);padding-top:20px}
  .fdb-main{grid-column:2;grid-row:1 / span 2;padding:26px 28px 30px;min-height:470px}
  .fdb-tzpop{left:0}
  .fdb-go{width:auto;min-width:280px;padding:0 32px}
}
/* Calendar and times side by side only when the card itself is wide (the
   homepage and /book give it most of the row; narrow cards stack). */
@container fdbook (min-width:860px){
  .fdb-pick{grid-template-columns:minmax(0,19rem) minmax(0,1fr);gap:36px}
  /* beside the calendar a long day scrolls in place instead of stretching the card */
  .fdb-tscroll{max-height:392px;overflow-y:auto;overscroll-behavior:contain;padding:0 6px 2px 2px;margin-right:-6px}
  .fdb-tlist{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@container fdbook (min-width:980px){
  .fdb-tlist{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (prefers-reduced-motion:reduce){.fdb *,.fdb-main.fdb-anim{transition:none!important;animation:none!important}}

/* --- Progressive Capture: step 1 (phone + fleet size) ------------------- */
.fdb-stepno{font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--fdb-ink2);
  margin:0 0 6px}
.fdb-gateform{max-width:520px}
.fdb-f-phone input{font-size:17px;letter-spacing:.01em;font-variant-numeric:tabular-nums}
.fdb-cont:disabled{opacity:.55;cursor:not-allowed}
.fdb-micro{margin:2px 0 0;padding:10px 12px;border-radius:8px;background:var(--fdb-acc-soft);color:var(--fdb-ink);
  font-size:14px;font-weight:700;line-height:1.4;text-align:center}
/* while step 1 is open, the side column says nothing about times yet */
.fdb.fdb-gated .fdb-tzli{display:none}

/* --- social proof and urgency around the calendar ----------------------- */
.fdb-proof{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.fdb-pill{display:inline-flex;align-items:center;gap:8px;min-height:32px;margin:0;padding:6px 12px;border-radius:999px;
  font-size:14px;font-weight:700;line-height:1.3}
.fdb-pill-match{background:#E6F4EA;color:#1B5E3A}
.fdb-pill-live{background:var(--fdb-acc-soft);color:#5C4300}
.fdb-dot{width:8px;height:8px;border-radius:50%;background:currentColor;flex:0 0 8px}
.fdb-pill-live .fdb-dot{animation:fdb-pulse 1.6s ease-in-out infinite}

/* --- the modal (Technical PRD 3.1-3.2) ----------------------------------- */
html.fdb-lock{overflow:hidden}
html.fdb-lock body{position:fixed;left:0;right:0;width:100%;overflow:hidden}
.fdb-dlg{position:fixed;inset:0;z-index:1000;display:flex;align-items:flex-start;justify-content:center;
  overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:32px 16px}
.fdb-dlg[hidden]{display:none}
.fdb-dlg-back{position:fixed;inset:0;background:rgba(14,16,19,.55);
  -webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.fdb-dlg-box{position:relative;width:min(1100px,100%);margin:auto 0;opacity:0;transform:translateY(10px);
  transition:opacity .18s ease,transform .18s ease}
.fdb-dlg.is-open .fdb-dlg-box{opacity:1;transform:none}
.fdb-dlg.is-gate .fdb-dlg-box{width:min(560px,100%)}
.fdb-dlg-x{position:absolute;top:12px;right:12px;z-index:7;width:44px;height:44px;border-radius:50%;border:0;
  background:#F3F3EF;color:#15181C;display:grid;place-items:center;cursor:pointer}
.fdb-dlg-x:hover{background:#E7E7E1}
.fdb-dlg-x:focus-visible{outline:3px solid #FFC21A;outline-offset:2px}
.fdb-dlg-x svg{width:20px;height:20px;display:block}
.fdb-dlg [data-fd-booker]{min-height:0}
.fdb-dlg .fdb{box-shadow:0 24px 70px rgba(0,0,0,.45)}
.fdb-dlg .fdb-stepno,.fdb-dlg .fdb-main > .fdb-h,.fdb-dlg .fdb-who{padding-right:48px}
/* step 1 in the modal: one column, just the form */
.fdb-dlg.is-gate .fdb{grid-template-columns:minmax(0,1fr)}
.fdb-dlg.is-gate .fdb-side,.fdb-dlg.is-gate .fdb-cover{display:none}
.fdb-dlg.is-gate .fdb-main{grid-column:1;grid-row:1;min-height:0}
/* step 2: a fixed minimum height, so the card does not jump while the times load */
.fdb-dlg:not(.is-gate) .fdb{min-height:650px}
@media (max-width:767px){
  .fdb-dlg{padding:12px}
  .fdb-dlg-box,.fdb-dlg.is-gate .fdb-dlg-box{width:100%}
  .fdb-dlg [data-fd-booker]{margin-left:0;margin-right:0;width:100%}
}
@media (prefers-reduced-motion:reduce){.fdb-dlg-box{transition:none}.fdb-pill-live .fdb-dot{animation:none}}

/* PRD 2026-11-04: C-3 three "trucks sitting" chips, C-6 agreement link */
.fdb-chips.fdb-chips3{grid-template-columns:repeat(3,minmax(0,1fr))}
.fdb-agree{margin:14px 0 0;font-size:16px}
.fdb-agree a{color:var(--fdb-ink);font-weight:700;text-decoration-color:var(--fdb-acc);text-decoration-thickness:2px;text-underline-offset:3px}
