@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800;900&display=swap');
/* ============================================================
   SELMETAL — Botão Flutuante Premium
   Prefixo: smfb-
   Azul:  #0D3364   Acento: #4a8fd4   Fundo painel: #fff
   Fonte: Barlow
   ============================================================ */

:root {
  --smfb-blue:        #0D3364;
  --smfb-accent:      #4a8fd4;
  --smfb-accent-dim:  rgba(74,143,212,0.12);
  --smfb-accent-glow: rgba(74,143,212,0.35);
  --smfb-border:      rgba(13,51,100,0.12);
  --smfb-bg:          #ffffff;
  --smfb-bg2:         #f4f7fb;
  --smfb-text:        #0b1220;
  --smfb-muted:       #6a7590;
  --smfb-size:        62px;
  --smfb-width:       310px;
  --smfb-font:        'Barlow', sans-serif;
}

/* ══════════════════════════════════════
   01. BOTÃO GATILHO
   ══════════════════════════════════════ */
.smfb-trigger {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9990;
  width: var(--smfb-size);
  height: var(--smfb-size);
  background: #25D366;
  border: none;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  padding: 0;
  overflow: hidden;
  color: #fff;
  transition:
    transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
    box-shadow 0.35s ease;
  box-shadow:
    0 8px 32px rgba(37,211,102,0.4),
    inset 0 1px 0 rgba(255,255,255,0.15);
}

/* Losango giratório de fundo */
.smfb-trigger-diamond {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(74,143,212,0.2);
  border-radius: 4px;
  transform: rotate(45deg);
  transition: transform 0.6s ease, opacity 0.3s;
  pointer-events: none;
}

/* Linha de solda animada (equivalente ao scan da Matrix Print) */
.smfb-trigger::after {
  content: '';
  position: absolute;
  left: -10%;
  right: -10%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--smfb-accent), rgba(255,255,255,0.6), var(--smfb-accent), transparent);
  top: -10%;
  animation: smfb-weld 3.8s ease-in-out infinite;
  opacity: 0;
}

@keyframes smfb-weld {
  0%   { top: -10%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 110%; opacity: 0; }
}

/* Reflexo no topo */
.smfb-trigger::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(255,255,255,0.07) 0%, transparent 100%);
  border-radius: 14px 14px 0 0;
  pointer-events: none;
}

.smfb-trigger:hover {
  background: #1da851;
  border-color: transparent;
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 0 22px rgba(37,211,102,0.5),
    0 12px 40px rgba(37,211,102,0.45),
    inset 0 1px 0 rgba(255,255,255,0.1);
}

.smfb-trigger:hover .smfb-trigger-diamond {
  transform: rotate(45deg) scale(1.15);
  opacity: 0.6;
}

.smfb-trigger.smfb-is-open {
  background: #1da851;
  border-color: transparent;
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 0 30px rgba(37,211,102,0.5),
    0 12px 40px rgba(37,211,102,0.5);
}

/* ---- Ícone losango (fechado) ---- */
.smfb-icon-wrap {
  position: relative;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.22s ease, transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  color: #fff;
  filter: drop-shadow(0 0 6px rgba(74,143,212,0.5));
}

.smfb-icon-wrap svg { width: 26px; height: 26px; }

/* ---- Ícone X (aberto) ---- */
.smfb-close-wrap {
  position: absolute;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
  transition: opacity 0.22s ease, transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  color: #fff;
}

.smfb-close-wrap svg { width: 20px; height: 20px; }

.smfb-is-open .smfb-icon-wrap  { opacity: 0; transform: rotate(90deg) scale(0.6); }
.smfb-is-open .smfb-close-wrap { opacity: 1; transform: rotate(0deg) scale(1); }

/* ---- Tooltip ---- */
.smfb-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--smfb-blue);
  border: 1px solid rgba(74,143,212,0.25);
  color: #fff;
  font-family: var(--smfb-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 7px 13px;
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
  box-shadow: 0 4px 20px rgba(13,51,100,0.2);
}

