.form-modal {
  background-color: $white;
  color: $primary-color;
  position: fixed;
  width: 100%;
  max-width: 700px;
  height: 100vh;
  margin: 0;
  z-index: 10001;
  top: 0;
  right: -100%;
  transition: all .4s linear;
  overflow: auto;

  @include sm {
    max-width: 500px;
  }

  &.js-open {
    right: 0;
  }

  &__close-overlay {
    position: absolute;
    top: 16px;
    right: 16px;
  }
}

.form-modal__overlay {
  padding: 40px 150px 40px 115px;
  width: 100%;

  @include sm {
    padding: 40px 75px 40px 55px;
  }

  @include xs {
    padding: 40px 20px 40px 20px;
  }
}

.form-modal__header {
  h2 {
    color: $primary-color;
    margin: 0 0 8px;
  }
}

.form-modal__form {
  div {
    margin-left: -10px;
    margin-right: -10px;
    margin-top: 15px;
  }
}

.form-modal__close-form-overlay {
  margin-left: 10px;
  width: 25px;
  height: 25px;
  color: #fff;
}

.overlay-page {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,.5);
  top: 0;
  left: 0;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s linear;

  &.js-active {
    visibility: visible;
    opacity: 1;
  }
}
