@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500&display=swap");

:root {
  /* Deep yellow / mustard — the one brand color, used deliberately (headers, buttons, links) */
  --green-900: #4a3403;
  --green-800: #6b4d08;
  --green-700: #8c660c;
  --green-500: #c9971f;
  --green-100: #fdf6df;

  /* Neutral surfaces — white/warm-grey, doing most of the work so the
     page reads clean and uncluttered */
  --beige-50: #ffffff;
  --beige-100: #f6f5f1;
  --beige-200: #e7e4db;
  --beige-300: #cec8b8;

  /* Bright gold — used sparingly as an accent, never as a large surface */
  --accent: #f0b429;
  --accent-dark: #c9971f;

  --ink: #201f1a;
  --ink-soft: #63604f;

  --error: #a13a26;

  --radius: 3px;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --display: var(--sans);
}

* { box-sizing: border-box; }

html {
  background: #faf6ea;
  min-height: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--green-700); }

/* ---------------- Top navigation ---------------- */
.topbar {
  background: var(--green-900);
  color: var(--beige-50);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar .brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}

.topbar .brand span {
  color: var(--beige-200);
}

.steps {
  display: flex;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: #93a396;
}

.steps .step { padding: 2px 7px; border-radius: var(--radius); }
.steps .step.active { background: var(--green-500); color: var(--beige-50); }
.steps .step.done { color: var(--beige-300); }

/* ---------------- Page shell ---------------- */
.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--green-900);
}

h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--green-900);
  margin: 0 0 10px;
}

.subhead {
  color: var(--ink-soft);
  margin: 0 0 32px;
  max-width: 58ch;
  font-size: 1.02rem;
}

.card {
  background: var(--beige-50);
  border: 1px solid var(--beige-300);
  border-radius: var(--radius);
  padding: 28px;
}

.card-compact {
  max-width: 440px;
  padding: 20px;
}

.card-compact .field {
  margin-bottom: 14px;
}

/* ---------------- Form fields ---------------- */
.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.field input, .field select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--beige-300);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--sans);
  background: var(--beige-100);
  color: var(--ink);
}

.field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--beige-300);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--sans);
  background: var(--beige-100);
  color: var(--ink);
  resize: vertical;
  min-height: 120px;
}

.field textarea:focus {
  outline: 2px solid var(--green-500);
  outline-offset: 1px;
  border-color: var(--green-500);
}

.field input:focus, .field select:focus {
  outline: 2px solid var(--green-500);
  outline-offset: 1px;
  border-color: var(--green-500);
}

.field.mono input {
  font-family: var(--mono);
  letter-spacing: 0.03em;
}

.field .hint {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 5px;
}

.field .error-msg {
  font-size: 0.78rem;
  color: var(--error);
  margin-top: 5px;
  display: none;
}

.field.invalid input, .field.invalid select {
  border-color: var(--error);
}

.field.invalid .error-msg { display: block; }

.place-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  background: #fff;
  border: 1px solid var(--beige-300);
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  display: none;
  max-height: 220px;
  overflow-y: auto;
}

.place-suggestion {
  padding: 9px 12px;
  font-size: 0.92rem;
  cursor: pointer;
  color: var(--ink);
}

.place-suggestion:hover, .place-suggestion.active {
  background: var(--beige-100);
}

.lookup-status {
  font-size: 0.82rem;
  margin-top: 6px;
  font-family: var(--mono);
}

.lookup-status.loading { color: var(--ink-soft); }
.lookup-status.ok { color: var(--green-700); }
.lookup-status.error { color: var(--error); }

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 520px) {
  .row-2 { grid-template-columns: 1fr; }
}

/* ---------------- Buttons ---------------- */
button.primary {
  width: 100%;
  padding: 14px;
  background: var(--green-700);
  color: var(--beige-50);
  border: none;
  border-radius: var(--radius);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  margin-top: 8px;
}

button.primary:hover { background: var(--green-900); }

button.primary:disabled {
  background: var(--beige-300);
  color: var(--ink-soft);
  cursor: not-allowed;
}

button.ghost {
  width: 100%;
  padding: 12px;
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--beige-300);
  border-radius: var(--radius);
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: 10px;
}

button.ghost:hover { border-color: var(--green-500); color: var(--green-700); }

.choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.choice-btn {
  padding: 32px 16px;
  background: var(--beige-50);
  border: 2px solid var(--beige-300);
  border-radius: var(--radius);
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: center;
}

.choice-btn:hover { border-color: var(--green-500); }

.choice-btn.selected {
  border-color: var(--green-700);
  background: var(--green-100);
  color: var(--green-900);
  box-shadow: inset 0 0 0 1px var(--green-700);
}

.choice-btn.selected::after {
  content: "✓";
  display: inline-block;
  margin-left: 8px;
  color: var(--green-700);
}

.stop-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.stop-row input { flex: 1; }

.stop-row .remove-stop {
  background: none;
  border: 1px solid var(--beige-300);
  border-radius: var(--radius);
  color: var(--error);
  cursor: pointer;
  padding: 0 14px;
  font-size: 1.1rem;
}

.result-box {
  background: var(--green-100);
  border: 1px solid var(--green-500);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 24px;
  display: none;
}

.result-box.show { display: block; }

.result-box .miles {
  font-family: var(--mono);
  font-size: 1.8rem;
  color: var(--green-900);
}

.result-box .price {
  font-size: 1.1rem;
  margin-top: 4px;
  color: var(--ink);
}

.notice {
  font-size: 0.78rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--beige-300);
  padding: 8px 12px;
  margin-top: 20px;
  background: var(--beige-100);
}

#stripe-card-element {
  padding: 12px;
  border: 1px solid var(--beige-300);
  border-radius: var(--radius);
  background: var(--beige-100);
  margin-bottom: 16px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--beige-200);
  font-size: 0.92rem;
}

.summary-line:last-of-type { border-bottom: none; font-weight: 700; }

/* ---------------- Informational content (landing page) ---------------- */
.info-section {
  max-width: 640px;
  margin: 0 auto;
  padding: 8px 24px 56px;
}

.info-section h2 {
  margin-top: 0;
  padding-bottom: 12px;
  position: relative;
}

.info-section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}

.info-section p {
  color: var(--ink);
  max-width: 62ch;
}

.info-section + .info-section {
  border-top: 1px solid var(--beige-200);
  padding-top: 40px;
}

/* ---------------- Full-width divisional bands ---------------- */
.band {
  width: 100%;
}

.band-tint {
  background: var(--green-100);
  border-top: 1px solid var(--beige-200);
  border-bottom: 1px solid var(--beige-200);
}

.band > .info-section {
  border-top: none;
  padding-top: 48px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

@media (max-width: 720px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--beige-50);
  border: 1px solid var(--beige-200);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px;
}

.feature-card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--green-900);
  margin: 0 0 8px;
}

.feature-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0;
}

.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.process-list li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  margin-bottom: 18px;
}

.process-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--beige-50);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-list strong {
  display: block;
  color: var(--green-900);
  font-size: 1.02rem;
}

.faq-item {
  margin-bottom: 22px;
}

.faq-item h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--green-900);
  margin: 0 0 6px;
}

.faq-item p {
  margin: 0;
  color: var(--ink-soft);
}

footer.site-footer {
  background: var(--green-900);
  color: var(--beige-200);
  padding: 28px 24px;
  text-align: center;
  font-size: 0.85rem;
}

footer.site-footer a {
  color: var(--beige-50);
}

/* ---------------- Site header (marketing pages) ---------------- */
.site-header {
  background: var(--green-900);
  color: var(--beige-50);
}

.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-header .brand-logo {
  flex-shrink: 0;
}

.site-header .brand-text {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.65rem;
  letter-spacing: -0.01em;
  color: var(--beige-50);
}

.site-header .brand-text span {
  color: var(--beige-200);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--beige-100);
  text-decoration: none;
  font-size: 0.92rem;
}

.site-nav a:hover {
  color: var(--beige-50);
  text-decoration: underline;
}

.site-nav a.phone-link {
  font-family: var(--mono);
  color: var(--green-900);
  background: var(--accent);
  padding: 8px 14px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.site-nav a.phone-link:hover {
  background: var(--beige-50);
  color: var(--green-900);
  text-decoration: none;
}

/* ---------------- Language toggle (EN / ES) ---------------- */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 2px;
}

.lang-toggle button,
.lang-toggle a {
  border: none;
  background: transparent;
  color: inherit;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0.7;
  text-decoration: none;
  display: inline-block;
}

.lang-toggle button.active,
.lang-toggle a.active {
  background: var(--accent);
  color: var(--green-900);
  opacity: 1;
}

.lang-toggle button:hover,
.lang-toggle a:hover {
  opacity: 1;
}

.topbar .lang-toggle {
  background: rgba(255,255,255,0.1);
}

