/* ============================================================================
   XTRA MILE COVERAGE — VISUAL LAYER
   Presentation only. This file is loaded AFTER the page's own <style>, so every
   rule here is an override. Nothing in the quote logic, field names, validation
   or submission path is touched — remove the two <link>/<script> tags and the
   site returns exactly to its frozen production appearance.

   Design language: trucking + technology. A deep charcoal road at night, the
   Xtra Mile green used as an intelligence signal rather than a paint colour,
   glass surfaces lit along their top edge, and motion that is quick enough to
   never delay a quote.
   ========================================================================== */

/* ---------------------------------------------------------------- 1. TOKENS */
:root{
  /* deeper, cooler foundation — charcoal with a green undertone, not black */
  --bg:#04070a; --bg2:#070c10; --panel:#0b1116; --field:#070c10;

  /* glass */
  --glass:rgba(14,22,28,.58); --glass2:rgba(18,27,34,.72);
  --glass-hi:rgba(255,255,255,.07);      /* the lit top edge */
  --line:rgba(140,225,190,.16); --line2:rgba(255,255,255,.07);
  --line-hot:rgba(92,255,158,.42);

  /* ink */
  --txt:#eef6f2; --txt2:#a9c0b8; --mut:#7a9189; --faint:#5d726b;

  /* the signal colour */
  --grn:#5cff9e; --grn2:#2fe98a; --grn-deep:#12b566; --grn-ink:#03190d;
  --teal:#43ffd6;

  --r-sm:10px; --r:14px; --r-lg:20px; --r-xl:26px;
  --ease:cubic-bezier(.22,.61,.36,1);
  --ease-out:cubic-bezier(.16,1,.3,1);

  --glow:0 0 60px rgba(92,255,158,.10);
  --sh-1:0 2px 8px rgba(0,0,0,.34);
  --sh-2:0 12px 32px rgba(0,0,0,.42), inset 0 1px 0 var(--glass-hi);
  --sh-3:0 26px 60px rgba(0,0,0,.52), inset 0 1px 0 var(--glass-hi);
  --sh-lift:0 36px 80px rgba(0,0,0,.58), inset 0 1px 0 rgba(255,255,255,.10);
}

html{ scroll-behavior:smooth; }
body{
  background:
    radial-gradient(1200px 700px at 78% -6%, rgba(47,233,138,.09), transparent 62%),
    radial-gradient(900px 620px at 8% 4%, rgba(67,255,214,.055), transparent 60%),
    radial-gradient(1000px 900px at 50% 108%, rgba(18,181,102,.07), transparent 66%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 46%, var(--bg) 100%);
  color:var(--txt);
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}

/* ------------------------------------------------- 2. THE ROAD (brand motif)
   A highway centre-line running down the page: the single strongest cue that
   this is a trucking company, and it costs one element and one GPU transform. */
