/* BeraLab WhatsApp Newsletter Bento Widget Styles */
:root {
  --bl-bg: #0a0b10;
  --bl-surface: #12141e;
  --bl-surface-hover: #181b2a;
  --bl-primary: #6366f1;
  --bl-primary-glow: rgba(99, 102, 241, 0.4);
  --bl-accent: #06b6d4;
  --bl-wa-green: #25D366;
  --bl-wa-glow: rgba(37, 211, 102, 0.25);
  --bl-wa-hover: #20bd5a;
  --bl-text-main: #f8fafc;
  --bl-text-muted: #94a3b8;
  --bl-border: rgba(255, 255, 255, 0.08);
  --bl-border-focus: rgba(37, 211, 102, 0.4);
  --bl-error: #ef4444;
  --bl-success: #10b981;
}

.bl-wa-bento-widget {
  background: var(--bl-surface);
  border: 1px solid var(--bl-border);
  border-radius: 20px;
  padding: 28px 24px;
  max-width: 460px;
  width: 100%;
  color: var(--bl-text-main);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 0 25px -10px var(--bl-wa-glow);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.bl-wa-bento-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--bl-wa-green), var(--bl-primary), var(--bl-accent));
}

.bl-wa-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.25);
  color: var(--bl-wa-green);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.bl-wa-badge svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.bl-wa-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 8px 0;
  color: var(--bl-text-main);
}

.bl-wa-subtitle {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--bl-text-muted);
  margin: 0 0 20px 0;
}

.bl-wa-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bl-wa-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bl-wa-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #cbd5e1;
}

.bl-wa-input {
  background: rgba(10, 11, 16, 0.8);
  border: 1px solid var(--bl-border);
  border-radius: 10px;
  color: var(--bl-text-main);
  padding: 10px 14px;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  width: 100%;
}

.bl-wa-input:focus {
  border-color: var(--bl-wa-green);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
}

.bl-wa-phone-row {
  display: flex;
  gap: 8px;
}

.bl-wa-prefix-select {
  background: rgba(10, 11, 16, 0.8);
  border: 1px solid var(--bl-border);
  border-radius: 10px;
  color: var(--bl-text-main);
  padding: 10px 8px;
  font-size: 0.88rem;
  outline: none;
  min-width: 95px;
  cursor: pointer;
  box-sizing: border-box;
}

.bl-wa-prefix-select:focus {
  border-color: var(--bl-wa-green);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
}

.bl-wa-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
}

.bl-wa-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: rgba(10, 11, 16, 0.8);
  border: 1px solid var(--bl-border);
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  display: grid;
  place-content: center;
  transition: all 0.2s;
}

.bl-wa-checkbox:checked {
  background: var(--bl-wa-green);
  border-color: var(--bl-wa-green);
}

.bl-wa-checkbox:checked::before {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid #0a0b10;
  border-bottom: 2px solid #0a0b10;
  transform: rotate(-45deg) translate(1px, -1px);
}

.bl-wa-consent-text {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--bl-text-muted);
}

.bl-wa-consent-text a {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bl-wa-consent-text a:hover {
  color: #7dd3fc;
}

.bl-wa-submit-btn {
  background: linear-gradient(135deg, var(--bl-wa-green) 0%, #1ea952 100%);
  color: #052e16;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  margin-top: 6px;
}

.bl-wa-submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.bl-wa-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.bl-wa-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(5, 46, 22, 0.3);
  border-top-color: #052e16;
  border-radius: 50%;
  animation: bl-spin 0.8s linear infinite;
}

@keyframes bl-spin {
  to { transform: rotate(360deg); }
}

.bl-wa-alert {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.84rem;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  animation: bl-fade-in 0.3s ease;
}

.bl-wa-alert-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.bl-wa-alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.bl-wa-meta-note {
  font-size: 0.72rem;
  color: #64748b;
  text-align: center;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

@keyframes bl-fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}


/* Viral Growth Bento Badge */
.bl-wa-branding-footer {
  margin-top: 14px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bl-wa-branding-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #94a3b8;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 12px;
  border-radius: 9999px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.bl-wa-branding-link strong {
  color: var(--bl-wa-green, #25D366);
  font-weight: 600;
}

.bl-wa-branding-link:hover {
  color: #f8fafc;
  border-color: rgba(37, 211, 102, 0.35);
  background: rgba(37, 211, 102, 0.08);
  box-shadow: 0 0 14px rgba(37, 211, 102, 0.18);
}
