/* The multi-step lead forms: inquiry, demo, procurement and the Support waitlist. */

.lead-section {
  padding-top: var(--sp5);
}

.lead-grid {
  display: grid;
  gap: var(--sp6);
}

@media (min-width: 1024px) {
  .lead-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
  }
}

.lead-info {
  max-width: 760px;
  margin-bottom: var(--sp5);
}

.lead-info ul {
  margin: 0;
  padding-left: 1.2em;
}

.lead-form {
  display: grid;
  gap: var(--sp4);
  max-width: 760px;
}

.lead-steps {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp2) var(--sp4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.lead-stepsItem {
  display: flex;
  align-items: center;
  gap: var(--sp2);
  color: var(--text-dim);
}

.lead-stepsNum {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--field-border);
  border-radius: 50%;
  background: var(--panel-bg);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.lead-stepsCurrent {
  color: var(--text-primary);
  font-weight: 700;
}

.lead-stepsCurrent .lead-stepsNum {
  border-color: var(--accent-btn);
  background: var(--accent-btn);
  color: var(--on-accent);
}

.lead-stepsDone .lead-stepsNum {
  border-color: var(--accent-line);
  background: var(--accent-tint);
  color: var(--text-primary);
}

.lead-step {
  display: grid;
  gap: var(--sp4);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.lead-step > legend {
  margin-bottom: var(--sp3);
  padding: 0;
  font-size: var(--fs-lg);
  font-weight: 700;
}

.lead-form select {
  width: 100%;
  min-height: var(--h-ctl);
  padding: var(--sp2) var(--sp3);
  border: 1px solid var(--field-border);
  border-radius: var(--radius-md);
  background: var(--panel-bg);
  color: var(--text-primary);
  font: inherit;
}

.lead-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.lead-group > legend {
  padding: 0;
  font-weight: 700;
}

.lead-check {
  display: flex;
  align-items: center;
  gap: var(--sp3);
  min-height: var(--h-ctl);
  font-weight: 400;
}

.lead-check input {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
}

.lead-empty {
  margin: 0;
  color: var(--text-dim);
}

.lead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp3);
}

/* The primary button comes first in the document (Enter submits it), the "back" button is shown before it. */
.lead-back {
  order: -1;
}

.lead-aside h2 {
  font-size: var(--fs-lg);
}

.lead-asideList {
  margin: 0;
}

.lead-asideList div {
  padding: var(--sp2) 0;
  border-bottom: 1px solid var(--border);
}

.lead-asideList dt {
  color: var(--text-faint);
  font-size: var(--fs-sm);
}

.lead-asideList dd {
  margin: 0;
}

.lead-sent {
  max-width: 560px;
  margin: 0 auto;
  padding: var(--sp8) var(--gutter);
  text-align: center;
}

.lead-sentLinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp3);
}

/* The Support waitlist sits in a card on the teaser page. */
.lead-waitlist {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--sp5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel-bg);
}
