  @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

  :root {
      --indigo-primary: #3d286c;
      --indigo-secondary: #4a3381;
      --indigo-accent: #e03570;
      --indigo-light: #f7f4fb;
      --indigo-text: #2d2d2d;
      --indigo-border: #e6e2ec;
      --indigo-primary: #1a237e;
      --indigo-light: #3f51b5;
      --indigo-accent: #5c6bc0;
  }

  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
  }

  body {
      font-family: "Poppins", sans-serif;
      font-weight: 200;
      font-style: normal;
      /* background-color: #f4f6fa; */
      /* Fallback color */
      background-image: url("../images/apps/download.jpeg");
      /* 👈 your image path */
      background-repeat: no-repeat;
      background-size: cover;
      /* makes it cover the entire screen */
      background-position: center;
      background-attachment: fixed;
      /* keeps it fixed while scrolling */
      color: var(--indigo-text);
      line-height: 1.6;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      padding-top: 80px;

  }

  .navbar {
      position: fixed;
      top: 10px;
      /* 20px below top */
      left: 50%;
      /* center horizontally */
      transform: translateX(-50%);
      /* align center */
      width: 92%;
      /* 90% width */
      z-index: 1050;
      padding: 0.8rem 0;
      background-color: rgba(9, 14, 175, 0.147);
      /* Indigo tone with transparency */
      backdrop-filter: blur(10px);
      /* Frosted glass effect */
      border-radius: 30px;
      /* Rounded edges */
      border: 1px solid rgba(255, 255, 255, 0.3);
      /* Light subtle border */
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
      /* Soft shadow */
      transition: all 0.4s ease;
      display: flex;
      align-items: center;
  }

  /* === When Scrolled === */
  .navbar.scrolled {
      background-color: #ffffff;
      border-radius: 0;
      /* Flat when stuck to top */
      top: 0;
      /* Stick to top when scrolling */
      width: 100%;
      /* Full width on scroll */
      left: 0;
      transform: none;
      border: none;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }


  /* === Brand === */
  .navbar-brand {
      font-weight: 700;
      color: #1a237e !important;
      font-size: 1.4rem;
      letter-spacing: 0.5px;
      display: flex;
      align-items: center;
  }

  /* === Links === */
  .navbar-nav .nav-link {
      color: #222123 !important;
      /* White when transparent */
      margin-right: 1rem;
      font-weight: 500;
      font-size: 0.95rem;
      transition: color 0.3s ease, border-bottom 0.3s ease;
      border-bottom: 3px solid transparent;
      padding-bottom: 4px;
  }

  /* Change link color after scroll */
  .navbar.scrolled .nav-link {
      color: #1a237e !important;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
      border-bottom: 2px solid currentColor;
  }

  /* === Book Now Button === */
  .btn-book {
      background-color: #3949ab;
      border: none;
      color: white;
      font-weight: 600;
      border-radius: 30px;
      padding: 8px 18px;
      transition: background 0.3s ease, transform 0.2s ease;
  }

  .btn-book:hover {
      background-color: #5c6bc0;
      transform: translateY(-2px);
  }

  /* Hero Section */
  .hero-section {
      background: linear-gradient(135deg, var(--indigo-primary) 0%, var(--indigo-secondary) 100%);
      color: white;
      padding: 6rem 0 7rem 0;
      position: relative;
      overflow: hidden;
      display: flex;
      align-items: center;
  }

  /* Decorative Wave Overlay */
  .hero-section::before {
      content: '';
      position: absolute;
      top: 0;
      right: 0;
      width: 60%;
      height: 100%;
      background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0,300 Q300,100 600,300 T1200,300 L1200,600 L0,600 Z" fill="rgba(255,255,255,0.08)"/></svg>') no-repeat center;
      background-size: cover;
      opacity: 0.25;
      pointer-events: none;
  }

  /* Content */
  .hero-content {
      position: relative;
      z-index: 1;
      animation: fadeInUp 1s ease-out both;
  }

  @keyframes fadeInUp {
      0% {
          opacity: 0;
          transform: translateY(25px);
      }

      100% {
          opacity: 1;
          transform: translateY(0);
      }
  }

  /* Hero Title */
  .hero-title {
      font-size: 3.2rem;
      font-weight: 700;
      margin-bottom: 1rem;
      line-height: 1.2;
      letter-spacing: 0.5px;
  }

  /* Subtitle */
  .hero-subtitle {
      font-size: 1.2rem;
      font-weight: 400;
      opacity: 0.9;
      margin-bottom: 2.2rem;
      max-width: 550px;
  }

  /* Button */
  .btn-hero {
      background-color: white;
      color: var(--indigo-primary);
      padding: 0.9rem 2.2rem;
      border-radius: 30px;
      font-weight: 600;
      font-size: 1.05rem;
      border: none;
      transition: all 0.3s ease;
      box-shadow: 0 4px 12px rgba(255, 255, 255, 0.25);
  }

  .btn-hero:hover {
      transform: translateY(-3px);
      background-color: #f3f3f3;
      box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
  }

  /* Responsive */
  @media (max-width: 768px) {
      .hero-title {
          font-size: 2.2rem;
      }

      .hero-subtitle {
          font-size: 1rem;
      }

      .hero-section::before {
          width: 100%;
          opacity: 0.15;
      }
  }

  /* Search/Filter Section */
  .search-section {
      background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
      margin-top: -3rem;
      position: relative;
      z-index: 10;
      border-radius: 16px;
      box-shadow: 0 20px 60px rgba(61, 40, 108, 0.12);
      padding: 2.5rem;
      border: 1px solid rgba(61, 40, 108, 0.08);
  }

  .search-tabs {
      margin-bottom: 2rem;
      display: flex;
      gap: 1rem;
  }

  .search-tab {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 1rem 1.75rem;
      color: var(--indigo-text);
      font-weight: 600;
      font-size: 0.95rem;
      cursor: pointer;
      border-radius: 10px;
      background-color: transparent;
      transition: all 0.3s ease;
      border: 2px solid transparent;
  }

  .search-tab:hover {
      background-color: rgba(61, 40, 108, 0.05);
  }

  .search-tab.active {
      background: linear-gradient(135deg, var(--indigo-primary) 0%, #4a2f7a 100%);
      color: white;
      border-color: var(--indigo-primary);
      box-shadow: 0 4px 12px rgba(61, 40, 108, 0.2);
  }

  .search-form {
      background: white;
      padding: 1.5rem;
      border-radius: 12px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }

  .form-group {
      position: relative;
  }

  .form-label {
      font-weight: 600;
      font-size: 0.85rem;
      color: var(--indigo-text);
      margin-bottom: 0.6rem;
      display: flex;
      align-items: center;
      gap: 0.4rem;
      text-transform: uppercase;
      letter-spacing: 0.5px;
  }

  .form-label i {
      font-size: 1rem;
      color: var(--indigo-primary);
  }

  .form-control,
  .form-select {
      border: 2px solid #e5e7eb;
      padding: 0.875rem 1rem;
      border-radius: 10px;
      font-size: 0.95rem;
      transition: all 0.3s ease;
      background-color: #fafbfc;
  }

  .form-control:hover,
  .form-select:hover {
      border-color: var(--indigo-border);
      background-color: white;
  }

  .form-control:focus,
  .form-select:focus {
      border-color: var(--indigo-primary);
      box-shadow: 0 0 0 4px rgba(61, 40, 108, 0.08);
      background-color: white;
      outline: none;
  }

  .form-control::placeholder {
      color: #9ca3af;
      font-size: 0.9rem;
  }

  .btn-search {
      background: linear-gradient(135deg, var(--indigo-accent) 0%, #b52654 100%);
      color: white;
      padding: 0.875rem 2rem;
      border-radius: 10px;
      font-weight: 700;
      font-size: 0.95rem;
      border: none;
      width: 100%;
      transition: all 0.3s ease;
      box-shadow: 0 4px 12px rgba(224, 36, 94, 0.3);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      height: 48px;
  }

  .btn-search:hover {
      background: linear-gradient(135deg, #b52654 0%, var(--indigo-accent) 100%);
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(224, 36, 94, 0.4);
  }

  .btn-search:active {
      transform: translateY(0);
  }

  /* Icon styles */
  .input-icon {
      position: absolute;
      right: 1rem;
      top: 50%;
      transform: translateY(-50%);
      color: var(--indigo-primary);
      pointer-events: none;
  }

  /* Responsive adjustments */
  @media (max-width: 768px) {
      .search-section {
          margin-top: -2rem;
          padding: 1.5rem;
      }

      .search-tabs {
          flex-direction: column;
      }

      .search-form {
          padding: 1rem;
      }

      .btn-search {
          margin-top: 1rem;
      }
  }

  /* Shipment Cards */
  .shipments-container {
      padding: 3rem 0;
  }

  .section-title {
      font-size: 2rem;
      font-weight: 700;
      color: var(--indigo-primary);
      margin-bottom: 2rem;
  }

  .shipment-card {
      background: white;
      border: 2px solid var(--indigo-border);
      border-radius: 12px;
      padding: 1.5rem;
      margin-bottom: 1.5rem;
      transition: all 0.3s;
      position: relative;
  }

  .shipment-card:hover {
      border-color: var(--indigo-primary);
      box-shadow: 0 8px 25px rgba(61, 40, 108, 0.12);
      transform: translateY(-2px);
  }

  .trusted-badge {
      position: absolute;
      top: 1rem;
      right: 1rem;
      background: linear-gradient(135deg, #10b981, #059669);
      color: white;
      padding: 0.4rem 1rem;
      border-radius: 20px;
      font-size: 0.75rem;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 0.3rem;
  }

  .carrier-name {
      font-size: 1.3rem;
      font-weight: 700;
      color: var(--indigo-primary);
      margin-bottom: 0.5rem;
  }

  .rating-display {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 1rem;
  }

  .stars {
      color: #fbbf24;
      font-size: 0.9rem;
  }

  .rating-number {
      font-weight: 600;
      color: var(--indigo-text);
  }

  .route-info {
      display: flex;
      align-items: center;
      gap: 0.8rem;
      margin: 1rem 0;
      font-size: 1.05rem;
  }

  .location {
      font-weight: 600;
      color: var(--indigo-text);
  }

  .route-arrow {
      color: var(--indigo-accent);
  }

  .shipment-details {
      display: flex;
      flex-wrap: wrap;
      gap: 1.5rem;
      margin: 1rem 0;
      font-size: 0.9rem;
  }

  .detail-item {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      color: #6b7280;
  }

  .detail-item i {
      color: var(--indigo-primary);
  }

  .via-badges {
      display: flex;
      gap: 0.5rem;
      flex-wrap: wrap;
      margin: 0.8rem 0;
  }

  .via-badge {
      background-color: var(--indigo-light);
      color: var(--indigo-primary);
      padding: 0.4rem 1rem;
      border-radius: 20px;
      font-size: 0.85rem;
      font-weight: 600;
  }

  .price-section {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 1.5rem;
      padding-top: 1.5rem;
      border-top: 1px solid var(--indigo-border);
  }

  .price {
      font-size: 2rem;
      font-weight: 700;
      color: var(--indigo-primary);
  }

  .price-label {
      font-size: 0.85rem;
      color: #6b7280;
  }

  .btn-book {
      background-color: var(--indigo-accent);
      color: white;
      padding: 0.8rem 2rem;
      border-radius: 25px;
      font-weight: 600;
      border: none;
      transition: all 0.3s;
  }

  .btn-book:hover {
      background-color: #c92e5f;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(224, 53, 112, 0.3);
  }

  /* Modal Styles */
  .modal-content {
      border: none;
      border-radius: 16px;
      overflow: hidden;
  }

  .modal-header {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: white;
      padding: 1.5rem 2rem;
      border: none;
  }

  .modal-title {
      font-weight: 700;
      font-size: 1.5rem;
  }

  .modal-body {
      padding: 2rem;
  }

  .btn-modal-primary {
      background-color: var(--indigo-accent);
      color: white;
      padding: 0.9rem 2rem;
      border-radius: 8px;
      font-weight: 600;
      border: none;
      width: 100%;
      transition: all 0.3s;
  }

  .btn-modal-primary:hover {
      background-color: #c92e5f;
  }

  /* Star Rating */
  .star-rating {
      display: flex;
      justify-content: center;
      gap: 0.5rem;
      font-size: 2.5rem;
      margin: 1.5rem 0;
  }

  .star-rating i {
      color: #e5e7eb;
      cursor: pointer;
      transition: all 0.2s;
  }

  .star-rating i:hover,
  .star-rating i.active {
      color: #fbbf24;
      transform: scale(1.1);
  }

  /* Status Badge */
  .status-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.5rem 1rem;
      border-radius: 20px;
      font-weight: 600;
      font-size: 0.9rem;
  }

  .status-success {
      background-color: #d1fae5;
      color: #065f46;
  }

  /* Empty State */
  .empty-state {
      text-align: center;
      padding: 3rem;
      color: #9ca3af;
  }

  .empty-state i {
      font-size: 4rem;
      margin-bottom: 1rem;
  }

  /* Responsive */
  @media (max-width: 768px) {
      .hero-title {
          font-size: 2rem;
      }

      .search-section {
          margin-top: -2rem;
          padding: 1.5rem;
      }

      .price-section {
          flex-direction: column;
          gap: 1rem;
          align-items: flex-start;
      }

      .btn-book {
          width: 100%;
      }
  }

  /* Footer Styles */
  .footer {
      background: linear-gradient(135deg, #001f3f 0%, #003d82 100%);
      color: white;
      margin-top: 60px;
      padding: 50px 0 0;
  }

  .footer-content {
      max-width: 1400px;
      margin: 0 auto;
      padding: 0 20px;
  }

  .footer-grid {
      display: grid;
      grid-template-columns: 2fr 2fr 2fr 2fr;
      gap: 40px;
      padding-bottom: 40px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer-section h3 {
      font-size: 1.3rem;
      margin-bottom: 20px;
      font-weight: 600;
  }

  .footer-about p {
      line-height: 1.8;
      opacity: 0.9;
      margin-bottom: 20px;
  }

  .footer-links {
      list-style: none;
  }

  .footer-links li {
      margin-bottom: 12px;
  }

  .footer-links a {
      color: rgba(255, 255, 255, 0.8);
      text-decoration: none;
      transition: all 0.3s ease;
      display: inline-block;
  }

  .footer-links a:hover {
      color: white;
      transform: translateX(5px);
  }

  .social-icons {
      display: flex;
      gap: 15px;
      margin-top: 20px;
  }

  .social-icon {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      text-decoration: none;
      font-size: 1.2rem;
      transition: all 0.3s ease;
  }

  .social-icon:hover {
      background: #c92e5f;
      transform: translateY(-3px);
      box-shadow: 0 5px 15px rgba(201, 46, 95, 0.4);
  }

  .newsletter {
      margin-top: 20px;
  }

  .newsletter-form {
      display: flex;
      gap: 10px;
      margin-top: 15px;
  }

  .newsletter-input {
      flex: 1;
      padding: 12px 18px;
      border: 2px solid rgba(255, 255, 255, 0.2);
      background: rgba(255, 255, 255, 0.1);
      border-radius: 8px;
      color: white;
      font-size: 0.95rem;
      outline: none;
      transition: all 0.3s ease;
  }

  .newsletter-input::placeholder {
      color: rgba(255, 255, 255, 0.6);
  }

  .newsletter-input:focus {
      border-color: white;
      background: rgba(255, 255, 255, 0.15);
  }

  .newsletter-btn {
      padding: 12px 25px;
      background: #c92e5f;
      border: none;
      border-radius: 8px;
      color: white;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      white-space: nowrap;
  }

  .newsletter-btn:hover {
      background: #a82550;
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(201, 46, 95, 0.4);
  }

  .footer-bottom {
      padding: 25px 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 20px;
  }

  .footer-bottom-links {
      display: flex;
      gap: 25px;
      list-style: none;
  }

  .footer-bottom-links a {
      color: rgba(255, 255, 255, 0.7);
      text-decoration: none;
      font-size: 0.9rem;
      transition: color 0.3s ease;
  }

  .footer-bottom-links a:hover {
      color: white;
  }

  .copyright {
      color: rgba(255, 255, 255, 0.7);
      font-size: 0.9rem;
  }

  .payment-methods {
      display: flex;
      gap: 10px;
      margin-top: 15px;
      flex-wrap: wrap;
  }

  .payment-icon {
      width: 50px;
      height: 32px;
      background: white;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.7rem;
      font-weight: 600;
      color: #003d82;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  @media (max-width: 1024px) {
      .footer-grid {
          grid-template-columns: 1fr 1fr;
      }
  }

  @media (max-width: 640px) {
      .footer-grid {
          grid-template-columns: 1fr;
          gap: 30px;
      }

      .footer-bottom {
          flex-direction: column;
          text-align: center;
      }

      .footer-bottom-links {
          flex-direction: column;
          gap: 15px;
      }

      .newsletter-form {
          flex-direction: column;
      }
  }

  /* Toastr Success (Green ko Blue ya kisi aur color mein badalne ke liye) */
  #toast-container>.toast-success {
      background-color: #1e3c72 !important;
      /* Aapka Primary Blue Color */
      color: #ffffff !important;
      opacity: 1 !important;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  }

  /* Toastr Error (Red color change karne ke liye) */
  #toast-container>.toast-error {
      background-color: #bd2130 !important;
      color: #ffffff !important;
      opacity: 1 !important;
  }

  /* Toastr Warning */
  #toast-container>.toast-warning {
      background-color: #e67e22 !important;
      color: #ffffff !important;
  }

  /* Toastr Progress Bar ka color badalne ke liye */
  #toast-container>.toast .toast-progress {
      background-color: #ffffff !important;
      opacity: 0.4;
  }
  /* ===== Submit Button Loader (Global) ===== */

button[type="submit"].loading {
    pointer-events: none;
    opacity: 0.8;
}

button[type="submit"] .btn-loader {
    display: none;
    align-items: center;
    gap: 6px;
}

button[type="submit"].loading .btn-text {
    display: none;
}

button[type="submit"].loading .btn-loader {
    display: inline-flex;
}
