/* /book, version D of Book a Call: Tesla's Schedule a Drive page (tesla.com/drive). One centered column of four steps,
   each a heading over two columns on a computer (choices left, picture or summary right), one column on a phone. */
body[data-page=book] .callbar{display:none}
.bd{max-width:1040px;margin:0 auto;padding:56px 24px 120px}
.bd h1{margin:0;text-align:center;font-family:var(--disp);font-size:40px;line-height:48px;font-weight:500;letter-spacing:-.005em}
.bd h2{margin:0 0 20px;font-family:var(--disp);font-size:24px;line-height:30px;font-weight:500}
.bd-sub{margin:-12px 0 20px;font-size:14px;line-height:20px;color:var(--ink2)}

/* 1. the title and three promises */
.bd-top{padding-bottom:32px}
.bd-why{list-style:none;margin:28px auto 0;padding:0;display:flex;flex-direction:column;gap:12px;width:max-content;max-width:100%}
.bd-why li{display:flex;align-items:center;gap:14px;font-size:14px;line-height:20px;color:var(--ink2)}
.bd-ic{flex:none;width:40px;height:40px;border-radius:4px;background:var(--card);display:grid;place-items:center;color:var(--ink)}
.bd-ic svg{width:20px;height:20px}
.bd-why a{color:var(--ink);font-weight:500;text-decoration:underline;text-underline-offset:3px}

.bd-sec{padding-top:56px;scroll-margin-top:24px}
.bd-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}

/* 2. select a call */
.bd-seg{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;padding:4px;background:var(--card);border-radius:4px}
.bd-seg.n2,.bd-seg.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.bd-seg button{height:38px;border-radius:4px;padding:0 4px;font-size:13.5px;font-weight:500;color:var(--ink2);white-space:nowrap;display:flex;align-items:center;justify-content:center;gap:8px;transition:background-color .2s,box-shadow .2s}
.bd-seg button svg{width:17px;height:17px}
.bd-seg button.on{background:#fff;color:var(--ink);box-shadow:0 1px 2px rgba(0,0,0,.08)}
.bd-lbl{margin:20px 0 8px;font-size:13px;line-height:18px;font-weight:500}
.bd-hosts[hidden]{display:none}
.bd-hgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.bd-host{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:4px;text-align:left;box-shadow:inset 0 0 0 1px var(--outline2);transition:box-shadow .2s,background-color .2s}
.bd-host:hover{box-shadow:inset 0 0 0 1px var(--outline)}
.bd-host.on{background:var(--card);box-shadow:inset 0 0 0 1px var(--ink2)}
.bd-host img{flex:none;width:40px;height:40px;border-radius:4px;object-fit:cover}
.bd-host b{display:block;font-size:14px;line-height:18px;font-weight:500}
.bd-host small{display:block;font-size:11.5px;line-height:15px;color:var(--gray);margin-top:2px}
.bd-opts{margin-top:20px;display:flex;flex-direction:column;gap:10px}
/* every call shows its description, as Tesla shows every model's (the panel's ask) */
.bd-opt{display:grid;grid-template-columns:1fr auto;gap:4px 14px;align-items:baseline;width:100%;padding:14px 16px;border-radius:4px;text-align:left;box-shadow:inset 0 0 0 1px var(--outline2);transition:box-shadow .2s,background-color .2s}
.bd-opt:hover{box-shadow:inset 0 0 0 1px var(--outline)}
.bd-opt.on{background:var(--card);box-shadow:inset 0 0 0 1px var(--ink2)}
.bd-opt-n{font-size:15px;line-height:20px;font-weight:500;color:var(--ink)}
.bd-opt-m{font-size:13px;line-height:20px;color:var(--ink2);white-space:nowrap}
.bd-opt-d{grid-column:1/-1;font-size:12.5px;line-height:18px;color:var(--gray)}
.bd-photo{margin:0;position:sticky;top:24px}
.bd-photo img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:4px;background:var(--card);transition:opacity .25s}
.bd-photo img.fade{opacity:.35}
.bd-photo figcaption{margin-top:12px}
.bd-photo b{display:block;font-size:15px;line-height:20px;font-weight:500}
.bd-photo span{display:block;font-size:13px;line-height:18px;color:var(--gray);margin-top:2px}

