async function init() {
  const data = await fetch(new URL('./data.json', import.meta.url)).then(r => r.json());

  // Populate form fields in the "With Content" variant
  const inputs = document.querySelectorAll('.step-form input-ui');
  const fields = Object.values(data.formFields);
  inputs.forEach((input, i) => {
    if (fields[i]) input.setAttribute('value', fields[i]);
  });
}

init();
