<div class="form-popup" id="myForm">
  <form id="datacapture" action="include/datasurvey/send_email.php" method="post" class="form-container" >
    <h1>Data Survey</h1>
    <input type="hidden" name="rin">
    <label for="relation">Details of:</label>
    <select id="relation" name="relation">
      <option value="self">Self</option>
      <option value="father">Father</option>
      <option value="mother">Mother</option>
      <option value="spouse">Spouse</option>
      <option value="son">Son</option>
      <option value="daughter">Daughter</option>
    </select>
    <input type="text" placeholder="First Name" name="fname">
    <input type="text" placeholder="Last Name" name="lname">
    <input type="text" placeholder="Father\'s Name" name="father">
    <input type="text" placeholder="Mother\'s Name" name="mother">
    <input type="text" placeholder="Qualification" name="educ">
    <input type="text" placeholder="Occupation" name="occu">
    <input type="text" placeholder="Location" name="loc">
    <input type="text" placeholder="Phone" name="tel">
    <input type="date" placeholder="Date of Birth" name="dob">
    <input type="number" placeholder="Annual Income" name="income">
    <button type="submit" class="btn">Save</button>
    <button type="button" class="btn cancel" onclick="closeForm()">Close</button>
  </form>
</div>