@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

:root {
  --dhl-red: #d40511;
  --dhl-red-dark: #b2040e;
  --dhl-red-light: #e53935;
  --dhl-red-light-dark: #c62828;
  --dark: #1a1a1a;
  --grey: #666;
  --grey-light: #999;
  --light-bg: #f4f4f4;
  --border: #e5e5e5;
  --success: #16a34a;
  --radius: 12px;
  --radius-lg: 18px;
  --font: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--dark);
  background: #ffffff;
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Top red bar ---------- */
.topbar {
  background: var(--dhl-red);
  color: #ffffff;
  font-size: 0.8rem;
  padding: 6px 0;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar a {
  color: #ffffff;
  text-decoration: underline;
}

/* ---------- Navigation ---------- */
.navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-mark {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--dark);
}

.logo-mark .accent {
  color: var(--dhl-red);
}

.logo-sub {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--dark);
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--dhl-red);
  border-bottom-color: var(--dhl-red);
}

.nav-links .btn {
  color: #ffffff;
  border-bottom: none;
  padding-bottom: 0;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--dark);
}

/* ---------- Hero with banner image ---------- */
.hero {
  position: relative;
  background: linear-gradient(120deg, #111827 0%, #1f2937 55%, #374151 100%);
  color: #ffffff;
  padding: 90px 0 70px;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 14px;
  font-weight: 700;
}

.hero p {
  color: #e8e8e8;
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 24px;
}

/* ---------- Tracking form (DHL-style card) ---------- */
.track-form-wrap {
  max-width: 640px;
  margin-top: 30px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
}

.track-form-wrap h2 {
  font-size: 1.25rem;
  color: var(--dark);
  margin-bottom: 4px;
  border-bottom: 3px solid var(--dhl-red-light);
  display: inline-block;
  padding-bottom: 6px;
}

.track-form-wrap .hint {
  color: var(--grey);
  font-size: 0.85rem;
  margin: 10px 0 14px;
}

.track-form {
  display: flex;
  gap: 8px;
}

.track-form input {
  flex: 1;
  padding: 13px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  outline: none;
  font-family: var(--font);
}

.track-form input:focus {
  border-color: var(--dhl-red);
}

.demo-codes {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--grey);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.demo-codes button {
  background: #f0f0f0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 12px;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: var(--font);
}

.demo-codes button:hover {
  border-color: var(--dhl-red);
  color: var(--dhl-red);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--dhl-red-light);
  color: #ffffff;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: var(--font);
  transition: background 0.2s;
  text-align: center;
}

.btn:hover {
  background: var(--dhl-red-light-dark);
}

.btn-red {
  background: var(--dhl-red);
  color: #ffffff;
}

.btn-red:hover {
  background: var(--dhl-red-dark);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.85rem;
}

/* ---------- Sections ---------- */
.section {
  padding: 70px 0;
}

