<?php

declare(strict_types=1);
?>
<form class="myron-quiz__lead" method="post" data-quiz-lead-capture>
  <label class="myron-quiz__field">Name <input class="myron-quiz__input" type="text" name="lead[name]"></label>
  <label class="myron-quiz__field">Email <input class="myron-quiz__input" type="email" name="lead[email]" required></label>
  <label class="myron-quiz__check"><input type="checkbox" name="lead[consent]" value="1"> <span><?= myronEscape((string) ($consentText ?? 'I agree to be contacted about my results.')) ?></span></label>
  <button class="myron-quiz__button" type="submit">Continue</button>
</form>