body::before{
  content:""; position:fixed; left:50%; top:0; bottom:0; width:2px; z-index:0;
  transform:translateX(-50%); pointer-events:none; opacity:.20;
  background:repeating-linear-gradient(180deg,
    rgba(92,255,158,.55) 0 26px, transparent 26px 64px);
  -webkit-mask-image:linear-gradient(180deg, transparent, #000 12%, #000 78%, transparent);
          mask-image:linear-gradient(180deg, transparent, #000 12%, #000 78%, transparent);
  animation:xm-road 3.2s linear infinite;
}
@keyframes xm-road{ to{ background-position-y:64px; } }

/* mile-marker ticks down the left edge — quiet brand furniture */
body::after{
  content:""; position:fixed; left:0; top:0; bottom:0; width:100%; z-index:0;
  pointer-events:none; opacity:.5;
  background:
    linear-gradient(90deg, rgba(92,255,158,.10) 0 1px, transparent 1px) 0 0/100% 120px,
    linear-gradient(90deg, transparent 0 calc(100% - 1px), rgba(92,255,158,.10) calc(100% - 1px)) 0 0/100% 120px;
  -webkit-mask-image:linear-gradient(180deg, transparent, #000 20%, #000 70%, transparent);
          mask-image:linear-gradient(180deg, transparent, #000 20%, #000 70%, transparent);
}
main, .nav{ position:relative; z-index:1; }

/* ---------------------------------------------------------------- 3. NAV */
.nav{
  background:linear-gradient(180deg, rgba(6,10,13,.90), rgba(6,10,13,.55) 70%, transparent);
  backdrop-filter:blur(18px) saturate(1.3); -webkit-backdrop-filter:blur(18px) saturate(1.3);
  border-bottom:1px solid rgba(140,225,190,.10);
}
.nav .brand{ font-weight:800; letter-spacing:-.02em; font-size:19px; }
.nav .brand b{ color:var(--grn); }
.nav .brand .mk{ filter:drop-shadow(0 0 10px rgba(92,255,158,.5)); }
.nav .tel{
  font:600 13px/1 var(--mono); color:var(--txt2);
  padding:9px 15px; border-radius:999px;
  background:rgba(255,255,255,.045); border:1px solid var(--line);
  transition:color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.nav .tel:hover{ color:var(--txt); border-color:var(--line-hot); background:rgba(92,255,158,.08); }

/* ---------------------------------------------------------------- 4. HERO */
.head{ padding-top:clamp(26px,5vw,54px); }
.head .k{
  display:inline-flex; align-items:center; gap:9px;
  font:600 11px/1 var(--mono); letter-spacing:.16em; text-transform:uppercase;
  color:var(--grn); padding:8px 14px; border-radius:999px;
  background:linear-gradient(180deg, rgba(92,255,158,.12), rgba(92,255,158,.05));
  border:1px solid rgba(92,255,158,.26);
  box-shadow:0 0 30px rgba(92,255,158,.10), inset 0 1px 0 rgba(255,255,255,.08);
  animation:xm-rise .5s var(--ease-out) both;
}
.head .k .dot{ box-shadow:0 0 10px var(--grn); animation:xm-pulse 2.4s ease-in-out infinite; }
@keyframes xm-pulse{ 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.55;transform:scale(.82)} }

.head h1{
  font-size:clamp(32px,6.2vw,60px); line-height:1.02; letter-spacing:-.035em; font-weight:800;
  margin:16px 0 12px;
  background:linear-gradient(178deg, #ffffff 6%, #dff3e8 44%, #8fe9bb 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  animation:xm-rise .55s .05s var(--ease-out) both;
}
.head p{
  color:var(--txt2); font-size:clamp(14px,2.1vw,16.5px); line-height:1.6; max-width:60ch;
  animation:xm-rise .55s .1s var(--ease-out) both;
}
.head p b{ color:var(--grn); font-weight:700; }
@keyframes xm-rise{ from{opacity:0; transform:translateY(14px)} to{opacity:1; transform:none} }

/* ------------------------------------------------- 5. PROGRESS (compact) */
.stepper{ gap:8px; flex-wrap:wrap; }
.stepper .st{ transition:transform .28s var(--ease), opacity .28s var(--ease); }
.stepper .st .bub{
  width:30px; height:30px; border-radius:50%;
  font:700 12px/1 var(--mono); display:grid; place-items:center;
  background:rgba(255,255,255,.035); border:1px solid var(--line2); color:var(--mut);
  transition:all .32s var(--ease);
}
.stepper .st.done .bub{
  background:linear-gradient(160deg, rgba(92,255,158,.20), rgba(47,233,138,.10));
  border-color:rgba(92,255,158,.45); color:var(--grn);
  box-shadow:0 0 16px rgba(92,255,158,.22);
}
.stepper .st.active .bub{
  background:linear-gradient(160deg, var(--grn), var(--grn-deep));
  border-color:transparent; color:var(--grn-ink);
  box-shadow:0 0 0 4px rgba(92,255,158,.14), 0 0 26px rgba(92,255,158,.45);
  transform:scale(1.1);
}
/* the connector between bubbles reads as road */
.stepper .st::after{ background:linear-gradient(90deg, var(--line2), transparent) !important; }
.stepper .st.done::after{ background:linear-gradient(90deg, rgba(92,255,158,.5), rgba(92,255,158,.12)) !important; }

.barwrap{
  height:4px; border-radius:999px; overflow:hidden;
  background:rgba(255,255,255,.05); box-shadow:inset 0 1px 2px rgba(0,0,0,.5);
}
#bar{
  background:linear-gradient(90deg, var(--grn-deep), var(--grn) 60%, var(--teal));
  box-shadow:0 0 18px rgba(92,255,158,.55);
  transition:width .5s var(--ease-out);
  position:relative;
}
#bar::after{  /* a travelling highlight, so progress feels like motion */
  content:""; position:absolute; inset:0; border-radius:999px;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  animation:xm-sheen 2.6s var(--ease) infinite;
}
@keyframes xm-sheen{ 0%{transform:translateX(-100%)} 60%,100%{transform:translateX(220%)} }

.stepstatus{
  font:600 11.5px/1 var(--mono); letter-spacing:.13em; text-transform:uppercase;
  color:var(--mut); margin-top:12px;
}

/* ---------------------------------------------------------------- 6. CARD */
.card{
  background:linear-gradient(180deg, rgba(20,30,37,.72), rgba(11,17,22,.80));
  border:1px solid var(--line); border-radius:var(--r-xl);
  box-shadow:var(--sh-3), var(--glow);
  backdrop-filter:blur(26px) saturate(1.28); -webkit-backdrop-filter:blur(26px) saturate(1.28);
  position:relative; overflow:hidden;
}
/* lit top edge — the single detail that makes glass read as premium */
.card::before{
  content:""; position:absolute; top:0; left:8%; right:8%; height:1px; pointer-events:none;
  background:linear-gradient(90deg, transparent, rgba(92,255,158,.55), transparent);
}
.step{ animation:xm-step .42s var(--ease-out) both; }
@keyframes xm-step{ from{opacity:0; transform:translateY(12px)} to{opacity:1; transform:none} }
.step h2{
  font-size:clamp(21px,3.4vw,27px); letter-spacing:-.022em; font-weight:750; color:#fff;
  margin-bottom:6px;
}
.step .desc{ color:var(--txt2); font-size:14.5px; line-height:1.55; }

/* ------------------------------------------------------------- 7. FIELDS */
.fl{
  font:600 10.5px/1 var(--mono); letter-spacing:.14em; text-transform:uppercase;
  color:var(--mut); margin-bottom:8px; display:block;
}
.req{ color:var(--grn); }
.fi, select.fi, input.fi, textarea.fi{
  background:linear-gradient(180deg, rgba(6,11,14,.9), rgba(9,15,19,.9));
  border:1px solid var(--line2); border-radius:var(--r);
  color:var(--txt); font-size:16px;            /* 16px = iOS will not zoom on focus */
  padding:14px 16px; min-height:52px; width:100%;
  transition:border-color .2s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease);
}
.fi::placeholder{ color:var(--faint); }
.fi:hover{ border-color:rgba(140,225,190,.26); }
.fi:focus, .fi:focus-visible{
  outline:none; border-color:var(--grn);
  background:linear-gradient(180deg, rgba(8,16,13,.95), rgba(10,18,15,.95));
  box-shadow:0 0 0 4px rgba(92,255,158,.13), 0 0 26px rgba(92,255,158,.16);
}
.fi.err{ border-color:var(--stop); box-shadow:0 0 0 4px rgba(255,122,136,.12); }
select.fi{
  appearance:none; -webkit-appearance:none; padding-right:44px; cursor:pointer;
  background-image:linear-gradient(180deg, rgba(6,11,14,.9), rgba(9,15,19,.9)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%235cff9e' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat, no-repeat;
  background-position:0 0, right 16px center;
  background-size:auto, 13px;
}
.errmsg{ color:var(--stop); font-size:12.5px; margin-top:7px; }
.errmsg.on{ animation:xm-shake .34s var(--ease); }
@keyframes xm-shake{ 0%,100%{transform:translateX(0)} 25%{transform:translateX(-4px)} 75%{transform:translateX(4px)} }

.block{
  background:linear-gradient(180deg, rgba(255,255,255,.032), rgba(255,255,255,.012));
  border:1px solid var(--line2); border-radius:var(--r-lg); padding:18px;
  transition:border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.block:hover{ border-color:var(--line); box-shadow:var(--sh-2); }
.bh{
  font:700 10.5px/1 var(--mono); letter-spacing:.16em; text-transform:uppercase;
  color:var(--grn); margin-bottom:14px;
}

/* ------------------------------------------------------------ 8. BUTTONS */
.btn, .obtn, .lookbtn, #btnSubmit{
  border-radius:var(--r); font-weight:700; letter-spacing:-.005em;
  transition:transform .16s var(--ease), box-shadow .25s var(--ease),
             background .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease);
  min-height:50px; font-size:15px;
}
.btn.primary, #btnSubmit{
  background:linear-gradient(160deg, var(--grn) 0%, var(--grn2) 55%, var(--grn-deep) 100%);
  color:var(--grn-ink); border:0;
  box-shadow:0 10px 30px rgba(47,233,138,.30), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn.primary:hover, #btnSubmit:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 44px rgba(47,233,138,.42), inset 0 1px 0 rgba(255,255,255,.45);
}
.btn.primary:active, #btnSubmit:active{ transform:translateY(0) scale(.985); }
.btn.ghost, .obtn{
  background:rgba(255,255,255,.04); border:1px solid var(--line); color:var(--txt2);
}
.btn.ghost:hover, .obtn:hover{
  background:rgba(92,255,158,.09); border-color:var(--line-hot); color:var(--txt);
  transform:translateY(-1px);
}
.obtn.yes{ background:linear-gradient(160deg, var(--grn), var(--grn-deep)); color:var(--grn-ink); border-color:transparent; }

/* ------------------------------------------- 9. FMCSA — signature moment */
.stat{ font:600 13px/1.4 var(--mono); border-radius:var(--r); padding:12px 14px; margin-top:10px; }
.stat.load{
  background:linear-gradient(90deg, rgba(67,255,214,.08), rgba(92,255,158,.05));
  border:1px solid rgba(67,255,214,.28); color:var(--teal);
  position:relative; overflow:hidden;
}
/* a scan line sweeping the status bar while FMCSA is queried */
.stat.load::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(90deg, transparent, rgba(67,255,214,.30), transparent);
  animation:xm-scan 1.15s linear infinite;
}
@keyframes xm-scan{ 0%{transform:translateX(-100%)} 100%{transform:translateX(100%)} }
.stat.ok{ background:rgba(92,255,158,.09); border:1px solid rgba(92,255,158,.34); color:var(--grn); }
.stat.bad{ background:rgba(255,122,136,.08); border:1px solid rgba(255,122,136,.30); color:var(--stop); }

