:root {
  --popup-width: 704px;
  --popup-height: 459px;
  --close-x: 32px;
  --close-y: 34px;
  --text-dist: 38px;
  --submit-width: 206px;
  --submit-height: 40px;
  --submit-radius: 20px;
  --submit-fontsize: 1.125em;
  --submit-dist: 6.5px;
  --thanks-button-dist: 35px;
}

#popup-julyeg {
  --blue: #2a3b74;
}

#popup-julyeg .popup-content {
  width: var(--popup-width);
  height: 459px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-image: url(../images/eg/popup-back.jpg);
  background-image: -webkit-image-set(url("../images/eg/popup-back.jpg") 1x,
      url("../images/eg/popup-back@2x.jpg") 2x);
  padding: 15px;
}

#popup-julyeg .popup-default,
#popup-julyeg .popup-start,
#popup-julyeg .popup-thanks {
  width: 100%;
  height: 100%;
  border: 1px solid #9c0e13;
}

#popup-julyeg .popup-default {
  display: none;
}

#popup-julyeg .popup-close {
  width: auto;
  height: auto;
  top: 0;
  right: 0;
  padding: var(--close-y) var(--close-x);
}

#popup-julyeg form {
  margin-top: 20px;
}

#popup-julyeg .button {
  width: 11em;
  height: 2.2em;
  border-radius: 1.1em;
  font-size: 1.2em;
  margin-top: 10px;
  background-color: #9c0e13;
  margin-bottom: 0em;
  color: white !important;
  padding: 0;
  line-height: 1px;
}

#popup-julyeg .popup-start .button {
  width: 7em;
}

#popup-julyeg .popup-thanks .button {
  margin-top: 1.5em;
}

#popup-julyeg .reject:before,
#popup-julyeg .reject:after {
  content: none !important;
}

#popup-julyeg p {
  padding: 0;
  margin: 0;
  line-height: 1;
}

#popup-julyeg .main-text1 {
  font-size: 59px;
  letter-spacing: -1px;
  color: #b71419;
  font-weight: 800;
  text-align: center;
  -webkit-text-stroke: 2px #022048;
  margin-bottom: -6px;
}

#popup-julyeg .main-text1 span {
  font-size: 78px;
}

#popup-julyeg .main-text2 {
  font-size: 57px;
  letter-spacing: 0px;
  text-transform: uppercase;
  color: #022048;
  font-weight: 800;
  text-align: center;
}

#popup-julyeg .popup-start .button {
  width: 15em;
  background-color: #022048;
  margin-top: 25px;
}

#popup-julyeg .reject {
  font-size: 17px;
  line-height: 25px;
  text-decoration: underline;
  color: #000000;
  font-weight: 500;
  text-align: center;
  padding-top: 25px;
  max-width: 301px;
}

#popup-julyeg .form-text {
  font-size: 43px;
  letter-spacing: 0px;
  line-height: 17px;
  color: #022048;
  font-weight: 800;
  text-align: center;
}

#popup-julyeg .thanks-text1 {
  font-size: 38px;
  letter-spacing: 0px;
  line-height: 41px;
  color: #022048;
  font-weight: 800;
  text-align: center;
}

#popup-julyeg .thanks-text2 {
  font-size: 20px;
  line-height: 25px;
  color: #363636;
  font-weight: 500;
  text-align: center;
  margin: 10px auto;
  max-width: 500px;
}

#popup-julyeg .thanks-text3 {
  color: #9c0e13;
  font-size: 43px;
  text-transform: uppercase;
}

#popup-julyeg .popup-thanks .main {
  margin-top: -24px;
}

#popup-julyeg .buttons {
  gap: 25px;
}

/* Safari Only */
@supports (background: -webkit-named-image(i)) {
  #popup-julyeg .button {
    padding-top: 4px;
  }
}

@media screen and (min-width: 568px) {}

@media screen and (max-width: 567px) {
  :root {
    --popup-width: 100%;
    --popup-height: 100%;
    --close-x: 16px;
    --close-y: 20px;
    --text-dist: 21px;
    --submit-width: 150px;
    --submit-height: 33px;
    --submit-radius: 17px;
    --submit-fontsize: 0.8125em;
    --submit-dist: 10px;
    --thanks-button-dist: 24px;
  }

  #popup-julyeg .popup-content {
    width: 100%;
    height: 100%;
  }

  #popup-julyeg .form-text,
  #popup-julyeg .main,
  #popup-julyeg .thanks {
    max-width: 100%;
  }

  #popup-julyeg .main-text1 {
    font-size: 47px;
    margin-bottom: 0px;
  }

  #popup-julyeg .main-text1 span {
    font-size: 62px;
  }

  #popup-julyeg .main-text2 {
    font-size: 43px;
  }

  #popup-julyeg .reject {
    max-width: 288px;
  }

  #popup-julyeg .buttons {
    gap: 9px;
  }

  #popup-julyeg .popup-thanks .button {
    font-size: 16px;
    width: 10em;
  }

  #popup-julyeg .form-text {
    font-size: 29px;
  }

  #popup-julyeg .popup-close {
    padding: 29px;
  }

  #popup-julyeg .thanks-text2 {
    max-width: 329px;
  }

  #popup-julyeg .thanks-text1 {
    font-size: 34px;
    line-height: 35px;
  }

  /* Safari Only */
  @supports (background: -webkit-named-image(i)) {
    #popup-julyeg .button {
      padding-top: 2px;
    }
  }
}