/* Driver Board pages: the forms' numbered steps, one answer per line. */

.db-main{max-width:860px;padding-top:40px;padding-bottom:72px;}
.db-form{display:flex;flex-direction:column;gap:14px;}
.db-intro{display:flex;flex-direction:column;gap:8px;margin-bottom:14px;}
.db-intro h1{font-size:40px;text-transform:uppercase;}
.db-intro p{color:var(--gray);line-height:1.55;}

/* A step: a header with its number and a +/- that opens and closes it. */
.sec{border:1px solid var(--gray-light);background:var(--white);}
.sec>summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:72px;padding:12px 20px 12px 24px;cursor:pointer;}
.sec>summary::-webkit-details-marker{display:none;}
.sec[open]>summary{border-bottom:1px solid var(--gray-light);}
.st{display:flex;gap:16px;align-items:center;text-align:left;}
.sn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;background:var(--black);color:#fff;font-family:'Oswald',sans-serif;font-size:17px;flex:none;}
.stt{display:flex;flex-direction:column;gap:2px;}
.stitle{font-family:'Oswald',sans-serif;font-weight:600;font-size:20px;text-transform:uppercase;letter-spacing:.02em;}
.ss{font-size:14px;color:var(--gray);}
.pm{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border:2px solid var(--black);font-size:24px;font-weight:600;line-height:1;flex:none;}
.pm::after{content:"+";}
.sec[open] .pm::after{content:"\2212";}
.sb{padding:24px;display:flex;flex-direction:column;gap:28px;}

/* The same step once drivers.js makes it a header button and a body it hides
   with the hidden attribute: closed, it shows a one-line summary; a check when
   complete, a red ! when something it needs is blank. */
