JSFiddle - React, Tailwind, and code Playground

by davehol

HTML

<form id='salesforceform' action="https://webto.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8" method="POST" class="enquiry-form hintsTooltip labelsRightAligned">
  <input type=hidden name="oid" value="00D280000015MVW">
  <input type=hidden name="retURL" value="https://www.rmit.edu.au/school-leaver/success">
  <input type=hidden name="recordType" value="01228000000PG3F">
  <input type=hidden id="00N28000000igjQ" name="00N28000000igjQ" title="Contact Method" value="SL site">
  <input type=hidden id="00N2800000JfGn9" name="00N2800000JfGn9" title="Lead form" value="SL site">
  <input type=hidden id="faq_referer" name="faq_referer" value="">

  <fieldset class="section">
    <legend>Add your details</legend>

    <div class="oneField   labelsAbove ">
      <label for="first_name">First name<span class="required">Required</span></label>
      <div class="inputWrapper">
        <input type="text" maxlength="80" aria-required="true" required="" class="required" id="first_name" name="first_name" value="" aria-labelledby="tfa_1-L" placeholder="">
      </div>
    </div>

    <div class="oneField   labelsAbove ">
      <label for="last_name">Last name<span class="required">Required</span></label>
      <div class="inputWrapper">
        <input type="text" maxlength="80" aria-required="true" required="" class="required" id="last_name" name="last_name" value="" aria-labelledby="tfa_1-L" placeholder="">
      </div>
    </div>

    <div class="oneField   labelsAbove ">
      <label for="email">Email address<span class="required">Required</span></label>
      <div class="inputWrapper"><input type="email" maxlength="80" aria-required="true" required="" id="email" name="email" value="" placeholder="" class="required validate-email" aria-labelledby="tfa_1-L">
      </div>
    </div>

    <div class="oneField   labelsAbove ">
      <label for="mobile">Mobile</label>
      <div class="inputWrapper"><input type="mobile" maxlength="20" id="mobilee" name="mobile" value=""...

CSS

* {
  box-sizing: border-box;
}

.wFormContainer {
  margin-top: 50px;
}

/* Create three equal columns that floats next to each other */

.column {
  float: left;
  width: 33.33%;
  padding: 0px;
  height: 60px;
  /* Should be removed. Only for demonstration */
}

/* Clear floats after the columns */

.formrow:after {
  content: "";
  display: table;
  margin-left: 1px;
  clear: both;
}

/* Responsive layout - makes the three columns stack on top of each other instead of next to each other */

@media screen and (max-width:1000px) {
  .column {
    width: 100%;
  }
}

@media screen and (max-width:750px) {
  fieldset {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  legend {
    margin-left: 0 !important;
  }
  input[type=submit] {
    margin-right: 0 !important;
  }
}

.lbe_container {
  display: block;
  position: relative;
  padding-left: 40px;
  margin-bottom: 30px;
  cursor: pointer;
  font-family: HelveticaNeue;
  font-size: 24px;
  font-weight: normal;
  color: #333;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default checkbox */

.lbe_container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

/* Create a custom checkbox */

.checkmark {
  position: absolute;
  top: -2px;
  left: 0;
  height: 28px;
  width: 28px;
  background-color: #f0f0f0;
  border-radius: 3px;
  border: solid 2px #646464;
}

/* On mouse-over, add a grey background color */

.lbe_container:hover input~.checkmark {
  background-color: #f0f0f0;
}

/* When the checkbox is checked, add a blue background */

.lbe_container input:checked~.checkmark {
  background-color: #f0f0f0;
}

/* Create the checkmark/indicator (hidden when not checked) */

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */

.lbe_container input:checked~.checkmark:after {
  display: block;
}

/* Style the checkmark/indicator...