.form-modal {
  padding: 20px;
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition:
    opacity 0.2s ease,
    overlay 0.2s ease allow-discrete,
    display 0.2s ease allow-discrete;

  @starting-style {
    &.open {
      opacity: 0;
      .form-modal__dialog {
        transform: translate3d(0, 0, 0) scale(0.95);
      }
    }
  }

  &:not(.open) {
    display: none;
    opacity: 0;
    .form-modal__dialog {
      transform: translate3d(0, 0, 0) scale(0.95);
    }
  }
}
.form-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}
.form-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 32px;
  background: #fff;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.28);
  transform: translate3d(0, 0, 0) scale(1);
  transition: transform 0.2s ease;
}
.form-modal__close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: 0;
  padding: 0 4px;
  background: transparent;
  color: #777;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.form-modal__title {
  margin: 0 32px 10px 0;
  color: #242c3c;
  font-size: 24px;
}
.form-modal__description {
  margin: 0 0 22px;
  color: #596477;
}
.form-modal__label {
  display: block;
  margin-bottom: 7px;
  font-weight: 600;
}
.form-modal__label span {
  margin-left: 3px;
  color: #b42318;
}
.form-modal__input {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-bottom: 20px;
  border: 1px solid #c9ced6;
  border-radius: 2px;
  padding: 9px 12px;
  font: inherit;
}
.form-modal__input:focus {
  outline: 2px solid #546896;
  outline-offset: 1px;
}
.form-modal__submit {
  min-height: 44px;
  border: 0;
  cursor: pointer;
}
.form-modal__submit[disabled] {
  cursor: wait;
  opacity: 0.65;
}
.form-modal__status {
  min-height: 0;
  margin: 0;
  color: #b42318;
}
.form-modal__status:not(:empty) {
  margin: -8px 0 14px;
}
.form-modal__status.is-success {
  color: #18794e;
}
.form-modal__trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
body.form-modal-open {
  overflow: hidden;
}
@media (max-width: 480px) {
  .form-modal__dialog {
    padding: 28px 22px 24px;
  }
}
