@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #0a1628;
  --bg2: #0f2240;
  --card: #14233f;
  --input: #0e1b33;
  --border: rgba(255,255,255,0.09);
  --text: #e5edf8;
  --muted: #8fa3bf;
  --orange: #f97316;
  --orange2: #ea580c;
  --green: #25d366;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Poppins', Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
a { text-decoration: none; color: inherit; }

/* Navbar */
.navbar { position: sticky; top: 0; z-index: 50; background: rgba(10,22,40,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); padding: 14px 32px; display: flex; justify-content: space-between; align-items: center; }
.navbar .logo { font-size: 22px; font-weight: 700; color: var(--orange); }
.navbar a.nav-link { color: var(--text); margin-left: 22px; font-weight: 500; }
.navbar a.nav-link:hover { color: var(--orange); }
.navbar .nav-right { display: flex; align-items: center; }

/* Buttons */
.btn { display: inline-block; background: linear-gradient(135deg, var(--orange), var(--orange2)); color: #fff; padding: 14px 32px; border-radius: 12px; font-size: 16px; font-weight: 600; font-family: inherit; border: none; cursor: pointer; box-shadow: 0 8px 24px rgba(249,115,22,0.35); transition: transform .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-green { background: var(--green); box-shadow: 0 8px 24px rgba(37,211,102,0.3); }
.btn-sm { padding: 10px 22px; font-size: 14px; margin-left: 22px; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--bg2), var(--bg)); text-align: center; padding: 80px 20px 70px; }
.pill { display: inline-block; border: 1px solid var(--border); background: rgba(255,255,255,0.05); color: #fbbf24; padding: 8px 22px; border-radius: 30px; font-size: 14px; margin-bottom: 24px; }
.hero h1 { font-size: 50px; font-weight: 800; line-height: 1.15; margin-bottom: 18px; }
.hero h1 span { color: var(--orange); display: block; }
.hero p { font-size: 18px; max-width: 680px; margin: 0 auto 32px; color: var(--muted); }
.hero p b { color: var(--orange); font-weight: 600; }
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Sections and cards */
.section { max-width: 1100px; margin: 0 auto; padding: 70px 20px; text-align: center; }
.section h2 { font-size: 34px; font-weight: 800; margin-bottom: 8px; }
.section .sub { color: var(--muted); margin-bottom: 36px; }
.cards { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 32px 26px; flex: 1 1 250px; transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); border-color: var(--orange); }
.card .number { width: 52px; height: 52px; background: linear-gradient(135deg, var(--orange), var(--orange2)); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; margin: 0 auto 14px; }
.card h3 { margin-bottom: 8px; color: #fff; }
.card p { color: var(--muted); font-size: 15px; }

/* Footer */
.footer { background: #07111f; border-top: 1px solid var(--border); color: var(--muted); text-align: center; padding: 30px 20px; font-size: 14px; }
.footer b { color: var(--orange); }

/* Form */
.form-wrap { max-width: 820px; margin: 40px auto; padding: 0 20px; }
.form-box { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 34px; }
.form-box h1 { color: #fff; font-weight: 800; margin-bottom: 6px; }
.form-box p { color: var(--muted); }
.form-box h3 { color: var(--orange); margin: 28px 0 12px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.field { flex: 1 1 240px; margin-bottom: 14px; }
.field label { display: block; font-weight: 500; margin-bottom: 5px; font-size: 14px; color: var(--text); }
.field input, .field select, .field textarea { width: 100%; padding: 12px; background: var(--input); color: var(--text); border: 1px solid var(--border); border-radius: 10px; font-size: 15px; font-family: inherit; color-scheme: dark; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249,115,22,0.2); }
select option { background: var(--input); color: var(--text); }
.check { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.check input { width: auto; accent-color: var(--orange); }
.req { color: #f87171; }
.error-box { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.4); color: #fca5a5; padding: 14px 18px; border-radius: 10px; margin: 16px 0; }
.error-box ul { margin-left: 18px; }
.success-box { text-align: center; padding: 50px 20px; }
.success-box .ref { font-size: 28px; font-weight: 800; color: var(--orange); margin: 14px 0; }

@media (max-width: 700px) {
  .navbar { flex-direction: column; gap: 10px; padding: 12px; }
  .navbar a.nav-link { margin: 0 10px; }
  .btn-sm { display: none; }
  .hero h1 { font-size: 32px; }
  .section h2 { font-size: 26px; }
}
/* Language toggle */
.lang-toggle { display: flex; border: 1px solid rgba(255,255,255,0.45); border-radius: 20px; overflow: hidden; margin-inline-start: 18px; }
.lang-toggle a { color: #ffffff; background: transparent; padding: 6px 14px; font-size: 14px; font-weight: 500; min-width: 80px; text-align: center; transition: background .2s; }
.lang-toggle a:hover { background: rgba(249,115,22,0.3); color: #ffffff; font-weight: 700; }
.lang-toggle a.active { background: var(--orange); color: #ffffff; }

/* Right-to-left (Urdu) */
body.rtl { font-family: 'Noto Nastaliq Urdu', 'Poppins', serif; line-height: 2.1; }
body.rtl .hero h1 { line-height: 1.9; font-size: 40px; }
body.rtl .navbar a.nav-link { margin-left: 0; margin-right: 22px; }
body.rtl .field input[type="tel"] { direction: ltr; text-align: right; }
.ltr-text { direction: ltr; unicode-bidi: embed; display: inline-block; }
@media (max-width: 700px) {
  body.rtl .hero h1 { font-size: 28px; }
  .lang-toggle a { min-width: 64px; padding: 5px 10px; }
}
body.rtl .btn-sm { margin-left: 0; margin-right: 22px; }
.lang-toggle a { line-height: 1.7; font-family: 'Poppins', Arial, sans-serif; }
body.rtl .lang-toggle a { font-family: 'Noto Nastaliq Urdu', 'Poppins', serif; line-height: 2; padding-top: 2px; padding-bottom: 2px; }
body.rtl .navbar a.nav-link { margin-right: 0; margin-left: 28px; }
body.rtl .btn-sm { margin-left: 0; margin-right: 8px; }
/* Equal navbar spacing in English and Urdu */
.navbar .nav-right { display: flex; align-items: center; gap: 24px; }
.navbar a.nav-link,
body.rtl .navbar a.nav-link { margin: 0; }
.navbar .btn-sm,
body.rtl .btn-sm { margin: 0; }
.navbar .lang-toggle,
body.rtl .lang-toggle { margin: 0; }

@media (max-width: 700px) {
  .navbar .nav-right { flex-wrap: wrap; justify-content: center; gap: 12px; }
}
.footer a { color: var(--orange); }
.footer a:hover { font-weight: 500; }
.wa-block { margin: 18px 0 8px; }
.wa-block p { color: var(--muted); margin-bottom: 12px; }
/* Tracking page */
.track-badge { display: inline-block; padding: 6px 22px; border-radius: 20px; font-weight: 600; margin: 8px 0; }
.tb-New { background: rgba(59,130,246,.18); color: #93c5fd; }
.tb-Pending { background: rgba(245,158,11,.18); color: #fcd34d; }
.tb-Confirmed { background: rgba(16,185,129,.18); color: #6ee7b7; }
.tb-Completed { background: rgba(148,163,184,.18); color: #cbd5e1; }
.tb-Cancelled { background: rgba(239,68,68,.18); color: #fca5a5; }
.track-steps { display: flex; margin: 26px 0 12px; }
.tstep { flex: 1; text-align: center; position: relative; color: var(--muted); font-size: 14px; }
.tstep .dot { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; background: var(--input); border: 2px solid var(--border); margin: 0 auto 6px; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.tstep.done { color: var(--text); }
.tstep.done .dot { background: var(--orange); border-color: var(--orange); color: #fff; }
.tstep:not(:last-child)::after { content: ""; position: absolute; top: 15px; inset-inline-start: 50%; width: 100%; height: 2px; background: var(--border); }
.tstep.line-done:not(:last-child)::after { background: var(--orange); }
.tinfo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; text-align: start; }
.tinfo span { display: block; font-size: 12px; color: var(--muted); }
.track-msg { margin-top: 16px; color: var(--muted); }
@media (max-width: 500px) { .tinfo { grid-template-columns: 1fr; } }
/* Outline button, action rows, feature points */
.btn-outline { background: transparent; color: var(--orange); border: 2px solid var(--orange); box-shadow: none; padding: 12px 30px; }
.btn-outline:hover { background: var(--orange); color: #fff; }
.actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.features { display: flex; gap: 12px 28px; justify-content: center; flex-wrap: wrap; margin-top: 30px; color: var(--muted); font-size: 15px; }
.features span::before { content: "✓"; color: #22c55e; font-weight: 700; margin-inline-end: 8px; }

/* Photo / video upload */
.upload-box { border: 1.5px dashed var(--border); border-radius: 12px; padding: 16px; background: var(--input); }
.field .upload-box input[type="file"] { border: 0; padding: 0; background: transparent; color: var(--text); }
.upload-hint { color: var(--muted); font-size: 13px; margin-top: 8px; }
.upload-list { margin: 10px 0 0; padding-inline-start: 18px; font-size: 14px; color: var(--text); }
.note-box { background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.4); color: #fcd34d; padding: 10px 14px; border-radius: 10px; margin: 10px 0; font-size: 14px; }
/* Custom file button */
.upload-box { position: relative; }
.field .upload-box input.file-hidden { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; overflow: hidden; }
.field .btn-file { display: inline-block; margin: 0; padding: 10px 24px; font-size: 15px; cursor: pointer; }
.upload-list li.none { list-style: none; margin-inline-start: -18px; color: var(--muted); }
.tb-Dispatched { background: rgba(168,85,247,.18); color: #d8b4fe; }
/* Tracking: history, team message, route */
.hist { list-style: none; margin: 8px 0 0; padding: 0; }
.hist li { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--border); }
.hist .what { color: var(--text); font-weight: 600; }
.hist .when { color: var(--muted); font-size: 13px; }
.hist-title { margin-top: 26px; color: var(--orange); font-size: 16px; }
.team-box { background: rgba(249,115,22,.10); border: 1px solid rgba(249,115,22,.35); border-radius: 12px; padding: 14px 16px; margin-top: 20px; text-align: start; }
.team-box strong { display: block; color: var(--orange); margin-bottom: 4px; }
/* Mobile polish: tracking page, forms, success page */
@media (max-width: 600px) {
  .form-wrap { margin: 24px auto; padding: 0 14px; }
  .form-box { padding: 22px 16px; }
  .form-box h1 { font-size: 26px; line-height: 1.25; }
  .track-badge { padding: 5px 18px; font-size: 14px; }
  .track-msg { font-size: 14px; line-height: 1.6; margin-top: 12px; }
  .track-steps { margin: 22px -4px 10px; }
  .tstep { font-size: 11.5px; line-height: 1.3; padding: 0 3px; min-width: 0; overflow-wrap: anywhere; }
  .tstep .dot { width: 28px; height: 28px; font-size: 13px; margin-bottom: 8px; }
  .tstep:not(:last-child)::after { top: 14px; }
  .tinfo { gap: 16px; margin-top: 20px; }
  .team-box { padding: 12px 14px; }
  .hist li { flex-direction: column; gap: 2px; }
  .success-box { padding: 30px 6px; }
  .success-box .ref { font-size: 22px; }
  .actions .btn { width: 100%; text-align: center; }
  .navbar .nav-right { gap: 14px; }
}
/* Chosen files with a remove button */
.upload-list li.file { list-style: none; margin-inline-start: -18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.upload-list li.file:last-child { border-bottom: 0; }
.upload-list .fname { overflow-wrap: anywhere; min-width: 0; }
.upload-list .rm { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(239,68,68,.55); background: rgba(239,68,68,.12); color: #fca5a5; font-size: 20px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 2px; font-family: Arial, sans-serif; }
.upload-list .rm:hover { background: rgba(239,68,68,.3); color: #fff; }