esetButton = document.querySelector('#reset-button');
        resetButton.addEventListener('click', resetFields);

        /**
         * Updates the display of certain fields based on the selected type.
         * Hides the 'lost-person-details' field for 'death' type.
         */
        function updateFields() {
            // Get the selected type from the 'type-name' input
            const type = document.getElementById('type-name').value;

            // Update the display of 'wedding-fields' based o