/* ══════════════════════════════════════════════════════════
   BOER WHATSAPP · Widget standalone (WordPress ou qualquer CMS)
   Todas as classes usam prefixo .boer-wa- para NÃO conflitar
   com CSS do tema. Cores e tipografia definidas localmente.
   Versão 1.0 — 2026
══════════════════════════════════════════════════════════ */

.boer-wa-scope {
  --boer-wa-primary:      #0B2347;
  --boer-wa-primary-mid:  #1E76F7;
  --boer-wa-text:         #0F172A;
  --boer-wa-text-muted:   #64748B;
  --boer-wa-text-soft:    #94A3B8;
  --boer-wa-border:       #E2E8F0;
  --boer-wa-bg-soft:      #F8FAFC;
  --boer-wa-surface:      #FFFFFF;
  --boer-wa-green:        #25D366;
  --boer-wa-green-dark:   #1DA851;
  --boer-wa-radius:       12px;
  --boer-wa-radius-lg:    20px;
  --boer-wa-shadow:       0 24px 64px rgba(15,23,42,.35);
  --boer-wa-shadow-btn:   0 8px 24px rgba(37,211,102,.35);
  --boer-wa-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

/* ── Botão flutuante ── */
.boer-wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--boer-wa-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: var(--boer-wa-shadow-btn);
  z-index: 9998;
  transition: transform .2s ease, background .2s ease;
  animation: boerWaPulse 2.4s ease-in-out infinite;
  text-decoration: none;
}
.boer-wa-float:hover,
.boer-wa-float:focus-visible {
  transform: scale(1.06);
  background: var(--boer-wa-green-dark);
  outline: none;
}
.boer-wa-float svg { width: 28px; height: 28px; fill: currentColor; }

@keyframes boerWaPulse {
  0%, 100% { box-shadow: var(--boer-wa-shadow-btn), 0 0 0 0 rgba(37,211,102,.4); }
  50%      { box-shadow: var(--boer-wa-shadow-btn), 0 0 0 14px rgba(37,211,102,0); }
}

/* ── Modal ── */
.boer-wa-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: var(--boer-wa-font);
}
.boer-wa-modal[hidden] { display: none; }

.boer-wa-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.65);
  backdrop-filter: blur(4px);
  animation: boerWaFade .2s ease;
}

.boer-wa-card {
  position: relative;
  background: var(--boer-wa-surface);
  width: 100%;
  max-width: 520px;
  border-radius: var(--boer-wa-radius-lg);
  box-shadow: var(--boer-wa-shadow);
  padding: 28px 28px 24px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  animation: boerWaSlide .28s cubic-bezier(.2,.9,.3,1.15);
  color: var(--boer-wa-text);
}

.boer-wa-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--boer-wa-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  padding: 0;
}
.boer-wa-close:hover { background: #F1F5F9; color: var(--boer-wa-text); }

.boer-wa-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-right: 32px;
}
.boer-wa-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--boer-wa-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.boer-wa-icon svg { width: 26px; height: 26px; fill: currentColor; }
.boer-wa-head h3 {
  font-family: 'Plus Jakarta Sans', var(--boer-wa-font);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--boer-wa-text);
  margin: 0 0 4px;
  letter-spacing: -.01em;
  line-height: 1.25;
}
.boer-wa-head p {
  font-size: .88rem;
  color: var(--boer-wa-text-muted);
  margin: 0;
  line-height: 1.45;
}

/* ── Form ── */
.boer-wa-form { display: block; }
.boer-wa-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.boer-wa-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.boer-wa-group label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--boer-wa-text);
}
.boer-wa-group input,
.boer-wa-group select,
.boer-wa-group textarea {
  padding: 11px 14px;
  border: 1px solid var(--boer-wa-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: .9rem;
  color: var(--boer-wa-text);
  background: var(--boer-wa-surface);
  transition: border .2s, box-shadow .2s;
  width: 100%;
  box-sizing: border-box;
  line-height: 1.4;
}
.boer-wa-group input:focus,
.boer-wa-group select:focus,
.boer-wa-group textarea:focus {
  outline: none;
  border-color: var(--boer-wa-primary-mid);
  box-shadow: 0 0 0 3px rgba(30,118,247,.12);
}
.boer-wa-group textarea {
  resize: vertical;
  min-height: 72px;
  font-family: inherit;
}

/* honeypot */
.boer-wa-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* botão submit */
.boer-wa-submit {
  width: 100%;
  margin-top: 6px;
  padding: 14px 20px;
  background: var(--boer-wa-green);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .18s ease, transform .18s ease;
}
.boer-wa-submit:hover:not([disabled]) { background: var(--boer-wa-green-dark); }
.boer-wa-submit:active { transform: translateY(1px); }
.boer-wa-submit[disabled] { opacity: .7; cursor: wait; }
.boer-wa-submit svg { width: 16px; height: 16px; fill: currentColor; }

.boer-wa-hint {
  font-size: .78rem;
  color: var(--boer-wa-text-soft);
  text-align: center;
  margin: 12px 0 0;
  line-height: 1.5;
}

@keyframes boerWaFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes boerWaSlide {
  from { opacity: 0; transform: translateY(20px) scale(.98) }
  to   { opacity: 1; transform: none }
}

@media (max-width: 560px) {
  .boer-wa-card { padding: 22px 20px 20px; }
  .boer-wa-row { grid-template-columns: 1fr; }
  .boer-wa-float { bottom: 18px; right: 18px; width: 52px; height: 52px; }
  .boer-wa-float svg { width: 26px; height: 26px; }
}
