html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin-bottom: 60px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  padding-top: 80px; /* Space for fixed navbar */
}

/* Navbar Styling - Modern and Attractive */
.navbar-custom {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  padding: 0.75rem 0;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 70px; /* Fixed minimum height to prevent shaking */
  transition: none; /* Disable transitions that might cause shaking */
}

.navbar-custom .container {
  max-width: 1200px;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.brand-icon i {
  font-size: 1.2rem;
  color: #fff;
}

.navbar-brand:hover .brand-icon {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(360deg);
}

.brand-text {
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.navbar-nav {
  gap: 0.5rem;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
  transition: all 0.3s;
  position: relative;
}

.navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #fff;
  transition: all 0.3s;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link:hover::before {
  width: 80%;
}

.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.25rem 0.5rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Wrapper to maintain consistent navbar width */
.navbar-actions-wrapper {
  margin-left: auto;
  min-width: 200px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
}

.navbar-actions {
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: none !important; /* Disable transitions to prevent shaking */
  will-change: auto;
}

/* Ensure both auth buttons and user menu have same dimensions and prevent layout shifts */
#authButtons,
#userMenu {
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: none !important; /* Disable transitions to prevent shaking */
  will-change: auto; /* Prevent browser optimizations that might cause shaking */
}

/* Use visibility and opacity instead of display to prevent layout shifts */
#authButtons.d-none {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#userMenu.d-none {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* When visible, ensure proper display */
#authButtons:not(.d-none) {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#userMenu:not(.d-none) {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.btn-nav-login,
.btn-nav-signup,
.btn-nav-user {
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 25px;
  transition: all 0.3s;
  border: none;
  white-space: nowrap;
}

.btn-nav-login {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-nav-login:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-nav-signup {
  background: #fff;
  color: #2a5298;
}

.btn-nav-signup:hover {
  background: #f0f0f0;
  color: #1e3c72;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-nav-user {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  min-width: 120px;
  height: 40px; /* Match height of login/signup buttons */
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-nav-user:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.user-initials {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.user-avatar {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropdown-menu {
  border-radius: 10px;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  margin-top: 0.5rem;
  min-width: 220px;
  padding: 0.5rem 0;
}

.dropdown-item {
  padding: 0.75rem 1.25rem;
  transition: all 0.2s;
  cursor: pointer;
}

.dropdown-item:hover {
  background: #f8f9fa;
  padding-left: 1.5rem;
}

.dropdown-item.text-danger:hover {
  background: #fee;
  color: #dc3545 !important;
}

.dropdown-item i {
  width: 20px;
  text-align: center;
}

.dropdown-item i {
  width: 20px;
  text-align: center;
}

/* Responsive Navbar */
@media (max-width: 991px) {
  .navbar-nav {
    margin-top: 1rem;
    padding: 1rem 0;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    border-radius: 8px;
    margin: 0.25rem 0;
  }
  
  .navbar-actions {
    margin-top: 1rem;
    margin-left: 0;
    width: 100%;
    flex-direction: column;
  }
  
  .btn-nav-login,
  .btn-nav-signup {
    width: 100%;
    margin: 0.25rem 0;
  }
  
  .brand-text {
    font-size: 0.95rem;
  }
  
  body {
    padding-top: 70px;
  }
}

@media (max-width: 576px) {
  .navbar-brand {
    font-size: 0.95rem;
  }
  
  .brand-icon {
    width: 35px;
    height: 35px;
  }
  
  .brand-icon i {
    font-size: 1rem;
  }
  
  body {
    padding-top: 65px;
  }
}

/* Hero Section - Enterprise Grade */
.hero-section {
  padding: 0;
  margin-top: -80px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 60, 114, 0.95) 0%, rgba(42, 82, 152, 0.95) 100%);
  z-index: 0;
}

.hero-section .container {
  padding-top: 120px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
}

.badge-custom {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  opacity: 0.95;
}

.hero-features {
  font-size: 1.1rem;
}

.hero-features i {
  font-size: 1.2rem;
}

.btn-hero-primary {
  background: #fff;
  color: #1e3c72;
  padding: 1rem 2rem;
  font-weight: 700;
  border-radius: 50px;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: #f8f9fa;
}

.btn-hero-secondary {
  background: transparent;
  color: #fff;
  padding: 1rem 2rem;
  font-weight: 700;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
  transform: translateY(-3px);
}

.hero-section .card {
  border-radius: 15px;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.shadow-xl {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
}

.hero-section .form-control,
.hero-section .form-select {
  border-radius: 8px;
  border: 2px solid #e9ecef;
  padding: 0.875rem;
  transition: all 0.3s;
}

.hero-section .form-control:focus,
.hero-section .form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.hero-section .btn-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border: none;
  font-weight: 700;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
  transition: all 0.3s;
}

.hero-section .btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
  background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
}

.trust-indicators {
  padding: 1rem;
  background: rgba(248, 249, 250, 0.8);
  border-radius: 8px;
}

/* Location Dropdown Styles */
.location-dropdown-wrapper {
  position: relative;
}

.location-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: none;
  margin-top: 5px;
  max-height: 400px;
  overflow: hidden;
}

.location-search {
  border: none;
  border-bottom: 1px solid #e9ecef;
  border-radius: 8px 8px 0 0;
  padding: 0.75rem;
  font-size: 0.95rem;
}

.location-search:focus {
  outline: none;
  border-bottom-color: #0d6efd;
}

.location-results {
  max-height: 320px;
  overflow-y: auto;
}

.location-group-header {
  padding: 0.75rem 1rem;
  background: #f8f9fa;
  font-weight: 700;
  font-size: 0.85rem;
  color: #495057;
  border-bottom: 1px solid #e9ecef;
  position: sticky;
  top: 0;
  z-index: 10;
}

.location-item {
  padding: 0.875rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 1px solid #f8f9fa;
}

.location-item:hover {
  background: #f8f9fa;
  padding-left: 1.25rem;
}

.location-item:last-child {
  border-bottom: none;
}

.location-name {
  font-weight: 600;
  color: #212529;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.location-details {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.85rem;
}

.location-code {
  background: #e9ecef;
  color: #495057;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  font-family: 'Courier New', monospace;
}

.location-country {
  color: #6c757d;
}

.location-full-name {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 0.25rem;
  font-style: italic;
}

.location-input {
  position: relative;
}

/* Scrollbar styling for location results */
.location-results::-webkit-scrollbar {
  width: 6px;
}

.location-results::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.location-results::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.location-results::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Freight Type Selector */
.freight-type-selector {
  margin-top: 1rem;
}

.freight-type-card {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: #fff;
  height: 100%;
}

.freight-type-card:hover {
  border-color: #0d6efd;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.15);
}

.freight-type-card.active {
  border-color: #0d6efd;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.05) 0%, rgba(13, 110, 253, 0.1) 100%);
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.2);
}