.section.alt {
  background: var(--light-bg);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

.section-head h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.section-head .underline {
  width: 56px;
  height: 4px;
  background: var(--dhl-red-light);
  margin: 0 auto 16px;
}

.section-head p {
  color: var(--grey);
}

/* ---------- Cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 26px;
}

.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--dhl-red-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.card .icon {
  font-size: 1.9rem;
  margin-bottom: 14px;
  color: var(--dhl-red);
}

.card .icon svg {
  width: 44px;
  height: 44px;
  display: block;
}

.card-image {
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border-top: none;
}

.card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card-image:hover img {
  transform: scale(1.05);
}

.card-image h3 {
  padding: 18px 22px 6px;
  color: var(--dark);
}

.card-image p {
  padding: 0 22px;
}

.card-link {
  display: inline-block;
  margin: 14px 22px 22px;
  font-weight: 600;
  color: var(--dhl-red);
}

.card-link:hover {
  color: var(--dhl-red-dark);
}

.card h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
  color: var(--dhl-red);
}

.card p {
  color: var(--grey);
  font-size: 0.92rem;
}

/* ---------- Two-column feature blocks (DHL-style) ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 70px;
}

.feature:last-child {
  margin-bottom: 0;
}

.feature.flip .feature-img {
  order: 2;
}

.feature-img {
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.feature-content h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.feature-content .sub {
  color: var(--grey);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.feature-content p {
  color: var(--grey);
  margin-bottom: 14px;
}

.feature-content ul {
  margin: 0 0 20px 18px;
  color: var(--grey);
}

.feature-content li {
  margin-bottom: 6px;
}

/* ---------- Carriers ---------- */
.carrier-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.carrier {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  font-weight: 600;
  color: var(--dark);
  border-bottom: 3px solid var(--dhl-red-light);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.carrier:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-bottom-color: var(--dhl-red);
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.faq-item details {
  cursor: pointer;
}

.faq-item summary {
  font-weight: 600;
  font-size: 1rem;
}

.faq-item summary::before {
  content: "▾ ";
  color: var(--dhl-red);
}

.faq-item p {
  color: var(--grey);
  margin-top: 10px;
  font-size: 0.95rem;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info li {
  list-style: none;
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--grey);
}

.contact-info li strong {
  color: var(--dark);
  min-width: 90px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font);
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--dhl-red);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* ---------- Footer ---------- */
footer {
  background: var(--dark);
  color: #c8c8c8;
  padding: 50px 0 24px;
  font-size: 0.88rem;
}

footer .footer-mark {
  color: #ffffff;
  display: inline-block;
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

footer .footer-mark .accent {
  color: var(--dhl-red-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

footer h4 {
  color: #ffffff;
  margin-bottom: 12px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: 8px;
}

footer a:hover {
  color: var(--dhl-red-light);
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: #9c9c9c;
}

/* ---------- Track page ---------- */
.track-hero {
  position: relative;
  background: linear-gradient(120deg, #111827 0%, #1f2937 55%, #374151 100%);
  color: #ffffff;
  padding: 70px 0;
}

.track-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 8px;
}

.track-hero p {
  color: #e0e0e0;
  margin-bottom: 26px;
}

.track-hero .track-form-wrap {
  margin-top: 0;
}

.result-wrap {
  max-width: 820px;
  margin: 50px auto 70px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.result-loading,
.result-error,
.result-empty {
  text-align: center;
  color: var(--grey);
  padding: 30px 0;
}

.result-error {
  color: var(--dhl-red);
  font-weight: 600;
}

.result-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.summary-item .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--grey);
  margin-bottom: 4px;
}

.summary-item .value {
  font-weight: 700;
}

.summary-item .status-pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
}

.status-in_transit { background: #ffe4e4; color: #c62828; }
.status-ongoing { background: #dbeafe; color: #1d4ed8; }
.status-delivered { background: #dcfce7; color: #166534; }
.status-warehouse { background: #e2e8f0; color: #334155; }
.status-exception { background: #fee2e2; color: var(--dhl-red-dark); }

.timeline {
  list-style: none;
}

.timeline li {
  position: relative;
  padding: 0 0 26px 40px;
  border-left: 3px solid var(--border);
  margin-left: 10px;
}

.timeline li:last-child {
  border-left-color: transparent;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--grey-light);
}

.timeline li.done::before {
  background: var(--success);
  border-color: var(--success);
}

.timeline li.current::before {
  background: var(--dhl-red);
  border-color: var(--dhl-red);
  box-shadow: 0 0 0 4px rgba(212, 5, 17, 0.15);
}

.timeline .checkpoint-time {
  font-size: 0.8rem;
  color: var(--grey);
  margin-bottom: 2px;
}

.timeline .checkpoint-title {
  font-weight: 700;
}

.timeline .checkpoint-loc {
  font-size: 0.85rem;
  color: var(--grey);
}

.notice {
  margin-top: 20px;
  background: #ffefee;
  border: 1px solid #f5c6c4;
  color: #b91c1c;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 14px;
    padding: 16px 0;
  }

  .nav-links.show {
    display: flex;
  }

  .navbar .container {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  /* Payment page has no hamburger toggle — keep its short nav visible */
  .payment-page .nav-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-end;
    padding: 0;
  }

  .track-form {
    flex-direction: column;
  }

  .feature {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feature.flip .feature-img {
    order: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 60px 0 50px;
  }

  .result-wrap {
    padding: 22px;
  }

  .pay-card {
    padding: 20px;
  }
}

/* ---------- Payment page ---------- */
.pay-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #1e293b 100%);
  color: #ffffff;
  padding: 46px 0;
}

.pay-hero .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.pay-hero h1 {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.pay-hero p {
  color: #cbd5e1;
}

.pay-hero .back-link {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 9px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
}

.pay-hero .back-link:hover {
  background: rgba(255, 255, 255, 0.22);
}

.pay-wrap {
  max-width: 980px;
  margin: 40px auto 70px;
}

.pay-alert {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #ffefee;
  border: 1px solid #f5c6c4;
  border-left: 4px solid var(--dhl-red);
  color: #b91c1c;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

.pay-alert .pay-alert-icon {
  font-size: 1.5rem;
  line-height: 1.2;
}

.pay-alert h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: #b91c1c;
}

.pay-alert p {
  font-size: 0.9rem;
}

.pay-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start;
}

.pay-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.pay-card h2 {
  font-size: 1.2rem;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.invoice-summary {
  margin-bottom: 6px;
}

.invoice-summary .inv-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}

.invoice-summary .inv-row .label {
  color: var(--grey);
}

.invoice-summary .inv-row .value {
  font-weight: 600;
}

.invoice-items {
  margin-top: 16px;
  border-collapse: collapse;
  width: 100%;
  font-size: 0.88rem;
}

.invoice-items th,
.invoice-items td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
}

.invoice-items th {
  color: var(--grey);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.invoice-items td.num {
  text-align: right;
}

.invoice-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--dark);
  color: #ffffff;
  border-radius: var(--radius);
}

.invoice-total .total-label {
  font-weight: 600;
}

.invoice-total .total-amount {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dhl-red-light);
}

.billing-list {
  font-size: 0.9rem;
}

.billing-list .bill-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--border);
}

