#message { position: absolute !important; left: -748% !important; max-height: 0px !important; overflow: hidden !important; } /* set this in files: php+js+css */

:root {
  --gap_wid: 3em;
}

input::placeholder {
  color: #fff;
  opacity: 1;
}

#accept_rules_form {
  width: min(700px , 100%);
  position:relative;
}
#accept_rules_form button{
  border: none;
  background: transparent;
  color: #fff;
  padding: .5em 1em;
  font-size: 1.5em;
  font-weight: 600;
  margin-right: -1em;
  border-radius: 4px;
}
#accept_rules_form button:hover {
  color: #000;
  background: #fff;  
}


#accept_rules_form input[type="text"],
#accept_rules_form input[type="tel"],
#accept_rules_form input[type="email"] {
  border: 1px solid #fff;
  border-width: 0 0 2px;
  margin: 1em 0;
  background: transparent !important;
  background-color: transparent !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  display: block;
  width: 100%;
  padding: .5em .4em;
}
#accept_rules_form .line2 {
  display: flex;
}
#accept_rules_form .line2 > * {
  width: 100% !important;
  margin-right: var(--gap_wid) !important;
}
@media (min-width: 992px) {
  #accept_rules_form .line2 > * {
    width: calc(50% - 0.5 * var(--gap_wid)) !important;
    margin-right: var(--gap_wid) !important;
  }
}
#accept_rules_form .line2 > *:last-child {
  margin-right: 0 !important;
}
#accept_rules_form .checkbox-container {
  margin-top: 0.5em;
}

#accept_rules_form input[type="checkbox"]  {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

#accept_rules_form input:-webkit-autofill,
#accept_rules_form input:-webkit-autofill:hover,
#accept_rules_form input:-webkit-autofill:focus,
#accept_rules_form input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0px 1000px transparent inset !important; /* override Chrome bg */
  -webkit-text-fill-color: #fff !important; /* keep text white */
  background: transparent !important;
  background-color: transparent !important;
  caret-color: #fff; /* cursor visible */
  transition: background-color 9999s ease-in-out 0s; /* prevents flashing */
}

#accept_rules_form label {
  position: relative;
  padding-left: 2.5em;
  cursor: pointer;
  user-select: none;
}

#accept_rules_form label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5em;
  height: 1.5em;
  border: 1px solid #fff;
  background: transparent;
  box-sizing: border-box;
}

#accept_rules_form input[type="checkbox"]:checked + label::after {
  content: "✓";
  position: absolute;
  left: 0.35em;
  top: -0.1em;
  font-size: 18px;
  color: #fff;
}

.accept_rules_form_popup {
  position: fixed;
  top:0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #000000aa;
}

.accept_rules_form_popup>* {
    position: fixed;
    top: 50%;
    left: 50%;
    background-color: #fff;
    color: #000;
    padding: 3em;
    transform: translate(-50%, -50%);
    border-radius: 5px;
}

.accept_rules_form_popup>*>* {
  position: relative;
}

.accept_rules_form_popup_close {
  position: absolute;
  top: 0.5em;
  right: 0.5em;
  background-color: #f00;
  color: #fff;
  width: 2em;
  height: 2em;
  border-radius: 5px;
}
.accept_rules_form_popup_close i {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.accept_rules_form_popup_close i:before,
.accept_rules_form_popup_close i:after {
  content: "";
  display: block;
  position: absolute;
  background-color: #fff;
  border-radius: 2px;
  width: 1.5em;
  height: 0.3em;
  top: 50%;
  left: 50%;
}
.accept_rules_form_popup_close i:before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.accept_rules_form_popup_close i:after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
#accept_rules_form_email_token_input {
  display: block;
  margin: 1em 0;
  background-color: #1e1e1e !important;
  border-radius: 5px;
  padding: 0.5em 0.7em;
  width: 100%;
  color: #fff;
}
#accept_rules_form_email_token_submit:hover {
  opacity: 0.8;
}
#accept_rules_form_email_token_submit {
  cursor: pointer;
  background-color: #006110;
  color: #fff;
  border-radius: 5px;
  padding: 0.5em 0.7em;
  width: 100%;
  text-align: center;
}

#accept_rules_form:not(.accept_rules_form_loading) .accept_rules_form_loading {
  display: none;
}

#accept_rules_form.accept_rules_form_loading .accept_rules_form_loading {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1E1E1E;
  font-size: 2em;
}