.form-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 90%;
    margin: auto;
}

.form-section form {
    display: flex;
    width: 100%;
}

.input-group {
    flex: 1;
    margin: 10px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
}

.input-group input, .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;
}

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 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-radius: 8px;
    border-width: 2px;
    transition: all .3s ease-in;
    padding: 14px;
	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: 120px;
  justify-content: center;
}

.car-category {
  font-weight: bold;
  color: #0077cc;
  margin-bottom: 10px;
}

.car-icon {
  width: 40px;
  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;
}

@media screen and (max-width: 520px){
	.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%);
    }
} 