.billing-list .bill-row .label {
  color: var(--grey);
  min-width: 90px;
}

.billing-list .bill-row .value {
  font-weight: 600;
  text-align: right;
}

.pay-sticky {
  position: sticky;
  top: 84px;
}

.pay-amount-show {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dhl-red);
  margin-bottom: 18px;
}

.pay-cta {
  width: 100%;
  padding: 15px;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.pay-note {
  font-size: 0.78rem;
  color: var(--grey);
  text-align: center;
  margin-top: 6px;
}

@media (max-width: 860px) {
  .pay-grid {
    grid-template-columns: 1fr;
  }

  .pay-sticky {
    position: static;
  }
}

/* ---------- Small phones ---------- */
@media (max-width: 560px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 44px 0;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .section-head h2 {
    font-size: 1.45rem;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .track-form-wrap {
    padding: 20px 16px;
  }

  .track-form input {
    font-size: 0.92rem;
  }

  .result-wrap {
    padding: 20px 16px;
    margin: 36px auto 50px;
  }

  .summary-item .value {
    overflow-wrap: anywhere;
  }

  .pay-card {
    padding: 18px 16px;
  }

  .pay-hero {
    padding: 34px 0;
  }

  .pay-hero h1 {
    font-size: 1.3rem;
  }

  .invoice-items th,
  .invoice-items td {
    padding: 7px 6px;
    font-size: 0.82rem;
  }

  .invoice-items td {
    overflow-wrap: anywhere;
  }

  .invoice-total .total-amount {
    font-size: 1.2rem;
  }

  .billing-list .bill-row .value,
  .invoice-summary .inv-row .value {
    overflow-wrap: anywhere;
    text-align: right;
  }

  .feature-img img {
    height: 220px;
  }

  .card-image img {
    height: 180px;
  }

  .shipment-item {
    align-items: flex-start;
  }

  .shipment-item .tracking {
    word-break: break-all;
  }

  .notice {
    padding: 12px 14px;
    font-size: 0.85rem;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}