.smfb-tooltip::after {
  content: '';
  position: absolute;
  right: -6px; top: 50%;
  transform: translateY(-50%);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid var(--smfb-blue);
}

.smfb-trigger:not(.smfb-is-open):hover .smfb-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ══════════════════════════════════════
   02. PAINEL FLUTUANTE
   ══════════════════════════════════════ */
.smfb-panel {
  position: fixed;
  bottom: 108px;
  right: 32px;
  z-index: 9989;
  width: var(--smfb-width);
  background: var(--smfb-bg);
  border: 1px solid var(--smfb-border);
  border-radius: 20px;
  box-shadow:
    0 2px 4px rgba(13,51,100,0.04),
    0 30px 80px rgba(13,51,100,0.18),
    0 0 0 1px rgba(74,143,212,0.08);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translateY(18px) scale(0.95);
  transform-origin: bottom right;
  transition:
    opacity 0.38s cubic-bezier(0.16,1,0.3,1),
    transform 0.38s cubic-bezier(0.16,1,0.3,1);
}

.smfb-panel.smfb-panel-open {
  pointer-events: all;
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Linha de acento no topo do painel */
.smfb-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--smfb-blue) 0%, var(--smfb-accent) 50%, transparent 100%);
  z-index: 2;
}

/* Padrão de losangos no fundo */
.smfb-panel-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(13,51,100,0.025) 0px,
      rgba(13,51,100,0.025) 1px,
      transparent 1px,
      transparent 14px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(13,51,100,0.025) 0px,
      rgba(13,51,100,0.025) 1px,
      transparent 1px,
      transparent 14px
    );
  pointer-events: none;
  z-index: 0;
}

/* ---- Cabeçalho ---- */
.smfb-panel-head {
  position: relative;
  z-index: 1;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--smfb-border);
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--smfb-blue);
  overflow: hidden;
}

/* Detalhe geométrico no cabeçalho */
.smfb-panel-head::after {
  content: '';
  position: absolute;
  right: -20px; top: -20px;
  width: 100px; height: 100px;
  border: 20px solid rgba(74,143,212,0.1);
  border-radius: 4px;
  transform: rotate(45deg);
  pointer-events: none;
}

.smfb-panel-logo-wrap {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--smfb-accent);
}

.smfb-panel-logo-wrap svg { width: 22px; height: 22px; }

.smfb-panel-head-text { flex: 1; }

.smfb-panel-brand {
  font-family: var(--smfb-font);
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.1;
}

.smfb-panel-brand em {
  color: var(--smfb-accent);
  font-style: normal;
}

.smfb-panel-sub {
  font-family: var(--smfb-font);
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin-top: 3px;
  display: flex; align-items: center; gap: 5px;
}

.smfb-online-dot {
  width: 7px; height: 7px;
  background: #4adf90;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(74,223,144,0.7);
  animation: smfb-blink 2s ease-in-out infinite;
}

@keyframes smfb-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.smfb-panel-head-badge {
  font-family: var(--smfb-font);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--smfb-accent);
  background: rgba(74,143,212,0.15);
  border: 1px solid rgba(74,143,212,0.25);
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

/* ---- Body do painel ---- */
.smfb-panel-body {
  position: relative;
  z-index: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ---- Item de contato ---- */
.smfb-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--smfb-bg2);
  text-decoration: none !important;
  color: var(--smfb-text);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.28s cubic-bezier(0.34,1.56,0.64,1),
    box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

/* Shimmer no hover */
.smfb-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,51,100,0.06) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.smfb-item:hover::after { opacity: 1; }

.smfb-item:hover {
  background: #fff;
  border-color: rgba(13,51,100,0.12);
  transform: translateX(-4px);
  box-shadow: 4px 0 20px rgba(13,51,100,0.08), 0 4px 16px rgba(13,51,100,0.06);
  text-decoration: none !important;
}

/* Ícones por canal */
.smfb-item-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1);
}

.smfb-item:hover .smfb-item-icon { transform: scale(1.1) rotate(-5deg); }

.smfb-item-icon svg {
  width: 18px; height: 18px;
  transition: filter 0.25s;
}

