.lead-dialog {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--ink);
  color: #fff;
}
.lead-dialog::backdrop {
  background: rgb(0 0 0 / 80%);
}

.lead-dialog-shell {
  position: relative;
  display: grid;
  min-height: 100%;
  place-items: center;
  padding: clamp(4rem, 8vw, 7rem) var(--page-gutter);
}

.lead-dialog-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  display: grid;
  width: 3rem;
  height: 3rem;
  cursor: pointer;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 2rem;
}

.lead-form {
  width: min(100%, 58rem);
}

.has-js .form-screen:not(.is-active) {
  display: none;
}

.form-screen {
  min-width: 0;
  padding: 0;
  border: 0;
}

.form-screen > legend,
.form-kicker {
  margin-bottom: 1rem;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.form-screen h2 {
  max-width: 48rem;
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.form-screen > p:not(.form-kicker):not(.form-privacy-note) {
  margin-top: 1rem;
  color: rgb(255 255 255 / 65%);
  font-size: 1.1rem;
}

.form-screen > .primary-link {
  margin-top: 2rem;
}

.form-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.lead-form label,
.form-question > legend {
  font-size: 0.9rem;
  font-weight: 700;
}

.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form input[type="tel"],
.lead-form input[type="url"],
.lead-form select,
.lead-form textarea {
  width: 100%;
  margin-top: 0.55rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 8%);
  color: #fff;
  font: inherit;
}

.lead-form select option {
  color: var(--ink);
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus,
.lead-dialog button:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

.form-question {
  margin: 2rem 0 0;
  padding: 0;
  border: 0;
}

.choice-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.choice-card,
.consent-choice {
  display: flex;
  cursor: pointer;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 5%);
}

.choice-card:has(input:checked) {
  border-color: var(--brand);
  background: rgb(255 212 0 / 10%);
}

.choice-card input,
.consent-choice input {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  margin-top: 0.1rem;
  accent-color: var(--brand);
}

.form-select-label {
  display: block;
  margin-top: 1.5rem;
}

.form-privacy-note {
  margin-top: 2rem;
  color: rgb(255 255 255 / 65%);
  font-size: 0.85rem;
  line-height: 1.7;
}

.consent-choice {
  margin-top: 1rem;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  line-height: 1.6;
}

.consent-choice a {
  color: var(--brand);
  text-decoration: underline;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.form-back {
  padding: 0.75rem 0;
  cursor: pointer;
  background: transparent;
  color: rgb(255 255 255 / 70%);
  font-weight: 700;
}

.form-error-summary {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-left: 0.25rem solid #ff5c5c;
  background: rgb(255 92 92 / 12%);
}

.lead-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.no-script-contact {
  padding: 1rem;
  background: var(--brand);
  color: var(--ink);
  text-align: center;
}

body:has(.lead-dialog[open]) {
  overflow: hidden;
}

@media (min-width: 40rem) {
  .form-grid,
  .choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid-wide {
    grid-column: 1 / -1;
  }
}
