/* ================================
   Engineersonline Chatbot
   ================================ */

.eol-chatbot {
  width: 100%;
  max-width: 760px;
  margin: 30px auto;
  font-family: inherit;
  color: #1f2933;
  background: #ffffff;
  border: 1px solid #e5eaf0;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.08);
  overflow: hidden;
}

/* Header */
.eol-chatbot__intro {
  padding: 18px 22px;
  background: #73bc1a;
  color: #ffffff;
}

.eol-chatbot h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  color: #ffffff;
}

.eol-chatbot__intro p {
  margin: 6px 0 0 0;
  font-size: 14px;
  line-height: 1.4;
  opacity: 0.95;
}

/* Messages */
.eol-chatbot__messages {
  padding: 22px;
  min-height: 92px;
  max-height: 560px;
  overflow-y: auto;
  background: #fafafa;
  display: flex;
  flex-direction: column;
}

.eol-chatbot__message {
  max-width: 88%;
  margin-bottom: 16px;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.55;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.eol-chatbot__message--user {
  margin-left: auto;
  align-self: flex-end;
  background: #73bc1a;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.eol-chatbot__message--bot {
  margin-right: auto;
  align-self: flex-start;
  background: #ffffff;
  color: #1f2933;
  border: 1px solid #e5eaf0;
  border-bottom-left-radius: 4px;
}

.eol-chatbot__message:last-child {
  margin-bottom: 0;
}

.eol-chatbot__message p {
  margin: 0 0 10px 0;
}

.eol-chatbot__message p:last-child {
  margin-bottom: 0;
}

/* Sources / Meer lezen */
.eol-chatbot__sources {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #eeeeee;
  list-style: none;
  padding-left: 0;
}

.eol-chatbot__sources li {
  margin-bottom: 7px;
  font-size: 14px;
  line-height: 1.4;
}

.eol-chatbot__sources a {
  color: #5fa113;
  text-decoration: none;
  font-weight: 600;
}

.eol-chatbot__sources a:hover,
.eol-chatbot__sources a:focus {
  text-decoration: underline;
}

/* Form */
.eol-chatbot__form {
  display: flex;
  gap: 10px;
  padding: 16px;
  background: #ffffff;
  border-top: 1px solid #e5eaf0;
}

.eol-chatbot__form textarea {
  flex: 1;
  min-height: 48px;
  max-height: 150px;
  padding: 12px 14px;
  border: 1px solid #d7dde5;
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  line-height: 1.4;
  outline: none;
  resize: vertical;
}

.eol-chatbot__form textarea:focus {
  border-color: #73bc1a;
  box-shadow: 0 0 0 3px rgba(115, 188, 26, 0.15);
}

.eol-chatbot__form button {
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: #73bc1a;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.eol-chatbot__form button:hover,
.eol-chatbot__form button:focus {
  background: #5fa113;
}

.eol-chatbot__form button:active {
  transform: translateY(1px);
}

.eol-chatbot__form.is-loading button {
  opacity: 0.6;
  cursor: wait;
}

/* Mobile */
@media (max-width: 640px) {
  .eol-chatbot {
    margin: 20px auto;
  }

  .eol-chatbot__intro {
    padding: 16px;
  }

  .eol-chatbot h2 {
    font-size: 20px;
  }

  .eol-chatbot__messages {
    padding: 16px;
    max-height: 480px;
  }

  .eol-chatbot__message {
    max-width: 100%;
    font-size: 15px;
  }

  .eol-chatbot__form {
    flex-direction: column;
    padding: 14px;
  }

  .eol-chatbot__form button {
    width: 100%;
  }
}