#fmcard, .fmcard{
  border-radius:var(--r-lg);
  background:linear-gradient(180deg, rgba(92,255,158,.075), rgba(14,22,28,.86));
  border:1px solid rgba(92,255,158,.30);
  box-shadow:0 24px 60px rgba(0,0,0,.5), 0 0 50px rgba(92,255,158,.10), inset 0 1px 0 rgba(255,255,255,.09);
}
#fmcard.on{ animation:xm-reveal .5s var(--ease-out) both; }
@keyframes xm-reveal{ from{opacity:0; transform:translateY(14px) scale(.985)} to{opacity:1; transform:none} }
#fmcard .ct{
  font:700 10.5px/1 var(--mono); letter-spacing:.18em; text-transform:uppercase; color:var(--grn);
  display:inline-flex; align-items:center; gap:7px;
}
#fmcard h3{ font-size:22px; letter-spacing:-.02em; color:#fff; margin:10px 0 4px; }
#fmcard .fmgrid .k{
  font:600 9.5px/1 var(--mono); letter-spacing:.14em; text-transform:uppercase; color:var(--mut);
}
#fmcard .fmgrid .v{ color:var(--txt); font-weight:600; font-size:14.5px; }
.badge{
  font:700 10px/1 var(--mono); letter-spacing:.1em; text-transform:uppercase;
  padding:5px 10px; border-radius:999px;
}
.badge.active{ background:rgba(92,255,158,.16); color:var(--grn); border:1px solid rgba(92,255,158,.4); }
.badge.inactive{ background:rgba(255,122,136,.14); color:var(--stop); border:1px solid rgba(255,122,136,.36); }