.freight-type-icon {
  margin-bottom: 1rem;
}

.freight-type-card.active .freight-type-icon i {
  transform: scale(1.1);
}

/* Cargo Details Section */
.cargo-details-header {
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 0.75rem;
}

.cargo-details-header h6 {
  color: #212529 !important;
}

.cargo-details-header small {
  color: #6c757d !important;
}

/* Ensure form labels in location and cargo sections are visible */
#locationSection .form-label,
#cargoSection .form-label {
  color: #212529 !important;
  font-weight: 600;
}

#locationSection .form-control,
#locationSection .form-select,
#cargoSection .form-control,
#cargoSection .form-select {
  color: #212529 !important;
  background-color: #fff !important;
}

#locationSection .form-control::placeholder,
#locationSection .form-select::placeholder,
#cargoSection .form-control::placeholder,
#cargoSection .form-select::placeholder {
  color: #6c757d !important;
}

#locationSection .form-control:focus,
#locationSection .form-select:focus,
#cargoSection .form-control:focus,
#cargoSection .form-select:focus {
  color: #212529 !important;
  background-color: #fff !important;
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

#locationSection .text-muted,
#cargoSection .text-muted {
  color: #6c757d !important;
}

#cargoSection textarea.form-control {
  color: #212529 !important;
  background-color: #fff !important;
}

#cargoSection textarea.form-control::placeholder {
  color: #6c757d !important;
}

.cargo-summary {
  border-left: 4px solid #0d6efd;
  background-color: #f8f9fa !important;
}

.cargo-summary strong {
  color: #1e3c72 !important;
  font-size: 1.1rem;
}

.cargo-summary small {
  color: #6c757d !important;
}

/* Form Section Transitions */
#locationSection,
#cargoSection {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .location-dropdown {
    max-height: 300px;
  }
  
  .location-results {
    max-height: 220px;
  }
  
  .location-item {
    padding: 0.75rem;
  }
  
  .location-name {
    font-size: 0.9rem;
  }
  
  .location-details {
    font-size: 0.8rem;
    flex-wrap: wrap;
  }
  
  .freight-type-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .cargo-summary .row > div {
    margin-bottom: 0.75rem;
  }
}

