#dscb-chatbot {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 380px;
  height: 75vh;
  background: #fafafa;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  display: none;
  flex-direction: column;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  overflow: hidden;
  z-index: 10000;
}
#dscb-chat-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #3B82F6;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 10000;
}
#dscb-chat-header {
  background: #fff;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dscb-profile { display: flex; align-items: center; }
.dscb-profile svg { width: 32px; height: 32px; }
.dscb-user-info { margin-left: 8px; }
.dscb-username { font-weight: bold; font-size: 14px; }
.dscb-user-status { font-size: 12px; color: #888; }
#dscb-close { font-size: 18px; cursor: pointer; }
#dscb-chat-search { background: #eef2f7; padding: 6px 12px; display: flex; align-items: center; }
#dscb-chat-search input { flex: 1; border: none; background: transparent; font-size: 13px; outline: none; }
#dscb-chat-search .search-icon { margin-left: 6px; }
#dscb-chat-body {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  max-height: 400px;
  display: flex;
  flex-direction: column;
  padding-bottom: 70px; /* space for input */
}
/* custom scrollbar */
#dscb-chat-body::-webkit-scrollbar { width: 6px; }
#dscb-chat-body::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 3px; }
#dscb-chat-body::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 3px; }
#dscb-chat-body { scrollbar-width: thin; scrollbar-color: #c1c1c1 #f1f1f1; }
.dscb-message { background: #fff; padding: 8px 12px; border-radius: 12px; margin-bottom: 8px; max-width: 80%; }
.dscb-message.user { background: #fc3c0f; color: #fff; align-self: flex-end; }
#dscb-chat-typing { padding: 6px 12px; font-size: 13px; color: #555; font-style: italic; }
#dscb-chat-input {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: #fff;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  border-top: 1px solid #ddd;
}
#dscb-input {
  flex: 1;
  border: none;
  padding: 8px;
  font-size: 14px;
  outline: none;
  background: #f1f5f9;
  border-radius: 8px;
}
#dscb-send-btn { background: transparent; border: none; color: #3B82F6; font-size: 20px; margin-left: 8px; cursor: pointer; }
/* Responsive adjustments */
#dscb-chatbot {
  width: min(380px, 90vw);
  height: min(75vh, 90vh);
}
@media (max-width: 500px) {
  #dscb-chatbot {
    bottom: 10px !important;
    right: 5vw !important;
  }
  #dscb-chat-input {
    padding: 6px 10px;
  }
  #dscb-chat-body {
    padding-bottom: 65px !important;
  }
}


/* Typing indicator animation (v2.5) */
.dscb-typing-dots {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
.dscb-typing-dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 3px;
  background: #888;
  border-radius: 50%;
  opacity: 0;
  animation: dscb-dots 1s infinite;
}
.dscb-typing-dots span:nth-child(1) { animation-delay: 0s; }
.dscb-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.dscb-typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dscb-dots {
  0%, 20% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}


/* v4.3: style Learn More links as buttons */
.dscb-message a {
  display: inline-block;
  padding: 6px 12px;
  margin-top: 8px;
  background: #2563EB; /* updated accent color */
  color: #fff !important;
  border-radius: 4px;
  text-decoration: none;
  font-size: 13px;
  width: auto;
  text-transform: none;
  white-space: nowrap;
}
.dscb-message a:hover {
  background: #2563EB;
}


/* v4.6 Quick Reply Bar & Forms */
#dscb-quick-bar {
  display: flex;
  gap: 6px;
  padding: 6px;
  overflow-x: auto;
  background: #f9f9f9;
  border-bottom: 1px solid #ddd;
}
.dscb-quick-option {
  background: #e0e0e0;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}
.dscb-quick-option:hover {
  background: #d0d0d0;
}
#dscb-form-container {
  padding: 8px;
}
#dscb-form-container .dscb-form-back {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 8px;
}
#dscb-form-container input,
#dscb-form-container select,
#dscb-form-container textarea,
#dscb-form-container button.dscb-form-submit {
  width: 100%;
  margin-bottom: 8px;
  padding: 6px;
  box-sizing: border-box;
}
#dscb-form-container textarea {
  resize: vertical;
  height: 60px;
}


/* v7.2: Build My Vision step styling */
.dscb-step-container {
  padding: 8px;
}
.dscb-step-header {
  font-weight: bold;
  margin-bottom: 6px;
}
.dscb-step-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dscb-step-options button {
  background: #3B82F6;
  color: #fff;
  border: none;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
}
.dscb-step-options button:hover {
  background: #2563EB;
}
.dscb-step-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}
.dscb-step-nav button {
  background: #e0e0e0;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}
