section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero-form {
  background: url(https://cdn.formstax.com/images/marketing/banner_image_bkgd.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #f7f9fa;
}

.hero-form h2 {
  color: #2a3690;
  font-size: 40px;
  line-height: 54px;
}

.hero-form p.desc {
  font-size: 22px;
  line-height: 28px;
  color: #446b7c;
  margin: 20px 0;
}

.resource-form {
  background-color: #2a3690;
  border-top: 16px solid #5fd7ad;
  padding: 25px 35px;
}

.resource-form h4 {
  color: #ffffff;
  text-align: center;
  font-size: 20px;
  line-height: 27px;
}

.resource-form p,
.resource-form a {
  color: #fff;
  text-align: center;
  font-size: 16px;
  line-height: 21px;
  margin: 10px 0 15px;
}

.resource-form a.text-link {
  display: block;
  color: #fff !important;
}

.resource-form a.text-link:hover {
  color: #fff;
  font-size: 16px;
  line-height: 21px;
  margin: 10px 0 15px;
}

.resource-form .btn {
  background-color: #fff;
  border-radius: 0;
  color: #2a3690;
  padding: 15px;
  width: 100%;
}

.resource-form .col-md-6:first-of-type {
  padding-right: 7.5px;
}

.resource-form .col-md-6:last-of-type {
  padding-left: 7.5px;
}

button.btn:hover {
  border-color: #fff;
  background: #446b7c;
  color: #fff !important;
}

.form-group {
  position: relative;
  z-index: 1;
}

input.form-control {
  font-family: "Nunito", sans-serif;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  font-stretch: normal;
  line-height: normal;
  letter-spacing: 0.5px;
  color: #fff;
  border: 1.5px solid #fff;
  border-radius: 0;
  height: 50px;
  padding: 14px;
  position: relative;
  z-index: 2;
  background: transparent;
}

label {
  position: absolute;
  z-index: 2;
  top: -8px;
  left: 30px;
  margin: 0;
  padding: 0 4px;
  font-family: "Nunito", sans-serif;
  font-size: 12px;
  font-weight: normal;
  font-style: normal;
  font-stretch: normal;
  line-height: normal;
  letter-spacing: 0.5px;
  color: #446b7c;
  opacity: 1;
  transform-origin: center left;
  transform: translate(0, 0) scale(1);
  transition: all 0.15s ease-in-out;
  background-color: #fff;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder,
input[type="email"]::placeholder {
  color: #fff;
  opacity: 1;
}

input[type="text"]::-ms-input-placeholder,
input[type="password"]::-ms-input-placeholder,
input[type="email"]::-ms-input-placeholder {
  color: #fff;
}

input.form-control:focus {
  border: 1.5px solid #3153bb;
  color: #fff;
  background-color: transparent;
  outline: 0;
  box-shadow: none;
  z-index: 1;
}

input.form-control:valid + label,
input.form-control:focus + label,
.has-error input.form-control + label {
  top: -8px;
  left: 30px;
  font-size: 12px;
  background: transparent;
  opacity: 1;
  z-index: 2;
}

input.form-control:focus + label {
  color: #fff;
}

input.form-control:valid.ng-dirty + label,
input.form-control.ng-valid.ng-dirty.ng-touched + label {
  color: #fff;
}

.form-group.has-error input.form-control + label {
  color: #d8000c;
}

.form-group.has-error input.form-control + label span {
  display: none;
}

.form-group.has-error input.form-control {
  border-color: #d8000c;
}

input.form-control:valid.ng-dirty + label:first-of-type span,
input.form-control:focus + label:first-of-type span {
  display: none;
}

.form-group.has-error .help-block {
  font-family: "Nunito", sans-serif;
  font-size: 14px;
  font-weight: normal;
  font-style: normal;
  font-stretch: normal;
  line-height: normal;
  letter-spacing: 0.5px;
  color: #d8000c;
  text-align: left;
  padding: 4px 16px;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  border: 1.5px solid #fff;
  box-shadow: 0 0 0 1000px #fff inset;
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  transition: background-color 5000s ease-in-out 0s;
  background-color: transparent;
}

input:-webkit-autofill:focus,
textarea:-webkit-autofill:focus,
select:-webkit-autofill:focus {
  border-color: #3153bb;
}

input.form-control.is-invalid,
.was-validated .form-control:invalid {
  border: 1.5px solid #d8000c;
  background-size: 1.8rem 1.8rem;
  background-repeat: no-repeat;
}

input.form-control.is-valid,
.was-validated .form-control:valid {
  border: 1.5px solid #bad7de !important;
  background-size: 1.8rem 1.8rem;
  background-repeat: no-repeat;
}

.form-group.has-error input.form-control.ng-untouched.ng-pristine.ng-invalid {
  border: 1.5px solid #d8000c;
  background-size: 1.8rem 1.8rem;
  background-position: center right calc(0.375em + 0.1875rem);
  background-repeat: no-repeat;
}

input.form-control.is-invalid:focus,
.was-validated .form-control:invalid:focus,
input.form-control.is-valid:focus,
.was-validated .form-control:valid:focus {
  box-shadow: none;
}

input.form-control.is-valid:focus,
.was-validated .form-control:valid:focus {
  border-color: #3153bb !important;
  color: #fff !important;
}

section.reap-rewards {
  text-align: center;
  padding-bottom: 2.5rem;
}

section.reap-rewards h2 {
  color: #2a3690;
  font-size: 24px;
  line-height: normal;
  margin: 15px 0 0 0;
}

section.reap-rewards h4 {
  color: #2a3690;
  font-size: 20px;
  line-height: normal;
  font-weight: 600;
  margin: 15px auto 10px;
}

section.reap-rewards p {
  color: #446b7c;
  font-size: 14px;
  line-height: normal;
}

section.reap-rewards .col-md-4 {
  margin-top: 35px;
  margin-bottom: 35px;
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: space-around;
}

section.gray-background {
  background-color: #f7f9fa;
}

section.category h2 {
  color: #2a3690;
  font-size: 29px;
  line-height: normal;
  font-weight: 600;
}

section.category p {
  color: #446b7c;
  font-size: 18px;
  line-height: 28px;
  margin: 15px 0 0 0;
}

section.category a.bold {
  color: #446b7c;
  text-decoration: underline;
}

section.category .screenshot {
  margin-top: 35px;
}

@media (max-width: 992px) {
  .col-lg-7.pr-lg-5 {
    margin-bottom: 35px;
  }
}

@media (max-width: 768px) {
  .row.what-forms .col-md-4 .form-group.last,
  .row.what-service .col-md-4 .form-group.last {
    margin-bottom: 0 !important;
  }

  section.category .screenshot {
    max-width: 300px;
    margin: 35px auto 0;
  }

  section.category .col-md-5 {
    order: 3;
  }

  .resource-form .col-md-6:first-of-type {
    padding-right: 15px;
  }

  .resource-form .col-md-6:last-of-type {
    padding-left: 15px;
  }
}
