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

:root {
  --primary-color: #0092b8;
  --primary-hover: #007a9a;
  --secondary-color: #e17100;
  --text-dark: #0f1729;
  --text-muted: #6d6d6d;
  --bg-light: #f9fafb;
  --border-color: #e7e7e7;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Limit max width on large screens */
.container-fluid {
  max-width: 1440px;
  margin: 0 auto;
}

/* Header */
.navbar {
  backdrop-filter: blur(25px);
  background-color: rgba(255, 255, 255, 0.95) !important;
}

.navbar-brand img {
  height: 24px;
  width: auto;
}

.nav-link {
  color: var(--text-dark) !important;
  padding: 0.75rem 1.25rem !important;
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

.nav-link:hover {
  background-color: var(--bg-light);
}

.nav-link.text-primary {
  color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(180deg, rgba(0, 184, 219, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
  padding: 4rem 0 !important;
}

.instant-quote-badge {
  background-color: rgba(0, 184, 219, 0.1);
  color: var(--primary-color);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
}

.hero-section h1 {
  font-size: clamp(2rem, 5vw, 3.75rem);
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

.hero-section .lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(0, 0, 0, 0.5);
}

/* Delivery Tabs */
.delivery-tabs {
  background-color: var(--bg-light) !important;
  border-radius: 10px;
}

.btn-tab {
  background-color: white;
  border: 1px solid var(--border-color);
  color: var(--primary-color);
  border-radius: 8px;
  font-size: 1rem;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.btn-tab:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.btn-tab.active {
  background-color: white;
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 146, 184, 0.15);
}

.btn-tab-inactive {
  background-color: var(--bg-light);
  border: none;
  color: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  font-size: 1rem;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.btn-tab-inactive:hover {
  background-color: #e0e0e0;
  color: rgba(0, 0, 0, 0.6);
}

/* Cards */
.card {
  border-radius: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.shadow-sm {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1) !important;
}

/* Form Controls */
.form-control {
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 146, 184, 0.15);
}

.form-control::placeholder {
  color: #999999;
}

.form-label {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  border-radius: 10px;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 146, 184, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-light {
  background-color: white;
  border: none;
  color: var(--primary-color);
  font-weight: 600;
}

.btn-light:hover {
  background-color: #f8f9fa;
  color: var(--primary-hover);
}

/* Shipping Options */
.shipping-option {
  transition: all 0.3s ease;
  background-color: white;
}

.shipping-option:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateX(5px);
}

.shipping-option.best-value {
  border: 2px solid var(--primary-color) !important;
  background-color: rgba(0, 146, 184, 0.02);
}

.shipping-option h5 {
  font-size: 1rem;
  color: var(--text-dark);
}

.shipping-option .badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.35rem 0.65rem;
}

.shipping-option .h4 {
  font-size: 1.5rem;
}

/* CTA Card */
.card.bg-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #006b8a 100%) !important;
  border-radius: 10px;
}

/* Footer */
footer {
  background-color: var(--bg-light) !important;
}

footer a {
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--text-dark) !important;
}

/* Responsive Typography */
@media (max-width: 768px) {
  .display-3 {
    font-size: 2.5rem;
  }
  
  .hero-section {
    padding: 2rem 0 !important;
  }
  
  .card-body {
    padding: 1.5rem !important;
  }
  
  .shipping-option {
    font-size: 0.9rem;
  }
  
  .shipping-option .h4 {
    font-size: 1.25rem;
  }
}

@media (max-width: 576px) {
  .display-3 {
    font-size: 2rem;
  }
  
  .btn-tab,
  .btn-tab-inactive {
    font-size: 0.875rem;
    padding: 0.75rem 1rem !important;
  }
  
  .form-control-lg {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }
  
  .btn-primary {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card,
.shipping-option {
  animation: fadeInUp 0.6s ease-out;
}

/* Utilities */
.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.bg-warning {
  background-color: var(--secondary-color) !important;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}
