.modal-container {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  overflow: scroll;
  z-index: 999;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
  opacity: 0;
  padding: 0 10px;
}

.modal {
  position: relative;
  width: auto;
  max-width: var(--modal-max-width);
  height: auto;
  padding: var(--modal-vert-padding) var(--modal-horiz-padding);
  background-color: var(--modal-background-color);
  color: var(--modal-text-color);
  border-radius: var(--border-radius-large);
  margin: 50px auto;
}
.modal .modal-close {
  position: absolute;
  top: var(--modal-close-top);
  right: var(--modal-close-right);
  width: var(--modal-close-size);
  height: var(--modal-close-size);
  cursor: pointer;
}
.modal .modal-close span {
  display: inline-block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--modal-text-color);
  transform-origin: center;
}
.modal .modal-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}
.modal .modal-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.modal .modal-headline {
  position: relative;
  font-family: var(--modal-headline-font-family);
  font-size: var(--modal-headline-font-size);
  font-weight: var(--modal-headline-font-weight);
  line-height: var(--modal-headline-line-height);
  padding-right: var(--modal-close-size);
}
.modal .nf-form-title,
.modal .nf-form-fields-required {
  display: none;
}