
/* universal shadowbox form */
.universal-shadowbox {
  /* background-color: #009945e0; */
  /* background-color: #26292788; */
  background-color: #26292794;
  position: fixed;
  pointer-events: none;
  opacity: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 998;
  transition: ease all .4s;
}
.universal-shadowbox.active {
  opacity: 1;
  pointer-events: unset;
  transition-duration: .2s;
}

.universal-modal {
  display: none;
  background-color: #f4f6f8;
  color: #262927;
  width: 600px;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: ease all .4s;
  max-height: 80vh;
  overflow: auto;
  padding: 30px 50px;
}
.universal-modal[data-type=notification] {
  padding-top: 45px;
  /* width: 1000px; */
  align-items: stretch;
  padding-right: 21px;
  padding-left: 21px;
  padding-bottom: 21px;
  overflow: hidden;
}
.universal-modal.image-only {
  padding-top: 50px;
  overflow: auto;
}

.universal-modal[data-type=notification] img {
  width: 50%;
  /* height: 100%; */
  object-fit: cover;
  display: block;
}
.universal-modal[data-type=notification].image-only img {
  width: 100%;
  max-height: calc(80vh - 75px);
}

.universal-modal[data-type=notification] .right-side {
  overflow: auto;
  width: 50%;
  display: block;
  padding-left: 5%;
  max-height: calc(80vh - 75px);
}

.universal-modal[data-type=notification] .right-side h1,
.universal-modal[data-type=notification] .right-side h2,
.universal-modal[data-type=notification] .right-side h3,
.universal-modal[data-type=notification] .right-side h4,
.universal-modal[data-type=notification] .right-side h5 { margin-bottom: 8px; }

.universal-modal[data-type=notification] .right-side ol,
.universal-modal[data-type=notification] .right-side ul { list-style-position: inside; }

.universal-modal[data-type=notification] .text + .form {
  margin-top: 32px;
}

.special-ex.ex {
  height: 15px;
  width: 15px;
  top: 15px;
  right: 15px;
}
.universal-modal .special-ex.ex span {
  background-color: #262927;
  height: 2px;
}
.close-with-ex {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 5;
  text-align: right;
  font-size: 16px;
  text-transform: uppercase;
  padding-right: 7px;
}

.universal-modal .ex span { background-color: #009844; }

.universal-shadowbox.active .universal-modal {
  transition: all .4s ease;
  pointer-events: unset;
  opacity: 1;
  top: 50%;
}

/* more complicated because notifications */
.universal-shadowbox.active .universal-modal.opaque {
  display: flex;
  opacity: 0;
  pointer-events: none;
}
.universal-shadowbox.active .universal-modal.opaque.showing {
  opacity: 1;
  pointer-events: unset;
}
.universal-shadowbox.active .universal-modal.opaque.showing.shown,
.universal-shadowbox.active .universal-modal.showing.shown {
  opacity: 0;
  pointer-events: none;
}

.universal-shadowbox h2 {
  font-size: 50px;
  font-weight: 300;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.08;
  letter-spacing: -0.31px;
  color: #009844;
  margin-bottom: 38px;
}
.universal-shadowbox p {
  font-size: 19px;
  font-weight: normal;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.37;
  letter-spacing: -0.12px;
  color: #262927;
  margin-bottom: 28px;
}
.universal-shadowbox p:last-of-type {
  margin-bottom: unset;
}
.universal-shadowbox p a {
  color: #009844;
  text-decoration: none;
}
/* .universal-shadowbox p a:hover { text-decoration: underline; } */

.universal-shadowbox .agreement-box {
  margin: 20px 0;
  padding: 5px;
  max-height: 210px;
  overflow: auto;
  border: solid 1px grey;
}



/* form */
.universal-shadowbox .form {
  margin-bottom: 10px;
}
.hidden-field { display: none !important; }

.universal-shadowbox .flex-halves,
.universal-shadowbox .flex-choices {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 25px;
}
/* bc on this form, we have a margin-bottom on .half */
.universal-shadowbox .flex-halves {
  margin-bottom: unset !important;
}
.universal-shadowbox .flex-choices p {
  width: 100%;
}
.universal-shadowbox .half {
  width: 100%;
  margin-bottom: 25px;
}

.universal-shadowbox .choice-label,
.universal-shadowbox label {
  display: block;
  font-family: mr-eaves-sans, sans-serif;
  font-size: 15px;
  font-weight: bold;
  font-stretch: normal;
  font-style: normal;
  line-height: 0.92;
  letter-spacing: -0.08px;
  color: #262927;
}

.universal-shadowbox .label-bottom label {
  margin-bottom: 10px;
}

.universal-shadowbox select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  border: solid 1px #c6ccd6;
  font-size: 15px;
  line-height: 1;
  padding: 5px;
  background-image: url(/wp-content/themes/maronda/assets/images/arrow-black-down.svg);
  background-size: 14px auto;
  background-repeat: no-repeat;
  background-position: 98% center;
}