/* Statistics Section */
.stats-section {
  border-top: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
}

.stat-card {
  padding: 2rem 1rem;
  transition: transform 0.3s;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-icon {
  opacity: 0.8;
}

.stat-number {
  font-size: 2.5rem;
  color: #1e3c72;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Problem Solving Section */
.problems-section {
  background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.problem-card {
  transition: all 0.3s;
  border-left: 4px solid transparent;
}

.problem-card:hover {
  transform: translateY(-5px);
  border-left-color: #0d6efd;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.problem-icon {
  width: 60px;
  height: 60px;
  background: rgba(13, 110, 253, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.solution {
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

/* Feature Cards */
.features-section {
  background: #fff;
}

.feature-card {
  transition: all 0.3s;
  border-radius: 15px;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-icon-wrapper {
  position: relative;
}

.feature-icon-bg {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.1) 0%, rgba(13, 110, 253, 0.2) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: all 0.3s;
}

.feature-card:hover .feature-icon-bg {
  transform: scale(1.1);
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.2) 0%, rgba(13, 110, 253, 0.3) 100%);
}

.feature-icon-bg i {
  color: #0d6efd;
}

/* Service Cards */
.service-card {
  overflow: hidden;
  transition: all 0.3s;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-image-wrapper {
  position: relative;
  overflow: hidden;
}

.service-overlay {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 2;
}

.service-badge {
  background: rgba(255, 255, 255, 0.95);
  color: #1e3c72;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.service-features {
  margin: 1.5rem 0;
}

.service-features li {
  padding: 0.5rem 0;
  font-size: 0.95rem;
}

/* Testimonials */
.testimonials-section {
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.testimonial-card {
  transition: all 0.3s;
  border-left: 4px solid #0d6efd;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.testimonial-rating {
  font-size: 1.1rem;
}

.testimonial-text {
  font-style: italic;
  line-height: 1.7;
  color: #495057;
}

.testimonial-author {
  border-top: 1px solid #e9ecef;
  padding-top: 1rem;
}

/* CTA Section */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.cta-buttons {
  margin-top: 2rem;
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* Feature Icons */
.feature-icon {
  margin-bottom: 1rem;
}

.feature-icon i {
  color: #0d6efd;
}

/* Cards */
.card {
  border: none;
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.card-img-top {
  border-radius: 10px 10px 0 0;
}

/* Partner Logos */
.partner-logo {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.partner-logo:hover {
  transform: scale(1.05);
}

/* Form Styling */
.form-control:focus,
.form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Badge Styling */
.badge {
  padding: 0.5em 0.75em;
  font-weight: 500;
}

/* Button Styling */
.btn {
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

.btn-info {
  background-color: #0dcaf0;
  border-color: #0dcaf0;
  color: #000;
}

.btn-info:hover {
  background-color: #0aa2c0;
  border-color: #0aa2c0;
  color: #000;
}

/* Footer */
.footer-custom {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
  border-top: 3px solid #0d6efd;
}

.footer-custom a {
  transition: all 0.3s;
}

.footer-custom a:hover {
  color: #0d6efd !important;
  padding-left: 5px;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  transition: all 0.3s;
}

.social-links a:hover {
  background: #0d6efd;
  transform: translateY(-3px);
}

/* Typography Improvements */
.display-3 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.display-5 {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
}

.fw-semibold {
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 600px;
    padding-top: 2rem !important;
  }
  
  .hero-title {
    font-size: 2rem;
    line-height: 1.3;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .display-5 {
    font-size: 1.75rem;
  }
  
  .display-3 {
    font-size: 2rem;
  }
  
  .hero-section .container {
    padding-top: 80px;
  }
  
  .stat-number {
    font-size: 1.75rem;
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    min-height: 500px;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-section .card {
    margin-top: 1rem;
  }
  
  .hero-section .card-body {
    padding: 1.5rem !important;
  }
  
  .stat-card {
    padding: 1.5rem 0.5rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .feature-icon-bg {
    width: 80px;
    height: 80px;
  }
  
  .feature-icon-bg i {
    font-size: 2rem !important;
  }
  
  .problem-card,
  .testimonial-card {
    margin-bottom: 1rem;
  }
}

/* Loading Spinner */
.spinner-border {
  width: 3rem;
  height: 3rem;
}

/* Alert Styling */
.alert {
  border-radius: 5px;
  border: none;
}

/* Input Group */
.input-group .form-control {
  border-right: none;
}

.input-group .btn {
  border-left: none;
}

/* Card Shadows */
.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Additional Responsive Improvements */
@media (max-width: 991px) {
  .hero-section .container {
    padding-top: 60px;
  }
  
  main {
    overflow-x: hidden;
  }
}

/* Ensure content doesn't get hidden behind navbar */
section {
  position: relative;
  z-index: 1;
}

/* Smooth transitions for all interactive elements */
a, button, .btn {
  transition: all 0.3s ease;
}

/* Better spacing for mobile */
@media (max-width: 576px) {
  .container {
    max-width: 100%;
  }
  
  .row {
    margin-left: 0;
    margin-right: 0;
  }
  
  [class*="col-"] {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* Profile Page Styles */
.profile-avatar-large {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.profile-avatar-large i {
  color: #fff;
}

#profileNav .nav-link {
  color: #495057;
  border-radius: 0.375rem;
  margin-bottom: 0.25rem;
  transition: all 0.3s ease;
}

#profileNav .nav-link:hover {
  background-color: #f8f9fa;
  color: #007bff;
}

#profileNav .nav-link.active {
  background-color: #007bff;
  color: #fff;
}

.card-header.bg-primary {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
}

.form-label {
  font-weight: 500;
  color: #495057;
  margin-bottom: 0.5rem;
}

.form-control:focus,
.form-select:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn-primary {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  border: none;
  transition: transform 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-danger {
  transition: transform 0.2s ease;
}

.btn-danger:hover {
  transform: translateY(-2px);
}

.card {
  border: none;
  border-radius: 0.75rem;
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

@media (max-width: 768px) {
  .profile-avatar-large {
    width: 80px;
    height: 80px;
  }
  
  .profile-avatar-large i {
    font-size: 3rem !important;
  }
}

/* Quote Cards Styling */
.quote-card {
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}

.quote-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15) !important;
}

.shipment-type-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.status-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.route-info {
  position: relative;
}

.route-item {
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.route-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.route-from {
  background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
  color: white;
}

.route-to {
  background: linear-gradient(135deg, #198754 0%, #20c997 100%);
  color: white;
}

.route-arrow {
  font-size: 1.5rem;
  color: #0d6efd;
  opacity: 0.6;
}

.cargo-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.cargo-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.cargo-item:hover {
  background: #e9ecef;
  transform: translateY(-2px);
}

.cargo-item i {
  font-size: 1.25rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.cargo-item strong {
  display: block;
  color: #212529;
  font-size: 0.95rem;
}

.quote-amount-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
  border: 2px solid #dee2e6;
}

.quote-footer {
  margin-top: auto;
}

/* Responsive adjustments for quote cards */
@media (max-width: 768px) {
  .cargo-details-grid {
    grid-template-columns: 1fr;
  }
  
  .quote-card {
    margin-bottom: 1.5rem;
  }
  
  .shipment-type-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
}

/* Company Quotes Styling */
.company-quotes-section {
  animation: fadeIn 0.3s ease-in;
}

.company-quote-item {
  background: #fff;
  transition: all 0.3s ease;
}

.company-quote-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.company-quote-item.best-price {
  border: 2px solid #198754 !important;
  background: linear-gradient(135deg, #f8fff9 0%, #ffffff 100%);
}

.company-quotes-list {
  max-height: 600px;
  overflow-y: auto;
}

.company-quotes-list::-webkit-scrollbar {
  width: 6px;
}

.company-quotes-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.company-quotes-list::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.company-quotes-list::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Price Component Styling */
.price-component-item {
  background: #f8f9fa;
  transition: all 0.2s ease;
}

.price-component-item:hover {
  background: #e9ecef;
  border-color: #0d6efd !important;
}

.price-component-item .form-select-sm,
.price-component-item .form-control-sm {
  font-size: 0.875rem;
}

#totalAmount {
  font-weight: 700;
  color: #198754;
}

/* Company Quotes Tabs */
.nav-tabs .nav-link {
  color: #6c757d;
  border: none;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
  color: #0d6efd;
  border-bottom-color: #0d6efd;
}

.nav-tabs .nav-link.active {
  color: #0d6efd;
  border-bottom-color: #0d6efd;
  font-weight: 600;
}