/* -------------------------------------------------- 10. UPLOAD / FILES */
.drop{
  border:1.5px dashed rgba(140,225,190,.26); border-radius:var(--r-lg);
  background:linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,.008));
  padding:30px 20px; text-align:center; cursor:pointer;
  transition:border-color .25s var(--ease), background .25s var(--ease), transform .2s var(--ease);
}
.drop:hover{
  border-color:var(--grn); background:rgba(92,255,158,.06); transform:translateY(-2px);
  box-shadow:0 16px 40px rgba(0,0,0,.34), 0 0 40px rgba(92,255,158,.10);
}
.drop .di{ font-size:30px; filter:drop-shadow(0 0 14px rgba(92,255,158,.4)); }
.drop small{ display:block; margin-top:6px; color:var(--mut); font-size:12.5px; }
.fitem{
  display:flex; align-items:center; gap:10px; margin-top:9px; padding:12px 14px;
  border-radius:var(--r); background:rgba(255,255,255,.04); border:1px solid var(--line2);
  font-size:13.5px; animation:xm-rise .34s var(--ease-out) both;
}
.fitem .rd{ margin-left:auto; color:var(--grn); font:600 11px/1 var(--mono); }
.fnote{ color:var(--grn); font-size:12.5px; margin-top:9px; }

/* ---------------------------------------------------- 11. SELECTIONS */
.cov, .yn button, .radios label, .o{
  transition:all .2s var(--ease);
}
.cov{
  border-radius:var(--r); border:1px solid var(--line2);
  background:rgba(255,255,255,.03); padding:14px;
}
.cov:hover{ border-color:var(--line-hot); background:rgba(92,255,158,.055); transform:translateY(-2px); }
.cov.sel{
  border-color:var(--grn);
  background:linear-gradient(160deg, rgba(92,255,158,.16), rgba(92,255,158,.05));
  box-shadow:0 0 0 1px rgba(92,255,158,.24), 0 12px 30px rgba(0,0,0,.34), 0 0 34px rgba(92,255,158,.14);
}
.yn button{ min-height:48px; border-radius:var(--r); }
.yn button.sel{
  background:linear-gradient(160deg, var(--grn), var(--grn-deep)); color:var(--grn-ink); border-color:transparent;
  box-shadow:0 8px 24px rgba(47,233,138,.28);
}
.tfollow{ transition:max-height .4s var(--ease), opacity .3s var(--ease); }
.tfollow.on{ animation:xm-rise .38s var(--ease-out) both; }

/* --------------------------------------------------------- 12. SUCCESS */
#success.on{ animation:xm-reveal .55s var(--ease-out) both; }
#success{
  background:linear-gradient(180deg, rgba(92,255,158,.09), rgba(14,22,28,.86));
  border:1px solid rgba(92,255,158,.30); border-radius:var(--r-xl);
  box-shadow:var(--sh-3), 0 0 70px rgba(92,255,158,.14);
}
.qn{
  font:700 13px/1 var(--mono); color:var(--grn);
  background:rgba(92,255,158,.12); border:1px solid rgba(92,255,158,.3);
  padding:4px 10px; border-radius:8px;
}

