.car-rentals-form-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  margin: auto;
}

.car-rentals-form-section form {
  display: flex;
  width: 100%;
}

.car-rentals-form-section .input-group {
  flex: 1;
  margin: 10px;
}

.car-rentals-form-section .input-group label {
  display: block;
  margin-bottom: 5px;
}

.car-rentals-form-section .input-group input,
.car-rentals-form-section .input-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 16px;
}

.input-group .datepicker {
  width: 100%;
}

.trip-type {
  flex: 1;
  display: flex;
  margin: 10px;
}

.trip-button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 4px;
  background-color: #007bff;
  color: white;
  margin-right: 5px;
  cursor: pointer;
  font-weight: bold;
}

.trip-button.active,
.trip-button:hover {
  background-color: #0056b3;
}


.search_location_wrapper {
  position: relative;
}

.loading-results {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(15%);
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease-in;
}

.loading-results.loading {
  opacity: 1;
  visibility: visible;
}

span#location_suggestion_err {
  position: absolute;
  display: block;
  width: 100%;
  font-size: 14px;
  font-weight: 800;
  color: #e24;
  z-index: 1;
  margin-bottom: 5px;
  top: 100%;
}

ul#suggestionsList {
  margin: 0;
  list-style: none;
  position: absolute;
  background: #fff;
  padding: 5px 0px;
  box-shadow: 0 5px 5px #ccc;
  top: 99%;
  max-height: 200px;
  overflow: auto;
  width: 100%;
  z-index: 4;
}

ul#suggestionsList:empty {
  display: none;
}

ul#suggestionsList.hide {
  display: none;
}

ul#suggestionsList li {
  cursor: pointer;
  padding: 5px 10px;
}

ul#suggestionsList li:not(:last-child) {
  border-bottom: 1px solid #ccc;
}


ul#suggestionsList li:hover {
  background: #e9f1f4;
}

.explore-button-wrapper {
  display: flex;
  align-items: flex-end;
}

.explore-button {
  border-width: 2px;
  transition: all .3s ease-in;
  padding: 10px;
  width: 100%;
}

.datepicker__field {
  width: 3ch;
}

.flex-50 {
  flex: 0 0 50%;
}

.rental-card {
  display: flex;
  max-width: 1000px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin: auto;
  margin-bottom: 15px;
}

.card-header {
  background-color: #e9f6ff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 150px;
  justify-content: center;
}

.car-category {
  font-weight: bold;
  color: #0077cc;
  margin-bottom: 10px;
}

.car-icon {
  width: 100%;
  height: auto;
}

.car-details {
  padding: 20px;
  flex: 1;
}

.car-name {
  font-size: 24px;
  margin: 0;
}

.subtext {
  font-size: 14px;
  color: #888;
  margin: 4px 0 12px;
}

.specs {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.specs li {
  display: flex;
  align-items: center;
  margin-right: 20px;
  font-size: 14px;
  color: #333;
}

.specs img {
  width: 18px;
  margin-right: 6px;
}

.location {
  font-size: 14px;
  color: #555;
  margin: 8px 0;
}

.features {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

.features li {
  font-size: 14px;
  color: #28a745;
  margin: 4px 0;
}

.important-info {
  color: #0077cc;
  font-size: 14px;
  text-decoration: none;
}

.booking-summary {
  background-color: #f7fafc;
  padding: 20px;
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.package {
  background-color: #ddeeff;
  color: #0056b3;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.price-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 4px;
}

.price-total {
  font-size: 18px;
  font-weight: bold;
  color: #000;
  margin-bottom: 12px;
}

.book-btn {
  background-color: #ff9900;
  color: #fff;
  border: none;
  padding: 12px 18px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
}

.brand-logo {
  margin-top: auto;
  width: 100px;
  height: auto;
}


.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  color: var(--primary-color);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
  border-radius: 2px;
}

.section-subtitle {
  color: #666;
  max-width: 700px;
  margin: 0 auto 3rem;
}

/* Car Cards */
.car-card {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  background: white;
  position: relative;
}

.car-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.car-img {
  height: 220px;
  object-fit: cover;
  width: 100%;
  transition: transform 0.5s ease;
}

.car-card:hover .car-img {
  transform: scale(1.05);
}

.car-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary-color);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 4px 10px rgba(243, 156, 18, 0.3);
}

.car-details {
  padding: 1.5rem;
}

.car-name {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.car-specs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.car-spec {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
  color: #666;
}

.car-spec i {
  color: var(--secondary-color);
}

.car-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.car-price span {
  font-size: 0.9rem;
  color: #666;
  font-weight: 400;
}

/* Features Section */
.feature-box {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
}

.feature-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--secondary-color), #c13651);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
  box-shadow: 0 10px 20px rgba(233, 69, 96, 0.2);
}

/* Services Section */
.service-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

.service-item:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}

@media screen and (max-width: 520px) {
  .car-rentals-form-section form {
    width: 100%;
    flex-flow: column wrap;
  }

  .input-group {
    margin: 0 0 10px;
  }

  .explore-button {
    width: 100%;
  }

  .input-group label {
    display: none;
  }

  input.has-error {
    margin-bottom: 20px;
  }

  span#location_suggestion_err {
    bottom: -10px;
  }

  .loading-results {
    transform: translateY(-50%);
  }
}