/* ── Allway Cargo Public Tracker ──────────────────────────────────────────── */

.aw-public-wrap {
  max-width: 680px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #111827;
}

/* ── Search Form ────────────────────────────────────────────────────────────── */
.aw-tracker-form {
  background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
  border-radius: 20px;
  padding: 36px 32px;
  text-align: center;
  margin-bottom: 24px;
  box-shadow: 0 20px 60px rgba(26,26,46,.25);
}
.aw-pub-logo { max-height: 52px; max-width: 160px; object-fit: contain; margin-bottom: 14px; filter: brightness(0) invert(1); display: block; margin-left: auto; margin-right: auto; }
.aw-pub-brand { font-size: 22px; font-weight: 800; color: #FF6B00; margin-bottom: 12px; }
.aw-tracker-title { color: #fff; font-size: 24px; font-weight: 700; margin: 0 0 8px; }
.aw-tracker-sub { color: rgba(255,255,255,.6); font-size: 14px; margin: 0 0 24px; }

.aw-track-input-group { display: flex; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.25); }
.aw-track-input { flex: 1; padding: 15px 18px; border: none; font-size: 16px; font-family: monospace; letter-spacing: .06em; background: #fff; color: #111; outline: none; min-width: 0; }
.aw-track-btn { padding: 15px 24px; background: #FF6B00; color: #fff; border: none; font-size: 15px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 7px; transition: background .2s; white-space: nowrap; flex-shrink: 0; }
.aw-track-btn:hover { background: #e55e00; }

.aw-pub-error { background: rgba(220,38,38,.15); border: 1px solid rgba(220,38,38,.35); color: #fca5a5; border-radius: 10px; padding: 12px 16px; margin-top: 16px; font-size: 13.5px; }

/* ── Result Card ────────────────────────────────────────────────────────────── */
.aw-result-card { background: #fff; border-radius: 18px; box-shadow: 0 4px 30px rgba(0,0,0,.09); overflow: hidden; border: 1px solid #f0f0f0; }

.aw-result-header { background: linear-gradient(135deg,#1A1A2E,#16213E); padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.aw-result-code { font-family: monospace; font-size: 18px; font-weight: 800; color: #FF6B00; letter-spacing: .07em; }
.aw-result-pkg { color: rgba(255,255,255,.65); font-size: 13px; margin-top: 4px; }
.aw-pub-badge { padding: 7px 14px; border-radius: 20px; font-size: 12.5px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }

/* ── Progress ───────────────────────────────────────────────────────────────── */
.aw-progress-wrap { height: 5px; background: #f0f0f0; }
.aw-progress-bar { height: 100%; background: linear-gradient(90deg,#FF6B00,#ffb347); min-width: 4px; transition: width .9s ease; border-radius: 0 3px 3px 0; }
.aw-progress-labels { display: flex; justify-content: space-between; padding: 7px 20px; font-size: 10px; color: #9ca3af; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid #f3f4f6; }

/* ── Blocks ─────────────────────────────────────────────────────────────────── */
.aw-result-block { padding: 20px 24px; border-bottom: 1px solid #f3f4f6; }
.aw-result-block:last-child { border-bottom: none; }

.aw-result-section-title { font-size: 11px; font-weight: 700; color: #FF6B00; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }

.aw-result-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; font-size: 14px; border-bottom: 1px solid #f9fafb; }
.aw-result-row:last-child { border-bottom: none; }
.aw-result-row span { color: #6b7280; white-space: nowrap; flex-shrink: 0; font-size: 13px; }
.aw-result-row strong { color: #111827; text-align: right; font-size: 14px; font-weight: 600; word-break: break-word; }

.aw-tel-link { color: #FF6B00 !important; font-weight: 700; text-decoration: none; }
.aw-tel-link:hover { text-decoration: underline; }

/* ── Timeline ───────────────────────────────────────────────────────────────── */
.aw-pub-timeline { position: relative; padding-left: 28px; }
.aw-pub-timeline::before { content: ''; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: #d1d5db; }
.aw-pub-timeline-item { position: relative; margin-bottom: 24px; opacity: .78; }
.aw-pub-timeline-item.active { opacity: 1; }
.aw-pub-timeline-item:last-child { margin-bottom: 0; }
.aw-pub-dot { position: absolute; left: -23px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: #9ca3af; border: 2px solid #fff; box-shadow: 0 0 0 2px #9ca3af; }
.aw-pub-timeline-item.active .aw-pub-dot { background: #FF6B00; box-shadow: 0 0 0 2px #FF6B00; }
.aw-pub-tl-status { font-weight: 700; font-size: 15px; color: #111827; line-height: 1.3; }
.aw-pub-tl-loc { font-size: 13px; color: #374151; margin-top: 4px; font-weight: 500; }
.aw-pub-tl-desc { font-size: 13px; color: #4b5563; margin-top: 3px; line-height: 1.5; }
.aw-pub-tl-time { font-size: 12px; color: #6b7280; margin-top: 5px; }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .aw-tracker-form { padding: 24px 18px; }
  .aw-track-input-group { flex-direction: column; }
  .aw-track-input { border-radius: 10px 10px 0 0; }
  .aw-track-btn { border-radius: 0 0 10px 10px; justify-content: center; }
  .aw-progress-labels { display: none; }
  .aw-result-block { padding: 16px 18px; }
  .aw-result-header { padding: 18px; }
  .aw-result-code { font-size: 15px; }
}
