/* WA Widget CSS */
:root {
  --wa: #ef4444;   /* vermelho */
  --ink: #1f2937;  /* cinza escuro (texto) */
  --muted: #6b7280;/* cinza neutro */
  --bg: #ffffff;
  --card: #f8fafc;
  --line: #e5e7eb;
  --focus: #ef4444;
  --error: #ef4444;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(2, 6, 23, .18);
}

.wa-fab {
  position: fixed; inset: auto 20px 20px auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--wa); color: #fff; border: 0; cursor: pointer;
  box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; z-index: 9999;
}
.wa-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(2,6,23,.24); }
.wa-fab:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

.wa-modal { position: fixed; inset: 0; display: none; z-index: 9998; }
.wa-modal[aria-hidden="false"] { display: block; }
.wa-overlay { position: absolute; inset: 0; background: rgba(2,6,23,.52); backdrop-filter: blur(2px); }
.wa-dialog { position: relative; max-width: 460px; margin: 7vh auto; background: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.wa-header { padding: 18px 22px; background: var(--card); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.wa-title { margin: 0; font-size: 18px; font-weight: 700; }
.wa-body { padding: 20px 22px; }
.wa-actions { display: flex; gap: 12px; justify-content: flex-end; padding: 16px 22px; border-top: 1px solid var(--line); background: var(--card); }

.field { display: grid; gap: 8px; margin-bottom: 14px; }
.field label { font-size: 14px; color: var(--muted); }
.input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 12px; font-size: 16px; outline: none; background: #fff; }
.input:focus { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(239,68,68,.15); }
.error { color: var(--error); font-size: 13px; margin-top: -6px; margin-bottom: 10px; display: none; }
.error.show { display: block; }

.btn { border: 0; border-radius: 10px; padding: 12px 16px; font-size: 15px; cursor: pointer; }
.btn-primary { background: var(--wa); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-wa { background: var(--wa); color: #fff; font-weight: 700; }
.btn-outline { background: #fff; border: 1px solid var(--line); }

.step { display: none; }
.step.active { display: block; }

.choices { display: grid; gap: 12px; grid-template-columns: 1fr; }
.choice { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; background:#fff; }
.choice:hover { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(239,68,68,.10); }
.choice h4 { margin: 0; font-size: 16px; }
.choice p { margin: 0; font-size: 13px; color: var(--muted); }

/* CTA que ativa o modal via shortcode [wa_widget_button] ou classe js-wa-open */
.wa-widget-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 12px 18px;
  background: var(--wa);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.wa-widget-button:hover { filter: brightness(0.95); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 520px) {
  .wa-dialog { margin: 0; inset: auto 0 0 0; border-radius: 16px 16px 0 0; max-width: none; }
}