/* --------------------------------------------------------- 13. HELPERS */
.helplink{
  font:600 11px/1 var(--mono); color:var(--grn); letter-spacing:.04em;
  padding:7px 12px; border-radius:999px; background:rgba(92,255,158,.09);
  border:1px solid rgba(92,255,158,.24); transition:all .2s var(--ease);
}
.helplink:hover{ background:rgba(92,255,158,.18); transform:translateY(-1px); }
.spin{ border-top-color:var(--grn) !important; }

/* ------------------------------------------------------- 14. MOBILE */
@media (max-width:640px){
  body::before{ opacity:.10; }         /* the road recedes on small screens */
  .head h1{ font-size:clamp(28px,8.4vw,38px); }
  .card{ border-radius:var(--r-lg); }
  .stepper .st .bub{ width:26px; height:26px; font-size:11px; }
  .fi{ min-height:54px; font-size:16px; }        /* comfortable thumb targets */
  .btn, .obtn, #btnSubmit{ min-height:54px; width:100%; }
  .drop{ padding:24px 16px; }
  /* the step controls sit above the fold of the thumb, always reachable */
  #btnrow{
    position:sticky; bottom:0; z-index:20;
    padding:12px 0 calc(12px + env(safe-area-inset-bottom));
    background:linear-gradient(180deg, transparent, rgba(4,7,10,.92) 34%);
    backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  }
}

/* --------------------------------------------- 15. MOTION PREFERENCES */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{ animation-duration:.01ms !important; animation-iteration-count:1 !important;
                        transition-duration:.01ms !important; scroll-behavior:auto !important; }
  body::before{ animation:none; }
}

/* ------------------------------------------- 16. VEHICLE SELECTOR CARDS
   Drawn by xm-visual.js and bound to the existing <select>, which remains the
   real field. The dropdown is kept in the DOM (visually quiet) so the form is
   still complete and usable if the visual layer never loads. */
.xm-vcards{
  display:grid; gap:10px; margin-bottom:12px;
  grid-template-columns:repeat(auto-fit, minmax(150px, 1fr));
}
.xm-vcard{
  display:flex; flex-direction:column; align-items:flex-start; gap:5px;
  padding:15px 14px; cursor:pointer; text-align:left;
  border-radius:var(--r); border:1px solid var(--line2);
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012));
  color:var(--txt2);
  transition:transform .18s var(--ease), border-color .2s var(--ease),
             background .2s var(--ease), box-shadow .25s var(--ease), color .2s var(--ease);
}
.xm-vcard:hover{
  transform:translateY(-3px); color:var(--txt);
  border-color:var(--line-hot); background:rgba(92,255,158,.07);
  box-shadow:0 14px 34px rgba(0,0,0,.36), 0 0 30px rgba(92,255,158,.10);
}
.xm-vcard:focus-visible{ outline:none; box-shadow:0 0 0 3px rgba(92,255,158,.35); }
.xm-vcard.on{
  color:#fff; border-color:var(--grn);
  background:linear-gradient(160deg, rgba(92,255,158,.18), rgba(92,255,158,.05));
  box-shadow:0 0 0 1px rgba(92,255,158,.30), 0 16px 38px rgba(0,0,0,.4), 0 0 40px rgba(92,255,158,.16);
}
.xm-vc-ic svg{ width:40px; height:24px; fill:none; stroke:currentColor; stroke-width:1.6;
  stroke-linecap:round; stroke-linejoin:round; opacity:.85; }
.xm-vcard.on .xm-vc-ic svg{ stroke:var(--grn); opacity:1; filter:drop-shadow(0 0 8px rgba(92,255,158,.5)); }
.xm-vc-t{ font-weight:700; font-size:14.5px; letter-spacing:-.01em; }
.xm-vc-s{ font-size:11.5px; line-height:1.35; color:var(--mut); }
.xm-vcard.on .xm-vc-s{ color:rgba(255,255,255,.68); }
/* the dropdown stays available, just visually secondary */
select.xm-select-quiet{ opacity:.62; font-size:14px; min-height:46px; }
select.xm-select-quiet:hover, select.xm-select-quiet:focus{ opacity:1; }
@media (max-width:640px){
  .xm-vcards{ grid-template-columns:repeat(2,1fr); gap:8px; }
  .xm-vcard{ padding:12px 11px; }
  .xm-vc-ic svg{ width:34px; height:20px; }
  .xm-vc-t{ font-size:13px; }
  .xm-vc-s{ display:none; }        /* keep mobile compact */
}

/* the hero copy is centred, so it must be centred as a block too */
.head p{ margin-left:auto; margin-right:auto; }

/* -------------------------------------------- 17. LARGE-FLEET NOTICE
   Shown when the customer selects 10+. The automated intake covers 1–10
   vehicles; beyond that the honest answer is a direct line to the team rather
   than eleven more vehicle forms. */
