/* Cadastro grátis — Telepesquisa
   Tokens seguem o telepesquisa.com (v2): Inter / Inter Tight, vermelho #C51D25, tinta #1C1917. */

:root {
  --brand: #c51d25;
  --brand-dark: #a3151c;
  --brand-soft: #fbeaeb;
  --ink: #1c1917;
  --ink-2: #57534e;
  --ink-3: #78716c;
  --paper: #ffffff;
  --stone: #f5f5f4;
  --mist: #e7e5e4;
  --success: #1a7f37;
  --success-soft: #e8f5ec;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(28, 25, 23, .04), 0 12px 32px -12px rgba(28, 25, 23, .18);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--mist);
}
.top__in { display: flex; align-items: center; height: 68px; gap: 20px; }
.top__logo img { height: 30px; width: auto; }
.top__uf {
  display: flex; align-items: center; gap: 8px;
  padding-left: 20px; border-left: 1px solid var(--mist);
  font-size: 15px; color: var(--ink-2); white-space: nowrap;
}
.top__uf svg { width: 18px; height: 18px; color: var(--brand); }
.top__link {
  margin-left: auto; font-size: 14px; color: var(--ink-3); text-decoration: none;
}
.top__link:hover { color: var(--brand); }

/* ---------- hero ---------- */
.hero { background: var(--stone); border-bottom: 1px solid var(--mist); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: 56px;
  align-items: start;
  padding: 56px 0 72px;
}
.hero__copy { position: sticky; top: 96px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  color: var(--brand); text-transform: uppercase;
  margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand); }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.04;
  letter-spacing: -.025em;
  font-weight: 700;
  margin: 0 0 20px;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--brand); }
.hero__lead {
  font-size: 18px; color: var(--ink-2); margin: 0 0 32px; max-width: 46ch; text-wrap: pretty;
}

.mini-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 10px; max-width: 420px;
  counter-reset: step;
}
.mini-steps li {
  counter-increment: step;
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 15px; line-height: 1.35;
}
.mini-steps li::before {
  content: counter(step);
  display: inline-grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%;
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  background: var(--ink); color: #fff; flex: none;
  position: relative; top: 1px;
}
.mini-steps li:last-child::before { background: var(--brand); }
.mini-steps b { font-weight: 600; }
.mini-steps span { display: block; color: var(--ink-3); font-size: 13px; }

/* ---------- form ---------- */
.form-card {
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 28px 24px;
}
.form-card h2 {
  font-family: var(--font-display); font-size: 24px; letter-spacing: -.02em;
  margin: 0 0 4px; font-weight: 700;
}
.form-card__sub { margin: 0 0 22px; color: var(--ink-3); font-size: 14px; }

.alert {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--brand-soft); color: var(--brand-dark);
  border: 1px solid #f3c4c7; border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 14px; margin: 0 0 18px;
}
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.alert b { font-weight: 600; }

fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
legend {
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); padding: 0; margin: 0 0 12px;
}
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f-grid .span-2 { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 500; margin: 0 0 6px; color: var(--ink-2); }
.field label small { font-weight: 400; color: var(--ink-3); }
.field input, .field select {
  width: 100%; height: 46px;
  padding: 0 13px;
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
  appearance: none; -webkit-appearance: none;
}
.field input::placeholder { color: #a8a29e; }
.field input:focus, .field select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(197, 29, 37, .15);
}
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2378716c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
.field .prefix { position: relative; }
.field .prefix span {
  position: absolute; left: 13px; top: 0; height: 46px; display: flex; align-items: center;
  color: var(--ink-3); font-size: 15px; pointer-events: none;
}
.field .prefix input { padding-left: 30px; }

/* select2 -> mesmo visual dos inputs */
.select2-container--default .select2-selection--single {
  height: 46px; border: 1px solid var(--mist); border-radius: var(--radius-sm);
  background: var(--paper); display: flex; align-items: center;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 44px; padding-left: 13px; padding-right: 36px; color: var(--ink);
}
.select2-container--default .select2-selection--single .select2-selection__placeholder { color: #a8a29e; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px; right: 8px; }
.select2-container--default .select2-selection--single .select2-selection__arrow b { border-color: var(--ink-3) transparent transparent; }
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(197, 29, 37, .15);
}
.select2-dropdown { border: 1px solid var(--mist); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid var(--mist); border-radius: 8px; padding: 8px 10px; outline: none;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--brand); }
.select2-results__option { padding: 8px 12px; font-size: 14px; }

.captcha { margin: 6px 0 16px; }
.captcha .h-captcha { display: flex; justify-content: center; }

.btn {
  width: 100%; height: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: #fff;
  border: 0; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 16px; letter-spacing: -.01em;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid rgba(197, 29, 37, .35); outline-offset: 2px; }
.btn svg { width: 18px; height: 18px; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--mist); }
.btn--ghost:hover { background: var(--stone); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--mist); padding: 26px 0; font-size: 13px; color: var(--ink-3); }
.foot__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot img { height: 22px; width: auto; opacity: .9; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--brand); }

/* ---------- sucesso ---------- */
.done { min-height: calc(100vh - 68px - 76px); display: grid; place-items: center; padding: 48px 0; background: var(--stone); }
.done__card {
  width: min(560px, 100%); text-align: center;
  background: var(--paper); border: 1px solid var(--mist); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 44px 32px 36px;
}
.done__icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 22px;
  display: grid; place-items: center;
  background: var(--success-soft); color: var(--success);
}
.done__icon svg { width: 32px; height: 32px; }
.done h1 { font-family: var(--font-display); font-size: 30px; letter-spacing: -.02em; margin: 0 0 10px; }
.done p { color: var(--ink-2); margin: 0 auto 8px; max-width: 40ch; }
.done .btn { max-width: 300px; margin: 24px auto 0; }
.done .btn--ghost { margin-top: 10px; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > *, .form-card { animation: rise .6s cubic-bezier(.2,.8,.2,1) both; }
  .hero__copy > :nth-child(2) { animation-delay: .05s; }
  .hero__copy > :nth-child(3) { animation-delay: .1s; }
  .hero__copy > :nth-child(4) { animation-delay: .18s; }
  .hero__copy > :nth-child(5) { animation-delay: .24s; }
  .form-card { animation-delay: .12s; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  /* display: contents faz cada filho virar item do grid, então o gap somaria
     com as margens próprias — zera o gap e controla tudo pelas margens */
  .hero__grid { grid-template-columns: 1fr; gap: 0; padding: 12px 0 40px; }
  .hero__copy { position: static; display: contents; }
  /* ordem no mobile: título → passos → form */
  .hero__copy .eyebrow { order: 1; margin-bottom: 10px; }
  .hero__copy h1 { order: 2; margin-bottom: 12px; }
  .hero__copy .hero__lead { order: 3; margin-bottom: 16px; }
  .hero__form { order: 5; }
  .hero__copy .mini-steps { order: 4; margin-bottom: 20px; }
  /* mobile: só a primeira linha de cada passo */
  .mini-steps span { display: none; }
}
@media (max-width: 560px) {
  .wrap { width: min(1160px, 100% - 32px); }
  .top__in { height: 60px; }
  .top__logo img { height: 26px; }
  .top__uf { display: none; }
  .hero h1 { font-size: 32px; }
  .hero__lead { font-size: 16px; }
  .form-card { padding: 22px 18px 20px; }
  .f-grid { grid-template-columns: 1fr; }
  .done__card { padding: 36px 22px 28px; }
}
