/* Formulário de contato antes do WhatsApp: Atlas Corporate
   Herdado do modal anterior, com ajustes de acessibilidade e estados de envio. */

.wpp-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: wppFadeIn .25s ease;
}
.wpp-overlay.open { display: flex; }

@keyframes wppFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.wpp-card {
  background: #111111;
  border: 1px solid rgba(196,146,58,.28);
  border-radius: 18px;
  width: 100%;
  max-width: 440px;
  padding: 42px 38px 34px;
  position: relative;
  box-shadow: 0 48px 100px rgba(0,0,0,.65), 0 0 0 1px rgba(196,146,58,.1) inset;
  animation: wppSlideUp .3s cubic-bezier(.34,1.56,.64,1);
}

@keyframes wppSlideUp {
  from { opacity: 0; transform: translateY(28px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.wpp-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,.4);
  font-size: 18px;
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.wpp-close:hover { color: #fff; background: rgba(255,255,255,.1); }

.wpp-logo {
  height: 34px;
  margin-bottom: 22px;
  display: block;
}

.wpp-title {
  font-family: var(--ff-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 8px;
}

.wpp-subtitle {
  font-family: var(--ff-sans);
  font-size: .87rem;
  color: rgba(255,255,255,.5);
  margin: 0 0 28px;
  line-height: 1.55;
}

.wpp-divider {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #C4923A, transparent);
  margin-bottom: 26px;
  border: none;
}

.wpp-field {
  margin-bottom: 13px;
}

.wpp-field input {
  width: 100%;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(196,146,58,.2);
  border-radius: 4px;
  padding: 14px 16px;
  color: #fff;
  font-family: var(--ff-sans);
  font-size: .9rem;
  outline: none;
  transition: border-color .25s, background .25s;
  box-sizing: border-box;
}
.wpp-field input::placeholder { color: rgba(255,255,255,.32); }
.wpp-field input:focus {
  border-color: #C4923A;
  background: rgba(196,146,58,.06);
}

.wpp-btn {
  width: 100%;
  background: var(--gold);
  color: #0A0A0A;
  border: none;
  border-radius: 4px;
  letter-spacing: .01em;
  padding: 16px;
  font-family: var(--ff-sans);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  transition: all .25s;
}
.wpp-btn:hover:not(:disabled) {
  background: var(--gold-light, #D4A85A);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(196,146,58,.28);
}
.wpp-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.wpp-legal {
  font-family: var(--ff-sans);
  font-size: .74rem;
  color: rgba(255,255,255,.28);
  text-align: center;
  margin: 16px 0 0;
  line-height: 1.5;
}
.wpp-legal a {
  color: rgba(196,146,58,.65);
  text-decoration: none;
}
.wpp-legal a:hover { color: #C4923A; }

@media (max-width: 480px) {
  .wpp-card { padding: 32px 24px 28px; }
  .wpp-title { font-size: 1.5rem; }
}

/* ── estados e acessibilidade, acrescentados nesta versão ── */
.wpp-field input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.wpp-btn:disabled { opacity: .6; cursor: progress; }
.wpp-erro {
  display: none;
  margin: 10px 0 0;
  font-family: var(--ff-sans);
  font-size: 13px;
  line-height: 1.5;
  color: #E86A5E;
}
.wpp-erro.visivel { display: block; }
/* campo-armadilha: invisível para gente, preenchido por robô */
.wpp-armadilha {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .wpp-overlay { animation: none; }
}

/* ── tela de agradecimento ── */
.wpp-obrigado { display: none; text-align: center; padding: 8px 0 4px; }
.wpp-card.concluido form,
.wpp-card.concluido .wpp-subtitle,
.wpp-card.concluido .wpp-divider,
.wpp-card.concluido .wpp-legal,
.wpp-card.concluido > .wpp-title { display: none; }
.wpp-card.concluido .wpp-obrigado { display: block; }

.wpp-obrigado-marca {
  width: 56px; height: 56px; margin: 4px auto 22px;
  border: 1px solid var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(196,146,58,.1);
}
.wpp-obrigado-marca svg {
  width: 26px; height: 26px;
  stroke: var(--gold); fill: none; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
}
.wpp-obrigado-titulo {
  font-family: var(--ff-serif); font-size: 23px; font-weight: 600;
  color: var(--white); margin: 0 0 12px; line-height: 1.25;
}
.wpp-obrigado-texto {
  font-family: var(--ff-sans); font-size: 14px; line-height: 1.7;
  color: rgba(255,255,255,.68); margin: 0 auto 24px; max-width: 46ch;
}
.wpp-obrigado-link {
  display: inline-block; padding: 13px 28px;
  background: var(--gold); color: #0A0A0A;
  font-family: var(--ff-sans); font-size: 14px; font-weight: 600;
  border-radius: 4px; text-decoration: none;
  transition: background .2s ease;
}
.wpp-obrigado-link:hover { background: var(--gold-light, #D4A85A); }
.wpp-obrigado-rodape {
  font-family: var(--ff-sans); font-size: 12px; letter-spacing: .03em;
  color: rgba(255,255,255,.4); margin: 22px 0 0;
}