/* ---------------- Buttons: outline & callout ---------------- */
.btn-outline {
  display: inline-block;
  padding: 12px 24px;
  border: 2px solid var(--beige-50);
  color: var(--beige-50);
  background: transparent;
  border-radius: var(--radius);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
}

.btn-outline:hover {
  background: rgba(251, 248, 240, 0.12);
}

.btn-callout {
  display: inline-block;
  padding: 14px 28px;
  background: var(--beige-200);
  color: var(--green-900);
  border: none;
  border-radius: var(--radius);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
}

.btn-callout:hover {
  background: var(--beige-300);
}

/* ---------------- Extended weight permit page (form left, text right) ---------------- */
.ewp-hero {
  position: relative;
  background:
    radial-gradient(640px circle at 12% 20%, rgba(240, 180, 41, 0.22), transparent 60%),
    radial-gradient(760px circle at 88% 82%, rgba(140, 102, 12, 0.45), transparent 60%),
    linear-gradient(135deg, #241a03 0%, #4a3403 50%, #6b4d08 100%);
  padding: 56px 24px;
}

.ewp-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 420px) 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 880px) {
  .ewp-inner { grid-template-columns: 1fr; }
  .ewp-form-col { order: 2; }
  .ewp-text-col { order: 1; }
}

.ewp-form-col .card {
  box-shadow: 0 12px 32px rgba(15, 27, 19, 0.35);
}

/* ---------------- Hero (homepage) ---------------- */
.hero {
  position: relative;
  background:
    radial-gradient(640px circle at 12% 20%, rgba(240, 180, 41, 0.22), transparent 60%),
    radial-gradient(760px circle at 88% 82%, rgba(140, 102, 12, 0.45), transparent 60%),
    linear-gradient(135deg, #241a03 0%, #4a3403 50%, #6b4d08 100%);
  padding: 56px 24px;
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 420px) 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
}

.hero-form-col .card {
  box-shadow: 0 12px 32px rgba(15, 27, 19, 0.35);
}

.hero-text-card {
  background: rgba(36, 26, 3, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 32px 36px;
}

.hero-text-card h1 {
  color: var(--beige-50);
  font-size: 2.1rem;
  margin-top: 0;
}

.hero-text-card .subhead {
  color: var(--beige-100);
  margin-bottom: 24px;
}

.ewp-text-col .hero-text-card {
  margin-bottom: 8px;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.hero-points li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 10px;
  color: var(--beige-100);
}

.hero-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---------------- Footer nav grid (all pages) ---------------- */
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  text-align: left;
  padding-bottom: 20px;
}

@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

.footer-col .brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--beige-50);
  margin-bottom: 8px;
}

.footer-col .brand span { color: var(--beige-300); }

.footer-col p { color: var(--beige-200); font-size: 0.85rem; margin: 0; }

.footer-col h4 {
  font-family: var(--display);
  font-size: 0.85rem;
  text-transform: none;
  color: var(--beige-300);
  margin: 0 0 10px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  color: var(--beige-100);
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.footer-col a:hover { color: var(--beige-50); text-decoration: underline; }

.footer-bottom {
  max-width: 1080px;
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid rgba(251, 248, 240, 0.15);
  font-size: 0.78rem;
  color: var(--beige-300);
  text-align: center;
}

/* ---------------- Simple content pages (privacy, terms, extended weight) ---------------- */
.content-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.content-page h2 {
  margin-top: 32px;
  padding-bottom: 12px;
  position: relative;
}

.content-page h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}

.content-page h3 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 1.05rem;
  color: var(--green-800);
}

.content-page p, .content-page li {
  color: var(--ink);
}

.content-page .updated {
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin-bottom: 32px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 28px 0 8px;
}

.contact-card {
  background: var(--beige-50, #fdf6df);
  border: 1px solid rgba(74, 52, 3, 0.12);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.contact-card h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--green-800);
}

.contact-card p {
  margin: 0;
  word-break: break-word;
}

@media (max-width: 640px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.callout-box {
  max-width: 760px;
  margin: 48px auto;
  background: var(--green-800);
  color: var(--beige-50);
  border-radius: 8px;
  padding: 36px 40px;
  text-align: center;
}

.callout-box h3 {
  font-family: var(--display);
  font-size: 1.3rem;
  margin: 0 0 10px;
  color: var(--beige-50);
}

.callout-box p {
  color: var(--beige-100);
  margin: 0 0 20px;
}

/* ---------------- Admin panel ---------------- */
.admin-login {
  max-width: 380px;
  margin: 80px auto;
  padding: 0 24px;
}

.admin-topbar {
  background: var(--green-900);
  color: var(--beige-50);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  position: relative;
  z-index: 2;
}

.admin-topbar .brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
}

.admin-topbar .brand span { color: var(--beige-200); }

.last-updated-note {
  font-size: 0.74rem;
  color: var(--beige-200);
}

.admin-token-note {
  max-width: 1400px;
  margin: 14px auto 0;
  padding: 10px 24px;
}

.admin-token-note p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.admin-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.admin-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.filter-btn {
  padding: 7px 15px;
  border: 1px solid var(--beige-300);
  background: var(--beige-50);
  border-radius: 20px;
  font-family: var(--sans);
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--ink);
}

.filter-btn.active {
  background: var(--green-700);
  color: var(--beige-50);
  border-color: var(--green-700);
}

.admin-card {
  background: var(--beige-50);
  border: 1px solid var(--beige-300);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(32, 31, 26, 0.05);
  padding: 4px;
}

.admin-table-wrap {
  overflow-x: auto;
  max-width: 100%;
  background: var(--beige-50);
  border-radius: 8px;
}

table.admin-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.83rem;
}

table.admin-table th {
  text-align: left;
  padding: 11px 10px;
  background: var(--beige-100);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--beige-300);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

table.admin-table th:first-child { border-top-left-radius: 8px; }
table.admin-table th:last-child { border-top-right-radius: 8px; }

table.admin-table td {
  padding: 10px 10px;
  border-bottom: 1px solid var(--beige-200);
  vertical-align: top;
  overflow: hidden;
  word-break: break-word;
}

table.admin-table tr:hover td { background: rgba(140, 102, 12, 0.04); }

table.admin-table td.nowrap-cell { white-space: nowrap; }

table.admin-table td.truncate-cell {
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 1px; /* forces the cell to respect its column width instead of growing */
}

/* Column widths sized to fit typical desktop viewports without horizontal
   scroll; least-essential columns (USDOT/Unit# — still visible in the
   View/edit modal, along with the Payment ID which now lives only on
   the Payments page) shrink away first on smaller screens. */
table.admin-table th:nth-child(1),
table.admin-table td:nth-child(1) { width: 12%; }
table.admin-table th:nth-child(2),
table.admin-table td:nth-child(2) { width: 8%; }
table.admin-table th:nth-child(3),
table.admin-table td:nth-child(3) { width: 7%; }
table.admin-table th:nth-child(4),
table.admin-table td:nth-child(4) { width: 17%; }
table.admin-table th:nth-child(5),
table.admin-table td:nth-child(5) { width: 8%; }
table.admin-table th:nth-child(6),
table.admin-table td:nth-child(6) { width: 7%; }
table.admin-table th:nth-child(7),
table.admin-table td:nth-child(7) { width: 17%; }
table.admin-table th:nth-child(8),
table.admin-table td:nth-child(8) { width: 10%; }
table.admin-table th:nth-child(9),
table.admin-table td:nth-child(9) { width: 14%; }

@media (max-width: 960px) {
  table.admin-table th:nth-child(4), table.admin-table td:nth-child(4) { width: 24%; }
  table.admin-table th:nth-child(7), table.admin-table td:nth-child(7) { width: 26%; }
}

@media (max-width: 680px) {
  .col-hide-sm { display: none; }
  table.admin-table th:nth-child(4), table.admin-table td:nth-child(4) { width: 32%; }
  table.admin-table th:nth-child(7), table.admin-table td:nth-child(7) { width: 32%; }
}

table.admin-table tr:last-child td { border-bottom: none; }

.status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-pill.paid {
  background: #1f9d55;
  color: #ffffff;
}

.status-pill.draft {
  background: #f2e6cc;
  color: var(--accent-dark);
}

.status-pill.completed {
  background: var(--green-900);
  color: var(--beige-50);
}

.admin-empty {
  padding: 40px;
  text-align: center;
  color: var(--ink-soft);
}

/* Draft rows get a soft gold tint; paid rows get a bright, hard-to-miss
   green highlight (a permit that's paid but not yet issued is the thing
   most likely to get missed, so it needs to stand out the most). */
table.admin-table tr.row-draft,
table.simple-table tr.row-draft {
  background: #fbf5e7;
}

table.admin-table tr.row-paid,
table.simple-table tr.row-paid {
  background: #d7f9df;
  box-shadow: inset 4px 0 0 #1f9d55;
}

