
/* ===== WhatsApp Balloon aesthetics adapted to inline form ===== */

.wfb2-form-wrapper { width: 100%; }
.wfb2-card{
  max-width: 560px;
  margin: 24px auto;
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(0,0,0,.12);
  overflow: hidden;
  font-family: Inter, Arial, sans-serif;
  background: #fff;
}

/* Header same as balloon */
.wfb2-header{
  background: #003f8f;
  color: #fff;
  padding: 16px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .3px;
  text-align: center;
}

.wfb2-body{
  padding: 18px;
  background: #f8fafc;
}

.wfb2-subtitle{
  margin: 6px 0 10px;
  color: #0f172a;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
}

/* Highlight profile selection */
@keyframes wfb2Pulse {
  0% { box-shadow: 0 0 0 0 rgba(0,87,184,.18); }

.wfb2-profile-select.needs-profile{
  outline: 3px solid rgba(0,87,184,.18);
  outline-offset: 6px;
  border-radius: 14px;
  animation: wfb2Pulse 1.6s ease-out infinite;
}
.wfb2-profile-select.needs-profile .wfb2-profile-card{
  border-color: rgba(0,87,184,.35);
  font-size: 14px;
  line-height: 1.25;
  color: #0f172a !important;
  white-space: normal !important;
  word-break: break-word;
  hyphens: auto;
}
70% { box-shadow: 0 0 0 10px rgba(0,87,184,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,87,184,0); }
}
/* Cards same style as balloon */
.wfb2-profile-select{
  width: 100%;
  max-width: 100%;
  align-items: stretch;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.wfb2-profile-card{
  appearance: none;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  font-weight: 600;
  color: #0f172a;
  transition: all .2s ease;
  text-align: left;
}

.wfb2-profile-card:hover{
  background: #f1f5f9;
  border-color: #0057b8;
  transform: translateY(-1px);
}

.wfb2-profile-card.active{
  border-color: #0057b8;
  border-width: 2px;
  box-shadow: 0 12px 30px rgba(0,87,184,.18), 0 0 0 4px rgba(0,87,184,.12);
  background: linear-gradient(0deg, rgba(0,87,184,.06), rgba(0,87,184,.06)), #ffffff;
  transform: translateY(-1px) scale(1.01);
  position: relative;
}
/* Overlay / locked form */
.wfb2-form-block{ position: relative; }
.wfb2-form-fields{
  filter: blur(1.0px);
  pointer-events: none;
  opacity: .85;
  transition: all .25s ease;
}
.wfb2-form-fields.unlocked{
  filter: none;
  pointer-events: auto;
  opacity: 1;
}

.wfb2-form-overlay{
  position: absolute;
  inset: 0;
  background: rgba(248,250,252,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-radius: 14px;
}
.wfb2-form-overlay.hidden{ display: none; }

.wfb2-overlay-box{
  background: #003f8f;
  color: #fff;
  border-radius: 14px;
  padding: 16px 18px;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
  border: 1px solid rgba(255,255,255,.14);
  z-index: 10;
}
/* Inputs same as balloon */
.wfb2-input{
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font-size: 14px;
  margin-bottom: 10px;
  background: #ffffff;
  box-sizing: border-box;
}
.wfb2-input::placeholder{ color: #64748b; }
.wfb2-input:focus{
  outline: none;
  border-color: #0057b8;
  box-shadow: 0 0 0 3px rgba(0,87,184,.12);
}

textarea.wfb2-input{ min-height: 96px; resize: vertical; }

/* Grid */
.wfb2-grid-2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 0px;
}

/* Radio */
.wfb2-radio-group{
  margin: 6px 0 12px;
}
.wfb2-radio-group strong{
  display: block;
  font-size: 14px;
  color: #0f172a;
  margin-bottom: 8px;
}
.wfb2-radio-options{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.wfb2-radio-label{
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  transition: all .2s ease;
}
.wfb2-radio-label:hover{
  background: #f1f5f9;
  border-color: #0057b8;
}

/* Button */
.wfb2-btn{
  width: 100%;
  padding: 13px;
  background: #0057b8;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .3px;
  cursor: pointer;
  margin-top: 6px;
  box-shadow: 0 10px 24px rgba(0,87,184,.25);
  transition: all .2s ease;
}
.wfb2-btn:hover{ background: #004a9f; }

/* Responsive */
@media (max-width: 600px){
  .wfb2-card{ margin: 16px auto; }
  .wfb2-grid-2{ grid-template-columns: 1fr; }
  .wfb2-profile-card{ text-align: left; }
}

@media (max-width: 600px){
  .wfb2-profile-select{ grid-template-columns: 1fr; }
}

.wfb2-profile-card.active:hover{ background: linear-gradient(0deg, rgba(0,87,184,.08), rgba(0,87,184,.08)), #ffffff; }

.wfb2-profile-card:focus{ outline: none; box-shadow: 0 0 0 3px rgba(0,87,184,.12); }

.wfb2-profile-card:active{ color: #0f172a !important; }


/* ===== Strong overrides (theme-proof) ===== */
.wfb2-profile-select{ width: 100% !important; max-width: 100% !important; }
.wfb2-profile-card{
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  display: block !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  hyphens: auto !important;
  color: #0f172a !important;
  font-size: 14px !important;
  line-height: 1.25 !important;
  text-align: left !important;
}
.wfb2-profile-card *{ color: inherit !important; }
.wfb2-profile-card.active{
  color: #0f172a !important;
}


/* ===== Requested tweaks ===== */
input.wfb2-input{
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font-size: 14px;
  margin-bottom: 5px;
  background: #ffffff;
  font-family: inherit;
  box-sizing: border-box;
}
.wfb2-profile-card{
  border: 1px solid #778393 !important;
}


/* ===== Check estilo "caixa vazia / preenchida" (sem pulo) ===== */
.wfb2-profile-card{
  position: relative !important;
  padding-right: 46px !important; /* reserva espaço fixo */
}
.wfb2-profile-card::after{
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 2px solid rgba(0,87,184,.45);
  background: transparent;         /* desmarcado */
  box-sizing: border-box;
  pointer-events: none;
}
.wfb2-profile-card::before{
  content: "✓";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-54%);
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  opacity: 0;                      /* escondido quando desmarcado */
  pointer-events: none;
}
.wfb2-profile-card.active::after{
  background: #0057b8;             /* marcado */
  border-color: #0057b8;
  box-shadow: 0 0 0 4px rgba(0,87,184,.12);
}
.wfb2-profile-card.active::before{
  opacity: 1;
}



/* Botão desabilitado após envio */
.wfb2-form-wrapper button[type="submit"][disabled],
.wfb2-form-wrapper input[type="submit"][disabled]{
  opacity: .7;
  cursor: not-allowed;
  pointer-events: none;
}


/* ===== Submit guard (botão só libera quando válido) ===== */
.wfb2-submit-wrap{ position: relative; }
.wfb2-submit-guard{
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: transparent;
  cursor: not-allowed;
}
.wfb2-submit-warning{
  display: none;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.35;
  color: #0f172a;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}
.wfb2-submit-warning.show{ display: block; }
