/* Override overlay-dark styles for booking form elements */
.booking-box .form-control,
.booking-box input[type="text"],
.booking-box input[type="email"],
.booking-box input[type="tel"],
.booking-box textarea,
.booking-box select {
    color: #495057 !important;
    background-color: #fff !important;
}

.booking-box .form-label,
.booking-box label {
    color: #2c3e50 !important;
}

/* Custom Styles for Enhanced UI */
.form-section {
    margin-bottom: 1.5rem;
}

.car-option {
    transition: all 0.3s ease;
}

.car-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-color: #f5b754 !important;
}

.car-option.selected {
    border-color: #f5b754 !important;
    background: #fff8e1 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245,183,84,0.3);
}

.form-control:focus {
    border-color: #f5b754;
    box-shadow: 0 0 0 0.2rem rgba(245,183,84,0.25);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.price-line {
    border-left: 3px solid #f5b754;
    padding-left: 8px;
}

/* Custom Checkbox */
.checkbox-wrapper {
    position: relative;
    display: inline-block;
}

.custom-checkbox {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

.checkbox-label {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: white;
    border: 3px solid #28a745;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-label::after {
    content: '';
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.custom-checkbox:checked + .checkbox-label {
    background-color: #28a745;
}

.custom-checkbox:checked + .checkbox-label::after {
    display: block;
}

/* Return trip section hover */
.return-trip-section:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(40,167,69,0.2);
}

/* Stop input styling */
.stop-input {
    border: 2px solid #e9ecef !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
}

.stop-input:focus {
    border-color: #f5b754 !important;
    box-shadow: 0 0 0 0.2rem rgba(245,183,84,0.25) !important;
}

.remove-stop {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.remove-stop:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* Compact messages */
.alert {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 8px;
    margin-bottom: 8px;
}

/* Pulse animation for hand pointer */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Modal enhancements */
.modal-content {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
    .booking-header h2 {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .car-option {
        margin-bottom: 1rem;
    }
    
    .return-trip-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    
    .checkbox-wrapper {
        align-self: flex-start;
    }
    
    .price-container {
        padding: 15px !important;
    }
    
    .custom-checkbox + .checkbox-label {
        width: 28px;
        height: 28px;
        border-width: 2px;
    }
    
    .custom-checkbox:checked + .checkbox-label::after {
        left: 8px;
        top: 3px;
        width: 7px;
        height: 14px;
    }

    .return-click-overlay {
        display: none;
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .benefit-icon {
        margin: 0 !important;
    }
}

@media (max-width: 576px) {
    .return-benefits {
        margin-top: 8px;
    }
    
    .benefit-badge {
        display: block;
        margin-bottom: 4px;
        width: fit-content;
    }
}