table.admin-table tr.row-paid:hover td,
table.simple-table tr.row-paid:hover td {
  background: #c7f4d1;
}

table.admin-table td.mono-cell,
table.simple-table td.mono-cell {
  font-family: var(--mono);
  font-size: 0.78rem;
}

.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(58, 40, 4, 0.5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
  z-index: 100;
}

.admin-modal {
  background: var(--beige-50);
  border-radius: 10px;
  max-width: 640px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.admin-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--beige-300);
}

.admin-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.ghost.danger {
  border-color: var(--error);
  color: var(--error);
}

/* ---------------- Admin sidebar layout ---------------- */
.admin-shell {
  display: flex;
  align-items: flex-start;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 24px 80px;
  gap: 28px;
}

.admin-sidebar {
  flex: 0 0 210px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 20px;
  background: var(--beige-50);
  border: 1px solid var(--beige-300);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 1px 3px rgba(32, 31, 26, 0.05);
}

.admin-nav-gap {
  height: 1px;
  background: var(--beige-200);
  margin: 6px 4px;
}

.admin-nav-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}

.admin-nav-btn:hover {
  background: var(--beige-100);
}

.admin-nav-btn.active {
  background: var(--green-700);
  color: var(--beige-50);
}

.admin-content {
  flex: 1 1 auto;
  min-width: 0;
}

.admin-page-section .admin-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

@media (max-width: 860px) {
  .admin-shell { flex-direction: column; }
  .admin-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    position: static;
    width: 100%;
    box-sizing: border-box;
  }
  .admin-nav-gap { display: none; }
  .admin-nav-btn { width: auto; flex: 1 1 auto; text-align: center; }
}

/* ---------------- Simple tables (Payments / Reports / Monthly viewer) ---------------- */
table.simple-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.82rem;
}

table.simple-table th {
  text-align: left;
  padding: 11px 8px;
  background: var(--beige-100);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--beige-300);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

table.simple-table th:first-child { border-top-left-radius: 8px; }
table.simple-table th:last-child { border-top-right-radius: 8px; }

table.simple-table td {
  padding: 8px 8px;
  border-bottom: 1px solid var(--beige-200);
  vertical-align: middle;
  overflow: hidden;
}

table.simple-table tr:hover td { background: rgba(140, 102, 12, 0.04); }
table.simple-table tr.row-paid:hover td { background: #c7f4d1; }

table.simple-table td.truncate-cell {
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 1px;
}

table.simple-table tr:last-child td { border-bottom: none; }

table.simple-table input.fee-input {
  width: 100%;
  max-width: 90px;
  padding: 6px 8px;
  border: 1px solid var(--beige-300);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 0.82rem;
  background: var(--beige-50);
}

table.simple-table input.fee-input:focus {
  outline: 2px solid var(--green-500);
  outline-offset: 1px;
}

/* Column widths — Reports and the Monthly viewer share the same 11
   columns, sized to fit a normal desktop width without horizontal
   scroll. Long text (company/email) truncates with a title tooltip. */
#reports-table th:nth-child(1), #reports-table td:nth-child(1),
#mv-table th:nth-child(1), #mv-table td:nth-child(1) { width: 8%; }
#reports-table th:nth-child(2), #reports-table td:nth-child(2),
#mv-table th:nth-child(2), #mv-table td:nth-child(2) { width: 7%; }
#reports-table th:nth-child(3), #reports-table td:nth-child(3),
#mv-table th:nth-child(3), #mv-table td:nth-child(3) { width: 10%; }
#reports-table th:nth-child(4), #reports-table td:nth-child(4),
#mv-table th:nth-child(4), #mv-table td:nth-child(4) { width: 8%; }
#reports-table th:nth-child(5), #reports-table td:nth-child(5),
#mv-table th:nth-child(5), #mv-table td:nth-child(5) { width: 14%; }
#reports-table th:nth-child(6), #reports-table td:nth-child(6),
#mv-table th:nth-child(6), #mv-table td:nth-child(6) { width: 15%; }
#reports-table th:nth-child(7), #reports-table td:nth-child(7),
#mv-table th:nth-child(7), #mv-table td:nth-child(7) { width: 6%; }
#reports-table th:nth-child(8), #reports-table td:nth-child(8),
#mv-table th:nth-child(8), #mv-table td:nth-child(8) { width: 8%; }
#reports-table th:nth-child(9), #reports-table td:nth-child(9),
#mv-table th:nth-child(9), #mv-table td:nth-child(9) { width: 8%; }
#reports-table th:nth-child(10), #reports-table td:nth-child(10),
#mv-table th:nth-child(10), #mv-table td:nth-child(10) { width: 8%; }
#reports-table th:nth-child(11), #reports-table td:nth-child(11),
#mv-table th:nth-child(11), #mv-table td:nth-child(11) { width: 8%; }

/* Payments table: 7 columns (Payment ID lives only here) */
#payments-table th:nth-child(1), #payments-table td:nth-child(1) { width: 12%; }
#payments-table th:nth-child(2), #payments-table td:nth-child(2) { width: 12%; }
#payments-table th:nth-child(3), #payments-table td:nth-child(3) { width: 16%; }
#payments-table th:nth-child(4), #payments-table td:nth-child(4) { width: 21%; }
#payments-table th:nth-child(5), #payments-table td:nth-child(5) { width: 17%; }
#payments-table th:nth-child(6), #payments-table td:nth-child(6) { width: 9%; }
#payments-table th:nth-child(7), #payments-table td:nth-child(7) { width: 13%; }

/* ---------------- Quick search box (Fuel / EWP / Payments) ---------------- */
.admin-search-input {
  margin-left: auto;
  padding: 7px 14px;
  border: 1px solid var(--beige-300);
  border-radius: 20px;
  font-family: var(--sans);
  font-size: 0.82rem;
  background: var(--beige-50);
  min-width: 260px;
}

.admin-search-input:focus {
  outline: 2px solid var(--green-500);
  outline-offset: 1px;
}

@media (max-width: 680px) {
  .admin-filters { flex-wrap: wrap; }
  .admin-search-input { margin-left: 0; width: 100%; min-width: 0; }
}

@media (max-width: 760px) {
  table.simple-table { font-size: 0.76rem; }
  table.simple-table input.fee-input { max-width: 70px; }
}

/* ---------------- Pagination ---------------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 10px;
}

.pagination-info {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ---------------- Reports save bar ---------------- */
.save-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 14px 16px;
  border-top: 1px solid var(--beige-200);
}

.save-bar-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ---------------- Reports / Monthly filter rows ---------------- */
.report-filters, .archive-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  background: var(--beige-50);
  border: 1px solid var(--beige-300);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(32, 31, 26, 0.05);
  padding: 16px 18px;
  margin-bottom: 18px;
}

.report-filters .field, .archive-controls .field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 120px;
  margin-bottom: 0;
}

.report-filters .field.filter-actions, .archive-controls .field.filter-actions {
  flex-direction: row;
  gap: 8px;
  margin-left: auto;
}

.report-filters .field label, .archive-controls .field label {
  font-size: 0.7rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.report-filters .field input,
.report-filters .field select,
.archive-controls .field input,
.archive-controls .field select {
  padding: 8px 10px;
  border: 1px solid var(--beige-300);
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 0.85rem;
  background: var(--beige-100);
}

/* ---------------- Monthly Reports archive tree ---------------- */
.archive-year {
  background: var(--beige-50);
  border: 1px solid var(--beige-300);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(32, 31, 26, 0.05);
  margin-bottom: 10px;
  padding: 4px 16px;
}

.archive-year > summary {
  cursor: pointer;
  padding: 12px 0;
  font-weight: 600;
  font-family: var(--display);
}

.archive-month-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 10px 16px;
  border-top: 1px solid var(--beige-200);
}

/* ---------------- Route page: truck-highway map builder ---------------- */
.page.page-wide { max-width: 980px; }