.universal-shadowbox .wpcf7-list-item {
  width: 100% !important;
  margin-right: unset;
  margin-left: unset !important;
}
.universal-shadowbox .wpcf7-list-item:nth-child(2n) { margin-right: unset; }
.universal-shadowbox .wpcf7-list-item input {
  border-bottom: unset;
  font-size: 15px;
  font-weight: normal;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.87;
  letter-spacing: -0.09px;
  color: #262927;
  margin-bottom: 15px;
}


.universal-shadowbox label span,
.universal-shadowbox label input,
.universal-shadowbox label textarea {
  width: 100%;
  display: block;
}
.universal-shadowbox input,
.universal-shadowbox textarea {
  background-color: unset !important;
  font-family: mr-eaves-sans, sans-serif;
  font-size: 19px;
  font-weight: normal;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.47;
  letter-spacing: -0.12px;
  color: #262927;
  width: 100%;
}
.universal-shadowbox input {
  border: unset;
  border-bottom: solid 1px #c6ccd6;
}
.universal-shadowbox input.wpcf7-not-valid {
  border-bottom-color: #d6440a;
}
.universal-shadowbox textarea {
  margin: 15px 0;
  border: solid 1px #262927;
  height: 110px;
  padding: 5px;
}
.universal-shadowbox textarea.wpcf7-not-valid {
  border-color: #d6440a;
}

.universal-shadowbox input:focus {
  border-bottom-color: #009844;
}
.universal-shadowbox textarea:focus {
  border-color: #009844;
  outline: none !important;
}
.universal-shadowbox input::placeholder,
.universal-shadowbox textarea::placeholder {
  opacity: 1;
  color: #c6ccd6;
}
.universal-shadowbox .wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
}
.universal-shadowbox .wpcf7-radio .wpcf7-list-item-label { 
  position: relative;
  display: block;
  padding-left: 18px;
  cursor: pointer;
}
.universal-shadowbox .wpcf7-radio input:checked + .wpcf7-list-item-label:after {
  position: absolute;
  left: 2px;
  width: 14px;
  height: 16px;
  content: '';
  top: 44%;
  transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  background-image: url(/wp-content/themes/maronda/assets/images/check-green.svg);
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
}
.universal-shadowbox .wpcf7-radio .wpcf7-list-item-label:before {
  position: absolute;
  left: 0;
  height: 12px;
  width: 12px;
  border: 1px solid #262927;
  border-radius: 1px;
  top: 50%;
  transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  content: '';
  display: block;
  -moz-transition: all .4s ease;
  -webkit-transition: all .4s ease;
  -o-transition: all .4s ease;
  transition: all .4s ease;
}
.universal-shadowbox .wpcf7-radio.wpcf7-not-valid input:checked + .wpcf7-list-item-label:after,
.universal-shadowbox .wpcf7-radio.wpcf7-not-valid .wpcf7-list-item-label:before {
  border-color: #d6440a;
}

.universal-shadowbox .button-outer {
  position: relative;
  border-radius: 12px;
  border: solid 1px #009844;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  max-width: 84px;
  margin-left: auto;
}

.universal-shadowbox .button-outer input[type=submit] {
  border: unset !important;
  cursor: pointer;
  font-size: 20px;
  font-weight: normal;
  font-stretch: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: -0.13px;
  text-align: center;
  color: #009844;
}
.universal-shadowbox .button-outer input[type=submit].hidden {
  opacity: 0;
  pointer-events: none;
}

.universal-shadowbox .button-outer.sent {
  border: none;
  max-width: 600px;
}

.universal-shadowbox .success-lingo {
  line-height: 1 !important;
  height: 100%;
  position: absolute;
  pointer-events: none;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  max-height: 0;
  opacity: 0;
  transition: ease all .5s;
  overflow: hidden;
}
.universal-shadowbox .sent .success-lingo {
  max-height: 40px;
  opacity: 1;
}


@media (max-width: 951px) {
  .universal-modal[data-type="notification"] {
    padding-right: 5%;
    padding-left: 5%;
    padding-bottom: 5%;
    overflow: auto;
  }
  .universal-modal[data-type="notification"] img,
  .universal-modal[data-type="notification"] .right-side {
    width: 100%;
    padding-left: unset;
  }
  .universal-modal[data-type="notification"]:not(.image-only) img { margin-bottom: 50px; }
  .universal-modal[data-type="notification"] .right-side { max-height: unset; }
}
@media (max-width: 800px) {
  .universal-shadowbox h2 {
    font-size: 30px;
    margin-bottom: 18px;
  }
  .universal-shadowbox ol,
  .universal-shadowbox ul,
  .universal-shadowbox p { font-size: 16px; }
}
 
@media (max-width: 600px) {
  .universal-modal {
    max-width: 95%;
    padding: 30px 2.5%;
  }
  .universal-modal[data-type="notification"] p,
  .universal-modal[data-type=notification] .right-side ol, 
  .universal-modal[data-type=notification] .right-side ul {
    margin-bottom: 10px;
  }
  .universal-modal[data-type="notification"]:not(.image-only) img {
    margin-bottom: 25px;
  }
  .universal-modal[data-type="notification"] {
    padding-right: 2.5%;
    padding-left: 2.5%;
    padding-bottom: 2.5%;
  }
}