/* ==========================================================================
   1. GLOBAL VARIABLES
   ========================================================================== */
:root {
  --clr-primary: #0554c6;
  --clr-primary-dark: #0442a0;
  --clr-secondary: #00d2ff;
  --clr-accent: #ff0000;
  --clr-white: #ffffff;
  --clr-dark-bg: #111827;
  --clr-dark-card: #1f2937;
  --clr-text-main: #0442a0;
  --clr-text-muted: #6b7280;
  --clr-text-gray: #94a3b8;
  --clr-bg-light: #f3f4f6;

  --font-main: "Poppins", sans-serif;
  --radius-md: 20px;
  --radius-full: 50px;
  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.05);
  --shadow-floating: 0 30px 60px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: content-box;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--clr-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: #ffffff;
  /* White background by default */
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

ul {
  list-style: none;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.bg-light {
  background-color: var(--clr-bg-light);
}

.hidden {
  display: none;
}

.section-title,
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2,
.section-header h2 {
  font-size: 36px;
  margin-bottom: 15px;
}

/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  /* Reduced from 30px for better zoom compatibility */
  transition: all 0.4s ease;
  background: transparent;
  min-height: 80px;
  /* Ensure minimum height to prevent logo overlap */
}

header.scrolled {
  background: rgba(5, 84, 198, 0.9);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  /* Reduced from 15px */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  min-height: 60px;
  /* Smaller when scrolled */
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1001;
  /* Ensure navbar is above other elements */
}

.logo {
  font-size: 26px;
  font-weight: 800;
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1002;
  /* Logo always on top */
  padding: 8px 0;
  /* Add padding to prevent overlap */
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a.nav-item {
  font-size: 14px;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 5px;
}

.nav-links a.nav-item::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--clr-secondary);
  transition: width 0.3s ease;
}

.nav-links a.nav-item:hover::after,
.nav-links a.nav-item.active::after {
  width: 100%;
}

.nav-links a.nav-item:hover,
.nav-links a.nav-item.active {
  color: white;
}

/* Dropdown styling */
.dropdown {
  position: relative;
  height: 100%;
  /* display: flex; */
  align-items: center;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px) scale(0.98);
  background: white;
  min-width: 280px;
  box-shadow: var(--shadow-floating);
  border-radius: 12px;
  display: none;
  flex-direction: column;
  padding: 10px 0;
  margin-top: 0;
  border: 1px solid #e5e7eb;
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  width: 100%;
  height: 8px;
  background: transparent;
}

.dropdown-menu::after {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: white;
  border-top: 1px solid #e5e7eb;
  border-left: 1px solid #e5e7eb;
}

