.b24-contact-lock {
  overflow: hidden;
}

.b24-contact-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 18, 31, 0.72);
  backdrop-filter: blur(4px);
}

.b24-contact-modal.is-open {
  display: flex;
}

.b24-contact-dialog {
  position: relative;
  width: min(100%, 620px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  overscroll-behavior: contain;
}

.b24-contact-form {
  min-height: 520px;
}

.b24-contact-form.is-loaded {
  min-height: 0;
}

.b24-contact-dialog .b24-form-header {
  padding-right: 72px !important;
}

.b24-contact-loading {
  display: flex;
  min-height: 280px;
  align-items: center;
  justify-content: center;
  padding: 56px 32px;
  color: #344054;
  font: 500 16px/1.5 Arial, sans-serif;
  text-align: center;
}

.b24-contact-close {
  position: sticky;
  top: 12px;
  z-index: 3;
  display: block;
  width: 42px;
  height: 42px;
  margin: 12px 12px -54px auto;
  border: 0;
  border-radius: 50%;
  background: #eef2f6;
  color: #1d2939;
  font: 300 30px/40px Arial, sans-serif;
  cursor: pointer;
}

.b24-contact-close:hover,
.b24-contact-close:focus-visible {
  background: #dde5ec;
  outline: 2px solid #2f7ee6;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .b24-contact-modal {
    align-items: flex-end;
    padding: 0;
  }

  .b24-contact-dialog {
    width: 100%;
    max-height: 94vh;
    border-radius: 18px 18px 0 0;
  }

  .b24-contact-dialog .b24-form-header-title {
    font-size: 21px !important;
    line-height: 1.25 !important;
  }
}
