.consultation-popup[hidden],
.consultation-popup [hidden] { display: none !important; }
.consultation-popup {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 24px 16px;
  background: rgba(0, 0, 0, .6);
}
.consultation-popup, .consultation-popup * { box-sizing: border-box; }
.consultation-popup__dialog {
  position: relative;
  width: 560px;
  max-width: 100%;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 32px;
  background: #fff;
  color: #030405;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .16);
  line-height: 1.5;
  overscroll-behavior: contain;
}
.consultation-popup__close {
  position: sticky;
  top: 0;
  float: right;
  width: 44px;
  height: 44px;
  margin: -16px -16px 0 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: #495057;
  font: inherit;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}
.consultation-popup__title {
  margin: 0 28px 16px 0;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
}
.consultation-popup__description { margin: 0 0 24px; font-size: 16px; }
.consultation-popup__label { display: block; margin: 0 0 6px; font-size: 14px; }
.consultation-popup__input {
  display: block;
  width: 100%;
  height: 48px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #bdbdbd;
  border-radius: 6px;
  background: #fff;
  color: #030405;
  font: inherit;
  font-size: 16px;
}
.consultation-popup__input[aria-invalid="true"] { border-color: #b3261e; }
.consultation-popup__notice { margin: 0 0 20px; font-size: 12px; color: #595959; }
.consultation-popup__notice a { color: inherit; text-decoration: underline; }
.consultation-popup__submit { display: block; width: 100%; min-height: 48px; }
.consultation-popup__submit:disabled { opacity: .65; cursor: wait; }
.consultation-popup__error, .consultation-popup__status { margin: 0 0 16px; font-size: 14px; }
.consultation-popup__error, .consultation-popup__status--error { color: #b3261e; }
.consultation-popup__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; }
.consultation-popup :focus-visible { outline: 2px solid #030405; outline-offset: 3px; }
.consultation-popup__dialog:focus { outline: none; }
body.consultation-popup-open { overflow: hidden; }
@media (max-width: 600px) {
  .consultation-popup { padding: 16px; }
  .consultation-popup__dialog {
    padding: 24px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
  }
  .consultation-popup__title { font-size: 22px; }
  .consultation-popup__description { margin-bottom: 20px; }
}