.smfb-item:hover .smfb-item-icon svg { filter: drop-shadow(0 0 4px currentColor); }

.smfb-item-icon--whatsapp {
  background: rgba(37,211,102,0.1);
  border: 1px solid rgba(37,211,102,0.2);
}
.smfb-item-icon--whatsapp svg { fill: #25D366; stroke: none; width: 19px; height: 19px; }

.smfb-item-icon--phone {
  background: rgba(13,51,100,0.07);
  border: 1px solid rgba(13,51,100,0.12);
  color: var(--smfb-blue);
}

.smfb-item-icon--quote {
  background: rgba(74,143,212,0.1);
  border: 1px solid rgba(74,143,212,0.2);
  color: var(--smfb-accent);
}

.smfb-item-icon--email {
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.18);
  color: #6366f1;
}

.smfb-item-text { flex: 1; min-width: 0; }

.smfb-item-label {
  font-family: var(--smfb-font);
  font-size: 13px;
  font-weight: 700;
  color: var(--smfb-text);
  line-height: 1.2;
}

.smfb-item-desc {
  font-family: var(--smfb-font);
  font-size: 10.5px;
  color: var(--smfb-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.smfb-item-arrow {
  width: 24px; height: 24px;
  background: rgba(13,51,100,0.06);
  border: 1px solid rgba(13,51,100,0.08);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.22s, border-color 0.22s, transform 0.22s;
}

.smfb-item-arrow svg {
  width: 10px; height: 10px;
  stroke: var(--smfb-muted);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.22s, transform 0.22s;
}

.smfb-item:hover .smfb-item-arrow {
  background: var(--smfb-blue);
  border-color: var(--smfb-blue);
  transform: scale(1.1);
}

.smfb-item:hover .smfb-item-arrow svg {
  stroke: #fff;
  transform: translateX(1px);
}

/* ---- Rodapé ---- */
.smfb-panel-foot {
  position: relative;
  z-index: 1;
  padding: 11px 16px 13px;
  border-top: 1px solid var(--smfb-border);
  background: var(--smfb-bg2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.smfb-foot-title {
  font-family: var(--smfb-font);
  font-size: 12px;
  font-weight: 700;
  color: var(--smfb-text);
}

.smfb-foot-sub {
  font-family: var(--smfb-font);
  font-size: 10px;
  color: var(--smfb-muted);
  margin-top: 1px;
}

.smfb-foot-badges {
  display: flex;
  gap: 4px;
}

.smfb-foot-badges span {
  font-family: var(--smfb-font);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--smfb-blue);
  background: rgba(13,51,100,0.07);
  border: 1px solid rgba(13,51,100,0.1);
  padding: 3px 7px;
  border-radius: 4px;
}

/* ══════════════════════════════════════
   03. OVERLAY
   ══════════════════════════════════════ */
.smfb-overlay {
  position: fixed;
  inset: 0;
  z-index: 9988;
  pointer-events: none;
  opacity: 0;
}

.smfb-overlay.smfb-overlay-active { pointer-events: all; }

/* ══════════════════════════════════════
   04. ANIMAÇÃO DOS ITENS AO ABRIR
   ══════════════════════════════════════ */
@keyframes smfb-item-in {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.smfb-panel-open .smfb-item:nth-child(1) { animation: smfb-item-in 0.32s cubic-bezier(0.16,1,0.3,1) 0.04s both; }
.smfb-panel-open .smfb-item:nth-child(2) { animation: smfb-item-in 0.32s cubic-bezier(0.16,1,0.3,1) 0.11s both; }
.smfb-panel-open .smfb-item:nth-child(3) { animation: smfb-item-in 0.32s cubic-bezier(0.16,1,0.3,1) 0.18s both; }
.smfb-panel-open .smfb-item:nth-child(4) { animation: smfb-item-in 0.32s cubic-bezier(0.16,1,0.3,1) 0.25s both; }

/* ══════════════════════════════════════
   05. BALÃO
   ══════════════════════════════════════ */
.smfb-bubble {
  position: fixed;
  bottom: 42px;
  right: 106px;
  z-index: 9989;
  display: flex;
  align-items: center;
  background: var(--smfb-blue);
  color: #fff;
  font-family: var(--smfb-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  padding: 11px 18px;
  border-radius: 22px 22px 4px 22px;
  box-shadow:
    0 8px 32px rgba(13,51,100,0.3),
    0 2px 8px rgba(13,51,100,0.15);
  cursor: pointer;
  animation: smfb-bubble-in 0.55s cubic-bezier(0.34,1.56,0.64,1) 1.2s both;
  transition:
    transform 0.25s cubic-bezier(0.34,1.56,0.64,1),
    box-shadow 0.25s ease,
    opacity 0.3s ease;
}

/* Ponto acento */
.smfb-bubble::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--smfb-accent);
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0;
  animation: smfb-dot-pulse 2s ease-in-out infinite;
}

/* Setinha para o botão */
.smfb-bubble::after {
  content: '';
  position: absolute;
  right: -8px; bottom: 0;
  width: 0; height: 0;
  border-top: 9px solid var(--smfb-blue);
  border-right: 9px solid transparent;
}

@keyframes smfb-bubble-in {
  from { opacity: 0; transform: scale(0.7) translateX(20px); }
  to   { opacity: 1; transform: scale(1) translateX(0); }
}

@keyframes smfb-dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.5); opacity: 0.6; }
}

