/* CRMPages Connector — estilos */

/* ---- Formulário inline [crmpages_form] ---- */
.crmpages-form { max-width: 440px; display: grid; gap: 12px; }
.crmpages-form-title { margin: 0 0 4px; font-size: 1.25rem; }
.crmpages-field { display: grid; gap: 4px; font-size: 14px; }
.crmpages-field > span { font-weight: 600; }
.crmpages-field input, .crmpages-field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #cbd5e1; border-radius: 10px;
  font-size: 15px; box-sizing: border-box; background: #fff; color: #0f172a;
}
.crmpages-field input:focus, .crmpages-field textarea:focus {
  outline: none; border-color: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.2);
}
.crmpages-btn {
  padding: 13px 16px; border: 0; border-radius: 10px; background: #0f172a; color: #fff;
  font-weight: 700; font-size: 15px; cursor: pointer;
}
.crmpages-btn:disabled { opacity: .6; cursor: default; }
.crmpages-btn-wa { background: #22c55e; display: flex; align-items: center; justify-content: center; gap: 8px; }
.crmpages-msg { margin: 4px 0 0; font-size: 14px; min-height: 1em; }
.crmpages-msg.is-ok { color: #15803d; }
.crmpages-msg.is-err { color: #b91c1c; }

/* ---- Botão de WhatsApp (shortcode) ---- */
.crmpages-wa-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px;
  background: #22c55e; color: #fff; border: 0; border-radius: 999px;
  font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none;
}
.crmpages-wa-btn:hover { background: #16a34a; }
.crmpages-wa-ico { display: inline-flex; }

/* ---- Botão flutuante ---- */
.crmpages-floating {
  position: fixed; bottom: 20px; z-index: 99998;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 18px; background: #22c55e; color: #fff; border: 0;
  border-radius: 999px; font-weight: 700; font-size: 15px; cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.crmpages-floating:hover { background: #16a34a; }
.crmpages-floating-right { right: 20px; }
.crmpages-floating-left { left: 20px; }
.crmpages-floating svg { width: 24px; height: 24px; }
@media (max-width: 480px) {
  .crmpages-floating-label { display: none; }
  .crmpages-floating { padding: 14px; border-radius: 50%; }
}

/* ---- Modal ---- */
.crmpages-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; }
.crmpages-modal[hidden] { display: none; }
.crmpages-modal-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.55); backdrop-filter: blur(2px); }
.crmpages-modal-card {
  position: relative; width: calc(100% - 32px); max-width: 420px; background: #fff;
  border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.35); padding: 24px; box-sizing: border-box;
  animation: crmpages-pop .15s ease-out;
}
@keyframes crmpages-pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.crmpages-modal-x {
  position: absolute; top: 10px; right: 14px; border: 0; background: transparent;
  font-size: 26px; line-height: 1; color: #94a3b8; cursor: pointer;
}
.crmpages-modal-title { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 1.15rem; color: #0f172a; }
.crmpages-wa-dot { width: 12px; height: 12px; border-radius: 50%; background: #22c55e; display: inline-block; }
.crmpages-modal-desc { margin: 0 0 16px; font-size: 14px; color: #64748b; }
.crmpages-modal-form { display: grid; gap: 12px; }
.crmpages-err { margin: 0; font-size: 13px; color: #b91c1c; }
.crmpages-modal-form .crmpages-btn-wa { height: 50px; font-size: 16px; }

/* ---- Sucesso ---- */
.crmpages-success { text-align: center; display: grid; gap: 12px; justify-items: center; padding: 8px 0; }
.crmpages-success-ico { width: 56px; height: 56px; border-radius: 50%; background: #dcfce7; color: #16a34a; font-size: 28px; display: flex; align-items: center; justify-content: center; }
.crmpages-success p { margin: 0; font-size: 14px; color: #475569; }
