.modal-wrap {
  display: none;
  z-index: 10;
}
.modal-toggle {
  list-style-type: none;
  margin: 0;
  padding: 0;
  text-align: center;
}
.modal-toggle li {
  -webkit-transition: 0.3s ease all;
  -moz-transition: 0.3s ease all;
  -ms-transition: 0.3s ease all;
  -o-transition: 0.3s ease all;
  transition: 0.3s ease all;
  font-size: 20px;
  display: block;
  width: 50%;
  float: left;
  text-align: center;
}
.modal-toggle li a {
  padding: 15px;
  display: block;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  border-top: none;
  border-bottom: 1px solid #e0e0e0;
  border-top: 1px solid #e0e0e0;
}
.modal-overlay {
  opacity: 0.5;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
}
.modal-content {
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
  -ms-transition: all 0.5s ease;
  -o-transition: all 0.5s ease;
  transition: all 0.5s ease;
  background: #fff;
  position: fixed;
  padding: 40px 0 0;
  width: 90%;
  z-index: 30;
  top: 20px;
  left: -50%;
  -webkit-transform: translateX(-50%);
  -moz-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  -o-transform: translateX(-50%);
  transform: translateX(-50%);
  overflow: auto;
  height: calc(100% - 40px);
  margin-bottom: 20px;
  -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
}
.modal-content.visible {
  left: 50%;
}
@media screen and (min-width: 900px) {
  .modal-content {
    height: auto;
    margin-bottom: 0;
    max-width: 900px;
    width: 100%;
    top: 50%;
    left: -50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
  }
  .form-group.half {
    width: calc(50% - 8px);
    float: left;
  }
  .form-group.half:nth-child(even) {
    margin-right: 16px;
  }
}
@media screen and (min-width: 900px) and (max-height: 768px) {
  .modal-content {
    max-height:90%;
  }
}
.close-modal {
  cursor: pointer;
  position: absolute;
  right: 15px;
  top: 10px;
}
.modal-inner {
  padding: 40px;
}
.forms .modal-form {
  display: none;
}
.forms .modal-form:first-child {
  display: block;
}
.forms .modal-form button i,
.forms .modal-form button span {
  display: inline-block;
  vertical-align: middle;
}
.forms .modal-form button span {
  margin-left: 10px;
}
.forms .modal-checkbox {
  margin-bottom: 15px;
}
.forms .modal-checkbox input,
.forms .modal-checkbox label {
  display: inline-block;
  vertical-align: middle;
  margin: 0;
  padding: 0;
}
.forms .modal-checkbox label {
  display: inline;
  margin-left: 5px;
}
.modal-logo {
  max-width: 180px;
  width: 100%;
  margin-bottom: 30px;
}
@media screen and (min-width: 1040px) {
  .modal-logo {
    max-width: 100%;
  }
}
.field_with_errors .form-control {
  border-color: #bd3d27;
  background-color: rgba(189, 61, 39, 0.15);
}

.form-group span.error {
  display: inline-block;
  background-color: #f44336;
  position: relative;
  padding: 4px 8px;
  width: 100%;
  margin: 4px 0px;
}
