@import url("./premium.css");

.waitlist-form input[type="tel"],
.waitlist-form input[type="text"][inputmode="numeric"],
.waitlist-form select {
  width: 100%;
  min-height: 52px;
  box-sizing: border-box;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: #0e0e11;
  color: var(--text);
  padding: 0 14px;
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}

.waitlist-form select {
  appearance: auto;
  color-scheme: dark;
  cursor: pointer;
}

.waitlist-form input[type="tel"]:focus,
.waitlist-form input[type="text"][inputmode="numeric"]:focus,
.waitlist-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 92, 124, .12);
  background: #111116;
}

.phone-entry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: end;
}

.phone-subfield {
  position: relative;
  display: grid;
  gap: 7px;
  min-width: 0;
}

.phone-subfield > span:not(.phone-country-badge) {
  color: #d9d9de;
  font-size: .78rem;
  font-weight: 800;
}

.phone-subfield #phone-country,
.phone-subfield #phone {
  height: 52px;
  min-height: 52px;
}

.phone-subfield:has(#phone-country) select {
  padding-left: 58px;
  padding-right: 14px;
  font-size: .9rem;
  text-overflow: ellipsis;
}

.phone-country-badge {
  position: absolute;
  z-index: 2;
  left: 12px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 6px;
  background: rgba(255,255,255,.065);
  color: #f3f3f5;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  pointer-events: none;
}

.phone-country-flag {
  width: 100%;
  height: 100%;
  display: none;
  object-fit: cover;
}

.phone-country-fallback {
  font-size: .61rem;
  font-weight: 950;
  letter-spacing: .04em;
  line-height: 1;
}

.phone-country-badge.has-flag .phone-country-flag {
  display: block;
}

.phone-country-badge.has-flag .phone-country-fallback {
  display: none;
}

.phone-country-help {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.45;
}

.phone-country-help strong {
  color: #f3f3f5;
}

.choice-note {
  margin: -4px 0 2px;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.55;
}

.choice-note a,
.form-privacy a {
  color: #f3f3f5;
  text-underline-offset: 3px;
}

.turnstile-slot {
  min-height: 70px;
  display: flex;
  align-items: center;
}

.waitlist-form[data-preview-only="true"] .turnstile-slot {
  display: none !important;
}

.verification-step,
.verification-recovery-step,
.share-step {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .025);
  text-align: center;
}

.verification-step h3,
.verification-recovery-step h3,
.share-step h3 {
  margin: 0 0 7px;
}

.verification-step p,
.verification-recovery-step p,
.share-step p {
  margin: 0 0 14px;
  color: var(--muted);
}

.verification-step .verification-code-field {
  width: min(100%, 360px);
  margin: 18px auto 0;
  text-align: left;
}

.verification-actions,
.recovery-actions,
.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.waitlist-form > .recovery-actions {
  display: none;
}

.verification-actions .button,
.recovery-actions .button,
.share-actions .button {
  border: 0;
}

.verification-actions .button,
.recovery-actions .button {
  min-width: 172px;
}

.verification-code {
  text-align: center;
  font-size: 1.35rem;
  letter-spacing: .22em;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}

.verification-expiry {
  margin: 12px 0 16px !important;
  color: #b9b9c1 !important;
  font-size: .8rem;
  line-height: 1.45;
}

.verification-recovery-step {
  scroll-margin-block: 24px;
  border-color: rgba(255, 92, 124, .32);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 92, 124, .1), transparent 50%),
    rgba(255, 255, 255, .03);
}

.verification-recovery-step:focus,
.share-step:focus {
  outline: none;
}

.verification-recovery-step .recovery-kicker,
.share-step .share-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.verification-recovery-step .recovery-help {
  width: min(100%, 560px);
  margin: 0 auto;
  color: #d3d3d9;
  font-size: .92rem;
  line-height: 1.55;
}

.share-step {
  scroll-margin-block: 24px;
}

.share-step .share-confirmation {
  width: min(100%, 560px);
  margin: 0 auto 22px;
  color: #f3f3f5;
  font-size: clamp(1rem, 2.5vw, 1.16rem);
  line-height: 1.55;
}

.share-step .share-next {
  margin: 0 0 14px;
}

.waitlist-form[data-state="verified"] > :not(.share-step) {
  display: none !important;
}

.capture-stage[data-state="verified"] .capture-heading,
.capture-stage[data-state="recovery"] .capture-heading {
  display: none;
}

.capture-stage[data-state="verified"] .waitlist-form,
.capture-stage[data-state="recovery"] .waitlist-form {
  margin-top: 8px;
}

.capture-stage[data-state="verified"] .share-step {
  padding: clamp(28px, 6vw, 46px) clamp(20px, 5vw, 40px);
  border-color: rgba(255, 92, 124, .32);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 92, 124, .1), transparent 48%),
    rgba(255, 255, 255, .03);
  box-shadow: 0 20px 60px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.045);
}

.capture-stage[data-state="verified"] .share-step h3 {
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  line-height: 1.05;
}

.waitlist-form[data-state="recovery"] > .capture-verification,
.waitlist-form[data-state="recovery"] > .compact-legal,
.waitlist-form[data-state="recovery"] > .submit-button,
.waitlist-form[data-state="recovery"] > .verification-step,
.waitlist-form[data-state="recovery"] > .share-step {
  display: none !important;
}

.waitlist-form[data-state="recovery"] > .recovery-actions {
  display: flex;
}

.waitlist-form[data-state="recovery"] .capture-input-row,
.waitlist-form[data-state="recovery"] .capture-options,
.waitlist-form[data-state="recovery"] .turnstile-slot,
.waitlist-form[data-state="recovery"] > .recovery-actions,
.waitlist-form[data-state="recovery"] .verification-recovery-step {
  width: min(100%, 620px);
  margin-inline: auto;
}

.capture-stage[data-state="recovery"] .verification-recovery-step {
  padding: clamp(24px, 5vw, 36px) clamp(18px, 4vw, 30px);
  box-shadow: 0 18px 54px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.04);
}

.capture-stage[data-state="recovery"] .verification-recovery-step h3 {
  font-size: clamp(1.5rem, 5.5vw, 2.15rem);
  line-height: 1.08;
}

.waitlist-form[aria-busy="true"] .submit-button,
.waitlist-form[aria-busy="true"] .verification-actions button,
.waitlist-form[aria-busy="true"] .recovery-actions button,
.waitlist-form .submit-button:disabled,
.waitlist-form .verification-actions button:disabled,
.waitlist-form .recovery-actions button:disabled {
  opacity: .62;
}

.waitlist-form[aria-busy="true"] .submit-button,
.waitlist-form[aria-busy="true"] .verification-actions button,
.waitlist-form[aria-busy="true"] .recovery-actions button {
  cursor: wait;
}

.waitlist-form .submit-button:disabled,
.waitlist-form .verification-actions button:disabled,
.waitlist-form .recovery-actions button:disabled {
  cursor: not-allowed;
}

.share-result {
  min-height: 1.3em;
  margin: 10px 0 0 !important;
  color: var(--success) !important;
  font-size: .86rem;
}

@media (max-width: 680px) {
  .phone-subfield #phone-country,
  .phone-subfield #phone {
    width: 100%;
    height: 56px;
    min-height: 56px;
  }

  .phone-country-badge {
    bottom: 16px;
  }

  .verification-actions .button,
  .recovery-actions .button,
  .share-actions .button {
    width: 100%;
  }

  .capture-stage[data-state="verified"] .share-step,
  .capture-stage[data-state="recovery"] .verification-recovery-step {
    padding: 30px 18px;
  }
}
