.lead-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .35);
}

.lead-dialog::backdrop {
  background: rgba(10, 10, 8, .76);
  backdrop-filter: blur(4px);
}

.lead-heading {
  display: flex;
  gap: 28px;
  justify-content: space-between;
  padding: 38px 42px 26px;
  border-bottom: 1px solid var(--line);
}

.lead-heading h2 {
  margin: 10px 0 12px;
  max-width: 560px;
  font: 600 clamp(28px, 4vw, 42px)/1.08 Manrope;
  letter-spacing: -.035em;
}

.lead-heading > div > p:last-child {
  margin: 0;
  max-width: 590px;
  color: #62615b;
  line-height: 1.55;
}

.lead-close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font: 300 27px/1 sans-serif;
  cursor: pointer;
}

.lead-dialog form {
  padding: 28px 42px 38px;
}

.lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 18px;
}

.lead-grid label {
  display: grid;
  gap: 9px;
  font: 600 14px Manrope;
}

.lead-grid select,
.lead-grid input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid #c9c5bb;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: 400 16px 'DM Sans', sans-serif;
}

.lead-grid select:focus,
.lead-grid input:focus {
  outline: 2px solid var(--wood);
  outline-offset: 2px;
}

.lead-submit {
  width: 100%;
  margin-top: 28px;
  border: 0;
  background: #25d366;
  color: #102417;
  cursor: pointer;
}

.lead-submit:hover {
  background: #36e478;
}

.lead-dialog form > small {
  display: block;
  margin-top: 13px;
  color: #77766f;
  text-align: center;
  line-height: 1.4;
}

@media (max-width: 620px) {
  .lead-dialog {
    width: calc(100% - 20px);
    max-height: calc(100vh - 20px);
  }

  .lead-heading {
    padding: 25px 20px 20px;
  }

  .lead-dialog form {
    padding: 22px 20px 28px;
  }

  .lead-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .lead-close {
    width: 38px;
    height: 38px;
  }
}
