/* ═══════════════════════════════════════════════
   TransLanka — Main Stylesheet
   Brand: Orange #F47920 · Navy #1B2B5E
   Font: Poppins (headings) · Nunito (body)
   ═══════════════════════════════════════════════ */

/* ── VARIABLES ─────────────────────────────── */
:root {
  --orange:     #F47920;
  --orange-dk:  #D4621A;
  --orange-lt:  #FF8C42;
  --navy:       #1B2B5E;
  --navy-dk:    #0D1A3A;
  --navy-lt:    #2A3F7A;
  --white:      #FFFFFF;
  --slate:      #F1F5F9;
  --slate-2:    #E2E8F0;
  --muted:      #94A3B8;
  --text:       #1E293B;
  --green:      #10B981;
  --red:        #EF4444;
  --amber:      #FBBF24;

  --font-head:  'Poppins', sans-serif;
  --font-body:  'Nunito', sans-serif;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:  0 12px 40px rgba(27,43,94,.15);
}

/* ── RESET / BASE ──────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  background: #fff;
}
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
}
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-dk); }
img { max-width: 100%; }

/* ── TOPBAR ────────────────────────────────── */
.topbar {
  background: var(--navy-dk);
  color: rgba(255,255,255,.75);
  font-size: 12px;
  padding: 6px 0;
}
.topbar a { color: rgba(255,255,255,.75); }
.topbar-link { color: rgba(255,255,255,.85) !important; transition: color .2s; }
.topbar-link:hover { color: var(--orange-lt) !important; }
.topbar-signup {
  background: var(--orange);
  color: #fff !important;
  padding: 2px 12px;
  border-radius: 99px;
}
.whatsapp-link { color: #4CAF50 !important; display: flex; align-items: center; gap: 4px; }

/* ── NAVBAR ────────────────────────────────── */
.tl-navbar {
  background: var(--white);
  box-shadow: 0 2px 16px rgba(27,43,94,.10);
  padding: 8px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all .3s;
}
.tl-navbar.scrolled { box-shadow: 0 4px 24px rgba(27,43,94,.18); }
.tl-navbar .nav-link {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 14px;
  color: var(--navy) !important;
  padding: 8px 14px !important;
  border-radius: 8px;
  transition: all .2s;
}
.tl-navbar .nav-link:hover,
.tl-navbar .nav-link.active { color: var(--orange) !important; background: rgba(244,121,32,.06); }
.navbar-toggler { border: none; }
.navbar-toggler:focus { box-shadow: none; }

/* ── FLASH BANNER ──────────────────────────── */
.flash-banner {
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
}
.flash-success { background: #D1FAE5; color: #065F46; }
.flash-error   { background: #FEE2E2; color: #991B1B; }
.flash-info    { background: #DBEAFE; color: #1E40AF; }

/* ── BUTTONS ───────────────────────────────── */
.btn-tl-primary {
  background: var(--orange);
  color: #fff !important;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: var(--radius);
  border: none;
  transition: all .25s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-tl-primary:hover { background: var(--orange-dk); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(244,121,32,.35); }
.btn-tl-navy {
  background: var(--navy);
  color: #fff !important;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: var(--radius);
  border: none;
  transition: all .25s;
}
.btn-tl-navy:hover { background: var(--navy-lt); transform: translateY(-1px); }
.btn-tl-outline {
  background: transparent;
  color: var(--orange) !important;
  border: 2px solid var(--orange);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: var(--radius);
  transition: all .25s;
}
.btn-tl-outline:hover { background: var(--orange); color: #fff !important; }
.btn-whatsapp {
  background: #25D366;
  color: #fff !important;
  border: none;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .25s;
}
.btn-whatsapp:hover { background: #1eba57; transform: translateY(-1px); }

/* ── HERO ──────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy-dk) 0%, var(--navy) 55%, #2A4080 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 0 90px;
  color: #fff;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .25;
}
.hero-orb-1 { width: 500px; height: 500px; background: var(--orange); top: -150px; right: -100px; }
.hero-orb-2 { width: 300px; height: 300px; background: #4A90E2; bottom: -100px; left: -50px; }
.hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.2; color: #fff; }
.hero h1 span { color: var(--orange-lt); }
.hero p { font-size: 1.05rem; color: rgba(255,255,255,.82); max-width: 540px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(244,121,32,.18);
  border: 1px solid rgba(244,121,32,.35);
  color: var(--orange-lt);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 16px;
}
.hero-flags { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.flag-icon { width: 32px; height: 22px; border-radius: 3px; object-fit: cover; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-stat-val { font-size: 1.6rem; font-weight: 800; color: var(--orange-lt); font-family: var(--font-head); }
.hero-stat-lbl { font-size: 12px; color: rgba(255,255,255,.6); }

/* ── TRACK BAR ─────────────────────────────── */
.track-bar {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px 24px;
  margin-top: -40px;
  position: relative;
  z-index: 10;
}
.track-bar .form-control {
  border: 1.5px solid var(--slate-2);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 14px;
}
.track-bar .form-control:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(244,121,32,.12); }

/* ── SECTION COMMONS ───────────────────────── */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-dark { background: var(--navy); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-slate { background: var(--slate); }
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 12px; }
.section-sub { color: #64748B; max-width: 540px; }

/* ── CARDS ─────────────────────────────────── */
.tl-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
  height: 100%;
  transition: transform .25s, box-shadow .25s;
}
.tl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tl-card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 24px;
}
.icon-orange { background: rgba(244,121,32,.1); color: var(--orange); }
.icon-navy   { background: rgba(27,43,94,.1);   color: var(--navy); }
.icon-green  { background: rgba(16,185,129,.1);  color: var(--green); }

/* ── STEP PROCESS ──────────────────────────── */
.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-connector { flex: 1; height: 2px; background: var(--slate-2); margin: 0 8px; }

/* ── BADGE / STATUS PILLS ──────────────────── */
.status-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600;
  padding: 3px 10px; border-radius: 99px;
}
.pill-warning  { background: #FFF7ED; color: #C2410C; }
.pill-success  { background: #F0FDF4; color: #166534; }
.pill-info     { background: #EFF6FF; color: #1D4ED8; }
.pill-danger   { background: #FEF2F2; color: #991B1B; }
.pill-secondary{ background: var(--slate); color: var(--muted); }

/* ── FORM ELEMENTS ─────────────────────────── */
.tl-form .form-label { font-weight: 600; font-size: 13px; color: var(--navy); margin-bottom: 5px; }
.tl-form .form-control,
.tl-form .form-select {
  border: 1.5px solid var(--slate-2);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.tl-form .form-control:focus,
.tl-form .form-select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(244,121,32,.12);
  outline: none;
}
.tl-form .form-control.is-invalid { border-color: var(--red); }
.field-note { font-size: 12px; color: var(--muted); margin-top: 3px; }
.length-bar-wrap { margin-top: 5px; }
.length-bar-bg { height: 5px; background: var(--slate-2); border-radius: 4px; overflow: hidden; }
.length-bar-fill { height: 100%; border-radius: 4px; transition: width .3s, background .3s; background: var(--green); }

/* ── TRACKING TIMELINE ─────────────────────── */
.tl-timeline { position: relative; padding: 0; }
.tl-step { display: flex; gap: 16px; padding-bottom: 28px; position: relative; }
.tl-step:last-child { padding-bottom: 0; }
.tl-step-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  border: 2px solid transparent;
}
.step-done    { background: #F0FDF4; border-color: var(--green); }
.step-active  { background: #FFF7ED; border-color: var(--orange); }
.step-pending { background: var(--slate); border-color: var(--slate-2); }
.step-alert   { background: #FEF2F2; border-color: var(--red); }
.tl-step-line {
  position: absolute;
  left: 20px; top: 42px;
  width: 2px; bottom: 0;
  background: var(--slate-2);
}
.tl-step-line.done-line { background: var(--green); }
.tl-step-body { flex: 1; padding-top: 8px; }
.tl-step-title { font-weight: 700; font-size: 14px; color: var(--navy); }
.tl-step-sub   { font-size: 13px; color: var(--muted); }

/* ── USER DASHBOARD ────────────────────────── */
.dash-sidebar {
  background: var(--navy);
  min-height: 100vh;
  padding: 24px 0;
  width: 240px;
}
.dash-sidebar .brand { padding: 0 20px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.dash-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 20px;
  color: rgba(255,255,255,.7);
  font-size: 14px;
  font-weight: 500;
  transition: all .2s;
}
.dash-menu a:hover, .dash-menu a.active {
  color: #fff;
  background: rgba(244,121,32,.2);
  border-right: 3px solid var(--orange);
}
.dash-menu a i { width: 18px; height: 18px; }
.dash-main { flex: 1; background: var(--slate); min-height: 100vh; padding: 28px; }
.dash-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
}
.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.stat-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}

/* ── ADDRESS REVEAL BOX ────────────────────── */
.address-reveal-box {
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
  border: 2px solid var(--green);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.address-mono {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  background: rgba(255,255,255,.7);
  border-radius: 8px;
  padding: 14px;
  line-height: 1.8;
  margin: 12px 0;
}
.ref-badge {
  background: var(--orange);
  color: #fff;
  font-family: 'Courier New', monospace;
  font-size: 16px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 8px;
  letter-spacing: 1px;
  display: inline-block;
}

/* ── FOOTER ────────────────────────────────── */
.tl-footer { background: var(--navy-dk); color: rgba(255,255,255,.75); }
.footer-top { padding: 60px 0 40px; }
.footer-desc { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.7; }
.footer-heading { font-family: var(--font-head); color: #fff; font-weight: 600; font-size: 14px; margin-bottom: 16px; letter-spacing: .5px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.6); font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--orange-lt); }
.footer-contact { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: rgba(255,255,255,.65); }
.footer-contact a { color: rgba(255,255,255,.65); }
.footer-contact a:hover { color: var(--orange-lt); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; font-size: 13px; color: rgba(255,255,255,.45); }
.footer-bottom a { color: rgba(255,255,255,.45); margin-left: 0; }
.footer-bottom a:hover { color: var(--orange-lt); }
.social-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  transition: all .2s;
}
.social-btn:hover { background: var(--orange); color: #fff !important; }
.whatsapp-btn { background: #25D366; }
.whatsapp-btn:hover { background: #1eba57 !important; }

/* ── WHATSAPP FLOAT ────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  z-index: 9999;
  transition: transform .25s, box-shadow .25s;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 8px 24px rgba(37,211,102,.5); }

/* ── UPLOAD DROPZONE ───────────────────────── */
.upload-zone {
  border: 2px dashed var(--slate-2);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--orange); background: rgba(244,121,32,.04); }

/* ── UTILITIES ─────────────────────────────── */
.text-orange { color: var(--orange) !important; }
.text-navy   { color: var(--navy) !important; }
.bg-orange   { background: var(--orange) !important; }
.bg-navy     { background: var(--navy) !important; }
.divider-orange { height: 4px; width: 48px; background: var(--orange); border-radius: 4px; margin-bottom: 16px; }

/* ── RESPONSIVE ────────────────────────────── */
@media (max-width: 768px) {
  .hero { padding: 56px 0 70px; }
  .section { padding: 56px 0; }
  .dash-sidebar { width: 100%; min-height: auto; }
  .track-bar { margin-top: -20px; padding: 16px; }
}
