/* ===== BASE STYLING ===== */
body {
  font-family: 'Montserrat', sans-serif;
  background-color: #fdfcff;
  color: #333;
  margin: 0;
  padding: 0;
}

h2 {
  color: #003366;
  font-size: 32px;
  margin-bottom: 20px;
}

.section {
  padding: 60px 40px;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* ===== FILTER PANEL ===== */
.filters-panel {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 50, 0.05);
  width: 100%;
  max-width: 400px;
}

.filters-panel label {
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
  color: #003366;
}

.filters-panel input[type="range"] {
  width: 100%;
}

.price-display {
  font-size: 18px;
  color: #0055aa;
  margin-top: 8px;
  font-weight: 600;
}

input[type=range]::-webkit-slider-thumb,
input[type=range]::-moz-range-thumb,
input[type=range]::-ms-thumb {
  background: #0055aa;
}

/* ===== HERO SEARCH SECTION ===== */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 60px 20px;
  background-color: #fff;
  flex-wrap: wrap;
}

.search-box {
  background: #fff;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  width: 320px;
  animation: fadeInLeft 0.8s ease-in-out;
}

.search-box h2 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #111;
}

/* Toggle Tabs for New/Used */
.toggle-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.toggle-buttons .tab {
  flex: 1;
  padding: 10px 20px;
  border: 1px solid #ccc;
  background: #eee;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  text-align: center;
  font-weight: bold;
}

.toggle-buttons .tab.active {
  background: #cc0000;
  color: white;
}

.tab-content {
  margin-top: 20px;
}

/* Loan Box Styling */
.loan-type {
  transition: all 0.3s ease;
}

.loan-type.active {
  border: 2px solid #00b894 !important;
  background-color: #eafdf6 !important;
  box-shadow: 0 0 10px rgba(0, 184, 148, 0.2);
}

/* ===== CAR BANNER SECTION ===== */
.car-banner {
  color: white;
  max-width: 500px;
  animation: fadeInRight 0.8s ease-in-out;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.car-banner.active {
  opacity: 1;
}

.car-banner .launch-badge {
  background: #ff4444;
  color: white;
  padding: 5px 10px;
  display: inline-block;
  font-size: 14px;
  text-transform: uppercase;
  border-radius: 4px;
}

.car-banner h1 {
  font-size: 32px;
  margin: 10px 0;
}

.car-banner p {
  font-size: 16px;
  color: #ddd;
}

.know-more {
  color: #ff9800;
  text-decoration: none;
  font-weight: bold;
  margin-top: 10px;
  display: inline-block;
}

.car-banner img {
  width: 100%;
  margin-top: 20px;
  border-radius: 10px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ===== WHY AUTO FUSION SECTION ===== */
.why-autofusion {
  text-align: center;
  padding: 50px 20px;
  background: #f9f9f9;
}

.why-autofusion h2 {
  font-size: 32px;
  margin-bottom: 30px;
  color: #333;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.feature-box {
  background: #fff;
  padding: 30px 20px;
  border-radius: 12px;
  max-width: 300px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  flex: 1 1 300px;
  text-align: center;
}

.feature-box:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .car-banner {
    color: #111;
  }
  .car-banner h1 {
    color: #cc0000;
  }
  .car-banner img {
    border-radius: 0;
  }
  .toggle-buttons {
    flex-direction: column;
    gap: 10px;
  }
}
