.km-grc-request-catalog {
  margin: clamp(28px, 4vw, 56px) 0;
  text-align: center;
}

.km-grc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 28px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}

.km-grc-button:hover,
.km-grc-button:focus {
  background: #111;
  color: #fff;
  outline: none;
}

.km-grc-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 46px);
}

.km-grc-modal.is-open {
  display: flex;
}

.km-grc-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, .68);
}

.km-grc-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: min(86vh, 820px);
  overflow: auto;
  background: #fff;
  text-align: left;
  color: #111;
  padding: clamp(28px, 5vw, 54px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .26);
}

.km-grc-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
}


.km-grc-modal-form .wpcf7-form p {
  margin-bottom: 16px;
}

.km-grc-modal-form input[type="text"],
.km-grc-modal-form input[type="email"],
.km-grc-modal-form input[type="tel"],
.km-grc-modal-form textarea,
.km-grc-modal-form select {
  width: 100%;
}

.km-grc-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .km-grc-request-catalog {
    text-align: left;
  }

  .km-grc-modal {
    padding: 12px;
    align-items: flex-start;
  }

  .km-grc-modal-dialog {
    max-height: calc(100vh - 24px);
  }
}
