/* Styling for TRW modal */
.trw-modal {
  display: none;
  position: fixed;
  z-index: 9998;
  background-color: rgba(0,0,0,0.95);
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
  transition: all 0.3s;
}

.trw-modal__wrapper {
  position: relative;
  max-width: 600px;
  height: 100%;
  display: table;
  margin: 0 auto;
}

.trw-modal__content {
  position: relative;
  display: table-cell;
  vertical-align: middle;
  padding: 100px 5px;
}

.trw-modal form {
  color: #777777;
  border-color: #3e3e3e;
}

.trw-modal__form .wpcf7-form {
  background-color: #fff;
  border-radius: 8px;
  position: relative;
  padding: 0 0 8px 0;
}

.trw-modal__form .wpcf7-form h3 {
  color: #FFF;
  font-size: 30px;
  line-height: 38px;
  text-align: center;
  display: block;
  margin: 0 0 25px;
  padding: 45px;
  border-radius: 8px 8px 0 0;
  background-color: #6c82d7;
}

.trw-modal__form .wpcf7-form p {
  color: #444 !important;
  font-size: 22px;
  line-height: 24px;
  text-align: left;
  padding-left: 45px;
  padding-right: 45px;
  font-family: Montserrat;
  margin-bottom: 10px;
}

.trw-modal__item p.form-intro {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

.trw-modal .trw-modal__item label {
  text-align: left;
  font-size: 15px;
}

.trw-modal .trw-modal__item span {
  color: #777777;
  border-color: #3e3e3e;
}

.trw-modal__item input {
  font-family: Montserrat;
  font-weight: 300;
  font-size: 18px !important;
  margin-bottom: 5px !important;
  border: #aaa solid 2px !important;
  border-radius: 3px !important;
  padding: 12px 14px;
  outline: none;
  color: inherit;
  margin: 0;
  width: 100%;
  background: transparent;
  min-height: 44px;
}

.trw-modal__item p.submit-form {
  text-align: center;
  margin-top: 10px;
}

.trw-modal .trw-modal__item p.submit-form input[type="submit"] {
  border: none !important;
  background-color: #f1b144;
  color: #ffffff;
  transition: color .5s ease, background-color .5s ease, border-color .5s ease;
  user-select: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  width: auto;
  box-sizing: border-box;
  word-wrap: break-word;
  outline: 0;
  text-align: center;
  cursor: pointer;
  z-index: 2;
  vertical-align: top;
  margin-top: 3px;
  display: inline-block;
  padding: 1.154em 1.538em;
}

.trw-modal .trw-modal__item p.submit-form input[type="submit"]:hover {
  background-color: #000000;
  color: #ffffff;
}

.trw-modal__form input.wpcf7-not-valid {
  border-color: #fd5852 !important;
}

.trw-modal__form span.wpcf7-not-valid-tip {
  color: #fd5852 !important;
  font-size: 14px !important;
  letter-spacing: 0px;
  text-align: center;
}

.trw-modal__form .wpcf7-validation-errors {
  background-color: #fd5852;
  text-transform: none;
  font-size: 14px !important;
  letter-spacing: 0px;
  margin: 25px 45px 35px 45px;
  border-radius: 3px;
}

/* Modal Close Button */
.trw-modal__close {
  width: 30px;
  height: 30px;
  display: inline-block;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  cursor: pointer;
}

.trw-modal__close:before, .trw-modal__close:after {
  background-color: #FFF;
  content: '';
  width: 40px;
  height: 2px;
  position: absolute;
  top: 50%;
  left: 0;
  margin-left: -5px;
  transition: all 0.3s;
  transform-origin: center center;
}

.trw-modal__close:before {
  transform: translateX(0px) translateY(0px) rotate(135deg);
}

.trw-modal__close:after {
  transform: translateX(0px) translateY(0px) rotate(45deg);
}

.trw-modal__close:hover:before {
  transform: translateX(0px) translateY(0px) rotate(0deg);
}

.trw-modal__close:hover:after {
  transform: translateX(0px) translateY(0px) rotate(0deg);
}

.trw-modal__close span {
  width: 0;
  height: 2px;
  position: absolute;
  top: 50%;
  left: 0;
  -webkit-transition: width .1s;
  transition: width .1s;
  background-color: #212121;
}

@media only screen and (max-width: 375px) {
  .trw-modal__content {
    padding: 100px 0px;
  }

  .trw-modal__form .wpcf7-form h3 {
    color: #FFF;
    font-size: 24px;
    line-height: 38px;
    text-align: left;
    display: block;
    margin: 0 0 25px;
    padding: 45px;
  }
}

@media only screen and (max-width: 1024px) {
  .trw-modal__form .wpcf7-form h3 {
    line-height: 34px;
    text-align: left;
    padding: 45px 5px 45px 140px;
    background-repeat: no-repeat;
    background-position: 23px center;
    background-size: auto 200px;
    background-image: url(https://production.pro/wp-content/uploads/2018/05/HelloDolly-2.png);
  }
}

@media only screen and (min-width: 1025px) {
  .trw-modal__content {
    padding: 100px 15px;
  }

  .trw-modal__form .wpcf7-form::before {
    content: '';
    position: absolute;
    left: -200px;
    top: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto 420px;
    height: 100%;
    width: 200px;
    background-image: url(https://production.pro/wp-content/uploads/2018/05/HelloDolly-2.png);
  }
}