.fleetover{
  display:none; margin-top:14px; padding:18px 18px 16px; border-radius:var(--r-lg);
  background:linear-gradient(180deg, rgba(92,255,158,.10), rgba(14,22,28,.86));
  border:1px solid rgba(92,255,158,.30);
  box-shadow:0 20px 48px rgba(0,0,0,.44), 0 0 44px rgba(92,255,158,.10), inset 0 1px 0 rgba(255,255,255,.08);
}
.fleetover.on{ display:block; animation:xm-reveal .42s var(--ease-out) both; }
.fleetover .fo-h{
  font:700 10.5px/1 var(--mono); letter-spacing:.16em; text-transform:uppercase;
  color:var(--grn); margin-bottom:9px;
}
.fleetover p{ color:var(--txt); font-size:14.5px; line-height:1.6; margin:0 0 14px; }
.fleetover a{ color:var(--grn); font-weight:700; text-decoration:none; border-bottom:1px solid rgba(92,255,158,.4); }
.fleetover a:hover{ border-bottom-color:var(--grn); }
.fleetover .fo-btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:0 22px; min-height:50px; border-bottom:0; text-decoration:none;
}
.fleetover .fo-btn:hover{ border-bottom:0; }
@media (max-width:640px){ .fleetover .fo-btn{ width:100%; } }

/* ============================================================ 18. REVIEW
   Six labelled sections so the customer can scan exactly what they are about
   to send. The goal of this screen is confidence, not density. */
.review{ display:grid; gap:14px; }
.rv-sec{
  border-radius:var(--r-lg); overflow:hidden;
  background:linear-gradient(180deg, rgba(255,255,255,.038), rgba(255,255,255,.012));
  border:1px solid var(--line2);
  transition:border-color .25s var(--ease), box-shadow .25s var(--ease);
  animation:xm-rise .4s var(--ease-out) both;
}
.rv-sec:hover{ border-color:var(--line); box-shadow:var(--sh-2); }
.rv-h{
  display:flex; align-items:center; gap:10px; padding:13px 16px;
  background:linear-gradient(180deg, rgba(92,255,158,.09), rgba(92,255,158,.02));
  border-bottom:1px solid var(--line2);
}
.rv-ic{ font-size:15px; filter:grayscale(.25); }
.rv-t{ font:700 11px/1 var(--mono); letter-spacing:.17em; text-transform:uppercase; color:var(--grn); }
.rv-m{
  margin-left:auto; font:700 10.5px/1 var(--mono); color:var(--txt2);
  background:rgba(255,255,255,.07); border:1px solid var(--line2);
  padding:4px 9px; border-radius:999px;
}
.rv-b{ padding:6px 16px 12px; }
.rv-b .rrow, .review .rrow{ border-bottom:1px solid rgba(255,255,255,.045); }
.rv-b .rrow:last-child{ border-bottom:0; }