.mode-tabs {
  display: inline-flex;
  border: 1px solid var(--beige-300);
  border-radius: 999px;
  background: var(--beige-50);
  padding: 4px;
  margin: 4px 0 16px;
  gap: 4px;
}
.mode-tab {
  border: none;
  background: transparent;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.mode-tab.active { background: var(--green-900); color: #fff; }
.mode-tab:not(.active):hover { color: var(--green-800); }

.map-hint {
  margin: 0 0 12px;
  font-weight: 600;
  color: var(--green-900);
  background: var(--green-100);
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
  border-radius: var(--radius);
}
.truck-map {
  height: 520px;
  border: 1px solid var(--beige-300);
  border-radius: var(--radius);
  background: #eef0ec;
  z-index: 0;
}
.truck-map:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 640px) { .truck-map { height: 400px; } }

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 10px 0 4px;
}
.map-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.lg-line { display: inline-block; width: 22px; height: 4px; border-radius: 2px; }
.lg-i { background: #6b4d08; }
.lg-u { background: #8c7a52; }
.lg-route { background: #4a3403; box-shadow: 0 0 0 2px #f0b429; }
.lg-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #4a3403; }
.lg-border { background: #f0b429; }
.lg-town { background: #fff; width: 9px; height: 9px; }

.map-msg { min-height: 1.2em; color: var(--error); font-size: 0.88rem; font-weight: 600; margin: 6px 0; }
.map-msg:empty { margin: 0; min-height: 0; }

.map-summary {
  display: none;
  background: var(--beige-100);
  border: 1px solid var(--beige-200);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-top: 8px;
  font-size: 0.93rem;
}
.ms-row { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.ms-label { color: var(--ink-soft); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; min-width: 72px; }
.ms-note { color: var(--ink-soft); font-size: 0.8rem; }
.ms-legs { margin: 8px 0 8px 0; padding-left: 22px; }
.ms-legs li { margin: 2px 0; }

.map-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.map-actions button.ghost { margin-top: 10px; }
.map-foot { margin: 8px 0 16px; font-size: 0.8rem; color: var(--ink-soft); }

/* Leaflet overlays */
.trk-hit { cursor: pointer; }
.leaflet-tooltip.trk-tip { font-family: var(--sans); font-size: 0.8rem; padding: 4px 8px; }
.trk-shield {
  display: inline-block;
  transform: translate(-50%, -50%);
  font: 700 11px/1 var(--sans);
  padding: 3px 5px;
  border-radius: 3px;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
  pointer-events: none;
}
.trk-shield-i { background: #1f3f8f; color: #fff; border: 1.5px solid #fff; border-top: 4px solid #b3261e; }
.trk-shield-u { background: #fff; color: #111; border: 1.5px solid #111; }
.trk-shield-s { background: #fff; color: #111; border: 1.5px solid #555; border-radius: 9px; }
.trk-pin {
  display: inline-block;
  transform: translate(-50%, calc(-100% - 10px));
  font: 700 11px/1 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  pointer-events: none;
}
.trk-pin-start { background: #2f7d32; }
.trk-pin-end { background: #4a3403; }

/* Route list: highway lines vs. real stops */
ul.ms-legs { list-style: none; padding-left: 0; }
.ms-legs li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 4px 0; }
.ms-legs li.ms-hwy { color: var(--ink-soft); font-size: 0.88rem; padding-left: 14px; border-left: 2px dashed var(--beige-300); margin-left: 6px; }
.ms-shield { font: 700 11px/1 var(--sans); background: #fff; border: 1.5px solid #333; border-radius: 3px; padding: 3px 5px; color: #111; }
.ms-legs li.ms-stop { background: #fff; border: 1px solid var(--beige-300); border-left: 4px solid #1f6fb2; border-radius: var(--radius); padding: 8px 10px; margin: 4px 0; }
.ms-stop-badge { background: #1f6fb2; color: #fff; font: 700 11px/1 var(--sans); text-transform: uppercase; letter-spacing: .05em; padding: 4px 7px; border-radius: 999px; }
.ms-via { color: var(--ink-soft); font-size: 0.82rem; }
.trk-pin-stop { background: #1f6fb2; }

/* ---------------- Admin order view (Trip / Truck / Locations …) ---------------- */
.admin-modal.admin-modal-wide { max-width: 1240px; }
.ov-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
@media (max-width: 1000px) { .ov-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .ov-grid { grid-template-columns: 1fr; } }
.ov-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ov-panel { background: #fff; border: 1px solid var(--beige-200); border-top: 3px solid var(--green-700); border-radius: 4px; }
.ov-panel h3 { margin: 0; padding: 10px 12px; font-size: 1rem; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--beige-200); }
.ov-row { display: grid; grid-template-columns: 42% 58%; align-items: center; min-height: 36px; border-bottom: 1px solid var(--beige-100); }
.ov-row:nth-child(even) { background: #faf9f6; }
.ov-row:last-child { border-bottom: none; }
.ov-label { font-size: 0.8rem; font-weight: 700; color: #3b3a33; padding: 7px 12px; }
.ov-value { padding: 3px 8px 3px 0; min-width: 0; font-size: 0.82rem; color: var(--ink-soft); }
.ov-value input, .ov-value select {
  width: 100%; border: 1px solid transparent; background: transparent; border-radius: 3px;
  padding: 4px 6px; font: inherit; color: var(--ink-soft); margin: 0;
}
.ov-value input:hover, .ov-value select:hover { border-color: var(--beige-300); background: #fff; }
.ov-value input:focus, .ov-value select:focus { outline: none; border-color: var(--green-500); background: #fff; color: var(--ink); }
.ov-static { padding: 7px 12px 7px 6px; word-break: break-word; }
.ov-static a { color: #2c6cb0; }
.ov-sub { font-size: 0.72rem; color: #2c6cb0; padding: 0 6px 3px; }
.ov-stops { margin: 0; padding-left: 18px; }
.ov-stops li { margin: 2px 0; }
.ov-stops li.ov-stop-real { color: #1f6fb2; font-weight: 700; }
.ov-status { font-weight: 700 !important; }
.ov-status-paid { color: #2f7d32 !important; }
.ov-status-draft { color: #8c660c !important; }
.ov-status-completed { color: #1f6fb2 !important; }

/* Homepage hero: interactive route map promo */
.hero-map-promo {
  margin: 0;
  border: 1px solid rgba(240, 180, 41, 0.35);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.18);
}
.hero-map-promo img { display: block; width: 100%; height: auto; }
.hmp-text { padding: 14px 18px 16px; }
.hmp-badge {
  display: inline-block;
  background: var(--accent);
  color: #241a03;
  font: 700 11px/1 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 9px;
  border-radius: 999px;
}
.hmp-text h2 { color: #fff; font-size: 1.15rem; margin: 10px 0 6px; line-height: 1.3; }
.hmp-text p { color: var(--beige-100); font-size: 0.92rem; margin: 0; line-height: 1.55; }
/* The map promo makes the hero text card taller — keep the form and
   install card at the top instead of floating mid-way down. */
.hero .hero-inner { align-items: start; }

/* Desktop: the map promo sits under the form as a wide banner (image
   beside text), and the text card runs down the right side next to it. */
@media (min-width: 881px) {
  .hero-inner .hero-text-col { grid-column: 2; grid-row: 1 / span 2; }
  .hero-inner .hero-map-slot { grid-column: 1; grid-row: 2; }
  .hero-inner.fpo-has-install .hero-text-col { grid-column: 3; grid-row: 1 / span 2; }
  .hero-inner.fpo-has-install .hero-map-slot { grid-column: 1 / 3; grid-row: 2; }
  .hero-inner .hero-form-col { grid-row: 1; }
  .hero-inner.fpo-has-install .fpo-install-slot { grid-row: 1; }
  .hero-inner.fpo-has-install .hero-map-promo { display: grid; grid-template-columns: 58% 42%; align-items: center; }
  .hero-inner.fpo-has-install .hmp-text { padding: 18px 22px; }
}
@media (max-width: 880px) {
  .hero-inner .hero-map-slot { order: 4; }
}

/* ---- Route map polish: muted basemap, town labels, dots ---- */
.truck-map { background: #eef0ea; }
.truck-map .leaflet-tile-pane { filter: grayscale(0.9) brightness(1.06) contrast(0.88) opacity(0.85); }
.truck-map .trk-node { cursor: pointer; transition: none; }
.leaflet-tooltip.trk-label {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  font-family: var(--sans);
  color: #2b2410;
  cursor: pointer;
  pointer-events: auto;
  text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 4px #fff, 0 0 6px #fff;
  white-space: nowrap;
}
.leaflet-tooltip.trk-label::before { display: none; }
.leaflet-tooltip.trk-label-major { font-size: 12px; font-weight: 700; }
.leaflet-tooltip.trk-label-minor { font-size: 10.5px; font-weight: 600; color: #5a5038; display: none; }
.trk-show-minor .leaflet-tooltip.trk-label-minor { display: block; }
.trk-hide-major .leaflet-tooltip.trk-label-major { display: none; }
.leaflet-tooltip.trk-label:hover { color: #8c660c; text-decoration: underline; }
.trk-shield { opacity: 0.95; }


/* ================= Homepage hero layout (approved Sep 28 2026) ================= */
/* Option C: install card as a left column; form + headline equal; map spans under both */
@media (min-width: 881px) {
  .hero .hero-inner { grid-template-columns: 1fr 1fr !important; gap: 24px !important; align-items: stretch !important; max-width: 1080px; }
  .hero .hero-inner.fpo-has-install { grid-template-columns: 250px 1fr 1fr !important; max-width: 1240px; }

  .hero-inner .hero-form-col { grid-column: 1 !important; grid-row: 1 !important; }
  .hero-inner .hero-text-col { grid-column: 2 !important; grid-row: 1 !important; }
  .hero-inner .hero-map-slot { grid-column: 1 / -1 !important; grid-row: 2 !important; }

  .hero-inner.fpo-has-install .fpo-install-slot { grid-column: 1 !important; grid-row: 1 / span 2 !important; }
  .hero-inner.fpo-has-install .hero-form-col { grid-column: 2 !important; }
  .hero-inner.fpo-has-install .hero-text-col { grid-column: 3 !important; }
  .hero-inner.fpo-has-install .hero-map-slot { grid-column: 2 / 4 !important; }

  /* equal heights */
  .hero-form-col, .hero-text-col, .hero-map-slot, .fpo-install-slot { display: flex; flex-direction: column; min-width: 0; }
  .hero-form-col > .card, .hero-text-card, .hero-map-promo, .fpo-install-slot > * { flex: 1; margin: 0 !important; }
  .fpo-install-slot > * { width: 100% !important; max-width: none !important; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; align-items: center; }

  /* headline card sized to match the form */
  .hero-text-card { display: flex; flex-direction: column; justify-content: center; padding: 30px 32px !important; }
  .hero-text-card h1 { font-size: 1.9rem !important; line-height: 1.2; }

  /* map banner: picture left, text right */
  .hero-map-promo { display: grid !important; grid-template-columns: 1.15fr 1fr; align-items: center; }
  .hero-map-promo img { width: 100%; height: 100%; max-height: 300px; object-fit: contain; background: #2d2104; }
  .hmp-text { padding: 22px 28px !important; }
  .hmp-text h2 { font-size: 1.3rem !important; }
}
@media (min-width: 881px) {
  .hero-map-promo img { height: auto !important; max-height: none !important; background: none !important; object-fit: initial !important; padding: 14px; box-sizing: border-box; }
}
/* Install card: compact box at the top of the left column (not full height) */
@media (min-width: 881px) {
  .hero-inner.fpo-has-install .fpo-install-slot { grid-row: 1 !important; align-self: start !important; display: block; }
  .hero-inner.fpo-has-install .fpo-install-slot > * { flex: none !important; }
}
/* Center the install card on the line between the form row and the map row */
@media (min-width: 881px) {
  .hero-inner.fpo-has-install .fpo-install-slot { align-self: end !important; transform: translateY(calc(50% + 12px)); }
}
/* Wide screens: install box floats in the far-left margin and stays there while scrolling */
@media (min-width: 1340px) {
  .hero .hero-inner.fpo-has-install { grid-template-columns: 1fr 1fr !important; max-width: 1080px; }
  .hero-inner.fpo-has-install .hero-form-col { grid-column: 1 !important; }
  .hero-inner.fpo-has-install .hero-text-col { grid-column: 2 !important; }
  .hero-inner.fpo-has-install .hero-map-slot { grid-column: 1 / -1 !important; }
  .hero-inner.fpo-has-install .fpo-install-slot {
    position: fixed; left: 10px; top: 268px; width: 128px; z-index: 60;
    transform: none !important; grid-column: auto !important; grid-row: auto !important;
  }
  .hero-inner.fpo-has-install .fpo-install-slot > * {
    padding: 16px 12px !important; gap: 8px !important; border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  }
  .fpo-install-slot h3 { font-size: 0.86rem !important; line-height: 1.3 !important; margin: 0 !important; }
  .fpo-install-slot p { font-size: 0.72rem !important; line-height: 1.45 !important; margin: 0 !important; }
  .fpo-install-slot button, .fpo-install-slot .fpo-install-btn { font-size: 0.74rem !important; padding: 8px 6px !important; width: 100%; }
  .fpo-install-slot img { width: 36px !important; height: 36px !important; }
  .fpo-install-slot .fpo-install-icon-wrap { width: 36px !important; height: 36px !important; }
}
/* Narrower, spaced-out, rounded cards */
@media (min-width: 881px) {
  .hero .hero-inner, .hero .hero-inner.fpo-has-install { column-gap: 48px !important; row-gap: 36px !important; }
  .hero-form-col > .card { border-radius: 20px !important; border: none !important; box-shadow: 0 18px 40px rgba(20, 12, 0, 0.35) !important; padding: 30px 30px 32px !important; }
  .hero-form-col input { border-radius: 10px !important; }
  .hero-form-col button.primary { border-radius: 12px !important; }
  .hero-text-card { border-radius: 20px !important; box-shadow: 0 18px 40px rgba(20, 12, 0, 0.35); }
  .hero-text-card .btn-outline { border-radius: 12px !important; }
  .hero-map-promo { border-radius: 20px !important; box-shadow: 0 18px 40px rgba(20, 12, 0, 0.3); }
  .hero-map-promo img { border-radius: 26px; }
  .hmp-badge { border-radius: 999px; }
  .fpo-install-slot > * { border-radius: 16px !important; }
}
@media (min-width: 1340px) {
  .hero .hero-inner.fpo-has-install, .hero .hero-inner { max-width: 960px !important; }
}

/* ================= Homepage info sections (added Sep 28 2026) ================= */
.info-section.info-wide { max-width: 960px; }
.info-section .tip { background: var(--beige-50); border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: 8px; font-size: 0.95rem; }

/* Comparison table */
.cmp-wrap { overflow-x: auto; margin: 20px 0 24px; border-radius: 14px; box-shadow: 0 6px 20px rgba(74, 52, 3, 0.08); }
.cmp-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 0.95rem; min-width: 560px; }
.cmp-table th, .cmp-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--beige-200); }
.cmp-table thead th { background: var(--green-900); color: #fff; font-weight: 700; }
.cmp-table thead th:first-child { background: var(--green-900); }
.cmp-table tbody th { width: 22%; color: var(--green-900); font-weight: 700; background: #fcfaf3; }
.cmp-table tbody tr:last-child th, .cmp-table tbody tr:last-child td { border-bottom: none; }

/* Checklist */
.check-list { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 10px; }
.check-list li { position: relative; padding: 12px 14px 12px 44px; background: #fff; border: 1px solid var(--beige-200); border-radius: 12px; line-height: 1.45; }
.check-list li::before { content: "✓"; position: absolute; left: 14px; top: 11px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #241a03; font-weight: 800; font-size: 0.75rem; display: flex; align-items: center; justify-content: center; }

/* Canadian carriers + dispatchers side by side */
.duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 48px !important; }
@media (max-width: 820px) { .duo-grid { grid-template-columns: 1fr; } }
.duo-card { background: #fff; border: 1px solid var(--beige-200); border-radius: 18px; padding: 26px 26px 18px; box-shadow: 0 8px 24px rgba(74, 52, 3, 0.07); }
.duo-card h2 { font-size: 1.3rem; margin-top: 0; padding-bottom: 12px; position: relative; }
.duo-card h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; border-radius: 2px; background: var(--accent); }
.duo-card h3 { font-size: 1.05rem; color: var(--green-900); margin: 18px 0 6px; }
.duo-card ul { padding-left: 20px; }
.duo-card li { margin-bottom: 8px; line-height: 1.5; }

/* FAQ accordion */
.faq-list { display: grid; gap: 10px; margin-top: 16px; }
.faq-item { background: #fff; border: 1px solid var(--beige-200); border-radius: 12px; padding: 0 16px; }
.faq-item summary { cursor: pointer; list-style: none; padding: 14px 28px 14px 0; font-weight: 700; color: var(--green-900); position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 11px; font-size: 1.3rem; color: var(--green-700); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 14px; }
.faq-list .faq-item { margin: 0 !important; }

/* ================= Homepage hero photo backgrounds ================= */
/* Add .hero-bg-mountain or .hero-bg-night to <section class="hero">.
   A dark gradient sits on top of the photo so the cards and text stay readable. */
.hero.hero-bg-mountain,
.hero.hero-bg-night {
  background-color: #241a03;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero.hero-bg-mountain {
  background-image:
    linear-gradient(180deg, rgba(20, 14, 2, 0.55) 0%, rgba(20, 14, 2, 0.35) 45%, rgba(20, 14, 2, 0.7) 100%),
    url("images/hero/hero-mountain-road.jpg");
  background-image:
    linear-gradient(180deg, rgba(20, 14, 2, 0.55) 0%, rgba(20, 14, 2, 0.35) 45%, rgba(20, 14, 2, 0.7) 100%),
    image-set(url("images/hero/hero-mountain-road.webp") type("image/webp"), url("images/hero/hero-mountain-road.jpg") type("image/jpeg"));
  background-position: center 62%;
}
.hero.hero-bg-night {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.25) 50%, rgba(0, 0, 0, 0.6) 100%),
    url("images/hero/hero-night-highway.jpg");
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.25) 50%, rgba(0, 0, 0, 0.6) 100%),
    image-set(url("images/hero/hero-night-highway.webp") type("image/webp"), url("images/hero/hero-night-highway.jpg") type("image/jpeg"));
  background-position: center 40%;
}

/* Mobile: the stacked hero is very tall, so "cover" would blow the photo up and blur it.
   Keep it at a sharp size at the top and fade into the brand dark brown below. */
@media (max-width: 880px) {
  .hero.hero-bg-mountain,
  .hero.hero-bg-night {
    background-size: 100% 100%, auto 1000px;
    background-position: 0 0, center top;
  }
  .hero.hero-bg-mountain {
    background-image:
      linear-gradient(180deg, rgba(20, 14, 2, 0.45) 0px, rgba(20, 14, 2, 0.35) 500px, #241a03 1000px),
      image-set(url("images/hero/hero-mountain-road.webp") type("image/webp"), url("images/hero/hero-mountain-road.jpg") type("image/jpeg"));
  }
  .hero.hero-bg-night {
    background-color: #0b0802;
    background-image:
      linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0px, rgba(0, 0, 0, 0.3) 500px, #0b0802 1000px),
      image-set(url("images/hero/hero-night-highway.webp") type("image/webp"), url("images/hero/hero-night-highway.jpg") type("image/jpeg"));
  }
}

/* ================= Homepage: dark "night highway" theme + wide layout ================= */
body.home-dark {
  --hd-bg: #0f0e0b;
  --hd-band: #17150f;
  --hd-card: #1e1b14;
  --hd-line: rgba(240, 180, 41, 0.16);
  --hd-text: #d8d2c3;
  --hd-muted: #a39c8b;
  --hd-head: #ffffff;
  background: var(--hd-bg);
  color: var(--hd-text);
}
html:has(body.home-dark) { background: #0f0e0b; }
body.home-dark .topbar { background: #0b0a08; border-bottom: 1px solid var(--hd-line); }
body.home-dark footer.site-footer { background: #0b0a08; border-top: 1px solid var(--hd-line); }
body.home-dark a { color: var(--accent); }

/* soft fade from the photo into the page */
body.home-dark .hero { box-shadow: inset 0 -80px 60px -40px var(--hd-bg); }

/* wider content column */
body.home-dark .info-section { max-width: 1180px; padding: 8px 32px 56px; }
body.home-dark .info-section p { color: var(--hd-text); max-width: 75ch; }
body.home-dark .info-section h2 { color: var(--hd-head); }
body.home-dark .info-section li { color: var(--hd-text); }
body.home-dark .info-section strong { color: #fff; }
body.home-dark .info-section + .info-section { border-top-color: var(--hd-line); }
body.home-dark .band-tint { background: var(--hd-band); border-color: var(--hd-line); }

/* "Why carriers" - intro left, cards right on wide screens */
body.home-dark .band > .info-section:has(.feature-grid) { display: grid; grid-template-columns: 0.9fr 1.6fr; column-gap: 48px; align-items: start; }
body.home-dark .band > .info-section:has(.feature-grid) .feature-grid { grid-row: 1 / span 2; grid-column: 2; margin-top: 0; }
body.home-dark .feature-card { background: var(--hd-card); border: 1px solid var(--hd-line); border-top: 3px solid var(--accent); border-radius: 16px; }
body.home-dark .feature-card h3 { color: #fff; }
body.home-dark .feature-card p { color: var(--hd-muted); }

/* Two-column pairs */
body.home-dark .hd-pair { max-width: 1180px; margin: 0 auto; padding: 56px 32px 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
body.home-dark .hd-pair > .info-section { max-width: none; margin: 0; padding: 0; border: none; }
body.home-dark .hd-pair .check-list { grid-template-columns: 1fr; }

/* Callouts become wide horizontal banners */
body.home-dark .callout-box.hd-banner {
  max-width: 1116px; margin: 40px auto 56px; padding: 28px 36px; text-align: left;
  display: grid; grid-template-columns: 1fr auto; column-gap: 32px; align-items: center;
  background: linear-gradient(120deg, #2a2208 0%, #3d2f06 60%, #4a3805 100%);
  border: 1px solid rgba(240, 180, 41, 0.35); border-radius: 18px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}
body.home-dark .hd-banner h3 { grid-column: 1; margin: 0 0 4px; }
body.home-dark .hd-banner p { grid-column: 1; margin: 0; color: #e6dcc0; }
body.home-dark .hd-banner .btn-callout { grid-column: 2; grid-row: 1 / span 2; white-space: nowrap; }

/* Comparison table */
body.home-dark .cmp-wrap { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); border: 1px solid var(--hd-line); }
body.home-dark .cmp-table { background: var(--hd-card); }
body.home-dark .cmp-table th, body.home-dark .cmp-table td { border-bottom-color: var(--hd-line); color: var(--hd-text); }
body.home-dark .cmp-table thead th { background: var(--accent); color: #1a1405; }
body.home-dark .cmp-table tbody th { background: #231f16; color: #fff; }

/* Checklist, tip, steps */
body.home-dark .check-list li { background: var(--hd-card); border-color: var(--hd-line); }
body.home-dark .info-section .tip { background: #221d10; border-left-color: var(--accent); }
body.home-dark .process-list li::before { color: #1a1405; }
body.home-dark .process-list strong { color: #fff; }

/* Canadian + dispatchers cards */
body.home-dark .duo-grid { max-width: 1180px; }
body.home-dark .duo-card { background: var(--hd-card); border-color: var(--hd-line); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
body.home-dark .duo-card h2, body.home-dark .duo-card h3 { color: #fff; }

/* FAQ in two columns */
body.home-dark #faq .faq-list { grid-template-columns: 1fr 1fr; align-items: start; }
body.home-dark .faq-item { background: var(--hd-card); border-color: var(--hd-line); }
body.home-dark .faq-item summary { color: #fff; }
body.home-dark .faq-item summary::after { color: var(--accent); }
body.home-dark .faq-item p { color: var(--hd-muted); }

@media (max-width: 880px) {
  body.home-dark .band > .info-section:has(.feature-grid) { display: block; }
  body.home-dark .band > .info-section:has(.feature-grid) .feature-grid { margin-top: 24px; }
  body.home-dark .hd-pair { grid-template-columns: 1fr; gap: 40px; padding: 40px 24px 8px; }
  body.home-dark .info-section { padding: 8px 24px 48px; }
  body.home-dark #faq .faq-list { grid-template-columns: 1fr; }
  body.home-dark .callout-box.hd-banner { grid-template-columns: 1fr; margin: 32px 16px 40px; padding: 24px; }
  body.home-dark .hd-banner .btn-callout { grid-column: 1; grid-row: auto; margin-top: 16px; justify-self: start; white-space: normal; }
}
body.home-dark .info-section { padding-top: 64px; padding-bottom: 64px; }
body.home-dark .band > .info-section { padding-top: 64px; }
body.home-dark .info-section + .info-section { padding-top: 64px; }
body.home-dark .hd-pair { padding-top: 64px; padding-bottom: 16px; }
body.home-dark .hd-banner .btn-callout { background: var(--accent); color: #1a1405; border: none; border-radius: 12px; font-weight: 700; padding: 14px 24px; }
body.home-dark .hd-banner .btn-callout:hover { background: #ffc94a; color: #1a1405; }
body.home-dark .hd-pair .check-list { gap: 8px; }
body.home-dark .hd-pair .check-list li { padding: 9px 14px 9px 42px; font-size: 0.95rem; }
body.home-dark .hd-pair .check-list li::before { top: 10px; }
@media (max-width: 880px) {
  body.home-dark .info-section, body.home-dark .band > .info-section, body.home-dark .info-section + .info-section { padding-top: 44px; padding-bottom: 44px; }
  body.home-dark .hd-pair { padding-top: 44px; }
}
body.home-dark .hd-pair > .info-section { padding: 0 !important; border: none !important; }

/* ================= Sitewide dark "night highway" theme (all customer pages) ================= */
body.site-dark {
  --hd-bg: #0f0e0b;
  --hd-band: #17150f;
  --hd-card: #1e1b14;
  --hd-line: rgba(240, 180, 41, 0.16);
  --hd-text: #d8d2c3;
  --hd-muted: #a39c8b;
  background: var(--hd-bg);
  color: var(--hd-text);
}
html:has(body.site-dark) { background: #0f0e0b; }
/* header = same color as the page */
body.site-dark .topbar { background: var(--hd-bg); border-bottom: 1px solid var(--hd-line); box-shadow: none; }
body.site-dark footer.site-footer { background: var(--hd-bg); border-top: 1px solid var(--hd-line); }
/* header + footer: a shade darker than the page so they read as separate bands */
body.site-dark .topbar, body.home-dark .topbar { background: #070605; border-bottom: 1px solid rgba(240, 180, 41, 0.14); }
body.site-dark footer.site-footer, body.home-dark footer.site-footer { background: #070605; border-top: 1px solid rgba(240, 180, 41, 0.14); }

/* ---- Night photo on the Extended Weight Permit hero ---- */
.ewp-hero.hero-bg-night {
  background-color: #0b0802;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 40%;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.25) 50%, rgba(0, 0, 0, 0.6) 100%),
    url("images/hero/hero-night-highway.jpg");
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.25) 50%, rgba(0, 0, 0, 0.6) 100%),
    image-set(url("images/hero/hero-night-highway.webp") type("image/webp"), url("images/hero/hero-night-highway.jpg") type("image/jpeg"));
  box-shadow: inset 0 -80px 60px -40px #0f0e0b;
}
@media (max-width: 880px) {
  .ewp-hero.hero-bg-night {
    background-size: 100% 100%, auto 1000px;
    background-position: 0 0, center top;
    background-image:
      linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0px, rgba(0, 0, 0, 0.3) 500px, #0b0802 1000px),
      image-set(url("images/hero/hero-night-highway.webp") type("image/webp"), url("images/hero/hero-night-highway.jpg") type("image/jpeg"));
  }
}

/* ---- Dark theme: shared page elements (home, EWP, FAQ, About, Contact, legal) ---- */
body.site-dark a { color: var(--accent); }
body.site-dark .site-header { background: #070605; border-bottom: 1px solid rgba(240, 180, 41, 0.14); }
body.site-dark h1, body.site-dark h2 { color: #fff; }
body.site-dark .card h1, body.site-dark .card h2, body.site-dark .card h3 { color: var(--green-900); }
body.site-dark .card a { color: var(--green-700); }
body.site-dark .subhead { color: var(--hd-muted); }
body.site-dark .card { border: none; border-radius: 18px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); }

/* Text pages */
body.site-dark .content-page { max-width: 860px; padding-top: 56px; }
body.site-dark .content-page p, body.site-dark .content-page li { color: var(--hd-text); }
body.site-dark .content-page strong { color: #fff; }
body.site-dark .content-page h3 { color: var(--accent); }
body.site-dark .content-page .updated { color: var(--hd-muted); }
body.site-dark .content-page .card p, body.site-dark .content-page .card li { color: var(--ink); }

/* FAQ page: dark cards, two columns on wide screens */
body.site-dark .content-page:has(> .faq-item) { max-width: 1180px; }
body.site-dark .content-page:has(> .faq-item) { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; align-items: start; }
body.site-dark .content-page:has(> .faq-item) > :not(.faq-item) { grid-column: 1 / -1; }
body.site-dark div.faq-item { background: var(--hd-card); border: 1px solid var(--hd-line); border-radius: 16px; padding: 20px 22px; margin: 0 0 20px; }
body.site-dark div.faq-item h3 { color: #fff; margin-top: 0; }
body.site-dark div.faq-item p { color: var(--hd-muted); }

/* Contact cards */
body.site-dark .contact-card { background: var(--hd-card); border: 1px solid var(--hd-line); border-radius: 16px; }
body.site-dark .contact-card h3 { color: #fff; }
body.site-dark .contact-card p { color: var(--hd-text); }

/* Gold banners */
body.site-dark .callout-box {
  background: linear-gradient(120deg, #2a2208 0%, #3d2f06 60%, #4a3805 100%);
  border: 1px solid rgba(240, 180, 41, 0.35); border-radius: 18px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}
body.site-dark .callout-box p { color: #e6dcc0; }
body.site-dark .btn-callout { background: var(--accent); color: #1a1405; border: none; border-radius: 12px; font-weight: 700; }
body.site-dark .btn-callout:hover { background: #ffc94a; color: #1a1405; }

@media (max-width: 880px) {
  body.site-dark .content-page:has(> .faq-item) { display: block; }
}

/* Nav + footer links stay light on the dark header/footer */
body.site-dark .site-nav > a:not(.phone-link) { color: var(--beige-100); }
body.site-dark .site-nav > a:not(.phone-link):hover { color: #fff; }
body.site-dark .lang-toggle a { color: #cfc7b3; }
body.site-dark .lang-toggle a.active { color: var(--green-900); }
body.site-dark footer.site-footer a, body.site-dark .footer-col a { color: #d9d3c4; }
body.site-dark footer.site-footer a:hover, body.site-dark .footer-col a:hover { color: var(--accent); }
body.site-dark .hero-text-card .subhead { color: var(--beige-100); }

/* EWP page: pair the first two sections, set the long section in two columns */
body.site-dark .band > .hd-pair { padding-bottom: 64px; }
body.site-dark .info-section.ewp-cols { max-width: 1180px; padding-top: 64px; }
body.site-dark .info-section.ewp-cols h2 { margin-bottom: 24px; }
@media (min-width: 881px) {
  body.site-dark .info-section.ewp-cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
  body.site-dark .info-section.ewp-cols h2 { grid-column: 1 / -1; }
  body.site-dark .info-section.ewp-cols p { margin-top: 0; }
}

/* ================= EWP page uses the homepage hero layout ================= */
.hero-form-col > .card.card-compact { max-width: none; }
@media (min-width: 881px) {
  .ewp-hero.hero .hero-text-card { margin: 0; }
  .ewp-hero.hero .ewp-text-col .hero-text-card { margin-bottom: 0 !important; }
}

/* ================= FAQ page: single-column accordion ================= */
.faq-page-list { display: grid; gap: 12px; margin-top: 24px; }
.faq-page-list .faq-item { margin: 0 !important; }
.faq-page-list .faq-item summary { font-size: 1.02rem; padding: 18px 36px 18px 0; }
.faq-page-list .faq-item summary::after { top: 15px; }
.faq-page-list .faq-a { padding: 0 0 18px; }
.faq-page-list .faq-a p { margin: 0; }
body.site-dark .faq-page-list .faq-item { background: var(--hd-card); border: 1px solid var(--hd-line); border-radius: 14px; padding: 0 22px; }
body.site-dark .faq-page-list .faq-item[open] { border-color: rgba(240, 180, 41, 0.4); }
body.site-dark .faq-page-list .faq-item summary { color: #fff; }
body.site-dark .faq-page-list .faq-item summary::after { color: var(--accent); }
body.site-dark .faq-page-list .faq-a p { color: var(--hd-text); }

/* ================= Trust strip (under the hero) ================= */
.trust-strip { background: #0b0a08; border-top: 1px solid rgba(240, 180, 41, 0.18); border-bottom: 1px solid rgba(240, 180, 41, 0.18); }
.trust-inner { max-width: 1180px; margin: 0 auto; padding: 26px 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(240, 180, 41, 0.12); border: 1px solid rgba(240, 180, 41, 0.3); }
.trust-ic svg { width: 22px; height: 22px; fill: none; stroke: #f0b429; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust-item strong { display: block; color: #fff; font-size: 0.98rem; line-height: 1.3; margin-bottom: 3px; }
.trust-item span { display: block; color: #a39c8b; font-size: 0.86rem; line-height: 1.45; }
@media (max-width: 1000px) { .trust-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .trust-inner { grid-template-columns: 1fr; gap: 18px; padding: 22px 20px; } }

/* Secure-checkout line under the Pay buttons */
.trust-cards { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 12px 0 0; font-size: 0.78rem; color: var(--ink-soft); text-align: center; line-height: 1.4; }
.trust-cards svg { flex: none; width: 14px; height: 14px; fill: none; stroke: #6b8f3a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trust-cards { display: block; }
.trust-cards svg { display: inline-block; vertical-align: -2px; margin-right: 5px; }
.trust-item .trust-ic { display: flex; }

/* ================= Phone header: compact ☰ menu ================= */
.menu-toggle { display: none; }
@media (max-width: 880px) {
  .site-header.has-menu-toggle .site-header-inner { flex-wrap: wrap; padding: 14px 18px; row-gap: 0; }
  .site-header.has-menu-toggle .brand-text { font-size: 1.3rem; }
  .site-header.has-menu-toggle .brand-logo { width: 30px; height: 30px; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-left: auto; padding: 0;
    background: transparent; border: 1px solid rgba(240, 180, 41, 0.45); border-radius: 10px; cursor: pointer;
  }
  .menu-toggle:focus-visible { outline: 2px solid #f0b429; outline-offset: 2px; }
  .menu-bars { position: relative; width: 20px; height: 14px; display: block; }
  .menu-bars span { position: absolute; left: 0; width: 20px; height: 2px; border-radius: 2px; background: #f0b429; transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease; }
  .menu-bars span:nth-child(1) { top: 0; }
  .menu-bars span:nth-child(2) { top: 6px; }
  .menu-bars span:nth-child(3) { top: 12px; }
  .menu-open .menu-bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
  .menu-open .menu-bars span:nth-child(2) { opacity: 0; }
  .menu-open .menu-bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

  .site-header.has-menu-toggle .site-nav { display: none; }
  .site-header.has-menu-toggle.menu-open .site-nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    width: 100%; flex-basis: 100%; margin-top: 12px; padding-top: 6px;
    border-top: 1px solid rgba(240, 180, 41, 0.18);
  }
  .site-header.has-menu-toggle.menu-open .site-nav > a:not(.phone-link) {
    display: block; padding: 13px 4px; font-size: 1.02rem; border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  .site-header.has-menu-toggle.menu-open .site-nav > a.phone-link { margin: 14px 0 4px; text-align: center; padding: 12px 14px; font-size: 1rem; }
  .site-header.has-menu-toggle.menu-open .lang-toggle { align-self: center; margin: 10px 0 6px; }
}

/* ================= Application pages: same dark header + footer as the rest of the site ================= */
body.app-chrome .topbar {
  background: #070605; border-bottom: 1px solid rgba(240, 180, 41, 0.14);
  padding: 16px 32px; gap: 16px; flex-wrap: wrap;
}
body.app-chrome .topbar .app-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
body.app-chrome .topbar .app-brand .brand-logo { flex-shrink: 0; }
body.app-chrome .topbar .brand-text { font-family: var(--display); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.01em; color: #fff; }
body.app-chrome .topbar .brand-text span { color: var(--beige-200); }
body.app-chrome .steps { color: #8f887a; font-size: 0.74rem; }
body.app-chrome .steps .step.active { background: var(--accent); color: #1a1405; font-weight: 600; }
body.app-chrome .steps .step.done { color: #d8d2c3; }
body.app-chrome footer.site-footer { background: #070605; border-top: 1px solid rgba(240, 180, 41, 0.14); }
body.app-chrome footer.site-footer a, body.app-chrome .footer-col a { color: #d9d3c4; }
body.app-chrome footer.site-footer a:hover, body.app-chrome .footer-col a:hover { color: var(--accent); }
@media (max-width: 880px) {
  body.app-chrome .topbar { padding: 12px 16px; row-gap: 10px; }
  body.app-chrome .topbar .brand-text { font-size: 1.15rem; }
  body.app-chrome .topbar .brand-logo { width: 28px; height: 28px; }
  body.app-chrome .steps { width: 100%; order: 3; justify-content: space-between; overflow-x: auto; font-size: 0.66rem; }
  body.app-chrome .steps .step { white-space: nowrap; padding: 3px 5px; }
}
@media (max-width: 880px) {
  body.app-chrome .steps { gap: 2px; font-size: 0.6rem; letter-spacing: -0.02em; overflow: visible; }
  body.app-chrome .steps .step { padding: 3px 4px; }
}
@media (max-width: 380px) {
  body.app-chrome .steps { font-size: 0.55rem; letter-spacing: -0.04em; }
  body.app-chrome .steps .step { padding: 3px 3px; }
}
#ewp-form #plate-state { font-size: 0.9rem; padding-left: 10px; padding-right: 6px; text-overflow: ellipsis; }
/* trust strip: three badges */
.trust-inner { grid-template-columns: repeat(3, 1fr); max-width: 1080px; }
@media (max-width: 1000px) { .trust-inner { grid-template-columns: 1fr 1fr 1fr; gap: 20px; } }
@media (max-width: 760px) { .trust-inner { grid-template-columns: 1fr; gap: 18px; padding: 22px 20px; } }

/* ================= EWP: headline card sized to match the form ================= */
.ewp-hours { display: flex; gap: 12px; align-items: flex-start; background: rgba(240, 180, 41, 0.1); border: 1px solid rgba(240, 180, 41, 0.35); border-radius: 14px; padding: 14px 16px; margin: 0 0 24px; }
.ewp-hours-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(240, 180, 41, 0.16); }
.ewp-hours-ic svg { width: 20px; height: 20px; fill: none; stroke: #f0b429; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ewp-hours strong { display: block; color: #fff; font-size: 1rem; margin-bottom: 2px; }
.ewp-hours p { margin: 0; color: var(--beige-100); font-size: 0.93rem; line-height: 1.5; }
@media (min-width: 881px) {
  .ewp-hero.hero .hero-text-card { justify-content: space-between; padding: 40px 36px !important; }
  .ewp-hero.hero .hero-text-card h1 { font-size: 2.5rem !important; margin-bottom: 16px; }
  .ewp-hero.hero .hero-text-card .subhead { font-size: 1.12rem; line-height: 1.6; margin-bottom: 26px; }
  .ewp-hero.hero .hero-points { margin-bottom: 26px; }
  .ewp-hero.hero .hero-points li { font-size: 1.06rem; margin-bottom: 16px; line-height: 1.5; }
  .ewp-hero.hero .hero-text-card .btn-outline { text-align: center; font-size: 1.02rem; padding: 14px 18px; }
}

/* ================= Editor blocks (sections added with the site editor) ================= */
.ed-block { max-width: 1180px; margin: 0 auto; padding: 56px 32px; color: var(--hd-text, #d8d2c3); }
.content-page .ed-block { padding-left: 0; padding-right: 0; }
.ed-block h2 { color: #fff; margin: 0 0 14px; padding-bottom: 12px; position: relative; }
.ed-block h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; border-radius: 2px; background: var(--accent); }
.ed-block h3 { color: #fff; margin: 0 0 8px; font-size: 1.1rem; }
.ed-block p, .ed-block li { color: var(--hd-text, #d8d2c3); line-height: 1.65; }
.ed-block p { margin: 0 0 12px; max-width: 75ch; }
.ed-block a:not(.ed-btn) { color: var(--accent); }
.ed-band { max-width: none; background: var(--hd-band, #17150f); border-top: 1px solid rgba(240,180,41,.16); border-bottom: 1px solid rgba(240,180,41,.16); padding-left: max(32px, calc((100% - 1116px) / 2)); padding-right: max(32px, calc((100% - 1116px) / 2)); }
.ed-center { text-align: center; }
.ed-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.ed-media { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.ed-media img, .ed-figure img { width: 100%; height: auto; display: block; border-radius: 18px; box-shadow: 0 14px 36px rgba(0,0,0,.45); }
.ed-figure { margin: 0; }
.ed-figure figcaption { margin-top: 10px; color: var(--hd-muted, #a39c8b); font-size: .9rem; text-align: center; }
.ed-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.ed-card { background: var(--hd-card, #1e1b14); border: 1px solid rgba(240,180,41,.16); border-top: 3px solid var(--accent); border-radius: 16px; padding: 22px; }
.ed-card p { color: var(--hd-muted, #a39c8b); margin: 0; font-size: .95rem; }
.ed-check { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; }
.ed-check li { position: relative; padding: 11px 14px 11px 44px; background: var(--hd-card, #1e1b14); border: 1px solid rgba(240,180,41,.16); border-radius: 12px; }
.ed-check li::before { content: "✓"; position: absolute; left: 14px; top: 11px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #1a1405; font-weight: 800; font-size: .75rem; display: flex; align-items: center; justify-content: center; }
.ed-faq { display: grid; gap: 12px; }
.ed-faq details { background: var(--hd-card, #1e1b14); border: 1px solid rgba(240,180,41,.16); border-radius: 14px; padding: 0 22px; }
.ed-faq summary { cursor: pointer; list-style: none; padding: 18px 30px 18px 0; font-weight: 700; color: #fff; position: relative; }
.ed-faq summary::-webkit-details-marker { display: none; }
.ed-faq summary::after { content: "+"; position: absolute; right: 0; top: 15px; font-size: 1.3rem; color: var(--accent); }
.ed-faq details[open] summary::after { content: "–"; }
.ed-faq details p { margin: 0 0 18px; }
.ed-cta { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 28px 36px; border-radius: 18px; background: linear-gradient(120deg, #2a2208 0%, #3d2f06 60%, #4a3805 100%); border: 1px solid rgba(240,180,41,.35); box-shadow: 0 14px 36px rgba(0,0,0,.45); }
.ed-cta h3 { margin: 0 0 4px; font-size: 1.3rem; }
.ed-cta p { margin: 0; color: #e6dcc0; }
.ed-btn { display: inline-block; background: var(--accent); color: #1a1405 !important; text-decoration: none; font-weight: 700; padding: 13px 24px; border-radius: 12px; white-space: nowrap; }
.ed-btn:hover { background: #ffc94a; }
.ed-media .ed-btn { margin-top: 6px; }
.ed-photo { background-size: cover; background-position: center; background-repeat: no-repeat; padding: 110px 32px; text-align: center; }
.ed-photo-inner { max-width: 760px; margin: 0 auto; }
.ed-photo h2 { color: #fff; font-size: 2.3rem; line-height: 1.2; margin: 0 0 12px; }
.ed-photo p { color: #eee6d2; font-size: 1.1rem; margin: 0 0 22px; }
@media (max-width: 880px) {
  .ed-block { padding: 44px 22px; }
  .ed-cols, .ed-media { grid-template-columns: 1fr; gap: 28px; }
  .ed-cards { grid-template-columns: 1fr; }
  .ed-cta { flex-direction: column; align-items: flex-start; padding: 24px; }
  .ed-photo { padding: 80px 22px; }
  .ed-photo h2 { font-size: 1.7rem; }
}
