@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}
.popupform {  
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background-color: rgba(0, 42, 127, 0.8);
  display: none;
  animation-name: fadeIn;
  animation-duration: 0.5s;
  animation-fill-mode: both;
}
.popupform.show {
  display: block !important;
}
.popupform__relative {
  position: relative;
  width: 100%;
  height: 100%;
}
.popupform__wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  border-radius: 3px;
  width: 100%;
  max-height: 90%;
  max-width: 550px;
  overflow: hidden;
  padding-bottom: 55px;
}
.popupform__form {
  padding: 0 75px;
  overflow-y: auto;
  max-height: 60vh;
}
.popupform__links {
  position: relative;
}
.popupform__links a > img {
  max-width: 30px;
  opacity: 0.3;
  filter: grayscale(1);
  transition: all ease 0.5s;
}
.popupform__links a:hover > img {
  opacity: 1;
  filter: unset;  
}
.popupform__links > a {
  position: absolute;
  top: 25px;
  right: 26px;
}
.popupform__close {
  cursor: pointer;
  position: absolute;
  top: 25px;
  left: 30px;
}
.popupform__wrapper > h2 {
  text-align: center;
  color: #3176B5;
  font-size: 24px;
  line-height: 1.33;
  letter-spacing: 1.2px;
  font-weight: 700;
  max-width: 440px;
  margin: 64px auto 48px;
  padding: 0 15px;
}
.popupform form {
  max-width: 750px;
  margin: 0 auto;
}
.popupform .hs-form-field {
  margin: 0 0 30px;
  padding: 0 !important;
}
.popupform span.hs-form-required {
  margin-left: 5px;
}
body .popupform .hs-form-field > label,
body .popupform .hs-fieldtype-booleancheckbox li > label > span {
  color: #000 !important;
  font-size: 16px !important;
  line-height: 1.38 !important;
  font-weight: 400 !important;
  font-family: 'Open Sans', sans-serif;
  margin: 0 0 8px;
  display: inline-block;
}
.popupform .form-columns-2 .hs-form-field:first-of-type {  
  padding-right: 15px !important;
}
.popupform .form-columns-2 .hs-form-field:last-of-type {
  padding-left: 15px !important;
}
.popupform input[type="text"],
.popupform input[type="password"], 
.popupform input[type="datetime"], 
.popupform input[type="datetime-local"], 
.popupform input[type="date"], 
.popupform input[type="month"], 
.popupform input[type="time"], 
.popupform input[type="week"], 
.popupform input[type="number"], 
.popupform input[type="email"], 
.popupform input[type="url"], 
.popupform input[type="search"], 
.popupform input[type="tel"], 
.popupform input[type="color"],
.popupform input[type="file"],
.popupform textarea,
.popupform select {
  width: 100% !important;
  font-family: 'Open Sans', sans-serif;
  font-size: 18px;
  border: 0;
  border-bottom: 1px solid #DDE0E5;
  border-radius: 0;
  color: #000000;
  height: 30px !important;
  line-height: 1;
  outline: 0;
  padding: 5px 0;
  font-weight: 300;
  outline: none !important;
}
.popupform input[type="text"]:focus,
.popupform input[type="password"]:focus, 
.popupform input[type="datetime"]:focus, 
.popupform input[type="datetime-local"]:focus, 
.popupform input[type="date"]:focus, 
.popupform input[type="month"]:focus, 
.popupform input[type="time"]:focus, 
.popupform input[type="week"]:focus, 
.popupform input[type="number"]:focus, 
.popupform input[type="email"]:focus, 
.popupform input[type="url"]:focus, 
.popupform input[type="search"]:focus, 
.popupform input[type="tel"]:focus, 
.popupform input[type="color"]:focus,
.popupform input[type="file"]:focus,
.popupform textarea:focus,
.popupform select:focus {
  border: 0;
  border-bottom: 1px solid #3176B5;
}
.popupform select {
  background-image: url(https://www.icorps.com/hubfs/dropdown.svg);
  background-size: 15px;
  background-repeat: no-repeat;
  background-position: calc(100% - 5px) center;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.popupform option:not(:first-of-type) {
  color: #333333;
}
.popupform .hs-fieldtype-select {
  position: relative; 
}
.popupform .hs-fieldtype-booleancheckbox {
  margin-top: 6px;
}
.popupform .hs-form-booleancheckbox label {
  position: relative;
}
.popupform .hs-fieldtype-booleancheckbox li > label > span {
  margin: 0; 
}
.popupform .hs-form-checkbox label input[type="checkbox"], 
.popupform .hs-form-booleancheckbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
}
.popupform .hs-form-checkbox label input[type="checkbox"] + span::after,
.popupform .hs-form-booleancheckbox input[type="checkbox"] + span::after {
  content: "\f00c";
  color: #fff;
  top: 3px;
  left: 3px;
  font-size: 14px;
  position: absolute;
  opacity: 0;
  font-family: fontawesome;
  -webkit-transition: all 0s ease;
  -o-transition: all 0s ease;
  transition: all 0s ease;
}
.popupform .hs-form-checkbox label input[type="checkbox"] + span::before, 
.popupform .hs-form-booleancheckbox input[type="checkbox"] + span::before {
  content: '';
  border: 1px solid #CCCCCC;
  border-radius: 6px;
  display: inline-block;
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  -webkit-box-shadow: 0 10px 20px 0 rgba(0,0,0,0.15);
  box-shadow: 0 10px 20px 0 rgba(0,0,0,0.15);
  height: 20px;
  width: 20px;
  position: absolute;
  left: 0;
  top: 5px;
}
.popupform .hs-form-checkbox label input[type="checkbox"] + span,
.popupform .hs-form-booleancheckbox input[type="checkbox"] + span {
  display: inline-block;
  padding-left: 35px;
  position: relative;
}
.popupform .hs-form-booleancheckbox input[type="checkbox"]:checked + span::before {
  background-color: #40A3C7;
}
.popupform .hs-form-booleancheckbox input[type="checkbox"]:checked + span::after {
  opacity: 1;
}
.popupform .hs-form-checkbox + .hs-form-checkbox {
  padding-top: 0;
}
.popupform .actions {
  text-align: center;
}
.popupform .actions input[type="submit"].hs-button.primary {
  color: #fff !important;
  font-size: 16px !important;
  line-height: 1.43 !important;
  font-family: 'SegoeUI',sans-serif;
  font-weight: 600 !important;
  border-radius: 6px !important;
  height: auto !important;
  min-width: 300px;
  padding: 17px !important;
  margin-top: 20px;
  background-image: linear-gradient(270deg, #4ECDD8 0%, #3D9AC3 54%, #3176B5 91%);
  box-shadow: 0 2px 4px 0 #DDE0E5;
}
.popupform .hs-input.error {
  border: 1px solid #002A7F !important;
  border-radius: 3px !important;
}
.popupform ul.hs-error-msgs.inputs-list label {
  color: #002A7F;
  font-size: 14px;
  line-height: 1.43;
  font-weight: 600;
}
.popup-btn {
  cursor: pointer;
  border: 0px solid rgb(0,28,84); font-weight:normal; 
  border-radius: 0;
  color: #3176b5 !important;
  font-size: 24px; 
  font-family: sans-serif; 
  line-height: 1.5em;
  display: inline-block;
  font-weight: normal;
  text-align: center;
  text-decoration: none;
  background: #fff;
  border-radius: 0;
  border: 0px;
  text-shadow: none;
  padding: 6px 20px;
  transition: all .4s ease;
}

@media (max-width: 1199px) {
  .popupform__wrapper > h2 {
    margin: 60px auto 20px;
  }
}
@media (max-width: 767px) {
  .popupform__wrapper {
    max-width: 90%;
    max-height: 80%;
    overflow-y: scroll;
  }
  .popupform__wrapper > h2 {
    padding: 0;
  }
  .popupform__form {
    padding: 0 20px;
  }
}
@media (max-width: 480px) {
  .popupform .hs-form-field {
    margin: 0 0 26px;
  }
  .popupform .form-columns-2 .hs-form-field:first-of-type {  
    padding-right: 0 !important;
  }
  .popupform .form-columns-2 .hs-form-field:last-of-type {
    padding-left: 0 !important;
  }
  .popupform .actions input[type="submit"].hs-button.primary {
    min-width: auto;
    width: 100% !important;
    margin-top: 4px;
  }
}
