document.getElementById('number-of-people').addEventListener('input', function() {
var numberOfPeople = parseInt(document.getElementById('number-of-people').value);
var pricePerPerson = parseInt(document.getElementById('price-per-person').value);
var totalPrice = numberOfPeople * pricePerPerson;
document.getElementById('total-price').value = totalPrice;
document.getElementById('price').value = totalPrice; // Update the hidden price field as well
});