General

document.addEventListener('DOMContentLoaded', function () { const serviceSelect = document.getElementById('service_needed'); const exteriorWrap = document.getElementById('exterior_color_wrap'); const interiorWrap = document.getElementById('interior_seats_wrap'); function updateConditionalFields() { if (!serviceSelect) return; const val = (serviceSelect.value || '').toLowerCase(); const showExterior = val.includes('exterior detail') || val.includes('full detail') || val.includes('paint correction') || val.includes('ceramic coating'); const showInterior = val.includes('interior detail') || val.includes('full detail'); if (exteriorWrap) exteriorWrap.style.display = showExterior ? 'block' : 'none'; if (interiorWrap) interiorWrap.style.display = showInterior ? 'block' : 'none'; } if (serviceSelect) { serviceSelect.addEventListener('change', updateConditionalFields); updateConditionalFields(); } });
Scroll to Top