/* ============================================================
   APEX - our own application form, inside the Apply popup.
   Only loaded by builds made with --form (see build-variant.py).
   Uses the colour tokens from style.css.
   ============================================================ */

.apply {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  color: var(--light-ink);
}

.apply__form {
  max-width: 30rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 2.5rem) clamp(1.25rem, 5vw, 2rem) 2rem;
}

.apply__proof {
  margin: 0 0 .9rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--light-ink);
}

.apply__stars {
  margin-right: .35rem;
  letter-spacing: .12em;
}

.apply__title {
  margin: 0 0 .9rem;
  font-size: clamp(1.5rem, 5.5vw, 1.9rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.015em;
  text-transform: uppercase;
  color: var(--light-ink);
}

.apply__lead {
  margin: 0 0 1.6rem;
  font-size: .98rem;
  line-height: 1.55;
  color: var(--light-dim);
}

.apply__field {
  display: block;
  margin-bottom: 1rem;
}

.apply__label {
  display: block;
  margin-bottom: .45rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--light-ink);
}

/* 16px minimum, or iOS zooms the page when a field is tapped */
.apply__field input {
  width: 100%;
  box-sizing: border-box;
  padding: .95rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--light-ink);
  background: #fff;
  border: 1px solid rgba(12, 12, 13, .28);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.apply__field input:focus {
  outline: 2px solid var(--light-ink);
  outline-offset: 1px;
  border-color: var(--light-ink);
}

.apply__field input[aria-invalid="true"] {
  border-color: var(--light-ink);
  border-width: 2px;
  padding: calc(.95rem - 1px) calc(1rem - 1px);
}

.apply__error {
  display: block;
  margin-top: .4rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--light-ink);
}

.apply__error:empty { display: none; }

/* Honeypot: off-screen, not display:none, so simple bots still fill it */
.apply__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.apply__submit {
  width: 100%;
  margin-top: .5rem;
  background: var(--light-ink);
  color: #fff;
  border: 1px solid var(--light-ink);
  cursor: pointer;
}

.apply__submit:hover { background: #2a2a2d; }

.apply__submit:focus-visible {
  outline: 2px solid var(--light-ink);
  outline-offset: 3px;
}

.apply__submit[disabled] {
  opacity: .6;
  cursor: progress;
}

.apply__small a {
  color: var(--light-ink);
  border-bottom: 1px solid var(--light-line);
}

.apply__small {
  margin: 1rem 0 0;
  font-size: .8rem;
  line-height: 1.5;
  text-align: center;
  color: var(--light-dim);
}
