.error-text {
  color: red;
  position: absolute;
  top: 50%;
  font-size: 10px;
  transform: translateY(-50%);
  right: .5rem;
}
.error-text#error-rules {
  display: block;
  top: calc(100% + 4px);
  left: 20px;
}
.modal-box {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 11;
  opacity: 0;
  pointer-events: none;
  transition: 0.8s;
}
.modal-box.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-sizing: border-box;
  width: 100%;
  max-width: 300px;
  text-align: center;
}
#form.lock, #message.lock {
  pointer-events: none;
}
#form .form, #message .box {
  position: relative;
  overflow: hidden;
}
#form .form {
  border-radius: 1.7rem;
}
#message .box {
  border-radius: 10px;
}
.loader-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: 0.8s;
  background: rgba(255, 255, 255, 0.5);
}
.loader-box p {
  font-size: small !important;
  margin-top: 6px !important;
  color: #000 !important;
}
.loader {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #7589ba;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.lock .loader-box {
  opacity: 1;
  pointer-events: auto;
}