/* ============================================================
   PIPOCAS FELIPPE — PAGINA DE REVENDEDORES
   Usa os tokens definidos em css/styles.css
   ============================================================ */

/* ============ HERO DA PAGINA ============ */
.rev-hero {
  padding: var(--topo-pagina) 6vw 60px;
  background: var(--cream);
  border-bottom: 1px solid rgba(42, 26, 18, .06);
}

.rev-hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.rev-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.03em;
  color: var(--cocoa);
  margin-bottom: 1.2rem;
}

.rev-hero h1 em {
  color: var(--tomato);
  font-style: italic;
  font-weight: 600;
}

.rev-hero .lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--cocoa-soft);
  max-width: 640px;
}

/* ============ ARGUMENTOS ============ */
.rev-argumentos {
  padding: 60px 6vw;
  background: var(--cream-2);
}

.rev-argumentos-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.rev-argumentos article {
  background: var(--cream);
  border: 1px solid rgba(42, 26, 18, .06);
  border-radius: 24px;
  padding: 30px 26px;
}

.rev-argumentos .num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--butter-deep);
  margin-bottom: .6rem;
}

.rev-argumentos h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--cocoa);
  margin-bottom: .5rem;
}

.rev-argumentos p {
  font-size: .95rem;
  line-height: 1.6;
  color: var(--cocoa-soft);
}

/* ============ FORMULARIO ============ */
.rev-form-secao {
  padding: 80px 6vw 100px;
  background: var(--cream);
}

.rev-form-inner {
  max-width: 780px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(42, 26, 18, .08);
  border-radius: 28px;
  padding: 44px 40px;
  box-shadow: 0 30px 60px -40px rgba(42, 26, 18, .45);
}

.rev-form-cabecalho {
  margin-bottom: 28px;
}

.rev-form-cabecalho h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--cocoa);
  letter-spacing: -.02em;
}

.rev-form-cabecalho p {
  color: var(--cocoa-soft);
  font-size: .98rem;
  margin-top: .4rem;
}

/* ============ ABAS ============ */
.abas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--cream-2);
  padding: 6px;
  border-radius: 16px;
  margin-bottom: 14px;
}

.aba {
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  color: var(--cocoa-soft);
  background: transparent;
  border: 0;
  border-radius: 12px;
  padding: 12px 10px;
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
}

.aba:hover {
  color: var(--cocoa);
}

.aba.ativa {
  background: var(--cocoa);
  color: var(--cream);
  box-shadow: 0 8px 20px -12px rgba(42, 26, 18, .8);
}

.aba:focus-visible {
  outline: 3px solid var(--butter-deep);
  outline-offset: 2px;
}

.aba-descricao {
  font-size: .9rem;
  color: var(--cocoa-soft);
  margin-bottom: 24px;
}

/* ============ CAMPOS ============ */
.campos {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 18px;
  margin-bottom: 18px;
}

/* display de classe vence o atributo hidden do navegador, entao e preciso ser explicito */
.campos[hidden],
.aba-descricao[hidden],
.aviso-preview[hidden] {
  display: none;
}

.campo {
  display: flex;
  flex-direction: column;
  grid-column: span 2;
}

.campo-uf {
  grid-column: span 1;
}

.campos .campo:nth-child(3) {
  grid-column: span 1;
}

.campo-largo {
  grid-column: span 2;
}

.campo label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--cocoa);
  margin-bottom: .4rem;
}

.campo .opcional {
  font-weight: 400;
  color: var(--cocoa-soft);
  opacity: .7;
}

.campo input,
.campo select,
.campo textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--cocoa);
  background: var(--cream);
  border: 1px solid rgba(42, 26, 18, .14);
  border-radius: 12px;
  padding: 13px 14px;
  width: 100%;
  transition: border-color .2s, box-shadow .2s;
}

.campo textarea {
  resize: vertical;
  min-height: 96px;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  outline: none;
  border-color: var(--tomato);
  box-shadow: 0 0 0 3px rgba(216, 52, 28, .12);
}

.campo [aria-invalid="true"] {
  border-color: var(--tomato);
  background: rgba(216, 52, 28, .04);
}

.erro {
  font-size: .82rem;
  color: var(--tomato-deep);
  min-height: 1.1rem;
  margin-top: .3rem;
}

.erro:empty {
  min-height: 0;
  margin-top: 0;
}

/* ============ CONSENTIMENTO E ENVIO ============ */
.campo-consentimento {
  margin: 8px 0 22px;
}

.consentimento {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9rem;
  font-weight: 400;
  color: var(--cocoa-soft);
  line-height: 1.5;
  cursor: pointer;
}

.consentimento input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--tomato);
  flex-shrink: 0;
}

.consentimento a {
  color: var(--tomato);
  text-decoration: underline;
}

.btn-enviar {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 16px 24px;
}

.btn-enviar:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.rev-alternativa {
  margin-top: 16px;
  font-size: .9rem;
  color: var(--cocoa-soft);
  text-align: center;
}

.rev-alternativa a {
  color: var(--tomato);
  font-weight: 600;
}

.rev-erro-geral {
  background: rgba(216, 52, 28, .08);
  border: 1px solid rgba(216, 52, 28, .25);
  color: var(--tomato-deep);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: .92rem;
}

.aviso-preview {
  background: var(--cream-2);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: .88rem;
  color: var(--cocoa-soft);
  margin-bottom: 16px;
}

/* Honeypot: escondido por CSS, nunca por type=hidden, que robo reconhece. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============ SUCESSO ============ */
.rev-sucesso {
  text-align: center;
  padding: 20px 0 10px;
}

.rev-sucesso h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 900;
  color: var(--cocoa);
  margin-bottom: .8rem;
}

.rev-sucesso p {
  color: var(--cocoa-soft);
  max-width: 460px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

/* ============ NAV ATIVA ============ */
.nav-links a.ativo {
  color: var(--tomato);
  font-weight: 700;
}

/* ============ RESPONSIVO ============ */
@media (max-width: 960px) {
  .rev-argumentos-inner {
    grid-template-columns: 1fr;
  }
  .rev-form-inner {
    padding: 32px 24px;
  }
}

@media (max-width: 560px) {
  .rev-hero {
    padding: var(--topo-pagina) 6vw 40px;
  }
  .campos {
    grid-template-columns: 1fr 90px;
    gap: 14px;
  }
  .abas {
    grid-template-columns: 1fr;
  }
}
