// Hide the 'lost-person-details' field for 'death' type
            document.getElementById('lost-person-details').style.display = 'none';
        }

        /**
         * Updates the display of the 'lost-person-details' field based on the selected value in the 'lost-person' input.
         * Hides all other lost person details.
         */
        function updateLostPersonFields() {
            // Get the selected value from the 'lost-person' input
            const lostPerson = document.getElementById('