/* ===== CHATBOT WIDGET ===== */

/* Floating Button with Image */
.chatbot-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;              /* adjust size */
  height: 60px;
  background: #ebc3be8f;      /* fallback bg in case image fails */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  transition: transform 0.3s ease, background 0.3s ease;
  overflow: hidden;         /* makes the image clip to circle */
}

.chatbot-toggle:hover {
  background: #c0392b;
  transform: scale(1.05);   /* slight pop on hover */
}

.chatbot-toggle img {
  width: 100%;
  height: 100%;
  object-fit: contain;       /* keeps logo aspect ratio */
  pointer-events: none;      /* so clicks hit the button, not just image */
}

/* Chatbot Window */
.chatbot-container {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 320px;
  max-height: 450px;
  background: rgba(154, 173, 182, 0.445);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  display: none;
  flex-direction: column;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  overflow: hidden;
  z-index: 3000;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  border: 0.2px solid white;
}

/* Header */
.chatbot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #e74d3cb9;
  padding: 12px;
}
.chatbot-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
}
.chatbot-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

/* Messages */
.chatbot-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  font-size: 14px;
  display: flex;
  flex-direction: column;
}
.bot-message, .user-message {
  margin: 8px 0;
  padding: 8px 12px;
  border-radius: 8px;
  max-width: 80%;
  line-height: 1.4;
  word-wrap: break-word;
}
.bot-message {
  background: rgba(255, 255, 255, 0.37);
  align-self: flex-start;
}
.user-message {
  background: rgba(4, 241, 130, 0.712);
  align-self: flex-end;
  text-align: right;
}

/* Input */
.chatbot-input {
  display: flex;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.chatbot-input input {
  flex: 1;
  border: none;
  padding: 10px;
  font-size: 14px;
  outline: none;
  background: white;
  color: #080808;
}
.chatbot-input button {
  background: #48aee9;
  border: none;
  padding: 0 15px;
  cursor: pointer;
  color: #fff;
  transition: background 0.3s;
}
.chatbot-input button:hover {
  background: #2980b9;
}

/* Quick Questions */
.quick-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.quick-btn {
  background: #04bef1;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.3s;
}
.quick-btn:hover {
  background: #555;
}

/* Ensure chatbot buttons reuse your site’s button styles */
.chatbot-messages a.btn-give-now,
.chatbot-messages a.btn-building-project {
  margin-top: 6px;
  display: inline-block;
}