.sec{scroll-margin-top:92px;}
.sh-h{margin:0;font:inherit;letter-spacing:normal;line-height:inherit;}
.sh{display:flex;justify-content:space-between;align-items:center;gap:16px;width:100%;min-height:72px;padding:12px 20px 12px 24px;background:none;border:0;font:inherit;color:inherit;text-align:left;cursor:pointer;}
.sh:focus-visible{outline:2px solid var(--red);outline-offset:-2px;}
.sec.is-open>.sh-h{border-bottom:1px solid var(--gray-light);}
.sec.is-open .pm::after{content:"\2212";}
.sh .stt{min-width:0;}
.ssum{font-size:14px;color:var(--black);overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;}
.sec.is-open .ssum,.sec:not(.is-open) .sh .ss{display:none;}
.sec.is-new:not(.is-open) .ssum{color:var(--gray);}
.sec.is-todo{border-color:#C8302F;}
.sec.is-todo:not(.is-open) .ssum{color:#8A2A1E;font-weight:600;}
.sec.is-done .sn,.sec.is-todo .sn{font-size:0;}
.sec.is-done .sn::after{content:"\2713";font-size:19px;}
.sec.is-todo .sn{background:#C8302F;}
.sec.is-todo .sn::after{content:"!";font-size:20px;font-weight:700;}
.sec.is-new:not(.is-open) .sn{background:var(--white);color:var(--gray);border:2px solid var(--gray-light);}
.fld-err{background:#FBE6E2;color:#8A2A1E;padding:10px 12px;font-weight:600;font-size:14px;}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;}
.sec.is-open>.sb{animation:sb-in .16s ease-out;}
@keyframes sb-in{from{opacity:0;transform:translateY(-4px);}to{opacity:1;transform:none;}}
@media (prefers-reduced-motion:reduce){ .sec.is-open>.sb{animation:none;} }

/* A question and its answers, one per line, text on the left. */
.q{border:0;display:flex;flex-direction:column;gap:8px;min-width:0;}
.ql{font-weight:600;font-size:16px;padding:0;}
.qh{font-size:14px;color:var(--gray);font-weight:400;}
.q .qh{margin-top:-2px;}
.opts{display:grid;grid-template-columns:minmax(0,1fr);border:1px solid var(--gray-light);}
.opts2{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));}
.opts6{grid-template-columns:repeat(auto-fill,minmax(72px,1fr));}
.opt{display:flex;align-items:center;gap:12px;min-height:48px;padding:8px 14px;text-align:left;cursor:pointer;border-bottom:1px solid #EAE8E1;}
.opt:has(input:checked){background:var(--cream);}
.opt input[type=checkbox],.opt input[type=radio]{width:20px;height:20px;flex:none;margin:0;accent-color:var(--black);}
.ot{display:flex;flex-direction:column;gap:2px;flex:1 1 auto;font-size:15px;}
/* The text-message opt-in: the full wording beside the box, "What's this?" under it. */
.opt.sms{flex-wrap:wrap;align-items:flex-start;row-gap:0;}
.opt.sms input[type=checkbox]{margin-top:2px;}
.opt.sms .ot{flex:1 1 calc(100% - 40px);min-width:0;}
.sms-words{display:block;font-size:13px;line-height:1.45;color:var(--black);}
.opt.sms .db-what{margin-left:28px;font-size:13px;}
.db-dialog .sms-full{line-height:1.5;}
.oh{font-size:13px;color:var(--gray);}
.opt.row{cursor:default;}
.amt{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--gray);white-space:nowrap;}

/* Skills that fit only some haul types show only when one is picked. */
.dep,.dep-block{display:none;}
form:has(#h-flatbed:checked) .dep-flat,form:has(#h-reefer:checked) .dep-reefer{display:flex;}
form:has(#h-flatbed:checked) .dep-exp-flatbed,form:has(#h-reefer:checked) .dep-exp-reefer,form:has(#h-dry_van:checked) .dep-exp-dry_van,
form:has(#h-dry_bulk:checked) .dep-exp-dry_bulk,form:has(#h-liquid_bulk:checked) .dep-exp-liquid_bulk,form:has(#h-dump:checked) .dep-exp-dump,
form:has(#h-intermodal:checked) .dep-exp-intermodal{display:flex;}
form:has(#h-flatbed:checked):has(#t-semi:checked) .dep-flatsemi,form:has(#h-liquid_bulk:checked) .dep-liqblock,form:has(#pump-no:checked) .dep-learn{display:block;}
.dep-block .q{margin-top:28px;}
.db-pct{font-family:'Oswald',sans-serif;font-size:13px;letter-spacing:.04em;text-transform:uppercase;background:var(--black);color:#fff;padding:3px 9px;}
.db-pct.partial{background:var(--white);color:var(--black);border:1.5px dashed var(--black);}
.db-call{background:var(--white);border:2px solid var(--black);padding:18px 20px;display:flex;flex-direction:column;gap:12px;margin-top:6px;}
.db-call h2{font-size:20px;text-transform:uppercase;}

.pair{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:10px}
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px;}
.fld{display:flex;flex-direction:column;gap:6px;}
.inp{font:inherit;min-height:44px;padding:10px 12px;border:1px solid var(--border);background:var(--white);border-radius:2px;width:100%;}
/* Small in width only: a tap target is still 44px tall. */
.inp.sm{width:80px;min-height:44px;padding:4px 8px;}
.inp:focus,.opt input:focus-visible{outline:2px solid var(--red);outline-offset:1px;}
.addrow{display:flex;gap:8px;}
.blist{list-style:none;display:flex;flex-direction:column;border:1px solid var(--gray-light);}
.blist:empty{display:none;}
.blist li{display:flex;justify-content:space-between;align-items:center;padding:4px 6px 4px 14px;border-bottom:1px solid #EAE8E1;font-size:15px;}
.rm{border:0;background:none;font-size:20px;cursor:pointer;min-width:44px;min-height:44px;}

.db-actions{display:flex;flex-direction:column;gap:12px;align-items:flex-start;margin-top:10px;}
.db-btn,.db-btn2{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 24px;font-family:'Oswald',sans-serif;font-weight:600;font-size:16px;letter-spacing:.04em;text-transform:uppercase;border:0;border-radius:2px;cursor:pointer;background:#C8302F;color:#fff;}
.db-btn:hover{background:#A82726;}
.db-btn[disabled]{opacity:.6;cursor:wait;}
.db-btn2{background:var(--black);min-height:44px;padding:0 18px;font-size:14px;}
.db-error{background:#FBE6E2;color:#8A2A1E;padding:12px 14px;font-weight:600;}
.note{padding:12px 14px;background:var(--cream);font-size:14px;line-height:1.5;}
.db-ok{background:var(--white);border:2px solid var(--black);padding:12px 14px;font-weight:600;}
.db-signed{font-size:15px;color:var(--black);}
.db-signed a,.db-link{color:#B3302F;text-decoration:underline;}

/* Landing page */
.db-hero{background:var(--black);color:#fff;}
.db-hero .wrap{padding-top:64px;padding-bottom:72px;display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:40px;align-items:center;}
.db-hero h1{font-size:48px;text-transform:uppercase;line-height:1.05;}
.db-hero p{color:var(--gray-light);font-size:18px;line-height:1.6;}
.db-ctas{display:flex;flex-wrap:wrap;gap:12px;}
.db-btn.ghost{background:transparent;border:2px solid #fff;}
.db-prices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;background:var(--gray-dark);}
.db-prices div{background:var(--black);padding:24px;display:flex;flex-direction:column;gap:4px;}
.db-prices b{font-family:'Oswald',sans-serif;font-size:40px;}
.db-prices span{color:var(--gray-light);font-size:14px;}
.db-banner{background:#C8302F;color:#fff;text-align:center;padding:12px 16px;font-weight:600;}
.db-steps{list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px;}
.db-steps li{background:var(--white);border:1px solid var(--gray-light);padding:24px;display:flex;flex-direction:column;gap:8px;}
.db-steps .n{font-family:'Oswald',sans-serif;color:#C8302F;font-size:30px;font-weight:700;}
.db-steps h3{font-size:19px;text-transform:uppercase;}
.db-steps p{color:var(--gray);line-height:1.55;}
.db-faq details{background:var(--white);border:1px solid var(--gray-light);padding:16px 20px;}
.db-faq summary{font-weight:600;cursor:pointer;}
.db-faq p{margin-top:10px;color:var(--gray);line-height:1.55;}
.db-card{background:var(--white);border:1px solid var(--gray-light);padding:28px;display:flex;flex-direction:column;gap:14px;max-width:440px;}


/* Match and request cards */
.db-list{display:flex;flex-direction:column;gap:14px;}
.db-item{background:var(--white);border:1px solid var(--gray-light);padding:20px 22px;display:flex;flex-wrap:wrap;gap:18px;align-items:flex-start;}
.db-item.strong{border:2px solid var(--black);}
.db-item .main{flex:1 1 360px;min-width:0;display:flex;flex-direction:column;gap:8px;}
.db-item .side{flex:0 1 250px;display:flex;flex-direction:column;gap:8px;border-left:1px dashed var(--border);padding-left:18px;}
.db-item h3{font-size:20px;text-transform:uppercase;}
.db-item .line{color:var(--gray);font-size:14px;line-height:1.5;}
.db-badges{display:flex;flex-wrap:wrap;gap:6px;}
.db-badge{font-family:'Oswald',sans-serif;font-size:12px;letter-spacing:.04em;text-transform:uppercase;border:1.5px solid var(--black);padding:3px 8px;}
.db-badge.red{background:#C8302F;border-color:#C8302F;color:#fff;}
.db-badge.dark{background:var(--black);color:#fff;}
.db-side-title{font-family:'Oswald',sans-serif;font-size:13px;text-transform:uppercase;letter-spacing:.04em;}
.db-small{font-size:12px;color:var(--gray);}
.db-btn.line{background:var(--white);color:var(--black);border:2px solid var(--black);}
.db-btn.line:hover{background:var(--black);color:#fff;}
.db-section{display:flex;flex-direction:column;gap:12px;margin-top:22px;}
.db-section h2{font-size:22px;text-transform:uppercase;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;}
.db-empty{background:var(--white);border:1px dashed var(--border);padding:18px;color:var(--gray);}
@media (max-width:600px){ .db-item .side{border-left:0;padding-left:0;border-top:1px dashed var(--border);padding-top:12px;flex-basis:100%;} }

/* A button with the ⋯ menu beside it. */
.db-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;}

/* The ⋯ menu: occasional actions (mark a truck filled, hide a listing) */
.db-more{position:relative;display:inline-block;}
.db-more>summary{list-style:none;cursor:pointer;min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;font-size:20px;line-height:1;}
.db-more>summary::-webkit-details-marker{display:none;}
.db-more>div{position:absolute;right:0;top:100%;z-index:5;background:var(--white);border:1px solid var(--gray-light);box-shadow:0 4px 14px rgba(0,0,0,.12);display:flex;flex-direction:column;min-width:190px;}
.db-more button{border:0;background:none;text-align:left;min-height:44px;padding:12px 14px;font-size:15px;cursor:pointer;color:var(--black);}
.db-more button:hover{background:var(--cream);}
.db-details{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;}

@media (max-width:600px){
  .db-intro h1,.db-hero h1{font-size:32px;}
  .sb{padding:18px;}
  .sec>summary,.sh{padding:12px 14px;}
  .sh{gap:12px;}
  .st{gap:12px;}
}

/* The text-message opt-in: "What's this?" beside the box, and the pop-out with the full wording. */
.db-what{flex:none;min-height:44px;padding:0 4px;background:none;border:0;color:#B3302F;text-decoration:underline;font:inherit;font-size:14px;cursor:pointer;}
.db-dialog{margin:auto;border:0;border-radius:4px;padding:0;width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;background:var(--white);color:var(--black);box-shadow:0 12px 40px rgba(0,0,0,.3);}
.db-dialog::backdrop{background:rgba(17,17,16,.6);}
.db-dialog .in{display:flex;flex-direction:column;gap:6px;padding:20px 22px 22px;}
.db-dialog .head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:4px;}
.db-dialog h2{font-size:24px;text-transform:uppercase;}
.db-dialog h3{font-family:'Inter',sans-serif;font-size:15px;font-weight:600;margin-top:8px;}
.db-dialog p{font-size:15px;line-height:1.5;}
.db-dialog .oh{margin-top:10px;}
.db-dialog .db-row{margin-top:14px;}
.db-x{flex:none;width:44px;height:44px;background:none;border:0;font-size:28px;line-height:1;cursor:pointer;color:var(--black);}
.db-x:focus-visible,.db-what:focus-visible{outline:2px solid var(--red);outline-offset:1px;}

/* "See details" on a match or request card: everything that may be shown before connecting, in place. */
.db-details-btn{align-self:flex-start;min-height:44px;padding:8px 16px;font-size:14px;}
.db-details{display:grid;grid-template-columns:1fr;gap:0;border-top:1px dashed var(--border);margin-top:4px;}
.db-details>div{display:grid;grid-template-columns:minmax(120px,38%) 1fr;gap:12px;padding:8px 0;border-bottom:1px dashed var(--border);font-size:14px;line-height:1.45;}
.db-details dt{font-family:'Oswald',sans-serif;text-transform:uppercase;letter-spacing:.04em;font-size:12px;color:var(--black);padding-top:2px;}
.db-details dd{margin:0;color:var(--gray);overflow-wrap:anywhere;}
.db-details[hidden]{display:none;}
@media (max-width:480px){ .db-details>div{grid-template-columns:1fr;gap:2px;} }
/* Same name as someone on the owner's won't-hire list. */
.db-caution{background:#FFF4D6;border-left:4px solid #B7791F;color:#5A3E0A;padding:8px 12px;font-size:14px;font-weight:600;}
/* "We couldn't place that city" under the city field. */
.db-place-note{color:#8A5A00;}

/* Signed in: the tab bar fixed to the bottom of the screen (Matches, Requests,
   Certification or Trucks, Account), with room left under the page for it. */
body.has-tabs{padding-bottom:calc(68px + env(safe-area-inset-bottom));}
.db-tabs{position:fixed;left:0;right:0;bottom:0;z-index:50;display:flex;justify-content:center;background:var(--black);
  border-top:1px solid var(--gray-dark);padding:0 max(env(safe-area-inset-left),0px) env(safe-area-inset-bottom) max(env(safe-area-inset-right),0px);
  box-shadow:0 -4px 16px rgba(0,0,0,.18);}
.db-tabs a{position:relative;flex:1 1 0;max-width:180px;min-height:60px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  padding:6px 4px;color:#BDBAB2;text-decoration:none;font-family:'Oswald',sans-serif;font-size:12px;letter-spacing:.05em;text-transform:uppercase;}
.db-tabs a svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.db-tabs a:hover{color:#fff;}
.db-tabs a.on{color:#fff;}
.db-tabs a.on::before{content:"";position:absolute;top:0;left:22%;right:22%;height:3px;background:var(--red);}
.db-tabs a:focus-visible{outline:2px solid var(--red);outline-offset:-3px;}
.db-tab-badge{position:absolute;top:6px;left:calc(50% + 8px);min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--red);color:#fff;
  font-family:'Inter',sans-serif;font-size:12px;font-weight:700;letter-spacing:0;line-height:20px;text-align:center;}
@media (min-width:768px){ .db-tabs a{flex-direction:row;gap:8px;font-size:14px;} .db-tab-badge{position:static;margin-left:2px;} }

/* Sign-up: "Step 3 of 4" and the four steps. */
.db-progress{display:flex;flex-direction:column;gap:8px;margin:6px 0 16px;}
.db-progress-n{font-family:'Oswald',sans-serif;font-size:14px;letter-spacing:.06em;text-transform:uppercase;color:var(--black);}
.db-progress ol{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:0;padding:0;}
.db-progress li{display:flex;flex-direction:column;gap:4px;font-size:12px;line-height:1.3;color:var(--gray);border-top:4px solid var(--gray-light);padding-top:6px;}
.db-progress li .n{font-family:'Oswald',sans-serif;font-size:13px;}
.db-progress li.done{color:var(--black);border-top-color:var(--black);}
.db-progress li.on{color:var(--black);font-weight:600;border-top-color:#C8302F;}

/* A request's time left. */
.db-expires{font-family:'Oswald',sans-serif;font-size:15px;text-transform:uppercase;letter-spacing:.04em;color:#8A2A1E;}

/* Certification: the two report cards, each Not started -> Ordered -> Uploaded -> Verified. */
.db-cert-cost{background:var(--black);color:#fff;padding:18px 20px;display:flex;flex-direction:column;gap:10px;margin-bottom:16px;}
.db-cert-cost h2{font-size:19px;text-transform:uppercase;line-height:1.3;}
.db-cert-cost li{font-size:15px;line-height:1.5;}
.db-cert-card,.db-cert-details{background:var(--white);border:1px solid var(--gray-light);padding:18px 20px;display:flex;flex-direction:column;gap:10px;margin-top:14px;}
.db-cert-card.is-needs_attention{border:2px solid #C8302F;}
.db-cert-card.is-verified{border:2px solid #1F6B3A;}
.db-cert-card h3,.db-cert-details h3{font-size:18px;text-transform:uppercase;line-height:1.25;}
.db-cert-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;flex-wrap:wrap;}
.db-pill{font-family:'Oswald',sans-serif;font-size:12px;letter-spacing:.04em;text-transform:uppercase;padding:4px 9px;border:1.5px solid var(--black);white-space:nowrap;}
.db-pill.is-ordered{background:var(--cream);}
.db-pill.is-uploaded{background:#FFF1C9;border-color:#8A6A00;}
.db-pill.is-verified{background:#1F6B3A;border-color:#1F6B3A;color:#fff;}
.db-pill.is-needs_attention{background:#C8302F;border-color:#C8302F;color:#fff;}
.db-cert-steps{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:0;padding:0;}
.db-cert-steps li{font-size:12px;text-align:center;padding:6px 2px;border-top:4px solid var(--gray-light);color:var(--gray);}
.db-cert-steps li.done{border-top-color:var(--black);color:var(--black);}
.db-cert-steps li.on{border-top-color:#C8302F;color:var(--black);font-weight:600;}
.db-cert-howto{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:6px;font-size:15px;line-height:1.45;}
.db-cert-actions{display:flex;flex-direction:column;gap:10px;}
.db-cert-actions .db-btn{flex:none;width:100%;}
.db-btn.busy{opacity:.7;pointer-events:none;}
.db-copy-list{list-style:none;margin:0;padding:0;border:1px solid var(--gray-light);}
.db-copy-list li{display:flex;align-items:center;gap:10px;padding:6px 6px 6px 12px;border-bottom:1px solid #EAE8E1;min-height:48px;}
.db-copy-list li:last-child{border-bottom:0;}
.db-copy-list .k{flex:0 0 108px;font-size:13px;color:var(--gray);}
.db-copy-list .v{flex:1 1 auto;min-width:0;font-weight:600;overflow-wrap:anywhere;}
.db-copy{flex:none;min-height:44px;min-width:64px;padding:0 12px;background:var(--white);border:2px solid var(--black);font-family:'Oswald',sans-serif;font-size:13px;text-transform:uppercase;cursor:pointer;}
.db-copy:focus-visible{outline:2px solid var(--red);outline-offset:1px;}
.db-type-these li{font-size:14px;}
.db-cert-line{color:var(--black);}
