/* Conector WhatsApp — Popup Styles */

#cw-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

#cw-overlay.cw-ativo {
  display: flex;
}

#cw-modal {
  background: #fff;
  border-radius: 12px;
  padding: 32px 28px 28px;
  width: 100%;
  max-width: 440px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: cwEntrar 0.25s ease;
}

@keyframes cwEntrar {
  from { opacity: 0; transform: translateY(-20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

#cw-fechar {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}

#cw-fechar:hover {
  background: #f3f4f6;
  color: #111;
}

#cw-modal h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  color: #111827;
}

#cw-modal p.cw-subtitulo {
  margin: 0 0 20px;
  color: #6b7280;
  font-size: 0.9rem;
}

.cw-campo {
  margin-bottom: 16px;
}

.cw-campo label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.cw-campo input,
.cw-campo select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #111827;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s;
  appearance: none;
}

.cw-campo input:focus,
.cw-campo select:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.cw-campo select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

#cw-btn-enviar {
  width: 100%;
  padding: 13px;
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
  letter-spacing: 0.02em;
}

#cw-btn-enviar:hover:not(:disabled) {
  background: #15803d;
}

#cw-btn-enviar:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#cw-mensagem-retorno {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
}

#cw-mensagem-retorno.cw-sucesso {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

#cw-mensagem-retorno.cw-erro {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

@media (max-width: 480px) {
  #cw-modal {
    padding: 24px 18px 20px;
  }

  #cw-modal h2 {
    font-size: 1.15rem;
  }
}
