// Улучшение внешнего вида формы
const formInputs = document.querySelectorAll('.carkit-modal-form .wpcf7-form-control');
formInputs.forEach(input => {
// Добавляем плейсхолдеры если их нет
if (input.name === 'text-877' && !input.placeholder) {
input.placeholder = 'Ваше Имя';
}
if (input.name === 'mask-358' && !input.placeholder) {
input.placeholder = '+7 (___) ___-__-__';
}
if (input.name === 'email-148' && !input.placeholder) {
input.placeholder = 'Ваш Email';
}
if (input.name === 'textarea-666' && !input.placeholder) {
input.placeholder = '💡 Желаемая марка, модель, бюджет или особые пожелания...';
}
});
// Улучшение селектора
const selectElement = document.querySelector('.carkit-modal-form .wpcf7-select');
if (selectElement && !selectElement.querySelector('option[value=""]').textContent.includes('?')) {
selectElement.querySelector('option[value=""]').textContent = 'Куда отправить расчет?';
}
});