/* Landing pages de captação (transformandosorrisos.online)
   Mobile first. Paleta da marca: vermelho #C60C0F. CTA em verde WhatsApp.
   Tipografia igual à do site institucional: Poppins nos títulos, Nunito no texto.
   As fontes são servidas deste próprio domínio, sem chamada ao Google. */

/* Nunito é fonte variável: o mesmo arquivo cobre os pesos 400 a 700 */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fontes/nunito-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fontes/nunito-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fontes/poppins-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fontes/poppins-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fontes/poppins-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fontes/poppins-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --marca: #C60C0F;
  --marca-escura: #8F090B;
  --marca-clara: #FDECEC;
  --zap: #1EBE5A;
  --zap-escuro: #17A64D;
  --texto: #1F2328;
  --texto-suave: #5B646E;
  --borda: #DFE3E8;
  --fundo: #F5F6F8;
  --branco: #FFFFFF;
  --raio: 14px;
  --sombra: 0 2px 4px rgba(16, 24, 40, .04), 0 12px 32px rgba(16, 24, 40, .08);
  --fonte: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --fonte-titulo: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--fonte);
  font-size: 17px;
  line-height: 1.5;
  color: var(--texto);
  background: var(--fundo);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

/* ---------- barra de geo ----------
   Recado mais importante da página depois do formulário: quem não é de
   Uberlândia precisa perceber isso antes de preencher. */
.barra-geo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--marca);
  color: #fff;
  text-align: center;
  font-family: var(--fonte-titulo);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .1px;
  padding: 15px 16px;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .16);
}

.barra-geo svg { flex: none; width: 22px; height: 22px; }

.barra-geo b { font-weight: 700; }

@media (min-width: 900px) {
  .barra-geo { font-size: 21px; padding: 18px 16px; gap: 11px; }
  .barra-geo svg { width: 26px; height: 26px; }
}

/* ---------- layout ---------- */
/* No celular a ordem é título, formulário e só depois as provas, para que o
   primeiro campo apareça sem precisar rolar. No desktop vira duas colunas. */
.envelope {
  max-width: 1080px;
  margin: 0 auto;
  padding: 26px 20px 40px;
  display: flex;
  flex-direction: column;
}

.chamada { order: 1; }
.cartao  { order: 2; }
.provas  { order: 3; }

@media (min-width: 900px) {
  .envelope {
    display: grid;
    grid-template-columns: 1fr 460px;
    /* a terceira linha absorve a sobra de altura do cartão, para o título e as
       provas ficarem colados no topo da coluna da esquerda */
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      "chamada cartao"
      "provas  cartao"
      ".       cartao";
    gap: 24px 48px;
    padding: 48px 24px 64px;
  }

  .chamada { grid-area: chamada; }
  .cartao  { grid-area: cartao; }
  .provas  { grid-area: provas; align-self: start; }
}

/* ---------- chamada ---------- */
.chamada { margin-bottom: 18px; }

.chamada h1 {
  font-family: var(--fonte-titulo);
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -.6px;
  margin: 0 0 8px;
  font-weight: 700;
}

.chamada h1 b { color: var(--marca); font-weight: 700; }

.chamada p {
  font-size: 17px;
  color: var(--texto-suave);
  margin: 0;
}

@media (min-width: 900px) {
  .chamada { margin-bottom: 0; }
  .chamada h1 { font-size: 40px; }
  .chamada p { font-size: 19px; }
}

/* ---------- provas ---------- */
.provas {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.provas li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 600;
}

.provas svg { flex: none; width: 20px; height: 20px; color: var(--marca); }

.provas b { font-weight: 700; }

@media (min-width: 900px) {
  /* no desktop os itens acompanham a largura do próprio texto, em vez de
     esticarem por toda a coluna */
  .provas { margin-top: 0; display: flex; flex-wrap: wrap; }
}

/* ---------- cartão do formulário ---------- */
.cartao {
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  box-shadow: var(--sombra);
  padding: 22px 20px 24px;
}

@media (min-width: 900px) {
  .cartao { padding: 28px; }
}

.cartao h2 {
  font-family: var(--fonte-titulo);
  font-size: 19px;
  margin: 0 0 4px;
  font-weight: 700;
  letter-spacing: -.3px;
}

.cartao .subtitulo {
  font-size: 14px;
  color: var(--texto-suave);
  margin: 0 0 20px;
}

/* ---------- campos ---------- */
.campo { margin-bottom: 18px; }

.campo > label,
.campo > .rotulo {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 7px;
}

.campo input[type="text"],
.campo input[type="tel"] {
  width: 100%;
  font-family: inherit;
  font-size: 16px; /* 16px evita zoom automático no iOS */
  color: var(--texto);
  background: var(--branco);
  border: 1.5px solid var(--borda);
  border-radius: 11px;
  padding: 14px 15px;
  min-height: 52px;
  transition: border-color .15s, box-shadow .15s;
}

.campo input::placeholder { color: #9AA3AD; }

.campo input:focus {
  outline: none;
  border-color: var(--marca);
  box-shadow: 0 0 0 3px rgba(198, 12, 15, .13);
}

/* ---------- opções em botão ---------- */
.opcoes {
  border: 0;
  margin: 0 0 18px;
  padding: 0;
  min-width: 0;
}

.opcoes legend {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 7px;
  padding: 0;
}

.grade { display: grid; gap: 8px; }

.grade.duas { grid-template-columns: 1fr 1fr; }

.opcoes input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.opcoes label {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 50px;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--texto);
  background: var(--branco);
  border: 1.5px solid var(--borda);
  border-radius: 11px;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}

.opcoes label:active { transform: scale(.99); }

.opcoes input:checked + label {
  border-color: var(--marca);
  background: var(--marca-clara);
  color: var(--marca-escura);
}

.opcoes input:focus-visible + label {
  box-shadow: 0 0 0 3px rgba(198, 12, 15, .13);
}

/* ---------- botão ---------- */
.enviar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.2px;
  color: #fff;
  background: var(--zap);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: background .15s, opacity .15s;
  -webkit-tap-highlight-color: transparent;
}

.enviar:hover { background: var(--zap-escuro); }

.enviar:disabled { opacity: .75; cursor: default; }

.enviar svg { width: 22px; height: 22px; flex: none; }

.aviso {
  font-size: 12.5px;
  color: var(--texto-suave);
  text-align: center;
  margin: 12px 0 0;
  line-height: 1.45;
}

/* ---------- erro ---------- */
.erro {
  display: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--marca);
  margin-top: 6px;
}

.campo.invalido input,
.opcoes.invalido label { border-color: var(--marca); }

.campo.invalido .erro,
.opcoes.invalido .erro { display: block; }

/* ---------- rodapé ---------- */
.rodape {
  border-top: 1px solid var(--borda);
  background: var(--branco);
  padding: 22px 20px 30px;
  text-align: center;
}

.rodape p {
  max-width: 760px;
  margin: 0 auto 6px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--texto-suave);
}

.rodape .cro { font-weight: 600; color: #454C55; }

/* ---------- índice ---------- */
.indice { max-width: 620px; margin: 0 auto; padding: 40px 20px 56px; text-align: center; }

.indice h1 { font-family: var(--fonte-titulo); font-size: 25px; font-weight: 700; margin: 0 0 6px; letter-spacing: -.5px; }

.indice p { color: var(--texto-suave); margin: 0 0 26px; }

.indice a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 12px;
  font-size: 17px;
  font-weight: 700;
  color: var(--texto);
  text-decoration: none;
  box-shadow: var(--sombra);
}

.indice a::after { content: "›"; color: var(--marca); font-size: 26px; line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