.smfb-bubble:hover {
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 12px 40px rgba(13,51,100,0.35);
}

.smfb-bubble.smfb-bubble-hidden {
  opacity: 0;
  transform: scale(0.8) translateX(10px);
  pointer-events: none;
}

/* ══════════════════════════════════════
   06. MOBILE
   ══════════════════════════════════════ */
@media (max-width: 480px) {
  :root {
    --smfb-width: calc(100vw - 28px);
    --smfb-size: 56px;
  }

  .smfb-trigger { bottom: 20px; right: 14px; border-radius: 14px; }
  .smfb-panel   { bottom: 88px; right: 14px; border-radius: 16px; }
  .smfb-bubble  { right: 82px; bottom: 30px; font-size: 12px; padding: 9px 14px; }
  .smfb-tooltip { display: none; }
}

/* ══════════════════════════════════════
   FORMULÁRIO DE LEADS
   ══════════════════════════════════════ */
.smfb-form-intro {
  font-family: var(--smfb-font);
  font-size: 12.5px;
  color: var(--smfb-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.smfb-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.smfb-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--smfb-font);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--smfb-blue);
}

.smfb-required { color: #e53e3e; }
.smfb-optional {
  color: var(--smfb-muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.smfb-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 52px;
  padding: 15px 14px;
  line-height: 1.4;
  font-family: var(--smfb-font) !important;
  font-size: 14px !important;
  color: #0b1220 !important;
  -webkit-text-fill-color: #0b1220 !important;
  background: #f4f7fb !important;
  border: 1.5px solid rgba(13,51,100,0.2) !important;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.smfb-input::placeholder {
  color: rgba(13,51,100,0.4) !important;
  -webkit-text-fill-color: rgba(13,51,100,0.4) !important;
  opacity: 1;
}

.smfb-input:focus {
  border-color: #4a8fd4 !important;
  box-shadow: 0 0 0 3px rgba(74,143,212,0.12) !important;
  background: #ffffff !important;
  color: #0b1220 !important;
  -webkit-text-fill-color: #0b1220 !important;
}

.smfb-input--error {
  border-color: #e53e3e !important;
  box-shadow: 0 0 0 3px rgba(229,62,62,0.1) !important;
}

.smfb-error {
  font-family: var(--smfb-font);
  font-size: 11px;
  color: #e53e3e;
  display: none;
  margin-bottom: 4px;
}

.smfb-error.smfb-error--show { display: block; }

.smfb-whats-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px;
  font-family: var(--smfb-font);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  background: #25D366;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
}

.smfb-whats-btn:hover {
  background: #1da851;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.3);
}

.smfb-whats-btn.smfb-loading {
  opacity: 0.7;
  pointer-events: none;
}