<form id="birth-form">
<label>Дата рождения:</label><br>
<input type="date" name="birthDate" required><br><br>
<label>Время рождения:</label><br>
<input type="time" name="birthTime" required><br><br>
<label>Место рождения:</label><br>
<input id="birthPlace" type="text" name="birthPlace" placeholder="Город, страна" required><br><br>
<button type="submit">Отправить</button>
</form>
<!-- Google Maps API -->
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAzx2vEIyZi3xk6rD0G8fjZ79QQW5w5SbM&libraries=places"></script>
<script>
function initAutocomplete() {
const input = document.getElementById('birthPlace');
new google.maps.places.Autocomplete(input, {
types: ['(cities)'],
componentRestrictions: { country: [] } // можно ограничить страны, если нужно
});
}
window.addEventListener('load', initAutocomplete);
</script>