.pb-lead,
.pb-lead * {
  box-sizing: border-box;
}

.pb-lead {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.pb-lead.is-open {
  opacity: 1;
  pointer-events: auto;
}

.pb-lead__overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 32, 0.48);
}

.pb-lead__modal {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 24px;
  border-radius: 18px;
  background: #fff;
  color: #17202a;
  box-shadow: 0 24px 80px rgba(17, 24, 32, 0.28);
  transform: translateY(10px);
  transition: transform 0.18s ease;
}

.pb-lead.is-open .pb-lead__modal {
  transform: translateY(0);
}

.pb-lead__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #f4f5f7;
  color: #222936;
  cursor: pointer;
  font: 900 22px/1 inherit;
}

.pb-lead__head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  padding-right: 34px;
}

.pb-lead__title {
  margin: 0;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.pb-lead__subtitle {
  margin: 0;
  color: #667386;
  font-size: 14px;
  line-height: 1.45;
}

.pb-lead__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pb-lead__field {
  display: grid;
  gap: 6px;
}

.pb-lead__field--wide,
.pb-lead__consent,
.pb-lead__submit,
.pb-lead__status {
  grid-column: 1 / -1;
}

.pb-lead__field span {
  color: #667386;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pb-lead__input,
.pb-lead__textarea {
  width: 100%;
  border: 1px solid #cbd4de;
  border-radius: 12px;
  background: #fff;
  color: #17202a;
  font: 15px/1.35 inherit;
}

.pb-lead__input {
  min-height: 44px;
  padding: 0 12px;
}

.pb-lead__textarea {
  resize: vertical;
  min-height: 104px;
  padding: 11px 12px;
}

.pb-lead__input:focus,
.pb-lead__textarea:focus {
  border-color: #222936;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(34, 41, 54, 0.12);
}

.pb-lead__consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #667386;
  font-size: 13px;
  line-height: 1.35;
}

.pb-lead__consent input {
  margin-top: 2px;
  accent-color: #ef3038;
}

.pb-lead__submit {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: #ef3038;
  color: #fff;
  cursor: pointer;
  font: 900 15px/1 inherit;
}

.pb-lead__submit:hover {
  background: #e3262f;
}

.pb-lead__submit:disabled {
  background: #cbd4de;
  cursor: not-allowed;
}

.pb-lead__status {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f4f5f7;
  color: #667386;
  font-size: 14px;
  line-height: 1.4;
}

.pb-lead__status[data-kind="success"] {
  background: #e8f6ef;
  color: #177245;
}

.pb-lead__status[data-kind="error"] {
  background: #fff0ee;
  color: #a12d25;
}

@media (max-width: 640px) {
  .pb-lead {
    align-items: end;
    padding: 0;
  }

  .pb-lead__modal {
    width: 100%;
    max-height: calc(100vh - 24px);
    padding: 20px;
    border-radius: 20px 20px 0 0;
  }

  .pb-lead__form {
    grid-template-columns: 1fr;
  }
}
