/* =====================================================================
   LEAD FORM — three steps inside the hero card.
   One step is visible at a time; the card keeps the landing's own shell.
   ===================================================================== */

.lead-form {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  max-width: 400px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

/* The step label, with the back control to its left. */
.lead-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lead-progress {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(185, 200, 226, 0.55);
}

/* Field on top, button underneath, on every screen size. */
.lead-step {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.lead-step .field,
.lead-step > .submit-button {
  flex: 0 0 auto;
  width: 100%;
  order: 0;
  margin-left: 0;
}

/* The language step has no input, so the choice takes the field's place on
   the line and the button stays beside it. */
.lead-step > .lead-choice {
  order: 1;
  /* A zero basis keeps it from pushing the button onto the next line. */
  flex: 1 1 0;
  min-width: 0;
}

.lead-step[hidden] {
  display: none;
}

.lead-step-title {
  flex: 1 1 100%;
  order: 0;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink, #eaf0fb);
}

.lead-back {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  color: rgba(185, 200, 226, 0.7);
  cursor: pointer;
  transition: color 0.18s ease;
}

/* display: inline-flex would otherwise win over the hidden attribute. */
.lead-back[hidden] {
  display: none;
}

.lead-back:hover {
  color: var(--ink, #eaf0fb);
}

.lead-choice {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* The question keeps its own line above the two options, which stay left
   while the button sits at the right edge of the same row. */
.lead-choice legend {
  float: left;
  width: 100%;
  padding: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(185, 200, 226, 0.75);
}

.lead-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border: 1px solid rgba(141, 182, 245, 0.22);
  border-radius: 8px;
  font-size: 14px;
  color: rgba(214, 226, 247, 0.85);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.lead-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lead-option:hover {
  border-color: rgba(141, 182, 245, 0.45);
}

.lead-option:has(input:checked) {
  border-color: rgba(166, 196, 255, 0.75);
  background: rgba(141, 182, 245, 0.16);
  color: #eaf0fb;
}

.lead-option:has(input:focus-visible) {
  outline: 2px solid rgba(166, 196, 255, 0.8);
  outline-offset: 2px;
}

/* Narrow screens keep everything stacked, in document order, each child
   taking its own height. */
@media (max-width: 720px) {
  .lead-form {
    max-width: none;
    margin-inline: 28px;
  }

  .lead-step .field,
  .lead-step > .submit-button {
    width: 100%;
  }

  .lead-choice legend {
    line-height: 1.4;
  }
}

/* The third step is the tallest one; on a short desktop window the horizon
   gives back a little of its reserved space so the card still fits. */
@media (min-width: 721px) and (max-height: 820px) {
  .hero {
    padding-bottom: clamp(56px, 9vh, 180px);
  }

  .hero-horizon {
    height: clamp(120px, 20vh, 240px);
  }

  .lead-form {
    gap: 10px;
  }

  .lead-step {
    gap: 10px;
  }

  .lead-choice legend {
    padding-bottom: 6px;
  }
}

