/* FORM */

body.noScroll {
  overflow: hidden;
}

#form {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: none;
  justify-content: center;
  align-items: center;
  font:
    normal 15px/24px 'Gotham-Book',
    sans-serif;
  color: #1f4f5e;
}

#form.show {
  display: flex;
}

#form .overlay {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7) url(/public/calendars/images/loader.gif) center
    no-repeat;
  position: absolute;
  top: 0;
  left: 0;
}

#form .overlay.loader {
  z-index: 1;
}

#form .popup {
  width: 100%;
  max-width: 550px;
  background: #fff;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

#form .popup .head {
  position: relative;
}

#form .popup .head .title {
  width: 100%;
  padding: 20px 20px 10px;
  text-align: center;
  box-sizing: border-box;
  font-size: 24px;
  font-family: 'Gotham-Book', sans-serif;
  font-weight: bold;
  color: #1f4f5e;
}

#form .popup .head .close {
  width: 40px;
  height: 40px;
  padding-top: 1px;
  flex-shrink: 0;
  cursor: pointer;
  text-align: center;
  line-height: 40px;
  position: absolute;
  right: 0;
  top: 0;
}

#form .popup form {
  padding: 20px;
  max-width: 350px;
  margin: 0 auto;
}

#form .popup form label {
  margin-bottom: 20px;
  display: block;
}

#form .popup form label p {
  margin: 0;
  font-size: 13px;
}

#form .popup form label input {
  width: 100%;
  padding: 10px 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 3px;
  outline: none;
  box-sizing: border-box;
  display: block;
  line-height: 24px;
}

#form .popup form label input:focus {
  background: #f8f8f8;
}

#form .popup form label input.error {
  background: #fee;
  border-color: #f55;
  color: #f55;
  animation: shake 0.5s;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-10px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(10px);
  }
}

#form .popup form .submit {
  width: 100px;
  margin: 0 auto;
  background: #777;
  border-radius: 3px;
  cursor: pointer;
  color: #fff;
  line-height: 40px;
  text-align: center;
}

#form .popup form .errors {
  margin-bottom: 20px;
  color: #f55;
  text-align: center;
}

#form .popup form .errors:empty {
  display: none;
}

#form .popup .message {
  padding: 20px 20px 40px;
  display: none;
  text-align: center;
}

#form .message-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.message-icons img {
  width: 30px;
  height: 30px;
}

@media screen and (max-width: 450px) {
  #form .popup .head .title {
    font-size: 20px;
  }
}
