/* Delivery & Logistics portal - Easu design system (Inter + purple) */
:root {
  --dl-bg: #F8F8FA; --dl-card: #fff; --dl-ink: #171717; --dl-mut: #6B6B75;
  --dl-faint: #9999A3; --dl-line: #EAEAEF;
  --dl-brand: #C6050C; --dl-brand-d: #8F0409; --dl-brand-l: #FDECEC;
  --dl-price: #4F24D8; --dl-lime: #FDC702;
  --dl-accent: #F59E0B; --dl-danger: #EF4444; --dl-ok: #20B26B;
  --dl-shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06);
}
* { font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.dl-wrap { max-width: 1100px; margin: 0 auto; padding: 22px 16px 72px; }

.dl-hero { background: linear-gradient(135deg, var(--dl-brand), var(--dl-brand-d));
  color: #fff; border-radius: 18px; padding: 30px 28px; margin-bottom: 22px;
  box-shadow: 0 14px 34px rgba(198,5,12,.28); position: relative; overflow: hidden; }
.dl-hero::after { content: ""; position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.08); }
.dl-hero::before { content: ""; position: absolute; right: 60px; bottom: -90px;
  width: 180px; height: 180px; border-radius: 50%; background: rgba(217,255,90,.12); }
.dl-hero h1 { margin: 0 0 8px; font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.dl-hero p { margin: 0; opacity: .92; font-size: 15px; max-width: 620px; line-height: 1.55; }

.dl-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
.dl-card { background: var(--dl-card); border: 1px solid var(--dl-line); border-radius: 16px;
  padding: 22px; box-shadow: var(--dl-shadow); }
.dl-card h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: var(--dl-ink); }
.dl-mut { color: var(--dl-mut); font-size: 13px; }
.dl-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.dl-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.dl-price { font-weight: 700; color: var(--dl-price); font-size: 16px; }

.dl-btn { background: var(--dl-brand); color: #fff; border: 0; border-radius: 12px;
  padding: 11px 20px; font-size: 14px; cursor: pointer; font-weight: 600;
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease; }
.dl-btn:hover { background: var(--dl-brand-d); box-shadow: 0 6px 16px rgba(198,5,12,.28); }
.dl-btn:active { transform: translateY(1px); }
.dl-btn.sec { background: #fff; color: var(--dl-brand-d); border: 1.5px solid var(--dl-brand); }
.dl-btn.sec:hover { background: var(--dl-brand-l); box-shadow: none; }
.dl-btn.warn { background: var(--dl-accent); color: #3b2a05; }
.dl-btn.danger { background: var(--dl-danger); }
.dl-btn:disabled { opacity: .55; cursor: not-allowed; }

.dl-input, .dl-select, .dl-textarea { width: 100%; padding: 11px 13px; border: 1.5px solid var(--dl-line);
  border-radius: 12px; font-size: 14px; background: #fff; box-sizing: border-box;
  font-family: inherit; color: var(--dl-ink); transition: border-color .15s ease, box-shadow .15s ease; }
.dl-input::placeholder, .dl-textarea::placeholder { color: var(--dl-faint); }
.dl-input:focus, .dl-select:focus, .dl-textarea:focus { outline: none;
  border-color: var(--dl-brand); box-shadow: 0 0 0 3px rgba(198,5,12,.12); }
.dl-textarea { resize: vertical; min-height: 46px; }
.dl-label { display: block; font-size: 11px; font-weight: 700; color: var(--dl-faint);
  margin: 14px 0 6px; text-transform: uppercase; letter-spacing: .05em; }

/* responsive form grids */
.fgrid { display: grid; gap: 22px 16px; grid-template-columns: repeat(2, 1fr); }
.fgrid.f4 { grid-template-columns: repeat(4, 1fr); gap: 24px 16px; margin-top: 6px; }
.fgrid .fcell { min-width: 0; }
.fgrid .fcell label { margin-top: 0; }
@media (max-width: 860px) { .fgrid.f4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .fgrid, .fgrid.f4 { grid-template-columns: 1fr; } }

.dl-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dl-table th, .dl-table td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--dl-line); color: var(--dl-mut); }
.dl-table td:first-child { color: var(--dl-ink); font-weight: 500; }
.dl-table th { font-size: 11px; text-transform: uppercase; color: var(--dl-faint); letter-spacing: .05em; font-weight: 700; }
.dl-table tbody tr:hover { background: #FBFAFF; }

.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px;
  font-weight: 700; letter-spacing: .03em; }
.s-req { background: #e2e8f0; color: #334155; } .s-rev { background: #fef3c7; color: #92400e; }
.s-quo { background: #e0e7ff; color: #3730a3; } .s-pen { background: #ffedd5; color: #9a3412; }
.s-acc { background: var(--dl-brand-l); color: var(--dl-brand-d); } .s-pre { background: #fce7f3; color: #9d174d; }
.s-rdy { background: #FDC702; color: #1a1a1a; }
.s-drv { background: #e0e7ff; color: #3730a3; } .s-trn { background: #cffafe; color: #155e75; }
.s-don { background: #dcfce7; color: #166534; } .s-can { background: #fee2e2; color: #991b1b; }

.dl-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.dl-nav a { text-decoration: none; color: var(--dl-mut); background: #fff;
  border: 1px solid var(--dl-line); padding: 9px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; transition: all .15s ease; }
.dl-nav a:hover { color: var(--dl-brand-d); border-color: var(--dl-brand); background: var(--dl-brand-l); }
.dl-nav a.active, .dl-nav a.active:hover { background: var(--dl-brand); color: #fff; border-color: var(--dl-brand); }

.dl-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #171717; color: #fff; padding: 12px 20px; border-radius: 12px; font-size: 14px; font-weight: 500;
  opacity: 0; pointer-events: none; transition: .22s; z-index: 9999; max-width: 88vw;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.dl-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.dl-toast.success { background: var(--dl-ok); } .dl-toast.error { background: var(--dl-danger); }

.dl-kpi { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 16px; }
.dl-kpi .dl-card { text-align: center; } .dl-kpi b { display: block; font-size: 26px; color: var(--dl-price); }
.dl-section-title { font-size: 18px; font-weight: 700; margin: 26px 0 12px; color: var(--dl-ink); letter-spacing: -.01em; }
.dl-empty { text-align: center; padding: 40px 12px; color: var(--dl-mut); }
.dl-steps { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.dl-steps span { font-size: 11px; padding: 5px 10px; border-radius: 999px; background: #f1f5f9; color: #64748b; font-weight: 600; }
.dl-steps span.done { background: var(--dl-brand); color: #fff; }
.dl-steps span.now { background: var(--dl-lime); color: #1a1a1a; font-weight: 700; }

/* checkbox rows */
.dl-check { display: flex; align-items: center; gap: 9px; margin-top: 14px; font-size: 14px;
  color: var(--dl-ink); cursor: pointer; }
.dl-check input { width: 17px; height: 17px; accent-color: var(--dl-brand); cursor: pointer; }

/* quote / estimate result bar */
.dl-quote { background: var(--dl-brand-l); color: var(--dl-brand-d); border-radius: 12px;
  padding: 12px 16px; font-size: 14px; font-weight: 500; }
.dl-quote:empty { display: none; }

@media (max-width: 640px) {
  .dl-hero h1 { font-size: 24px; }
  .dl-hero { padding: 24px 20px; }
  .dl-grid { grid-template-columns: 1fr; }
}
