// Contact form behavior: adding/removing repeatable phone, email, and // address rows, plus a live preview when choosing a new photo. (function initContactForm(): void { document.querySelectorAll(".add-row-btn").forEach((btn) => { btn.addEventListener("click", () => { const containerId = btn.dataset.addTarget; if (!containerId) { return; } const container = document.getElementById(containerId); if (!container) { return; } const rows = container.querySelectorAll(".form-row"); const lastRow = rows[rows.length - 1]; if (!lastRow) { return; } // Clone the last row rather than keeping a separate