.bim-form-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.bim-form-modal[hidden] {
  display: none !important;
}

.bim-form-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.bim-form-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.24);
}

.bim-form-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  background: transparent;
  width: 32px;
  height: 32px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.bim-form-modal__title {
  margin: 0 40px 8px 0;
}

.bim-form-modal__subtitle {
  margin-bottom: 20px;
}

body.bim-form-modal-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .bim-form-modal {
    padding: 12px;
  }

  .bim-form-modal__dialog {
    max-height: calc(100vh - 24px);
    padding: 1rem;
  }
}