/* ========================================================== 19. SUCCESS */
.success{ text-align:center; padding:clamp(26px,5vw,44px) clamp(18px,4vw,36px); }
.success .ring{
  width:74px; height:74px; margin:0 auto 16px; border-radius:50%;
  display:grid; place-items:center; font-size:34px; color:var(--grn-ink);
  background:linear-gradient(160deg, var(--grn), var(--grn-deep));
  box-shadow:0 0 0 8px rgba(92,255,158,.10), 0 0 50px rgba(92,255,158,.45);
  animation:xm-pop .55s var(--ease-out) both;
}
@keyframes xm-pop{ 0%{transform:scale(.5); opacity:0} 60%{transform:scale(1.08)} 100%{transform:scale(1); opacity:1} }
.su-k{
  display:inline-block; font:700 10.5px/1 var(--mono); letter-spacing:.18em; text-transform:uppercase;
  color:var(--grn); padding:7px 13px; border-radius:999px; margin-bottom:12px;
  background:rgba(92,255,158,.12); border:1px solid rgba(92,255,158,.30);
}
.success h2{ font-size:clamp(23px,4vw,31px); letter-spacing:-.025em; color:#fff; margin-bottom:10px; }
.success #successMsg{ color:var(--txt2); font-size:15px; line-height:1.65; max-width:56ch; margin:0 auto; }
.su-next{
  margin-top:26px; text-align:left; padding:20px; border-radius:var(--r-lg);
  background:rgba(255,255,255,.03); border:1px solid var(--line2);
}
.su-nh{ font:700 10.5px/1 var(--mono); letter-spacing:.17em; text-transform:uppercase; color:var(--grn); margin-bottom:14px; }
.su-steps{ list-style:none; margin:0; padding:0; counter-reset:s; display:grid; gap:14px; }
.su-steps li{ counter-increment:s; display:grid; grid-template-columns:30px 1fr; gap:12px; align-items:start; }
.su-steps li::before{
  content:counter(s); grid-row:span 2;
  width:28px; height:28px; border-radius:50%; display:grid; place-items:center;
  font:700 12px/1 var(--mono); color:var(--grn);
  background:rgba(92,255,158,.12); border:1px solid rgba(92,255,158,.30);
}
.su-steps li b{ color:var(--txt); font-size:14.5px; font-weight:700; display:block; }
.su-steps li span{ color:var(--mut); font-size:13px; line-height:1.5; display:block; margin-top:2px; }
.su-help{ margin-top:16px; padding-top:14px; border-top:1px solid var(--line2); color:var(--mut); font-size:13px; }
.su-help a{ color:var(--grn); font-weight:600; text-decoration:none; }
.su-help a:hover{ text-decoration:underline; }

/* ============================================== 20. FMCSA — compact + strong */
#fmcard{ padding:20px; }
#fmcard .fmgrid{
  display:grid; grid-template-columns:auto 1fr; gap:9px 18px; align-items:center;
  margin-top:14px; padding-top:14px; border-top:1px solid rgba(92,255,158,.16);
}
#fmcard h3{ font-size:clamp(19px,3vw,24px); font-weight:800; }
.badge.active{
  background:linear-gradient(160deg, rgba(92,255,158,.24), rgba(47,233,138,.12));
  box-shadow:0 0 18px rgba(92,255,158,.28), inset 0 1px 0 rgba(255,255,255,.14);
}
.fmbtns{ margin-top:16px; display:flex; flex-wrap:wrap; gap:9px; }
@media (max-width:640px){ .fmbtns .obtn{ width:100%; } #fmcard .fmgrid{ grid-template-columns:1fr; gap:3px 0; } 
  #fmcard .fmgrid .k{ margin-top:9px; } }

/* ================================================ 21. LOSS RUNS — premium */
.drop .di{ font-size:0; }              /* replace the emoji with a drawn mark */
.drop .di::before{
  content:""; display:block; width:46px; height:46px; margin:0 auto 10px;
  border-radius:14px; background:rgba(92,255,158,.10); border:1px solid rgba(92,255,158,.28);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%235cff9e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4M7 9l5-5 5 5'/%3E%3Cpath d='M4 16v2a2 2 0 002 2h12a2 2 0 002-2v-2'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:center;
  box-shadow:0 0 24px rgba(92,255,158,.18);
  transition:transform .25s var(--ease);
}
.drop:hover .di::before{ transform:translateY(-3px); }
.flist{ margin-top:12px; display:grid; gap:8px; }
.fitem{
  position:relative; padding-left:44px; align-items:center;
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border-color:var(--line2);
}
/* a file-type mark, derived from the extension in the filename */
.fitem::before{
  content:"FILE"; position:absolute; left:12px; top:50%; transform:translateY(-50%);
  width:24px; height:30px; border-radius:5px; display:grid; place-items:center;
  font:700 7px/1 var(--mono); letter-spacing:.02em; color:var(--grn-ink);
  background:linear-gradient(160deg, var(--grn), var(--grn-deep));
  box-shadow:0 3px 10px rgba(0,0,0,.35);
}
.fitem[data-ext="pdf"]::before{ content:"PDF"; }
.fitem[data-ext="jpg"]::before, .fitem[data-ext="jpeg"]::before{ content:"JPG"; background:linear-gradient(160deg,#43ffd6,#12b58c); }
.fitem[data-ext="png"]::before{ content:"PNG"; background:linear-gradient(160deg,#7cc4ff,#2f7fe9); }
.fitem .rd{ display:inline-flex; align-items:center; gap:5px; }
.fitem-x{
  width:26px; height:26px; border-radius:7px; display:grid; place-items:center;
  background:rgba(255,255,255,.05); border:1px solid var(--line2);
}
.fitem-x:hover{ background:rgba(255,122,136,.16); border-color:rgba(255,122,136,.4); }

/* ================================================ 22. FINAL POLISH PASS */

/* -- loading state for documents still being read ------------------------- */
.rv-load{
  display:inline-block; width:11px; height:11px; margin-right:8px; vertical-align:-1px;
  border:2px solid rgba(92,255,158,.25); border-top-color:var(--grn); border-radius:50%;
  animation:xm-spin .7s linear infinite;
}
@keyframes xm-spin{ to{ transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce){ .rv-load{ animation:none; border-top-color:rgba(92,255,158,.25); } }

/* -- consistency: one radius scale, one shadow scale, one glow intensity --- */
.block, .cov, .drop, .fitem, .rv-sec, .fleetover, .xm-vcard, #fmcard, .su-next{
  border-radius:var(--r-lg);
}
.fi, .btn, .obtn, .lookbtn, #btnSubmit, .fitem-x{ border-radius:var(--r); }
/* every interactive surface shares the same lift + the same green at the same strength */
.cov:hover, .block:hover, .xm-vcard:hover, .drop:hover, .rv-sec:hover{
  box-shadow:0 16px 38px rgba(0,0,0,.38), 0 0 30px rgba(92,255,158,.10);
}
.cov.sel, .yn button.sel, .xm-vcard.on{
  box-shadow:0 0 0 1px rgba(92,255,158,.28), 0 16px 38px rgba(0,0,0,.40), 0 0 34px rgba(92,255,158,.15);
}
/* labels, help text and errors share one type scale across all seven steps */
.fl, .bh, .rv-t, .fo-h, .su-nh, .stepstatus, #fmcard .ct{
  font-family:var(--mono); font-weight:700; text-transform:uppercase;
}
.desc, .cc-s{ font-size:14.5px; line-height:1.55; color:var(--txt2); }
.errmsg{ font-size:12.5px; font-weight:600; }
.opt{ font-size:10.5px; }
/* uniform vertical rhythm between blocks in every step */
.step > .fg + .fg, .step > .block + .block, .step > div + .block, .step > .block + div{ margin-top:14px; }
#truckTypes > .block + .block, #vehicleBlocks > .block + .block,
#driverBlocks > .block + .block, #cargoBlocks > .block + .block{ margin-top:14px; }

/* -- Back / Next parity: same height, same weight, clear primary ---------- */
#btnrow{ display:flex; gap:12px; align-items:center; }
#btnPrev{ min-width:132px; }
#btnNext, #btnSubmit{ margin-left:auto; min-width:150px; }

/* ------------------------------------------------------- MOBILE POLISH */
@media (max-width:640px){
  .wrap{ padding-left:14px; padding-right:14px; }
  .card{ padding:18px 15px; }
  .step h2{ font-size:21px; }
  .block{ padding:15px 13px; }
  .rv-b{ padding:4px 13px 10px; }
  .rv-h{ padding:11px 13px; }
  .su-next{ padding:16px 14px; }
  #fmcard{ padding:16px; }

  /* the sticky footer owns the bottom; give the page room so nothing hides */
  main{ padding-bottom:96px; }
  #btnrow{ gap:10px; }
  #btnPrev{ min-width:0; flex:0 0 38%; }
  #btnNext, #btnSubmit{ flex:1 1 auto; min-width:0; margin-left:0; }

  /* Miles must never sit on top of Next/Submit. It moves above the sticky bar
     and shrinks to its mark — the panel it opens is unchanged. */
  .miles-fab{
    bottom:calc(78px + env(safe-area-inset-bottom)); right:14px;
    padding:10px; gap:0; font-size:0; border-radius:50%;
    box-shadow:0 10px 26px -8px rgba(92,255,158,.6);
  }
  .miles-fab > *:not(:first-child){ display:none; }
  .miles-panel{
    bottom:calc(72px + env(safe-area-inset-bottom)); right:10px; left:10px;
    width:auto; max-width:none; height:min(70vh,520px);
  }
}
@media (max-width:640px) and (max-height:700px){
  main{ padding-bottom:88px; }
  .miles-fab{ bottom:calc(72px + env(safe-area-inset-bottom)); }
}

/* ============================================ 23. FINAL REFINEMENTS */

/* -- 1. MOBILE HERO: keep the statement, lose the scroll -------------------
   Desktop is untouched. On a phone the opening was costing a full screen
   before the first field, so the pill, headline and copy tighten and the
   progress rail moves up. Presence without the scroll tax. */
@media (max-width:640px){
  .head{ padding-top:16px; padding-bottom:0; }
  .head .k{
    font-size:9.5px; letter-spacing:.10em; padding:6px 11px; gap:7px;
    line-height:1.25; max-width:none;
  }
  .head h1{
    font-size:clamp(26px,7.4vw,32px); line-height:1.06; margin:10px 0 7px;
    letter-spacing:-.03em;
  }
  .head p{
    font-size:13.5px; line-height:1.5; margin:0 auto; max-width:38ch;
  }
  /* the progress rail sits closer to the copy it belongs to */
  .stepper{ margin-top:14px; gap:6px; }
  .barwrap{ margin-top:9px; }
  .stepstatus{ margin-top:9px; font-size:10.5px; letter-spacing:.11em; }
  .card{ margin-top:14px; }
}
/* very short phones give up a little more */
@media (max-width:640px) and (max-height:760px){
  .head{ padding-top:12px; }
  .head h1{ font-size:clamp(24px,7vw,29px); margin:8px 0 6px; }
  .head p{ font-size:13px; }
  .stepper{ margin-top:11px; }
}

/* -- 2. VEHICLE FALLBACK SELECT: visually hidden, fully accessible --------
   The real <select> stays in the DOM, keeps its id, value, change events and
   place in the payload. It is removed from VIEW only — not from the
   accessibility tree, and not from the tab order. A keyboard user who tabs to
   it gets it back on screen (the :focus rule below), which is what makes this
   safe rather than an accessibility trap. */
select.xm-select-quiet{
  position:absolute !important;
  width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; white-space:nowrap; border:0; opacity:1;
  clip:rect(0 0 0 0); clip-path:inset(50%);
}
select.xm-select-quiet:focus,
select.xm-select-quiet:focus-visible{
  position:static !important;
  width:100%; height:auto; min-height:52px; padding:14px 44px 14px 16px; margin:12px 0 0;
  clip:auto; clip-path:none; overflow:visible; white-space:normal; opacity:1;
  border:1px solid var(--grn); border-radius:var(--r);
  box-shadow:0 0 0 4px rgba(92,255,158,.13), 0 0 26px rgba(92,255,158,.16);
}
