.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; /* behind initially */
  opacity: 0;
  padding: 0 10px;
}

.modal {
  width: auto;
  max-width: 640px;
  height: auto;
  padding: 60px;
  background-color: var(--modal-background-color);
  color: var(--modal-text-color);
  border-radius: var(--border-radius-1);
  margin: 50px auto;
}
.modal .modal-headline {
  position: relative;
  font-family: var(--headline-font-family);
  font-size: 66px;
  line-height: 1;
  font-weight: 600;
  margin-bottom: 50px;
}
.modal .modal-close {
  position: absolute;
  top: 4px;
  right: 0;
  width: 50px;
  height: 50px;
  cursor: pointer;
}
.modal .modal-close span {
  display: inline-block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%; /* match container width */
  height: 2px; /* thickness of the lines */
  background: white; /* or whatever color you want */
  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-body {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 50px;
}
.modal .modal-form {
  font-family: var(--headline-font-family);
}
.modal .nf-field-label .nf-label-span,
.modal .nf-field-label label {
  font-weight: 300;
  font-size: 24px;
}
.modal .nf-field-element input[type=text],
.modal .nf-field-element textarea,
.modal .nf-field-element input[type=email] {
  background: none;
  color: white;
}
.modal .nf-field-element input[type=submit] {
  background-color: white;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--gray);
}
.modal .nf-field-element input[type=submit]:hover {
  background-color: var(--gray);
}
.modal .nf-form-title,
.modal .nf-form-fields-required {
  display: none;
}
.modal .checkbox-wrap .nf-field-label .nf-label-span,
.modal .checkbox-wrap .nf-field-label label {
  font-size: 14px;
}
.modal .field-wrap > div input[type=checkbox] {
  padding: 0px;
  border: 1px solid white;
  width: 20px;
  height: 20px;
  cursor: pointer;
  position: relative;
  top: 3px;
  background: none;
}
.modal .field-wrap > div input[type=checkbox]:after {
  content: "";
  position: absolute;
  width: 6px;
  height: 12px;
  border: 1px solid white;
  border-width: 0 2px 2px 0;
  top: 2px;
  left: 6px;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 100000;
}
.modal .field-wrap > div input[type=checkbox]:checked:after {
  opacity: 1;
}
@media screen and (max-width: 767px) {
  .modal {
    padding: 40px;
  }
  .modal .modal-headline {
    font-size: 46px;
    margin-bottom: 30px;
    padding-top: 10px;
  }
  .modal .modal-body {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .modal .modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 30px;
    height: 30px;
    cursor: pointer;
  }
}