/* 3. select a day and time */
.bd-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.bd-f{margin-top:16px;scroll-margin-top:96px}
.bd-two .bd-f{margin-top:0}
.bd-form .bd-two+.bd-two,.bd-form .bd-two+.bd-f{margin-top:16px}
.bd-f label{display:block;font-size:13px;line-height:18px;font-weight:500;margin-bottom:6px}
.bd-f label i{font-style:normal;font-weight:400;color:var(--gray)}
.bd-f label i[hidden]{display:none}
.bd-f input,.bd-f textarea,.bd-sel select{display:block;width:100%;border:0;border-radius:4px;background:var(--card);padding:0 14px;font:inherit;font-size:14px;color:var(--ink);outline:none;box-shadow:inset 0 0 0 1px transparent;transition:box-shadow .2s;box-sizing:border-box}
.bd-f input{height:40px}
.bd-f textarea{padding:10px 14px;line-height:20px;resize:vertical;min-height:84px}
.bd-f input:focus,.bd-f textarea:focus,.bd-sel select:focus{box-shadow:inset 0 0 0 1px var(--ink)}
.bd-f input::placeholder,.bd-f textarea::placeholder{color:var(--gray)}
.bd-f.bad input{box-shadow:inset 0 0 0 1px var(--err,#C0392B)}
.bd-sel{position:relative}
.bd-sel select{height:40px;padding-right:38px;-webkit-appearance:none;appearance:none;cursor:pointer}
.bd-sel select:disabled{color:var(--gray);cursor:default}
.bd-sel svg{position:absolute;right:12px;top:50%;width:18px;height:18px;margin-top:-9px;color:var(--ink2);pointer-events:none}
.bd-msg{margin:12px 0 0;font-size:14px;line-height:20px;color:var(--ink2)}
.bd-msg[hidden]{display:none}
.bd-fnote{margin:8px 0 0;font-size:12.5px;line-height:18px;color:var(--gray)}
.bd-more{display:inline-block;margin-top:16px;font-size:13px;line-height:18px;color:var(--ink2);text-decoration:underline;text-underline-offset:3px}
.bd-expect{background:var(--card);border-radius:4px;padding:20px 22px}
.bd-expect h3{margin:0;font-size:15px;line-height:20px;font-weight:500}
.bd-expect p{margin:8px 0 0;font-size:13.5px;line-height:20px;color:var(--ink2)}
.bd-prep{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:10px;padding:12px 14px;border-radius:4px;background:#fff;text-align:left;box-shadow:inset 0 0 0 1px var(--outline2);transition:box-shadow .2s}
#bdExpLinks .bd-prep:first-child{margin-top:16px}
.bd-prep:hover{box-shadow:inset 0 0 0 1px var(--outline)}
.bd-prep b{display:block;font-size:14px;line-height:19px;font-weight:500}
.bd-prep small{display:block;font-size:12.5px;line-height:18px;color:var(--gray);margin-top:2px}
.bd-prep svg{flex:none;width:18px;height:18px;color:var(--gray)}

/* 4. your details, with the summary beside them (Tesla's car and drive summary) */
.bd-err{display:block;margin-top:16px;padding:10px 12px;border-radius:4px;background:#FBEDEB;color:#A93226;font-size:13px;line-height:18px;font-weight:500}
.bd-err[hidden]{display:none}
.bd-go{margin-top:20px;min-width:220px}
.bd-fine{margin:14px 0 0;font-size:12px;line-height:17px;color:var(--gray)}
.bd-fine.c{text-align:center;margin-top:18px}
.bd-sum{padding:8px 0 0 24px}
.bd-sum img{width:72px;height:72px;border-radius:4px;object-fit:cover}
.bd-sum-n{margin-top:16px;font-family:var(--disp);font-size:22px;line-height:28px;font-weight:500}
.bd-sum-w{margin-top:4px;font-size:15px;line-height:21px;font-weight:500}
.bd-sum-w.dim{color:var(--gray);font-weight:400}
.bd-sum-l,.bd-sum-h{margin-top:4px;font-size:13.5px;line-height:19px;color:var(--gray)}
.bd-legal{margin:48px 0 0;text-align:center;font-size:11.5px;line-height:17px;color:var(--gray)}

/* booked */
.bd-done{max-width:520px;margin:0 auto;text-align:center}
.bd-done[hidden]{display:none}
.bd-done-l{margin:10px 0 0;font-size:14px;line-height:21px;color:var(--ink2)}
.bd-done-tk{margin:24px 0 16px;background:var(--card);border-radius:8px;padding:4px 20px;text-align:left}
.bd-done-tk div{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:14px 0;border-top:1px solid var(--rule)}
.bd-done-tk div:first-child{border-top:0}
.bd-done-tk span{font-size:13px;line-height:18px;color:var(--gray)}
.bd-done-tk b{font-size:14px;line-height:18px;font-weight:500;text-align:right}
.bd-done .btn{min-width:0;width:100%}
.bd-done h2{margin:48px 0 0;text-align:center}
.bd-done h2[hidden]{display:none}

/* the bar at the bottom (Tesla's model · date · Schedule) */
.bd-bar{position:fixed;left:0;right:0;bottom:0;z-index:40;background:rgba(255,255,255,.96);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 -1px 0 rgba(0,0,0,.08);padding-bottom:env(safe-area-inset-bottom);transform:translateY(110%);transition:transform .3s}
.bd-bar.show{transform:none}
.bd-bar-in{max-width:1040px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 24px}
.bd-bar-l{min-width:0}
.bd-bar-t{font-family:var(--disp);font-size:17px;line-height:22px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bd-bar-s{font-size:12.5px;line-height:16px;color:var(--gray);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bd-bar .btn{flex:none;min-width:150px}

/* Calendly's confirm step, and the note for Sean */
.bd-sheet{position:fixed;inset:0;z-index:120;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;padding:24px}
.bd-sheet[hidden]{display:none}
.bd-sheet-in{width:100%;max-width:760px;height:min(820px,calc(100vh - 48px));background:#fff;border-radius:8px;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 16px 48px rgba(0,0,0,.25)}
.bd-sheet-bar{flex:none;height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 12px 0 24px;border-bottom:1px solid var(--rule)}
.bd-sheet-bar h3{margin:0;font-family:var(--disp);font-size:17px;font-weight:500}
.bd-sheet-f{flex:1;min-height:0}
.bd-sheet-f iframe{width:100%;height:100%;border:0}
.bd-sheet-alt{flex:none;padding:12px 24px;font-size:12.5px;color:var(--gray);text-align:center;text-decoration:underline;text-underline-offset:3px}
.bd-x{width:40px;height:40px;border-radius:4px;display:grid;place-items:center;color:var(--ink)}
.bd-x:hover{background:rgba(0,0,0,.05)}
.bd-x svg{width:20px;height:20px}
.bd-notice-in{position:relative;width:100%;max-width:440px;background:#fff;border-radius:8px;padding:32px 28px 26px;text-align:center;box-shadow:0 16px 48px rgba(0,0,0,.25)}
.bd-notice-in .bd-x{position:absolute;top:10px;right:10px}
.bd-notice-in img{width:64px;height:64px;border-radius:4px;object-fit:cover;margin:0 auto}
.bd-notice-in h3{margin:16px 0 0;font-family:var(--disp);font-size:22px;line-height:28px;font-weight:500}
.bd-notice-in p{margin:8px 0 0;font-size:14px;line-height:21px;color:var(--ink2)}
.bd-notice-in .bd-two{margin-top:20px}
.bd-notice-in .btn{min-width:0;width:100%;height:44px;padding:0 12px}
.bd-app{display:inline-block;margin-top:14px;font-size:14px;font-weight:500;color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.bd-note:empty{display:none}

/* phones and narrow tablets: one column; the photo of who you meet gives way to the Meet With cards */
@media (max-width:799px){
  .bd{padding:36px 16px 120px}
  .bd h1{font-size:32px;line-height:40px}
  .bd h2{font-size:22px;line-height:28px}
  .bd-grid{grid-template-columns:1fr}
  .bd-photo{display:none}
  .bd-sec{padding-top:44px}
  .bd-sum{padding:0 0 18px;border-bottom:1px solid var(--rule);display:grid;grid-template-columns:56px 1fr;column-gap:14px;align-items:center}
  .bd-sum img{width:56px;height:56px;grid-row:1/5}
  .bd-sum-n{margin-top:0;font-size:18px;line-height:24px}
  #bd-details .bd-grid{display:flex;flex-direction:column-reverse;align-items:stretch;gap:16px}
  .bd-go{width:100%}
  .bd-bar-in{padding:10px 16px}
  .bd-bar .btn{min-width:0;padding:0 18px}
  .bd-sheet{padding:0}
  .bd-sheet-in{height:100%;max-width:none;border-radius:0}
}
@media (max-width:420px){ .bd-seg button{font-size:12.5px} .bd-hgrid{grid-template-columns:1fr} }
