Changed around line 1
+ document.addEventListener('DOMContentLoaded', () => {
+ // State dropdown population
+ const states = [
+ 'Alabama', 'Alaska', 'Arizona', 'Arkansas', 'California',
+ 'Colorado', 'Connecticut', 'Delaware', 'Florida', 'Georgia',
+ 'Hawaii', 'Idaho', 'Illinois', 'Indiana', 'Iowa',
+ 'Kansas', 'Kentucky', 'Louisiana', 'Maine', 'Maryland',
+ 'Massachusetts', 'Michigan', 'Minnesota', 'Mississippi', 'Missouri',
+ 'Montana', 'Nebraska', 'Nevada', 'New Hampshire', 'New Jersey',
+ 'New Mexico', 'New York', 'North Carolina', 'North Dakota', 'Ohio',
+ 'Oklahoma', 'Oregon', 'Pennsylvania', 'Rhode Island', 'South Carolina',
+ 'South Dakota', 'Tennessee', 'Texas', 'Utah', 'Vermont',
+ 'Virginia', 'Washington', 'West Virginia', 'Wisconsin', 'Wyoming'
+ ];
+
+ const stateSelect = document.getElementById('state');
+ if (stateSelect) {
+ states.forEach(state => {
+ const option = document.createElement('option');
+ option.value = state.toLowerCase().replace(/\s/g, '-');
+ option.textContent = state;
+ stateSelect.appendChild(option);
+ });
+ }
+
+ // Form submission handler
+ const registrationForm = document.querySelector('.registration-form');
+ if (registrationForm) {
+ registrationForm.addEventListener('submit', (e) => {
+ e.preventDefault();
+ alert('Registration submitted successfully! Please check your email for verification.');
+ });
+ }
+
+ // Button animations
+ const buttons = document.querySelectorAll('button');
+ buttons.forEach(button => {
+ button.addEventListener('mouseover', () => {
+ button.style.transform = 'scale(1.05)';
+ });
+ button.addEventListener('mouseout', () => {
+ button.style.transform = 'scale(1)';
+ });
+ });
+ });