| document.addEventListener('DOMContentLoaded', () => { | |
| // Form validation logic can be added here | |
| console.log('Solar Property Wizard initialized'); | |
| // Smooth scrolling for form steps | |
| const formContainer = document.querySelector('custom-solar-form'); | |
| if (formContainer) { | |
| formContainer.shadowRoot.querySelectorAll('button').forEach(button => { | |
| button.addEventListener('click', () => { | |
| formContainer.scrollIntoView({ behavior: 'smooth', block: 'start' }); | |
| }); | |
| }); | |
| } | |
| }); |