/* One waitlist form, used on the landing page and at the end of the app. */

.wl {
  margin-top: 22px;
}

.wl__row {
  display: flex;
  gap: 8px;
  padding: 7px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 99px;
}

.wl__row:focus-within {
  box-shadow: 0 0 0 4px rgba(240, 33, 155, 0.22);
}

.wl__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 8px 12px 16px;
  color: var(--ink);
  background: none;
  border: 0;
}

.wl__input::placeholder {
  color: rgba(20, 16, 15, 0.38);
}

.wl__input:focus {
  outline: none;
}

.wl__go {
  flex: 0 0 auto;
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  background: var(--pink-ink);
  border-radius: 99px;
  transition:
    transform 0.14s ease,
    background 0.14s ease;
}

.wl__go:hover {
  background: var(--pink-deep);
}

.wl__go:active {
  transform: scale(0.96);
}

.wl__go[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.wl__note {
  min-height: 20px;
  margin: 10px 4px 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.wl__note[data-state='error'] {
  font-weight: 600;
  color: var(--pink-deep);
}

/* After a successful signup the form is replaced by the queue number. */
.wl__done {
  display: none;
  padding: 22px 24px;
  color: #fff;
  background: var(--pink);
  border-radius: var(--radius-card);
}

.wl[data-done='true'] .wl__row,
.wl[data-done='true'] .wl__note {
  display: none;
}

.wl[data-done='true'] .wl__done {
  display: block;
  animation: fade-up 0.35s ease both;
}

.wl__rank {
  display: block;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.wl__done p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.94);
}

.wl__share {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 800;
  color: var(--pink);
  background: #fff;
  border-radius: 99px;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
