<template>

 <div class="row">
  <div class="col-75">
    <div class="container">
      <form action="/action_page.php">

        <div id="form1"  class="row">
          <div class="col-50">
            <h3>Pré-cadastro</h3>
            <label for="fname"><i class="fa fa-user"></i> Nome: </label>
            <input type="text" id="fname" name="firstname" required placeholder="">

            <label for="fname"><i class="fa fa-user"></i> Sobrenome: </label>
            <input type="text" id="fname" name="firstname" placeholder="">

           <label for="fname"><i class="fa fa-user"></i> CPF: </label>
            <input type="text" id="fname" name="firstname" required placeholder="xxx-xxx-xxx-xx">

               <label required for="fname"><i class="fa fa-user"></i> Telefone: </label>
            <input type="text" id="fname" name="firstname" placeholder="(xx)xxxx-xxxx">

              <label for="country">Sexo</label>
            <select id="country" name="country">
              <option value="australia">Masculino</option>
              <option value="canada">Femino</option>
              <option value="usa">Prefiro não  informa</option>
            </select>

            <label for="fname"><i class="fa fa-user"></i> Data Nascimento: </label>
            <input id="date" type="date"  name="firstname" placeholder="">
            <br>

            <label for="email"><i class="fa fa-envelope"></i> Email</label>
            <input type="text" id="email" name="email" required placeholder="text@example.com">
            <label for="adr"><i class="fa fa-address-card-o"></i> Rua</label>
            <input type="text" id="adr" name="address" placeholder="">
             <label for="adr"><i class="fa fa-address-card-o"></i> Nº</label>
            <input type="text" id="adr" name="address" placeholder="">

            <label for="city"><i class="fa fa-institution"></i> Cidade</label>
            <input type="text" id="city" name="city" placeholder="">

              <label for="city"><i class="fa fa-institution"></i> Referecia/Complemento</label>
            <input type="text" id="city" name="city" placeholder="">

            <div class="row">
              <div class="col-50">
                <label for="state">Estado</label>
                <input type="text" id="state" name="state" placeholder="">
              </div>
              <div class="col-50">
                <label required for="zip">Cep</label>
                <input type="text" id="zip" name="zip" placeholder="00000-00">
              </div>
            </div>
          </div>

          <div class="col-50">
            <h3>Pagamento</h3>
            <label for="fname">bandeiras aceitas</label>
            <div class="icon-container">
              <i class="fa fa-cc-visa" style="color:navy;"></i>
              <i class="fa fa-cc-amex" style="color:blue;"></i>
              <i class="fa fa-cc-mastercard" style="color:red;"></i>
              <i class="fa fa-cc-discover" style="color:orange;"></i>
            </div>
            <label for="cname">Nome Titular</label>
            <input type="text" id="cname" name="cardname" placeholder="">
            <label for="ccnum">Numero Cartão</label>
            <input type="text" id="ccnum" name="cardnumber" placeholder="">
            <label for="expmonth">Mês Expedição</label>
            <input type="text" id="expmonth" name="expmonth" placeholder="">

            <div class="row">
              <div class="col-50">
                <label for="expyear">Validade</label>
                <input type="text" id="expyear" name="expyear" placeholder="">
              </div>
              <div class="col-50">
                <label for="cvv">CVV</label>
                <input type="text" id="cvv" name="cvv" placeholder="">
              </div>
            </div>
          </div>

        </div>
        <label>
          <input type="checkbox" checked="checked" name="sameadr"> 
          Endereço de cobrança, mesmo de cadastro
        </label>
        <input type="submit" value="Cadastro" class="btn">
      </form>
    </div>
  </div>

  <div class="col-25">
    <div class="container">
       <p>
          Lista de Pré-cadastro
       </p><br><br>
       <p>
        envio de e-mail
       </p>

       <br><br>
       <button>Enviar</button>
    </div>
  </div>
</div>

</template>

<script>
export default {
  name: "app",
  data() {
    return {
      msg: "Welcome to Your Vue.js App",
    };
  },
};


</script>

<style>
  .row {
  display: -ms-flexbox; /* IE10 */
  display: flex;
  -ms-flex-wrap: wrap; /* IE10 */
  flex-wrap: wrap;
  margin: 0 -16px;
}

.col-25 {
  -ms-flex: 25%; /* IE10 */
  flex: 25%;
}

.col-50 {
  -ms-flex: 50%; /* IE10 */
  flex: 50%;
}

.col-75 {
  -ms-flex: 75%; /* IE10 */
  flex: 75%;
}

.col-25,
.col-50,
.col-75 {
  padding: 0 16px;
}

.container {
  background-color: #f2f2f2;
  padding: 5px 20px 15px 20px;
  border: 1px solid lightgrey;
  border-radius: 3px;
}

input[type=text] , select {
  width: 100%;
  margin-bottom: 20px;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

label {
  margin-bottom: 10px;
  display: block;
}

.icon-container {
  margin-bottom: 20px;
  padding: 7px 0;
  font-size: 24px;
}

.btn , button {
  background-color: #04AA6D;
  color: white;
  padding: 12px;
  margin: 10px 0;
  border: none;
  width: 100%;
  border-radius: 3px;
  cursor: pointer;
  font-size: 17px;
}

.btn:hover {
  background-color: #45a049;
}

span.price {
  float: right;
  color: grey;
}

/* Responsive layout - when the screen is less than 800px wide, make the two columns stack on top of each other instead of next to each other (and change the direction - make the "cart" column go on top) */
@media (max-width: 800px) {
  .row {
    flex-direction: column-reverse;
  }
  .col-25 {
    margin-bottom: 20px;
  }
}
</style>