#freight-quote {
  --ink:#20262b; --muted:#56616a; --accent:#c83a19;
  margin:auto; padding:0; width:min(840px,calc(100% - 28px)); max-height:90dvh;
  border:0; border-radius:18px; background:#fff; color:var(--ink);
  box-shadow:0 30px 100px #10161b55; overflow:auto; overscroll-behavior:contain;
  font:15px/1.45 Arial,sans-serif;
}
#freight-quote * {box-sizing:border-box}
#freight-quote [hidden] {display:none}
#freight-quote::backdrop {background:#10171eb8; backdrop-filter:blur(4px)}
#freight-quote[open] {animation:fq-open .24s ease-out}
@keyframes fq-open {from {opacity:0; transform:translateY(12px)}}
#freight-quote form {display:grid; grid-template-columns:220px minmax(0,1fr); margin:0; padding:0}
.fq-rail {display:flex; flex-direction:column; padding:32px 24px; background:#f2f4f4; border-right:1px solid #dfe3e4}
.fq-rail img {width:148px; height:auto; align-self:flex-start}
#freight-quote h2 {font:700 25px/1.15 Arial,sans-serif; color:var(--ink); margin:36px 0 22px}
.fq-progress {counter-reset:step; list-style:none; padding:0; margin:0}
.fq-progress li {counter-increment:step; display:flex; align-items:center; gap:12px; color:var(--muted); padding:9px 0; font-weight:600}
.fq-progress li::before {content:counter(step); display:grid; place-items:center; width:28px; height:28px; border:1px solid #bbc3c6; border-radius:50%; font-size:13px}
.fq-progress li[aria-current] {color:var(--accent)}
.fq-progress li[aria-current]::before {background:var(--accent); border-color:var(--accent); color:white}
.fq-itinerary {margin-top:auto; padding-top:36px; font-size:13px; color:var(--muted)}
.fq-itinerary span {display:block; position:relative; padding-left:22px; overflow-wrap:anywhere}
.fq-itinerary span:first-child {padding-bottom:14px}
.fq-itinerary span:first-child::after {content:""; position:absolute; left:4px; top:12px; bottom:-5px; border-left:1px dashed #929ca2}
.fq-itinerary span::before {content:""; position:absolute; left:0; top:5px; width:7px; height:7px; background:white; border:1px solid var(--accent); border-radius:50%}
.fq-work {position:relative; display:flex; flex-direction:column; padding:48px 36px 26px; min-width:0; min-height:424px}
#freight-quote button {cursor:pointer; font:600 14px/1.2 Arial,sans-serif}
.fq-close {position:absolute; top:10px; right:12px; width:32px; height:32px; border:0; border-radius:50%; background:#f1f3f4; color:var(--ink); font-size:22px!important}
#freight-quote fieldset,.fq-extra {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 14px}
#freight-quote fieldset {border:0; padding:0; margin:0; min-width:0}
#freight-quote legend {padding:0; margin:0 0 25px; color:var(--ink); font-size:26px; line-height:1.2; font-weight:700; letter-spacing:-.6px}
#freight-quote label {position:relative; display:flex; flex-wrap:wrap; gap:5px; align-content:flex-start; font-size:14px; font-weight:600}
#freight-quote small {align-self:center; color:var(--muted); font-weight:400; font-size:11px}
#freight-quote :is(input:not([type=checkbox]),select,textarea) {width:100%; min-width:0; padding:11px 12px; min-height:44px; border:1px solid #b8c1c6; border-radius:7px; background:#fff; color:var(--ink); font:400 15px/1.35 Arial,sans-serif}
#freight-quote :focus-visible {outline:2px solid var(--accent); outline-offset:2px}
#freight-quote .wide {grid-column:1/-1}
.fq-fold {border-block:1px solid #dce1e3; padding:12px 0}
.fq-fold summary {cursor:pointer; font-weight:600}
.fq-extra {margin-top:18px}
.fq-special {display:flex; flex-wrap:wrap; gap:10px; margin-top:8px}
.fq-summary {display:grid;grid-template-columns:auto 1fr;gap:8px 12px}
.fq-summary dd {margin:0;overflow-wrap:anywhere}
.fq-work a {color:var(--muted);font-size:13px}
.fq-error {color:#ae261d}
.fq-actions {margin-top:auto; padding-top:25px; display:flex; gap:12px; justify-content:flex-end}
.fq-actions button {border:0; border-radius:7px; background:var(--accent); color:white; padding:13px 20px}
.fq-actions [data-back] {margin-right:auto; background:#eff1f2; color:var(--ink)}
.fq-actions button:disabled {opacity:.65}
@media(max-width:680px){
  #freight-quote form {grid-template-columns:1fr}
  .fq-rail {padding:17px 20px 12px; border:0; border-bottom:1px solid #dfe3e4}
  .fq-rail img {width:108px}
  #freight-quote h2 {margin:10px 0; font-size:21px}
  .fq-progress {display:flex; gap:16px}
  .fq-progress li {padding:0; gap:5px; font-size:13px}
  .fq-progress li::before {width:20px;height:20px;font-size:11px}
  .fq-itinerary {display:none}
  .fq-work {position:static; padding:20px; min-height:0}
  #freight-quote legend {font-size:22px; margin-bottom:17px}
}
@media(max-width:480px){#freight-quote fieldset,.fq-extra {grid-template-columns:1fr; gap:12px}}
@media(prefers-reduced-motion:reduce){#freight-quote[open]{animation:none}}
#freight-quote:has(.fq-confirm:not([hidden])) {width:min(460px,calc(100% - 28px))}
.fq-confirm {padding:clamp(24px,5vw,42px)}
.fq-confirm svg {color:var(--accent)}
#freight-quote .fq-confirm h2 {margin:16px 0 10px}
.fq-confirm p {margin:0;color:var(--muted)}

#freight-quote .fq-location-results{position:absolute;z-index:20;left:0;right:0;top:calc(100% + 5px);display:flex;flex-direction:column;gap:0;margin:0;padding:4px;max-height:168px;overflow-y:auto;overscroll-behavior:contain;background:#fff;border:1px solid #dbe2e5;border-radius:8px;box-shadow:0 8px 24px #14293624}
#freight-quote .fq-location-results[hidden]{display:none}
#freight-quote .fq-location-results button{flex-shrink:0;min-height:38px;width:100%;border:0;background:#fff;color:#203440;border-radius:4px;padding:9px 10px;font:400 14px/1.35 "Albert Sans",sans-serif;text-align:left;cursor:pointer}
#freight-quote .fq-location-results button:hover,#freight-quote .fq-location-results button:focus-visible{color:#dd330a;background:#fff3ef;outline-offset:-2px}