.dropdown:hover .dropdown-menu {
  display: flex;
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.dropdown.open .dropdown-menu {
  display: flex;
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.dropdown-menu a {
  padding: 12px 22px;
  color: var(--clr-text-main) !important;
  font-size: 14px;
  font-weight: 500;
  transition: 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #f3f4f6;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: var(--clr-bg-light);
  color: var(--clr-primary) !important;
  padding-left: 30px;
  transform: translateX(2px);
}

.dropdown-menu a:last-child {
  border-bottom: 0;
}

.btn-cek-tarif {
  background-color: var(--clr-accent);
  color: white !important;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 12px;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.hamburger {
  display: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
}

/* Mobile Overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 998;
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Close Button */
.mobile-close {
  position: absolute;
  top: 25px;
  right: 25px;
  font-size: 32px;
  cursor: pointer;
  color: var(--clr-text-main);
  line-height: 1;
  transition: 0.3s;
  z-index: 1001;
}

.mobile-close:hover {
  color: var(--clr-accent);
  transform: rotate(90deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  flex-direction: column;
  padding: 80px 40px;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
}

.mobile-menu.active {
  display: flex;
  right: 0;
}

/* Stagger Animation for Links */
.mobile-menu a:not(.mobile-dropdown-body a) {
  padding: 15px 0;
  font-weight: 600;
  border-bottom: 1px solid #eee;
  color: var(--clr-text-main);
  transform: translateX(30px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  display: block;
  /* Ensure full width click */
}

/* Mobile Dropdown / Accordion */
.mobile-dropdown {
  width: 100%;
  border-bottom: 1px solid #eee;
  transform: translateX(30px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.mobile-dropdown-header {
  padding: 15px 0;
  font-weight: 600;
  color: var(--clr-text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.mobile-dropdown-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
}

.mobile-dropdown-body a {
  padding: 12px 15px !important;
  /* Override standard link padding */
  font-size: 14px;
  border-bottom: none !important;
  color: var(--clr-text-muted) !important;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: none !important;
  /* No stagger for submenu items */
  opacity: 1 !important;
}

.mobile-dropdown-body a:hover {
  color: var(--clr-primary) !important;
  background: rgba(5, 84, 198, 0.05);
  border-radius: 6px;
}

.mobile-dropdown.active .mobile-dropdown-body {
  max-height: 200px;
  /* Smooth expansion limit */
}

.mobile-dropdown .arrow {
  transition: transform 0.3s;
  font-size: 14px;
  color: var(--clr-text-gray);
}

.mobile-dropdown.active .arrow {
  transform: rotate(180deg);
  color: var(--clr-primary);
}

.mobile-menu.active a:not(.mobile-dropdown-body a),
.mobile-menu.active .mobile-dropdown {
  transform: translateX(0);
  opacity: 1;
}

/* Delays for Stagger Effect */
.mobile-menu.active>a:nth-of-type(1) {
  transition-delay: 0.1s;
}

.mobile-menu.active>a:nth-of-type(2) {
  transition-delay: 0.15s;
}

.mobile-menu.active>a:nth-of-type(3) {
  transition-delay: 0.2s;
}

.mobile-menu.active .mobile-dropdown {
  transition-delay: 0.25s;
}

/* Tracking is usually 4th */
.mobile-menu.active>a:nth-of-type(4) {
  transition-delay: 0.3s;
}

.mobile-menu.active>a:nth-of-type(5) {
  transition-delay: 0.35s;
}


/* ==========================================================================
   4. HERO & TRACKING - MOVED TO home-optimized.css
   ========================================================================== */
/* Hero section styles have been consolidated in home-optimized.css */
/* Tracking section styles have been moved to home-optimized.css */

/* OLD TRACKING STYLES REMOVED - NOW IN home-optimized.css */
.floating-box {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-floating);
  max-width: 1000px;
  margin: 0 auto;
}

.floating-box .box-header {
  display: flex;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 20px;
}

.floating-box .tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 15px;
  font-weight: 600;
  color: var(--clr-text-muted);
  cursor: pointer;
  transition: 0.3s;
  font-size: 16px;
}

.floating-box .tab-btn.active {
  color: #0554c6 !important;
  border-bottom: 3px solid #0554c6 !important;
}

.floating-box .box-body {
  padding: 10px;
}

.input-group {
  display: flex;
  gap: 15px;
}

.input-group input {
  flex: 1;
  padding: 15px 20px;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-full);
  outline: none;
  font-size: 14px;
}

.btn-action {
  background: var(--clr-primary);
  color: white;
  border: none;
  padding: 0 30px;
  border-radius: var(--radius-full);
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}

.btn-action:hover {
  background: var(--clr-primary-dark);
}

/* ==========================================================================
   5. SERVICES & ABOUT
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  /* Membuat isi kartu memanjang ke bawah */
  height: 100%;
  /* Pastikan semua kartu tingginya sama dalam satu baris */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card {
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  transition: 0.3s;
  border: 1px solid #eee;
}

.card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-sm);
  border-color: var(--clr-primary);
}

.icon-circle {
  width: 85px;
  height: 85px;
  background: #e0f2fe;
  color: var(--clr-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  font-size: 32px;
}

.card h3 {
  text-align: center;
  margin-bottom: 15px;
  font-size: 20px;
}

.card p {
  text-align: center;
  color: var(--clr-text-muted);
}


.service-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  /* Membuat isi kartu memanjang ke bawah */
  height: 100%;
  /* Pastikan semua kartu tingginya sama dalam satu baris */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Wrapper Gambar */
.service-img-wrapper {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  flex-shrink: 0;
  /* Gambar tidak boleh gepeng */
}

.service-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Konten (Judul & Deskripsi) */
.service-content {
  flex-grow: 1;
  /* Bagian ini akan mengambil ruang sisa agar footer terdorong ke bawah */
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 15px;
}

.service-desc {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Bagian Footer & Tombol */
.service-footer {
  padding-top: 15px;
  border-top: 1px solid #f3f4f6;
}

.btn-selengkapnya {
  color: #0554c6;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s ease;
}

.btn-selengkapnya:hover {
  gap: 12px;
  color: #fd1414;
  /* Merah Dino */
}

/* ==========================================================================
   6. DARK WRAPPER (WHY US, STEPS, NETWORK)
   ========================================================================== */
.wrapper-dark {
  background: var(--clr-dark-bg);
  color: white;
  padding: 100px 0;
}

/* Legacy why-us, steps, network styles REMOVED — now in zigzag-sections.css (per-page) */

/* FAQ */
/* Legacy FAQ styles REMOVED — now in zigzag-sections.css (per-page) */

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
footer {
  background: var(--clr-dark-bg);
  color: white;
  padding-top: 80px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
}

.footer-col h4 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.footer-list,
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li,
.footer-contact-list li {
  margin-bottom: 15px;
}

.footer-list a,
.footer-contact-link {
  color: var(--clr-text-gray);
  font-size: 14px;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-list a:hover,
.footer-contact-link:hover {
  color: var(--clr-secondary);
}

.footer-list a:hover {
  padding-left: 5px;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 20px;
}

.footer-brand-logo {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

.footer-brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer-brand-title {
  font-size: 16px;
  font-weight: 800;
  color: white;
  line-height: 1.1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.footer-brand-subtitle {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

.footer-description {
  margin-top: 0;
  color: var(--clr-text-gray);
  font-size: 14px;
  line-height: 1.8;
  max-width: 34ch;
}

.footer-about p {
  color: var(--clr-text-gray);
  margin-top: 20px;
  font-size: 14px;
}

.footer-links h4 {
  font-size: 18px;
  margin-bottom: 25px;
}

.footer-links ul li {
  margin-bottom: 15px;
}

.footer-links ul li a {
  color: var(--clr-text-gray);
  font-size: 14px;
}

.footer-links ul li a:hover {
  color: var(--clr-secondary);
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  transition: 0.3s;
}

.social-icons a:hover {
  background: var(--clr-primary);
  transform: translateY(-5px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-contact-icon {
  color: var(--clr-secondary);
  margin-top: 5px;
  flex-shrink: 0;
}

.footer-contact-text {
  color: var(--clr-text-gray);
  font-size: 14px;
  line-height: 1.6;
}

.footer-contact-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-contact-block {
  display: block;
}

.copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 30px 0;
  font-size: 14px;
  color: var(--clr-text-gray);
}

/* ==========================================================================
   HOMEPAGE SECTIONS - MOVED TO home-optimized.css & zigzag-sections.css
   ========================================================================== */
/* All homepage-specific sections have been moved to dedicated CSS files:
   - home-optimized.css: Hero, About, Tracking sections
   - zigzag-sections.css: Services, Why Us, Steps, Network, FAQ, Promo, Testimonials, Clients, Contact
*/

.grid-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.grid-form-row.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.grid-form-row.grid-three {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
}

.grid-form .form-col label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--clr-text-muted);
  margin-bottom: 6px;
}

.grid-form .form-col input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  outline: none;
  font-size: 14px;
}

.grid-form .form-col .select-light,
.grid-form .form-col .input-light {
  border-radius: 12px;
  background: #f9fafb;
}

.full-width {
  width: 100%;
}

/* Promo Section - MOVED TO zigzag-sections.css */
/* Contact Section - MOVED TO zigzag-sections.css */
/* Old dark theme styles REMOVED — dead code, not used by any template */

.btn-red-block {
  display: block;
  width: 100%;
  background: var(--clr-accent);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
  text-align: center;
}

.btn-red-block:hover {
  background: #cc0000;
  transform: translateY(-2px);
}

/* CEK TARIF PAGE STYLES */
.hero-red-section {
  background: #0554c6;
  /* Darker red */
  padding: 150px 0 120px;
  text-align: left;
  color: white;
  position: relative;
}

.hero-red-content h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 10px;
}

.hero-red-content p {
  opacity: 0.9;
  max-width: 600px;
}

.badge-white {
  background: white;
  color: #b91c1c;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 15px;
}

.search-bar-floating {
  margin-top: -60px;
  background: #111827;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid #374151;
  position: relative;
  z-index: 10;
}

.search-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.5fr 1fr 1fr 0.8fr 0.5fr;
  gap: 15px;
  align-items: end;
}

.result-section {
  background: #0b1120;
  min-height: 60vh;
  padding-top: 60px;
  padding-bottom: 60px;
}

.result-card {
  background: #1f2937;
  border-radius: 12px;
  padding: 25px;
  border: 1px solid #374151;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: 0.3s;
}

.result-card:hover {
  border-color: var(--clr-accent);
}

.route-info h3 {
  color: white;
  font-size: 18px;
  margin-bottom: 5px;
}

.route-info p {
  color: #9ca3af;
  font-size: 14px;
}

.service-badge {
  background: #374151;
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  margin-right: 10px;
  border: 1px solid #4b5563;
}

.service-badge.active {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
}

.price-info {
  text-align: right;
}

.price-main {
  color: #ef4444;
  /* Bright red text */
  font-size: 24px;
  font-weight: 800;
  display: block;
}

.price-detail {
  color: #9ca3af;
  font-size: 12px;
  display: block;
  margin-top: 4px;
}

.btn-whatsapp {
  background: transparent;
  border: 1px solid #ef4444;
  color: #ef4444;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  margin-top: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
  text-decoration: none;
}

.btn-whatsapp:hover {
  background: #ef4444;
  color: white;
}


@media (max-width: 992px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
  }

  .grid-form-row.grid-two,
  .grid-form-row.grid-three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
}

/* ==========================================================================
   LIGHT THEME FORM ELEMENTS (Added per user request)
   ========================================================================== */
.form-group-light {
  margin-bottom: 20px;
}

.form-group-light label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--clr-text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-light,
.select-light,
.textarea-light {
  width: 100%;
  background: white;
  border: 1px solid #e5e7eb;
  color: var(--clr-text-main);
  padding: 12px 16px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: 0.3s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.input-light:focus,
.select-light:focus,
.textarea-light:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(5, 84, 198, 0.1);
}

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

/* Tracking Card Light */
.tracking-form-card.light-mode {
  background: white;
  border: 1px solid #f3f4f6;
  box-shadow: var(--shadow-floating);
  color: var(--clr-text-main);
}

.tracking-form-card.light-mode h2 {
  color: var(--clr-text-main) !important;
}

.tracking-result-row {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.count-pill {
  background: #f3f4f6;
  color: var(--clr-text-main);
  border: 1px solid #e5e7eb;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.input-error {
  border-color: var(--clr-accent) !important;
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.08) !important;
}

/* Tags input (JNE-like) */
.tags-input {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
}

.tags-input:focus-within {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(5, 84, 198, 0.1);
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 16px;
  background: #e0f2fe;
  color: var(--clr-primary);
  font-weight: 600;
  border: 1px solid #cfe8fb;
}

.tag-remove {
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.tags-input-field {
  border: none;
  outline: none;
  background: transparent;
  min-width: 160px;
  padding: 6px 8px;
  font-size: 14px;
  color: var(--clr-text-main);
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  background: #f9fafb;
}

.seg-btn {
  background: transparent;
  border: none;
  padding: 10px 12px;
  font-weight: 600;
  color: var(--clr-text-muted);
  cursor: pointer;
}

.seg-btn.active {
  background: white;
  color: var(--clr-primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.tracking-results {
  margin-top: 20px;
}

.tracking-result-card.light-mode {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Result Card Light */
.result-card.light-mode {
  background: white;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.result-card.light-mode .route-info h3 {
  color: var(--clr-text-main);
}

.result-card.light-mode .service-badge {
  background: #f3f4f6;
  color: var(--clr-text-main);
  border: 1px solid #e5e7eb;
}

.result-card.light-mode .service-badge.active {
  background: var(--clr-accent);
  color: white;
  border-color: var(--clr-accent);
}

/* Search Bar Floating Light */
.search-bar-floating.light-mode {
  background: white;
  border: 1px solid #f3f4f6;
  box-shadow: var(--shadow-floating);
}

/* ==========================================================================
   11. RESPONSIVE FIXES
   ========================================================================== */

/* Wrapper Dark Mobile Optimization */
@media (max-width: 768px) {

  /* 1. Wrapper Padding & Spacing */
  .wrapper-dark {
    padding: 60px 0;
  }

  /* 2. Why Us (Kenapa Memilih Kami) */
  .why-us-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
  }

  .why-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    /* Visual separation card */
    padding: 30px 20px;
    border-radius: 16px;
  }

  .why-item h3 {
    font-size: 20px;
  }

  /* 3. Steps Grid (Cara Kerja) - already handled by existing media query, fine-tuning */
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
  }

  .steps-grid::before {
    display: none;
    /* Hide connecting line */
  }

  .step-item {
    display: flex;
    /* Horizontal alignment for better mobile reading flow */
    align-items: center;
    text-align: left;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 16px;
  }

  .step-icon-box {
    margin: 0;
    /* Remove auto margin */
    width: 60px;
    height: 60px;
    font-size: 20px;
    flex-shrink: 0;
  }

  .step-badge {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  /* 4. Network (Jaringan Nasional) */
  .network-wrapper {
    padding: 30px 20px;
  }

  .city-list {
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns for better readability */
    max-height: 300px;
    overflow-y: auto;
    /* Limit height with scroll */
    padding-right: 5px;
  }

  /* Scrollbar styling for city list */
  .city-list::-webkit-scrollbar {
    width: 4px;
  }

  .city-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
  }

  .city-list::-webkit-scrollbar-thumb {
    background: var(--clr-secondary);
    border-radius: 4px;
  }

  /* 5. FAQ */
  .faq-wrapper {
    width: 100%;
  }

  .faq-header {
    padding: 15px 20px;
  }

  .faq-header h3 {
    font-size: 14px;
  }
}


/* Footer Responsive Fix */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 40px;
  }

  .footer-col {
    width: 100%;
  }

  .footer-brand-link {
    display: flex;
    justify-content: flex-start;
  }

  .footer-description {
    max-width: none;
  }

  .social-icons {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   MOBILE CONVERSION OPTIMIZATION (High Conversion Layout)
   Target: Max-width 768px (Mobile & Tablet Portrait)
   ========================================================================== */
@media (max-width: 768px) {

  /* 0. Prevent Horizontal Scroll */
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  /* Hero Slider Mobile - MOVED TO home-optimized.css */

  /* 2. Hero Compact & Clean (Optimized for Whitespace) */
  .hero-plain {
    min-height: auto;
    padding: 110px 0 120px;
    /* Increased bottom padding for comfortable overlap */
    border-radius: 0 0 30px 30px;
    /* Smaller curve */
    text-align: center;
  }

  .hero-content {
    margin: 0;
    padding: 0 15px;
  }

  .hero-content h1 {
    font-size: 26px !important;
    /* Compact title */
    line-height: 1.25;
    margin-bottom: 12px;
  }

  .hero-content p {
    font-size: 14px !important;
    line-height: 1.6;
    margin-bottom: 0;
    /* Remove margin as buttons are gone */
    opacity: 0.9;
    padding: 0 10px;
  }

  /* 2. Remove Redundant CTA (Focus on Tracking Card) */
  .hero-btn-group {
    display: none !important;
  }

  /* 3. Tracking styles moved to home-optimized.css - NO CONFLICTS */

  /* 4. Compact Form Elements & Touch Optimization */
  .floating-box .box-header {
    margin-bottom: 25px;
    /* More space below tabs */
    border-bottom: 1px solid #f3f4f6;
  }

  .floating-box .tab-btn {
    padding: 15px 5px;
    font-size: 15px;
  }

  .floating-box .input-group {
    flex-direction: column;
    gap: 15px;
    /* More breathing room */
    align-items: center;
  }

  .floating-box .input-group input {
    width: 100%;
    text-align: center;
  }

  .floating-box .input-group .btn-action {
    width: 100%;
    max-width: 100%;
  }

  /* Universal Mobile Input Styling (UX Standard) */
  .floating-box input,
  .input-light,
  .select-light,
  .grid-form input,
  .grid-form select {
    /* padding: 0 20px !important; */
    font-size: 16px !important;
    /* Critical: Prevents iOS auto-zoom */
    height: 54px !important;
    /* Mobile Standard > 52px */
    width: 100%;
    border-radius: 12px !important;
    /* Modern softer look */
  }

  /* Buttons matching input height */
  .floating-box .btn-action,
  .btn-red-block {
    width: 100%;
    margin-top: 0;
    /* Reset */
    height: 54px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px !important;
  }

  /* Helper text compact */
  .helper-text {
    font-size: 12px;
    margin-top: 15px;
    text-align: center;
    color: #9ca3af;
    line-height: 1.5;
  }

  /* 5. Steps Grid Single Column */
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* 6. Section Spacing Fix (Prevent Crash) */
  .section {
    padding: 60px 0;
    /* Standardize mobile section padding */
  }

  /* Ensure About content doesn't ride up too high */
  #about .container {
    padding-top: 20px;
  }
}


/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: white;
  border-radius: 50px;
  padding: 15px 20px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  background-color: #128C7E;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
  font-size: 28px;
  margin: 0;
}

.whatsapp-text {
  font-weight: 600;
  font-size: 14px;
}

/* Pulse Animation */
@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }
}

/* Responsive: Hide text on mobile */
@media (max-width: 768px) {
  .whatsapp-text {
    display: none;
  }

  .whatsapp-float {
    padding: 15px;
    bottom: 20px;
    right: 20px;
  }
}
