#mrg-p-hide{
    display: none;
}

#mrg-list-builder {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #333;
  filter: alpha(opacity=80);
  opacity: 0.8;
  display: none;
  z-index: 1500;
}

.mrg-popup-box {
    position: fixed;
    left: 15px;
    bottom: -700px;
    width: 90%;
    max-width: 380px;
    padding: 30px;
    z-index: 1600;
    background-color: #000;
    color: #fff;
    border: 1px solid black;
    opacity: 0;
    visibility: hidden;
    transition: all 1s;
}

.mrg-p-show{
    bottom: 13px;
    opacity: 1;
    visibility: visible;
}

#mrg-section-box {
    background-color: none;
    color: #fff;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 34px;
}

#mrg-section-box h1 {
  color: #000;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 20px;
}

#mrg-popup-box h1 {
  color: #fff;
  font-size: 20px;
  margin: 0;
}

fieldset p {
  margin-bottom: -23px;
}

#mrg-popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  cursor: pointer;
  width: 18px;
  z-index: 110;
}


#mrg-popup-box form {
  margin-bottom: 0px;
  margin-top: 10px;
}

#mrg-popup-box input,
#mrg-section-box input {
  padding: 10px;
  margin: 10px auto;
  border: 1px solid #333;
}
input#mrg-p-dob-day,
input#mrg-p-dob-year,
input#mrg-s-dob-day,
input#mrg-s-dob-year {
  height: 50px;
}
select#mrg-p-dob-month {
  height: 50px;
}
input#mrg-s-first-name,
input#mrg-s-last-name,
#mrg-p-email,
#mrg-p-location,
#mrg-s-email,
#mrg-s-location{
    width: 100%;
}

#mrg-s-first-name{
  margin-right: 20px !important;
} 

#mrg-s-first-name, #mrg-s-last-name{
  width: calc(50% - 12.5px);
}


#mrg-popup-box fieldset,
#mrg-section-box fieldset {
  padding: 0;
  border: none;
  margin-bottom: 0;
  font-size: 12px;
  text-align: left;
  margin-bottom: 20px;
}

#mrg-p-first-name {
  margin-right: 1%!important;
}


#mrg-p-first-name, #mrg-p-last-name{
  width: 100%;
  display: inline;
}

#mrg-popup-box .fancy-select,
#mrg-section-box .fancy-select {
  width: 29%;
  float: left;
  margin: 10px;
}

#mrg-popup-box .nice-select,
#mrg-section-box .nice-select {
  display: none;
}

#mrg-p-dob-month,
#mrg-s-dob-month {
  display: inline!important;
  height: 50px;
  margin: 10px;
}

#mrg-p-dob-day, #mrg-p-dob-month, #mrg-p-dob-year,
#mrg-s-dob-day, #mrg-s-dob-month, #mrg-s-dob-year {
  padding: 10px;
  border: none;
  border-bottom: 1px solid #fff;
  width: calc(33.3% - (20px / 3));
  float: left;
  background-color: transparent;
  border-radius: 0 !important;
  color: #fff;
}
#mrg-s-dob-month {
  border: none;
  border-bottom: 1px solid #fff;
  border-radius: 0;
}
#mrg-p-dob-year {

}
#mrg-email-error, #mrg-terms-error,
#mrg-day-error, #mrg-year-error,
#mrg-s-email-error, #mrg-s-terms-error,
#mrg-s-day-error, #mrg-s-year-error {
  color: #ff0000;
  display: none;
  clear: both;
}

#mrg-p-terms-label,
#mrg-s-terms-label {
  display: inline;
  padding-left: 5px;
}

#mrg-popup-box button,
#mrg-section-box button {
  margin: 5px auto;
  border: none;
  clear: both;
  background-color:#AB181C;
  color: #fff;
  text-transform: uppercase;
  transition: all 0.4s;
  font-size: 10px;
}
.submit-buttons {
  display: flex;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  margin-top: 15px;
}
.submit-buttons button {
  width: 42%;
}
.submit-buttons span{
  width: 16%;  
}


#mrg-s-subscribe-fb,
#mrg-p-subscribe-fb {
  background-color:#3C5A99!important;
}
#mrg-s-subscribe-fb:hover,
#mrg-p-subscribe-fb:hover {
  background-color: #3c5a99 !important;
  color: #fff !important;
}
#mrg-popup-box input,
#mrg-section-box input {
  padding: 3px;
  margin: 10px auto;
  border: none;
  border-bottom: 1px solid var(--light-colour);
  background-color: transparent;
}


@media only screen and (max-width: 600px) {
  #mrg-p-first-name {
    margin-right: auto!important;
  }
  #mrg-popup-box p {
    font-size: 90%;
  }

  #mrg-popup-box {
    padding: 19px;
  }
  #mrg-popup-box h1 {
    font-size: 20px;
  }
  #mrg-p-dob-month {
    display: inline!important;
    height: 35px;
    margin: 5px 10px;
    padding: 0;
  }
  #mrg-popup-box input {
    padding: 5px 10px;
    margin: 5px auto;
  }
}
.selected-flag {
  padding-left: 0 !important;
}
#contact input[type="checkbox"] {
  border: 1px solid #fff;
  display: inline;
  width: 20px;
}