/* === CHATBOT === */
.chatbot-section {
  background: var(--bg);
}

.chatbot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.chatbot-intro p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 28px;
}

.suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  background: var(--bg);
  border: 1px solid rgba(74, 124, 89, 0.2);
  border-radius: 24px;
  padding: 10px 18px;
  font-size: 0.88rem;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.chip:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.chatbox {
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid rgba(74, 124, 89, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 520px;
}

.chatbox-header {
  background: var(--primary);
  color: var(--white);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbox-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.chatbox-info strong {
  display: block;
  font-size: 0.95rem;
}

.chatbox-status {
  font-size: 0.8rem;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #6fdc6f;
  border-radius: 50%;
  display: inline-block;
}

.chatbox-badge {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.chatbox-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 320px;
}

.message {
  max-width: 85%;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 0.92rem;
  line-height: 1.65;
  word-wrap: break-word;
}

.message p {
  margin: 0;
}

.bot-message {
  background: var(--white);
  color: var(--text);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.user-message {
  background: var(--primary);
  color: var(--white);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.typing-indicator {
  display: flex;
  gap: 5px;
  padding: 14px 20px;
  align-self: flex-start;
  background: var(--white);
  border-radius: 18px;
  border-bottom-left-radius: 4px;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.4;
  animation: typingDot 1.4s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.4; transform: scale(1); }
  30% { opacity: 1; transform: scale(1.2); }
}

.chatbox-input {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid rgba(74, 124, 89, 0.1);
  background: var(--white);
}

.chatbox-input input {
  flex: 1;
  padding: 12px 18px;
  border: 1px solid rgba(74, 124, 89, 0.2);
  border-radius: 50px;
  font-size: 0.92rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  background: var(--bg);
}

.chatbox-input input:focus {
  border-color: var(--primary);
}

.chatbox-input button {
  width: 46px;
  height: 46px;
  border: none;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.chatbox-input button:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.chatbox-disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 8px 20px 14px;
  background: var(--white);
}

/* === SCROLLBAR (chat) === */
.chatbox-messages::-webkit-scrollbar {
  width: 5px;
}

.chatbox-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chatbox-messages::-webkit-scrollbar-thumb {
  background: rgba(74, 124, 89, 0.25);
  border-radius: 10px;
}