:root {
  --bg: #F0F2F5;
  --bg-alt: #E4E8EE;
  --bg-dark: #1A2332;
  --fg: #0D1821;
  --fg-muted: #5A6673;
  --accent: #1E4D8C;
  --accent-hover: #163A6E;
  --accent-light: #D9E8F7;
  --accent-warm: #E85D04;
  --border: #C8CED6;
  --success: #1A7A4A;
  --success-light: #E0F4EA;
  --panel-driver: #1A2332;
  --panel-shipper: #163A6E;
  --modal-overlay: rgba(13, 24, 33, 0.65);
  --radius: 6px;
  --shadow: 0 4px 20px rgba(0,0,0,0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ─────────────────────────────────────────────── */
.nav {
  background: var(--bg-dark);
  padding: 0 40px;
  border-bottom: 3px solid var(--accent-warm);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.nav-logo span {
  color: var(--accent-warm);
}
.nav-contact {
  font-size: 13px;
  color: #8899AA;
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid #334455;
  border-radius: var(--radius);
  transition: border-color 0.15s, color 0.15s;
}
.nav-contact:hover {
  border-color: #557799;
  color: #fff;
}

/* ── HERO ────────────────────────────────────────────── */
.hero {
  padding: 72px 40px 64px;
  max-width: 1100px;
  margin: 0 auto;
}
.hero-tagline {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-warm);
  margin-bottom: 16px;
}
.hero-headline {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 8px;
}
.hero-sub {
  font-size: 17px;
  color: var(--fg-muted);
  margin-bottom: 48px;
}

.cta-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.cta-panel {
  border-radius: 10px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}
.cta-panel::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 120px; height: 120px;
  border-radius: 50%;
  opacity: 0.08;
  transform: translate(30%, -30%);
}
.cta-panel.driver {
  background: var(--panel-driver);
  color: #fff;
}
.cta-panel.driver::before { background: #fff; }
.cta-panel.shipper {
  background: var(--panel-shipper);
  color: #fff;
}
.cta-panel.shipper::before { background: #fff; }

.panel-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.6;
  margin-bottom: 10px;
}
.panel-headline {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  line-height: 1.2;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.btn-panel:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-1px);
}
.btn-panel .arrow {
  font-size: 16px;
  opacity: 0.7;
  transition: transform 0.15s;
}
.btn-panel:hover .arrow {
  transform: translateX(3px);
}
.btn-panel.placeholder {
  opacity: 0.5;
  cursor: default;
}
.btn-panel.placeholder:hover {
  transform: none;
  background: rgba(255,255,255,0.12);
}

.panel-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin: 8px 0;
}

/* ── MODAL SYSTEM ─────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--modal-overlay);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(2px);
}
.modal-overlay.open {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: 10px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.2);
  position: relative;
}
.modal-header {
  padding: 28px 32px 24px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--fg-muted);
  cursor: pointer;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  line-height: 1;
}
.modal-close:hover {
  background: var(--bg-alt);
  color: var(--fg);
}
.modal-type-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}
.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
  padding-right: 40px;
}
.modal-body {
  padding: 28px 32px;
}

.form-group {
  margin-bottom: 18px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 6px;
}
.form-label .optional {
  font-weight: 400;
  color: var(--fg-muted);
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--fg);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30,77,140,0.12);
}
.form-textarea {
  resize: vertical;
  min-height: 90px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-hint {
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 5px;
}
.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  margin-top: 6px;
}
.form-submit:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.form-submit:active {
  transform: translateY(0);
}
.form-submit:disabled {
  background: #AABBCC;
  cursor: not-allowed;
  transform: none;
}
.form-success {
  text-align: center;
  padding: 20px 0;
}
.form-success-icon {
  width: 48px; height: 48px;
  background: var(--success-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 22px;
}
.form-success-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
}
.form-success-body {
  font-size: 14px;
  color: var(--fg-muted);
}

/* ── STATUS PLACEHOLDER ──────────────────────────────── */
.status-placeholder {
  text-align: center;
  padding: 48px 32px;
}
.status-icon {
  font-size: 40px;
  margin-bottom: 16px;
  opacity: 0.4;
}
.status-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
}
.status-body {
  font-size: 14px;
  color: var(--fg-muted);
}

/* ── FOOTER ───────────────────────────────────────────── */
.footer {
  padding: 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  margin-top: 60px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
}
.footer-logo span { color: var(--accent-warm); }
.footer-copy {
  font-size: 13px;
  color: var(--fg-muted);
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .hero { padding: 40px 20px 48px; }
  .hero-headline { font-size: 30px; }
  .hero-sub { font-size: 15px; }
  .cta-panels { grid-template-columns: 1fr; }
  .modal { max-width: 100%; }
  .modal-header { padding: 20px 20px 16px; }
  .modal-body { padding: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .footer { padding: 32px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}