/* THE FORM LOOK
   What a form inside the site's pop-up (.info-modal, simple size) is made
   of: answer tiles, fields, the Back and Next buttons, the error line. The
   two-minute ad check and its contact step are built from these (check.js,
   check.css); there is no other form. Fields take the look of the password
   field on the opening page; the answers take the glass tiles from the old
   capability pop-up. */

.modal-window.is-lead-modal .modal-info {
  padding: 22px 0 46px;
}

.modal-window.is-lead-modal .modal-info h2 {
  max-width: 720px;
  font-size: calc(clamp(26px, calc(3.1 * var(--u)), 42px) * var(--type-scale));
  line-height: 0.96;
}

.modal-window.is-lead-modal .modal-description {
  margin-top: 30px;
}

.lead-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.lead-option {
  position: relative;
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 15px 16px 14px;
  color: #fff;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 800;
  letter-spacing: 0.052em;
  text-align: left;
  text-transform: uppercase;
  border-radius: var(--radius-m);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  transition:
    background 320ms ease,
    box-shadow 320ms ease,
    transform 520ms var(--ease-cinema),
    color 260ms ease;
}

.lead-option:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

/* Chosen: the accent. */
.lead-option[aria-pressed="true"] {
  color: #fff;
  background: var(--accent-wash);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.lead-fields {
  display: grid;
  gap: 16px;
  max-width: 560px;
}

.lead-field {
  display: grid;
  gap: 10px;
}

.lead-field > span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.lead-input {
  width: 100%;
  margin: 0;
  padding: 15px 14px 14px;
  /* --field-line, not --line: the edge is what shows where to type, so it
     is 3 to 1 against the surface behind it. */
  border: 1px solid var(--field-line);
  border-radius: var(--radius-m);
  outline: none;
  color: #f4f1ea;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  background: var(--surface-2);
  -webkit-appearance: none;
  appearance: none;
  transition:
    border-color 240ms ease,
    background-color 240ms ease;
}

.lead-input:focus {
  border-color: var(--accent);
}

/* The field being typed in: the site's focus ring, close round it. */
.lead-input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

textarea.lead-input {
  min-height: 112px;
  resize: vertical;
}

/* A field to put right. The red is the error line's, which can be told
   from the surface; what is wrong is said in words in that line. */
.lead-field.is-invalid .lead-input {
  border-color: #e06072;
  background: rgba(134, 22, 38, 0.2);
}

.lead-error {
  min-height: 11px;
  margin: 16px 0 0;
  color: #e06072;
  font-size: 9px;
  line-height: 1.5;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.lead-error a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.lead-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
}

.lead-back,
.lead-next {
  font-size: 9px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition:
    color 240ms ease,
    border-color 240ms ease,
    background-color 240ms ease,
    letter-spacing 280ms var(--ease-cinema);
}

.lead-back {
  padding: 16px 14px 15px 0;
  color: rgba(255, 255, 255, 0.58);
}

.lead-back:hover {
  color: rgba(255, 255, 255, 0.95);
}

.lead-next {
  padding: 16px 22px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  color: rgba(255, 255, 255, 0.9);
  background: var(--surface-2);
}

.lead-next:hover:not(:disabled) {
  color: #fff;
  border-color: var(--line-strong);
  letter-spacing: 0.26em;
}

.lead-next:disabled {
  color: rgba(255, 255, 255, 0.3);
  cursor: default;
}

.lead-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* THE QUIET LINKS under the closing "start a project" on a landing page:
   the ad check, the call link once there is one, the other landing page.
   (landing.css sets them in lower case there.) */

.contact-alt {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 0;
}

.contact-alt-link {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 240ms ease;
}

.contact-alt-link:hover {
  color: #fff;
}

@media (max-width: 760px) {
  .modal-window.is-lead-modal .modal-info {
    padding: 14px 0 34px;
  }

  .modal-window.is-lead-modal .modal-info h2 {
    font-size: calc(clamp(24px, 7.4vw, 34px) * var(--type-scale));
  }

  .modal-window.is-lead-modal .modal-description {
    margin-top: 24px;
    font-size: 15px;
  }

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

  .lead-option {
    min-height: 54px;
    padding: 14px 14px 13px;
  }

  /* TOUCH: Back, Skip, Send and Close are 40px tall; 44px here. */
  .lead-back,
  .lead-next {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lead-option:hover {
    transform: none;
  }

  .lead-back,
  .lead-next {
    transition: color 240ms ease, border-color 240ms ease, background-color 240ms ease;
  }
}
