/* Booking Form Styles */

/* Suggestions Box */
.suggestions-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #f8f9fa;
}

.suggestion-item strong {
    color: #333;
    font-size: 14px;
}

.suggestion-item small {
    color: #666;
    font-size: 12px;
}

/* Return Fields */
.return-fields {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Vehicle Modal */
.vehicle-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.vehicle-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 900px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.vehicle-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.vehicle-close:hover {
    color: #333;
}

.vehicle-modal-content h2 {
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
    text-align: center;
}

.vehicle-results {
    max-height: 500px;
    overflow-y: auto;
}

.vehicle-card {
    display: flex;
    align-items: center;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #fff;
}

.vehicle-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #007bff;
}

.vehicle-card.unavailable {
    opacity: 0.6;
}

.vehicle-image {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
    margin-right: 20px;
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.vehicle-placeholder {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 32px;
    color: #ccc;
}

.vehicle-info {
    flex: 1;
    padding-right: 20px;
}

.vehicle-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #333;
}

.vehicle-type {
    color: #666;
    font-size: 13px;
    text-transform: capitalize;
    margin: 0 0 8px 0;
}

.vehicle-capacity, .vehicle-luggage {
    color: #555;
    font-size: 13px;
    margin: 3px 0;
}

.vehicle-capacity i, .vehicle-luggage i {
    color: #007bff;
    margin-right: 5px;
}

.vehicle-features {
    color: #28a745;
    font-size: 12px;
    margin-top: 8px;
}

.vehicle-price {
    text-align: center;
    padding-left: 20px;
    border-left: 1px solid #eee;
    min-width: 120px;
}

.vehicle-price .price {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
}

.vehicle-price .price-label {
    display: block;
    font-size: 11px;
    color: #999;
    margin-bottom: 10px;
}

.select-vehicle-btn {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.select-vehicle-btn:hover {
    background: #0056b3;
}

.select-vehicle-btn.disabled {
    background: #ccc;
    cursor: not-allowed;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Booking Modal */
.booking-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    animation: fadeIn 0.3s;
}

.booking-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.booking-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.booking-close:hover {
    color: #333;
}

.booking-modal-content h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 22px;
    text-align: center;
}

.booking-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    font-weight: bold;
    font-size: 18px;
    color: #007bff;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 2px solid #007bff;
    border-bottom: none;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
}

.btn-submit-booking {
    width: 100%;
    background: #053b49;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-submit-booking:hover {
    background: #053b49;
}

/* Responsive */
@media (max-width: 768px) {
    .vehicle-card {
        flex-direction: column;
        text-align: center;
    }
    
    .vehicle-image {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .vehicle-info {
        padding-right: 0;
    }
    
    .vehicle-price {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #eee;
        padding-top: 15px;
        margin-top: 15px;
    }
    
    .vehicle-modal-content,
    .booking-modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
    }
}
