.modalDialog {
  position: fixed;
  font-family: Lato;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0,0,0,0.8);
  z-index: 99999;
  opacity:0;
  -webkit-transition: opacity 400ms ease-in;
  -moz-transition: opacity 400ms ease-in;
  transition: opacity 400ms ease-in;
  pointer-events: none;
  display: table;
  vertical-align: middle;
  width: 100%;
  height: 100%;
}
.modalDialog:target {
  opacity:1;
  pointer-events: auto;
}
.modalDialog > div {
  max-width: 740px;
  position: relative;
  margin: 30px auto;
  border-radius: 10px;
  color: #897979;
  display: table-cell;
  vertical-align: middle;
  height: 100%;
  width: 100%;  
}
.modalDialog #main-wrapper {
  background-color: rgba(1,64,58,0.9);
  position: absolute;
  left: calc(50% - 390px);
  width: 780px;
  height: 380px;
  display: block;
  margin: 0 auto;
}
#openModal .close {
  background: #fff;
  color: #01403a;
  line-height: 28px;
  position: absolute;
  right: -28px;
  text-align: center;
  top: -28px;
  width: 24px;
  height: 24px;
  text-decoration: none;
  font-weight: bold;
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  border-radius: 12px;
  opacity: 0.8;
  padding: 0 !important;
  box-shadow: 0 0 0 #ccc !important;
  z-index: 1;
}
#openModal .close:hover {
  opacity: 0.8;
  color: #01403a;
}
.modalDialog h4 {
  color: #01403a !important;
  font-family: Lato;
  font-size: 18px;
  line-height: 18px;
  padding: 22px 0;
  text-align: left;
  background-color: #fff;
  border-bottom: 3px solid #999;
  text-align: center;
  margin: 20px auto;
  float: none;
  display: block;
  width: 100%;
  max-width: 740px;
  height: 65px;
  position: relative;
}
#form-wrapper {
  float: left;
  /*background-image: url('../images/enquiry-bg.png');*/
  background-color: #fff;
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 275px;
}
#enquiry-form {
  padding: 0 0 25px 65px;
  margin: 45px auto 0;
  float: none;
  display: block;
  width: 100%;
  max-width: 740px;
  position: relative;
}
#enquiry-form input {
  margin-bottom: 5px;
  background-color: #fff;
  border-width: 0 0 1px;
  border-color: #a7a7a7;
  border-style: solid;
  color: #666;
  padding: 0 5px;
  height: auto;
  border-radius: 0;
  box-shadow: none !important;
  display: inline-block;
  width: auto;
  font-family: Lato;
}
#enquiry-form input#name {
  width: calc(100% - 50px);
}
#enquiry-form input#email {
  width: calc(100% - 45px);
}
#enquiry-form input#tel {
  width: calc(100% - 27px);
}
#enquiry-form input#company {
  width: calc(100% - 75px);
}
#enquiry-form input#interest {
  width: calc(100% - 210px);
  max-width: 380px;
  border-width: 0;
  background-color: #eeeeee;
  margin-left: 20px;
  padding: 3px 0;
}
#enquiry-form #light-border input {
  border-color: #cfcfcf;
}
#enquiry-form .same-line {
  margin-top: 12px;
}
#enquiry-form label {
  font-family: lato;
  font-size: 16px;
  float: left;
  display: inline-block;
  margin-right: 2px;
  font-weight: normal;
}
.same-row {
  float: left;
  width: 50%;
}
.options {
  width: calc(100% - 110px);
  float: left;
}
  .options .option {
    width: 50%;
    float: left;
  }
  .options .option:first-child {
    padding-left: 110px;
  }
.same-line .option span {
    display: inline-block;
    vertical-align: top;
    font-family: Lato;
    font-size: 16px;
}
#enquiry-form input[type="checkbox"] {
    margin-right: 10px;
}
#enquiry-form button {
 position: relative;
  font-family: Lato;
  cursor: pointer;
  color: #fff;
  font-size: 16px;
  border: 0;
  background-color: #01403a;
  text-align: center;
  float: right;
  padding: 8px 25px;
  margin-top: 18px;
}
#enquiry-form button span::before {
  position: absolute;
  top: 100%;
  content: attr(data-hover);
  -webkit-transform: translate3d(0,0,0);
  -moz-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0);
  background-color: #ff0e4a;
  width: 100%;
  left: 0;
  padding: 5px 0;
  font-size: 18px;
}
#enquiry-form button:hover span {
  -webkit-transform: translateY(-100%);
  -moz-transform: translateY(-100%);
  transform: translateY(-100%);
}
  /*#enquiry-form button:hover {
    background-color: rgba(255,255,255,0.3);
  }*/
  #enquiry-form input:focus, #enquiry-form textarea:focus, #enquiry-form select:focus {
  /*  background-color: rgba(255,255,255,0.3);*/
    box-shadow: 0 !important;
  }
  input.parsley-error, textarea.parsley-error, select.parsley-error {
    background-color: #ff0033 !important;
    border: 0 !important;
    box-shadow: 0 !important;
    color: #fff !important;
  }
#enquiry-form textarea {
  resize: none;
}
input.parsley-error, textarea.parsley-error, select.parsley-error {
  background-color: #ff0033 !important;
  border: 0 !important;
  box-shadow: 0 !important;
  color: #fff !important;
}
::-webkit-input-placeholder {
    font-family: Lato !important;
    font-size: 14px;
    color: #999 !important;
    font-style: italic;
}
:-moz-placeholder {
    font-family: Lato !important;
    font-size: 14px;
    color: #999 !important;
    font-style: italic;
}
::-moz-placeholder {
    font-family: Lato !important;
    font-size: 14px;
    color: #999 !important;
    font-style: italic;
}
:-ms-input-placeholder {
    font-family: Lato !important;
    font-size: 14px;
    color: #999 !important;
    font-style: italic;
}
@media (max-width: 991px) { 
  #form-wrapper {
    top: 0;
  }
  #enquiry-form {
    margin-top: -20px;
    padding-bottom: 0;
  }
  #enquiry-form .same-line.first {
  margin-top: 32px;
}
}
@media (max-width: 767px) {
  .modalDialog #main-wrapper, #form-wrapper {
    display: none;
  }
  .modalDialog {
    overflow-y: scroll;
    overflow-x: hidden;
    display: block;
  }
  .modalDialog > div {
    display: block;
    float: left;
    border-radius: 0;
    border: 20px solid rgba(1,64,58,0.9);
    height: auto;
  } 
  #enquiry-form {
    background-color: #fff;
    float: left;
  }
  #about h4 {
     margin-top: 0;
  }
  .options .option:first-child {
    padding-left: 20px;
  }
}
@media (max-width: 699px) {
  .same-row {
    width: 100%;
  }
  .options .option {
    width: calc(100% - 20px);
    padding-left: 20px;
  }
  #enquiry-form {
    padding-left: 20px;
  }
  #enquiry-form input#interest {
    margin-left: 0;
    width: 100%;
  }
}
@media (max-width: 579px) {
  #enquiry-form input[type=text],  #enquiry-form input[type=tel] ,  #enquiry-form input[type=email]{
    width: 100% !important;
  }
  .options {
    width: 100%;
  }
  .options .option {
    padding-left: 0 !important;
    width: 100%;
  }
}
