/* Car Rental Search Form Styles */
.car-rental-search-area {
    background: #f8f9fa;
    padding: 30px 0;
    margin-bottom: 40px;
}

.car-search-form-wrapper {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.car-search-form .search-field {
    margin-bottom: 0;
}

.search-label {
    display: block;
    font-weight: 600;
    font-size: 11px;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    height: 50px;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: #999;
    font-size: 16px;
    z-index: 2;
}

.search-input {
    width: 100%;
    padding: 12px 12px 12px 35px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: all 0.2s ease;
    height: 50px;
}

.search-input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.1);
}

.search-input::placeholder {
    color: #aaa;
    font-size: 14px;
}

/* Search Button */
.search-btn-field {
    display: flex;
    align-items: flex-end;
    height: 100%;
    padding-top: 21px;
}

.btn-search-cars {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    height: 50px;
    justify-content: center;
    white-space: nowrap;
}

.btn-search-cars:hover {
    background: #0056b3;
}

.btn-search-cars i {
    font-size: 16px;
}

/* Checkbox Styles */
.search-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.search-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #007bff;
    cursor: pointer;
}

.search-checkbox label {
    font-size: 14px;
    color: #495057;
    cursor: pointer;
    margin: 0;
    font-weight: 500;
}

/* Additional spacing for form rows */
.car-search-form .row.g-3 {
    margin-left: -8px;
    margin-right: -8px;
}

.car-search-form .row.g-3 > * {
    padding-left: 8px;
    padding-right: 8px;
}

/* Responsive Design */
@media (max-width: 991px) {
    .car-rental-search-area {
        padding: 25px 0;
    }
    
    .car-search-form-wrapper {
        padding: 20px;
    }
    
    .search-btn-field {
        margin-top: 15px;
        padding-top: 0;
    }
    
    .btn-search-cars {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .car-rental-search-area {
        padding: 20px 0;
        margin-bottom: 30px;
    }
    
    .car-search-form-wrapper {
        padding: 15px;
        border-radius: 6px;
    }
    
    .search-input-wrapper {
        height: 45px;
    }
    
    .search-input {
        padding: 10px 10px 10px 32px;
        font-size: 14px;
        height: 45px;
    }
    
    .search-icon {
        left: 10px;
        font-size: 14px;
    }
    
    .btn-search-cars {
        padding: 0 15px;
        height: 45px;
        font-size: 13px;
    }
    
    .search-label {
        font-size: 10px;
        margin-bottom: 4px;
    }
    
    .car-search-form .row.g-3 {
        margin-left: -6px;
        margin-right: -6px;
    }
    
    .car-search-form .row.g-3 > * {
        padding-left: 6px;
        padding-right: 6px;
    }
}

/* Date and Time Input Styles */
.search-input[type="date"],
.search-input[type="time"] {
    cursor: pointer;
}

.search-input[type="date"]::-webkit-calendar-picker-indicator,
.search-input[type="time"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(0.5);
}

/* Select Dropdown Styles */
.search-input select,
select.search-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
    appearance: none;
}

/* Focus States */
.search-input:focus,
select.search-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

/* Additional spacing for form rows */
.car-search-form .row.g-3 {
    margin-left: -12px;
    margin-right: -12px;
}

.car-search-form .row.g-3 > * {
    padding-left: 12px;
    padding-right: 12px;
}

/* Animation for dropdown location field */
#dropoff-location-field {
    transition: all 0.3s ease;
}

#dropoff-location-field.show {
    display: block !important;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Calendar Styles - Trip.com inspired */
.custom-calendar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    padding: 16px;
    min-width: 280px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 8px;
}

.calendar-header button {
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.calendar-header button:hover {
    background-color: #f5f5f5;
}

.calendar-header span {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 8px;
}

.calendar-weekdays div {
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    padding: 8px 4px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day {
    text-align: center;
    padding: 8px 4px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s;
    position: relative;
}

.calendar-day:hover {
    background-color: #f0f8ff;
}

.calendar-day.selected {
    background-color: #1e90ff;
    color: white;
    font-weight: 600;
}

.calendar-day.other-month {
    color: #ccc;
}

.calendar-day.today {
    background-color: #e8f4fd;
    font-weight: 600;
}

.calendar-day.selected.today {
    background-color: #1e90ff;
    color: white;
}

/* Fix mobile search alignment */
@media (max-width: 768px) {
    .plan-section {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .select-dropdown-section {
        width: 100%;
    }
    
    .destination-dropdown {
        width: 100%;
        margin-top: 5px;
    }
    
    .divider.plan-divider {
        display: none !important;
    }
    
    .sign-btn {
        width: 100%;
        margin-top: 10px;
    }
    
    .btn-secondary-lg {
        width: 100%;
    }
}
