:root {
  --popup-width: 675px;
  --popup-height: 439px;
  --close-x: 14px;
  --close-y: 16px;
  --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-sepeg {
  --blue: #2a3b74;
}

#popup-sepeg .popup-content {
  width: var(--popup-width);
  height: var(--popup-height);
  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.webp") 1x, url("../images/eg/popup-back@2x.webp") 2x);
  padding: 15px;
}

#popup-sepeg .popup-default,
#popup-sepeg .popup-start,
#popup-sepeg .popup-thanks {
  width: 100%;
  height: 100%;
}

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

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

#popup-sepeg form {
  margin-top: 10px;
}

#popup-sepeg .button {
  width: 10.02em;
  height: 2.25em;
  border-radius: 20px;
  font-size: 1.125em;
  margin-top: 4px;
  background-color: white;
  margin-bottom: 0em;
  color: black;
  padding: 0;
  line-height: 1px;
  border: none;
}

#popup-sepeg .popup-default .button {
  font-size: 1em;
  height: 2.53125em;
  color: white;
  background-color: #ed1c24;
}

#popup-sepeg .popup-thanks .button {
  font-size: 1em;
  height: 2.53125em;
  width: 11.15625em;
  color: white;
  background-color: #ed1c24;
}

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

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

#popup-sepeg .reject {
  font-size: 17px;
  line-height: 25px;
  text-decoration: underline;
  text-align: center;
  padding-top: 20px;
  padding-bottom: 0;
  max-width: 301px;
  cursor: pointer;
  border: none;
}

#popup-sepeg .thanks-text {
  font-size: 22.5px;
  line-height: 27.5px;
  text-align: center;
  margin: 10px auto;
  max-width: 500px;
}

#popup-sepeg .main {
  width: 497px;
  margin-top: -60px;
}

#popup-sepeg .thanks {
  margin-top: -111px;
}

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

@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-sepeg .popup-content {
    width: 100%;
    height: 100%;
  }

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

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

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

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

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

  #popup-sepeg .thanks-text {
    max-width: 329px;
  }

  #popup-sepeg .main {
    width: 95%;
  }

  #popup-sepeg .thanks {
    width: 95%;
  }

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