/* Widget chat BIZZ.CLUB Botoșani — fără branding terț */
#bizz-chat-root {
  --bizz-teal: #3facaa;
  --bizz-teal-dark: #2d8f86;
  --bizz-field-bg: #ffffff;
  --bizz-field-border: #c8ced8;
  --bizz-field-text: #1a1f26;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  z-index: 99990;
  /* Pagina e dark; fără asta, inputurile native rămân gri închis */
  color-scheme: light;
}

#bizz-chat-root * {
  box-sizing: border-box;
}

#bizz-chat-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(145deg, #4dc9bb, var(--bizz-teal-dark));
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(61, 160, 148, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99991;
  transition: transform 0.15s ease;
}

#bizz-chat-launcher:hover {
  transform: scale(1.05);
}

#bizz-chat-launcher svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

#bizz-chat-panel {
  position: fixed;
  right: 18px;
  bottom: 86px;
  width: 100%;
  max-width: 360px;
  max-height: calc(100vh - 120px);
  background: #fff;
  color: #1a1f26;
  color-scheme: light;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: none;
  flex-direction: column;
  z-index: 99992;
}

#bizz-chat-panel.bizz-open {
  display: flex;
}

#bizz-chat-panel header {
  background: var(--bizz-teal);
  color: #fff;
  padding: 14px 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#bizz-chat-panel header button {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
  line-height: 0;
}

#bizz-chat-body {
  padding: 14px 16px 16px;
  overflow-y: auto;
  flex: 1;
}

#bizz-chat-body .bizz-bubble {
  background: #f0f0f0;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 0.92rem;
  color: #333;
}

#bizz-chat-body label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin: 10px 0 4px;
  color: #444;
}

#bizz-chat-body input[type="text"],
#bizz-chat-body input[type="email"],
#bizz-chat-body input[type="tel"],
#bizz-chat-body textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--bizz-field-border);
  border-radius: 8px;
  font: inherit;
  background-color: var(--bizz-field-bg) !important;
  color: var(--bizz-field-text) !important;
  -webkit-appearance: none;
  appearance: none;
}

#bizz-chat-body input::placeholder,
#bizz-chat-body textarea::placeholder {
  color: #6b7280;
  opacity: 1;
}

#bizz-chat-body input:focus,
#bizz-chat-body textarea:focus {
  outline: none;
  border-color: var(--bizz-teal);
  box-shadow: 0 0 0 2px rgba(63, 172, 170, 0.25);
}

#bizz-chat-body textarea {
  min-height: 88px;
  resize: vertical;
  background-color: var(--bizz-field-bg) !important;
}

/* Autofill Chrome — evită fundal galben/gri pe dark page */
#bizz-chat-body input:-webkit-autofill,
#bizz-chat-body input:-webkit-autofill:hover,
#bizz-chat-body input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 32px #fff inset !important;
  -webkit-text-fill-color: var(--bizz-field-text) !important;
  caret-color: var(--bizz-field-text);
}

#bizz-chat-body .bizz-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.82rem;
  color: #444;
}

#bizz-chat-body input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--bizz-teal);
}

#bizz-chat-submit {
  width: 100%;
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--bizz-teal);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#bizz-chat-submit:hover {
  background: var(--bizz-teal-dark);
}

#bizz-chat-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

#bizz-chat-status {
  margin-top: 10px;
  font-size: 0.85rem;
  min-height: 1.2em;
}

#bizz-chat-status.bizz-ok {
  color: #0a6;
}

#bizz-chat-status.bizz-err {
  color: #c00;
}
