/* Pré-cadastro (thunder-x.com/pre-cadastro) — estilos da página, por cima dos tokens
   e componentes de thunderx.css. Mobile-first: a página nasce para o celular no estande. */

.tx-pc [hidden] { display: none !important; }
.tx-pc .tx-contador__logo { display: block; }
.tx-pc__main { max-width: 720px; justify-content: flex-start; gap: var(--tx-space-6); }
.tx-pc .tx-heading__title { font-size: 36px; }

.tx-pc__form { display: flex; flex-direction: column; gap: var(--tx-space-4); width: 100%; }
.tx-pc__card,
.tx-pc__group {
  display: flex;
  flex-direction: column;
  gap: var(--tx-space-4);
  min-width: 0;
  margin: 0;
  padding: var(--tx-space-5);
  background: rgba(8, 9, 18, 0.66);
  border: 1px solid var(--tx-border);
  border-radius: var(--tx-radius-lg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.tx-pc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--tx-space-4); }
.tx-pc__field { display: flex; flex-direction: column; gap: var(--tx-space-2); min-width: 0; }
.tx-pc__field--influ { margin-top: var(--tx-space-1); }
.tx-pc__label,
.tx-pc__legend {
  font-family: var(--tx-font-ui);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--tx-text-muted);
}
.tx-pc__legend { padding: 0; font-weight: 700; font-size: 13px; color: var(--tx-text); }
.tx-pc__hint {
  display: inline-block;
  margin-left: 6px;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--tx-text-faint);
}
.tx-pc__req { color: var(--tx-blue-bright); }

.tx-pc__input {
  width: 100%;
  background: var(--tx-surface);
  border: 1px solid var(--tx-border);
  border-radius: var(--tx-radius-md);
  padding: 12px 14px;
  color: var(--tx-text);
  font-family: var(--tx-font-body);
  font-size: 16px; /* 16px evita o zoom automático do iOS ao focar */
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.tx-pc__input::placeholder { color: var(--tx-text-faint); }
.tx-pc__input:focus { border-color: var(--tx-blue-bright); box-shadow: var(--tx-glow); }
.tx-pc__input:user-invalid { border-color: #ff5c7a; }

/* Opções como chips: o input real fica invisível mas acessível; o span é a pílula. */
.tx-pc__chips { display: flex; flex-wrap: wrap; gap: var(--tx-space-2); }
.tx-pc__chip { position: relative; display: inline-flex; }
.tx-pc__chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.tx-pc__chip span {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: var(--tx-radius-pill);
  border: 1px solid var(--tx-border-strong);
  background: var(--tx-surface);
  color: var(--tx-text-muted);
  font-family: var(--tx-font-ui);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1.1;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.tx-pc__chip:hover span { border-color: var(--tx-blue-bright); color: var(--tx-text); }
.tx-pc__chip input:checked + span {
  background: var(--tx-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--tx-glow);
}
.tx-pc__chip input:focus-visible + span { outline: 2px solid var(--tx-blue-bright); outline-offset: 2px; }

.tx-pc__actions { display: flex; flex-direction: column; align-items: center; gap: var(--tx-space-3); padding-top: var(--tx-space-2); }
.tx-pc__error {
  margin: 0;
  color: #ff7d93;
  font-family: var(--tx-font-ui);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-align: center;
}
.tx-pc__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.tx-pc .tx-btn.is-loading { opacity: 0.7; cursor: progress; }

.tx-pc__thanks { width: 100%; }
.tx-pc .tx-contador__thanks-box { text-align: center; }
.tx-pc .tx-contador__thanks .tx-btn { margin-top: var(--tx-space-3); }

@media (max-width: 600px) {
  .tx-pc .tx-heading__title { font-size: 30px; }
  .tx-pc__grid { grid-template-columns: 1fr; }
  .tx-pc__card, .tx-pc__group { padding: var(--tx-space-4); }
  .tx-pc__chip span { padding: 9px 13px; font-size: 13px; }
}
