html,
body {
  width: 100%;
  height: 100%;
  background: #f2f2f2; 
  font-family: 'Roboto', serif;
}

h1,
p {
  width: 100%;
  text-align: center;
  margin: 0;
  padding: 1em 0;
}

p {
  padding: 0.5em 0;
}

.left {
  float: left;
}

.right {
  float: right;
}

@media (max-width: 35em) {
  .left,
.right {
    float: left;
    clear: left;
  }
}
.form {
  width: 0;
  height: 0;
  margin-left: 5%;
  background: #ecf1ed;
  overflow: hidden;
  position: absolute;
  z-index: 10;
  transition: height 0.5s ease, width 0.5s ease 0.5s;
  font-family: 'Roboto', serif;
}
.form h2 {
  width: 100%;
  text-align: center;
  color: #333;
  font-size: 1.8rem;
  margin: 1.5rem 0 3rem;
  font-weight: lighter;
}
.form form {
  max-height: 100%;
  height: auto;
}
@media (max-width: 35em) {
  .form form {
    height: auto;
  }
}
.form .section {
  width: 40%;
  margin: 0 5%;
  height: calc(100% - 5rem);
  max-height: 100%;
}
@media (max-width: 35em) {
  .form .section {
    width: 90%;
    height: auto;
  }
}
.form ::-webkit-input-placeholder,
.form :-moz-placeholder,
.form ::-moz-placeholder,
.form :-ms-input-placeholder {
  color: #999;
}
.form input[type=text],
.form input[type=email],
.form input[type=tel],
.form textarea {
  width: 100%;
  box-sizing: border-box;
  background-color: inherit;
  border: none;
  border-bottom: 1px solid #999;
  outline: none;
  color: #333;
  transition: border-color 0.5s ease;
  font-size: 0.8rem;
}
.form input[type=text]:focus,
.form input[type=email]:focus,
.form input[type=tel]:focus,
.form textarea:focus {
  border-color: #333;
}
.form input[type=text]::invalid,
.form input[type=email]::invalid,
.form input[type=tel]::invalid,
.form textarea::invalid {
  border-color: #b31b1b;
}
.form input[type=text],
.form input[type=email],
.form input[type=tel] {
  height: 2.5rem;
  margin-bottom: 1rem;
}
.form textarea {
  resize: none;
  height: 10rem;
  line-height: 1.5rem;
  vertical-align: bottom;
}
@media (max-width: 35em) {
  .form textarea {
    height: 5.5rem;
    margin-bottom: 1rem;
    line-height: 1rem;
  }
}
.form .closeFormLabel,
.form .sendForm {
  position: absolute;
  bottom: 1rem;
  width: 40%;
  margin: 0 5%;
  right: 0;
  text-align: center;
  font-size: 0.8rem;
  border: 1px solid #999;
  padding: 0.5rem;
  background: inherit;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 0.5s ease, border-color 0.5s ease;
}
.form .closeFormLabel:hover, .form .closeFormLabel:focus,
.form .sendForm:hover,
.form .sendForm:focus {
  background-color: #cccccc;
  border-color: #333;
}
@media (max-width: 35em) {
  .form .closeFormLabel,
.form .sendForm {
    position: relative;
    width: 90%;
    left: 0;
    margin-top: 1em;
  }
}
.form .closeFormLabel {
  left: 0;
}
@media (max-width: 35em) {
  .form .closeFormLabel {
    bottom: 1rem;
  }
}

input.showForm {
  display: none;
}
input.showForm:checked + .form {
  width: 90%;
  height: 85%;
  box-shadow: 1px 1px 0px 0px #a6a6a6;
  border:1px;
  overflow: auto;
  transition: width 0.5s ease, height 0.5s ease 0.5s;
}

.showFormLabel {
  cursor: pointer;
  display: inline-block;
  padding-left: 1.5rem;
  padding-right: 1.5rem; 
  float:right;
  /* position: absolute; 
  bottom: 10%;
  right: 2%;
  width: 15%;  
  height: 3rem;
  background: inherit;
  color: #333;
  border: 1px solid #999;
  line-height: 3rem;*/
  font-size: 0.9rem;
  text-align: center;
  z-index: 1;
  transition: background-color 0.5s ease, border-color 0.5s ease;
}
.showFormLabel:hover, .showFormLabel:focus {
  /* background-color: #e5e5e5;*/
  text-decoration: underline;
  border-color: #333;
}
@media (max-width: 35em) {
  .showFormLabel {
    width: 90%;
    left: 5%;
  }
}