form {
  background-color: #fff;
  padding-bottom: 50px;
  box-shadow: inset 0 -1px 0px 1px rgba(0,0,0,0.15);
}
form * {
  -webkit-transition: all ease-in-out 0.35s;
  -o-transition: all ease-in-out 0.35s;
  transition: all ease-in-out 0.35s;
}
form fieldset {
  border-radius: 4px;
  background-color: #f9f9f9;
  border: 1px solid #dbdbdb;
  margin-bottom: 30px;
  padding-top: 40px;
  padding-bottom: 3em;
  box-shadow: inset 1px 1px 6px 0 #fff;
  background-image: url("../images/article-bg.svg");
  -webkit-background-size: cover;
  background-size: cover;
  background-position: left 200%;
  -webkit-transition: all ease 0.5s;
  -o-transition: all ease 0.5s;
  transition: all ease 0.5s;
}
form legend {
  font-size: 22px;
  display: inline-block;
  position: relative;
  content: " ";
  text-transform: uppercase;
  line-height: 1;
  margin: -30px 0 40px 40px;
  color: #35a7d1;
  font-weight: 700;
  text-align: center;
}
form#yc-form .btn,
form#yc-form .btn:focus {
  border: none;
  outline-color: none;
}
form  input:not([type="radio"]):not([type="submit"]):not([type="reset"]):not([type="number"]), .g-recaptcha,
form  textarea {
  resize: none;
  width: 65%;
  display: inline-block;
}
form label:not(.select-wrap) {
  font-size: 18px;
  color: #666;
  display: block;
  float: left;
  width: 100%;
  margin-bottom: 5px;

}
form label[data-require] span::after {
  content: " * ";
  display: inline-block;
  font-size: 18px;
  line-height: 18x;
  font-weight: bold;
  color: crimson;
  margin-left: 3px;
  -webkit-transform: scale(1.4) translateY(5px);
  -ms-transform: scale(1.4) translateY(5px);
  -o-transform: scale(1.4) translateY(5px);
  transform: scale(1.4) translateY(5px);
}
form label span {
  display: inline-block;
  width: 35%;
  float: left;
  text-align: right;
  padding-right: 1.2em;
  line-height: 1.45;
  font-size: 18px;
  font-weight: lighter;
}
form#yc-form label span:not(.sex) {
  display: inline-block;
  float: left;
  width: 30%;

  min-width: 120px;
  text-align: right;
  margin-right: 10px;
  text-transform: uppercase;
  margin-top: 8px;
  padding: 4px 4px;
  line-height: 1.4;
}
form#yc-form .sex {
  display: inline-block;
  text-align: right;
  width: 80px;
  margin-right: 5px;
  vertical-align: middle;
  line-height: 1.6;
  text-transform: uppercase;
}
form#yc-form .sex:first-of-type {
  margin-left: 12%;
  line-height: 1.6;
}
form#yc-form input[type="radio"] {
  width: 25px;
  height: 25px;
  display: inline-block;
  line-height: 2;
  vertical-align: middle;
}
form input[type="text"],
form input[type="email"],
form input[type="tel"],
form textarea {
  padding: 4px 6px;
  line-height: 1.6;
  font-size: 20px;
  color: #888;
  background-color: #fff;
  border: none;
  outline: none;
  box-shadow: inset 0 1px 1px 0px rgba(0,0,0,0.2), inset 0 -1px 1px 0px rgba(0,0,0,0.15), 0 1px 1px 0 rgba(255,255,255,0.35);
}
input[type="number"] {
  padding: 8px 6px;
  line-height: 1.6;
  font-size: 20px;
  width: 80px;
  height: 30px;
  display: inline-block;
  text-align: center;
}
form#yc-form input:not([type="submit"]):not([type="reset"]):focus,
form#yc-form textarea:focus {
  color: #000;
  letter-spacing: 1px;
  background-color: #e6f9fe;
  box-shadow: inset 0 -1px 2px 1px rgba(255,255,255,0.8), 0px 1px 1px 0 rgba(0,0,0,0.2), 1px -1px 1px 0 rgba(0,0,0,0.1);
}

.contact-form span {
  display: inline-block;
  width: 90%!important;
  text-align: left;
  font-size: 16px;
  font-weight: lighter;
  text-transform: uppercase;
  line-height: 30px;
  float: none;
  padding-left: 12px;
}
.contact-form input:not([type="submit"]){
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
  -o-appearance: none;
  appearance: none;
  background: none;
  outline: none;
  box-shadow: none;
  margin: 3px 0;
  width: 90%!important;
  line-height: 40px;
  font-size: 18px;
  border: 1px solid #ccc;
  border-radius: 30px;
  padding: 3px 10px;
}
.contact-form label {

  width: 90%!important;
  float: none;
  margin: 5px 5%;
  padding: 0;

}

::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  color: lightblue;
}
::-moz-placeholder { /* Firefox 19+ */
  color: lightblue;
}
:-ms-input-placeholder { /* IE 10+ */
  color: lightblue;
}
:-moz-placeholder { /* Firefox 18- */
  color: lightblue;
}

@media screen and (min-width: 300px) and (max-width: 800px) {
  form#yc-form div.gw-12 {
    padding-top: 6px;
    padding-bottom: 10px;
    margin-bottom: 8px;
    display: block;
    float: left;
    width: 100%;
  }
  form#yc-form div.gw-12 label span:not(.sex) {
    width: 90%;
    float: left;
    margin: 0 5%;
    text-align: left;
  }
  form#yc-form div.gw-12 input:not([type="radio"]):not([type="submit"]):not([type="reset"]),
  form#yc-form div.gw-12 textarea {
    resize: none;
    width: 90%;
    margin: 0 5%;
  }
  form#yc-form legend {
    margin-left: 10px;
  }
  form label span {
    display: inline-block;
    width: 94%;
    float: left;
    margin: 0 3%;
    text-align: left;
    padding-right: 1.2em;
    line-height: 1.45;
    font-size: 18px;
    font-weight: lighter;
  }
  form  input:not([type="radio"]):not([type="submit"]):not([type="reset"]):not([type="number"]), .g-recaptcha,
  form  textarea {
    resize: none;
    width: 94%;
    margin: 3px 3%;
    display: inline-block;
  }
  .select-wrap select {
    width: 90%;
    max-width: 260px;
  }
  .contact-form span {
    display: block;
    float: none;
    text-align: left;
    padding-right: 1.2em;
    line-height: 1.45;
    font-size: 18px;
    font-weight: lighter;
    text-transform: uppercase;
    line-height: 50px;
    width: 100%;
  }
  .contact-form input:not([type="submit"]){
    background: none;
    border: none;
    outline: none;
    box-shadow: none;
    margin: 5px 0 10px 0;
    line-height: 40px;
    width: 100%;
    background-color: #f2f2f2;
  }
  .contact-form label {
    background-color: #fff;
    border-radius: 16px;
    width: 100%!important;
    margin: 5px 0%;
    border: 1px solid #ccc;
    padding: 0 6px 8px 6px;
    text-align: center;
  }
}
