/* Botão Flutuante WhatsApp - Best Digital */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,100..1000&family=Plus+Jakarta+Sans:wght@200..800&display=swap');

/* ── CONTAINER ── */
.bfw-container {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 9999999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-family: "DM Sans", sans-serif;
}

/* ── FORMULÁRIO EXPANDIDO ── */
.bfw-form-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  width: 320px;
  overflow: hidden;
  display: none;
  flex-direction: column;
  animation: bfw-slide-up 0.3s ease;
  border: 1px solid #eee;
}

.bfw-form-box.bfw-open {
  display: flex;
}

@keyframes bfw-slide-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Header do formulário */
.bfw-form-header {
  background: #FF4000;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.bfw-form-header-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  object-fit: cover;
  flex-shrink: 0;
}

.bfw-form-header-info {
  flex: 1;
}

.bfw-form-header-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 2px;
}

.bfw-form-header-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.bfw-form-header-sub::before {
  content: '';
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.bfw-form-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 0;
  position: absolute;
  top: 12px;
  right: 14px;
  transition: color 0.2s;
}

.bfw-form-close:hover { color: #fff; }

/* Body do formulário */
.bfw-form-body {
  padding: 18px 18px 0;
}

.bfw-form-desc {
  font-size: 13px;
  color: #555;
  margin: 0 0 14px;
  line-height: 1.5;
}

.bfw-form-group {
  margin-bottom: 12px;
}

.bfw-form-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #333;
  margin-bottom: 5px;
}

.bfw-form-label svg {
  width: 13px;
  height: 13px;
  color: #FF4000;
  flex-shrink: 0;
}

.bfw-form-label span.bfw-optional {
  font-size: 10px;
  font-weight: 400;
  color: #999;
  text-transform: none;
  letter-spacing: 0;
}

.bfw-form-input {
  width: 100%;
  height: 40px;
  border: 1.5px solid #e5e5e5;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
  font-family: "DM Sans", sans-serif;
  color: #222;
  background: #fafafa;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  outline: none;
}

.bfw-form-input:focus {
  border-color: #FF4000;
  box-shadow: 0 0 0 3px rgba(255,64,0,0.1);
  background: #fff8f6;
  outline: 2px solid #FF4000;
  outline-offset: 0;
}

.bfw-form-input::placeholder { color: #bbb; }

.bfw-form-input.bfw-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

/* Botão enviar */
.bfw-form-footer {
  padding: 14px 18px 16px;
}

.bfw-submit-btn {
  width: 100%;
  height: 46px;
  background: #25D366;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.3px;
}

.bfw-submit-btn:hover {
  background: #1ebe5d;
  transform: translateY(-1px);
}

.bfw-submit-btn:active { transform: translateY(0); }

.bfw-submit-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.bfw-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* LGPD */
.bfw-lgpd {
  padding: 0 18px 14px;
  font-size: 10px;
  color: #aaa;
  line-height: 1.5;
  text-align: center;
}

.bfw-lgpd a {
  color: #FF4000;
  text-decoration: none;
}

.bfw-lgpd a:hover { text-decoration: underline; }

/* Mensagem de sucesso */
.bfw-success {
  padding: 24px 18px;
  text-align: center;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.bfw-success.bfw-open { display: flex; }

.bfw-success-icon {
  width: 52px;
  height: 52px;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bfw-success-icon svg {
  width: 28px;
  height: 28px;
  color: #16a34a;
}

.bfw-success-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin: 0;
}

.bfw-success-sub {
  font-size: 13px;
  color: #666;
  margin: 0;
}

/* ── BOTÃO PRINCIPAL ── */
.bfw-btn {
  position: relative;
  width: 68px;
  height: 68px;
  background: #25D366;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(37,211,102,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: bfw-pulse 2.5s infinite;
  border: none;
  padding: 0;
  flex-shrink: 0;
}

.bfw-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(37,211,102,0.55);
}

.bfw-btn-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid rgba(255,255,255,0.5);
  position: absolute;
  transition: opacity 0.3s;
  z-index: 2;
}

.bfw-btn-icon {
  position: absolute;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bfw-btn-icon svg {
  width: 68px;
  height: 68px;
  border-radius: 50%;
}

.bfw-btn:hover .bfw-btn-logo { opacity: 0; }
.bfw-btn:hover .bfw-btn-icon { opacity: 1; }

/* Tooltip */
.bfw-tooltip {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  padding: 9px 14px;
  border-radius: 10px;
  box-shadow: 0 3px 14px rgba(0,0,0,0.15);
  border: 1px solid #eee;
  white-space: nowrap;
  pointer-events: none;
}

.bfw-tooltip p {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  font-family: "DM Sans", sans-serif;
}

.bfw-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  border-left: 6px solid #fff;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

/* Pulso */
@keyframes bfw-pulse {
  0%   { box-shadow: 0 6px 20px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0.6); }
  70%  { box-shadow: 0 6px 20px rgba(37,211,102,0.45), 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 6px 20px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0); }
}

/* ── RESPONSIVO ── */
@media (max-width: 768px) {
  .bfw-container {
    bottom: 20px;
    right: 16px;
  }

  .bfw-form-box {
    width: 290px;
  }

  .bfw-tooltip {
    display: none;
  }
}

@media (max-width: 480px) {
  .bfw-form-box {
    width: calc(100vw - 32px);
    max-width: 320px;
  }
}