@import url('responsive.css');

/* Chatbot Button Styles */
#chatbot-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background: #ff0000;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#chatbot-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

#chatbot-btn img {
  width: 30px;
  height: 30px;
  display: block;
}

#chatbot-btn span {
  display: none;
}

@media (min-width: 768px) {
  #chatbot-btn {
    bottom: 30px;
    right: 30px;
    padding: 10px;
  }

  #chatbot-btn img {
    width: 40px;
    height: 40px;
  }
}

/* Base Chatbot Window Styles */
#chatbot-window {
  position: fixed;
  bottom: 110px;
  right: 50px;
  width: 450px;
  height: 520px;
  max-width: 120vw;
  max-height: 100vh;
  background: #f4f4f4;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  z-index: 10000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  font-family: inherit;
}

#chatbot-window.open {
  display: flex;
}

.chatbot-header {
  background: linear-gradient(135deg, #f33434 0%, #d92d2d 100%);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(243, 52, 52, 0.2);
}

#chatbot-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s;
}

#chatbot-close:hover {
  transform: scale(1.1);
}

.chatbot-messages {
  background: #fff;
  flex: 1;
  padding: 18px 14px;
  overflow-y: auto;
  min-height: 180px;
  min-height: 180px;
  font-size: 0.95rem;
  border-bottom: 1px solid #f2f2f2;
  border-radius: 0 0 8px 8px;
}

.chatbot-input-area {
  display: flex;
  border-top: 1px solid #eee;
  background: #fafbfc;
  padding: 10px 10px 8px 10px;
}

.chatbot-input-area input[type="text"] {
  flex: 1;
  border: none;
  padding: 10px 12px;
  font-size: 0.9rem;
  outline: none;
  background: #fff;
  border-radius: 6px;
  margin-right: 8px;
  box-shadow: 0 1px 4px rgba(99, 99, 99, 0.07);
  transition: box-shadow 0.18s;
}

.chatbot-input-area input[type="text"]:focus {
  box-shadow: 0 2px 8px rgba(243, 52, 52, 0.13);
  border: 1px solid #f33434;
}

.chatbot-input-area button {
  border: none;
  color: #ff0000;
  background: none;
  font-size: 1.5rem;
  padding: 0 5px;
  border-radius: 15px;
  cursor: pointer;
  margin: 0;
}

/* Quick Buttons */
.chatbot-quick-buttons {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 8px;
  justify-content: center;
  background: #fafbfc;
}

.quick-btn {
  background-color: #ff4d4d;
  color: white;
  border: none;
  border-radius: 15px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s, transform 0.1s;
}

.quick-btn:hover {
  background-color: #d92d2d;
  transform: translateY(-1px);
}

/* Message Bubbles */
.bot-msg {
  display: block;
  width: fit-content;
  margin-right: auto;
  margin-left: 0;
  margin-top: 10px;
  margin-bottom: 10px;
  color: #333;
  background: #e9e9eb;
  padding: 12px 16px;
  border-radius: 18px 18px 18px 4px;
  font-weight: 400;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(99, 99, 99, 0.07);
  max-width: 90%;
  word-break: break-word;
  line-height: 1.5;
}

.user-msg {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: 0;
  margin-top: 5px;
  margin-bottom: 5px;
  color: #fff;
  background: #f33434;
  padding: 6px 9px;
  border-radius: 18px 18px 4px 18px;
  font-weight: 500;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(243, 52, 52, 0.15);
  max-width: 80%;
  word-break: break-word;
  text-align: right;
}

.greeting-text,
/* This is now the main container */
.help-content,
.products-content,
.events-content,
.support-content,
.newsletter-content,
.thanks-content,
.goodbye-content,
.fallback-content,
.error-content {
  flex: 1;
}

.greeting-text strong,
.help-content strong,
.products-content strong,
.events-content strong,
.support-content strong,
.newsletter-content strong,
.thanks-content strong,
.goodbye-content strong,
.fallback-content strong,
.error-content strong {
  color: #d92d2d;
  font-size: 1rem;
  display: block;
  margin-bottom: 6px;
}

.greeting-text p,
.help-content p,
.products-content p,
.events-content p,
.support-content p,
.newsletter-content p,
.thanks-content p,
.goodbye-content p,
.fallback-content p,
.error-content p {
  margin: 6px 0;
  color: #555;
  font-size: 0.9rem;
  line-height: 1.4;
}

.greeting-question {
  color: #f33434 !important;
  font-weight: 600 !important;
  margin-top: 10px !important;
}

/* Help Features Grid */
.help-features {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0;
}

.help-item {
  display: flex;
  align-items: flex-start;
  padding: 4px 0;
}

.help-prompt {
  margin-top: 10px !important;
  font-style: italic;
  color: #666 !important;
}

/* Lists */
.bot-msg .bot-list {
  list-style: none;
  padding-left: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bot-msg .bot-list-item {
  display: flex;
  align-items: flex-start;
  color: #444;
  font-size: 0.92rem;
  line-height: 1.4;
}

.event-item {
  padding: 3px 0;
}

.event-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.event-name {
  font-weight: 600;
  color: #333;
}

.event-date {
  font-size: 0.85rem;
  color: #d92d2d;
  font-weight: 500;
}

/* CTA Boxes */
.cta-box {
  background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
  border-left: 3px solid #f33434;
  padding: 10px 12px;
  margin-top: 10px;
  border-radius: 6px;
}

.cta-box p {
  margin: 0 !important;
  color: #333 !important;
  font-weight: 500 !important;
}

.info-box {
  background: linear-gradient(135deg, #f0f8ff 0%, #e6f2ff 100%);
  border-left: 3px solid #4a90e2;
}

.highlight-box {
  background: linear-gradient(135deg, #fffbf0 0%, #fff3e0 100%);
  border-left: 3px solid #ff9800;
}

/* Links */
.bot-msg a,
.bot-msg .inline-link {
  color: #f33434;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s;
}

.bot-msg a:hover,
.bot-msg .inline-link:hover {
  color: #d92d2d;
}

/* Suggestion Tags */
.suggestion-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.suggestion-tag {
  background: #fff;
  color: #f33434;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid #f33434;
  cursor: pointer;
  transition: all 0.2s;
}

.suggestion-tag:hover {
  background: #f33434;
  color: #fff;
}

/* Goodbye Tag */
.goodbye-tag {
  margin-top: 8px !important;
  font-style: italic;
  color: #888 !important;
  font-size: 0.88rem !important;
}

/* Events and Newsletter Styles */
.events-container,
.newsletter-container {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}

.event-item {
  background-color: #f9f9f9;
  border-left: 3px solid #f33434;
  padding: 3px;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.event-name {
  font-weight: bold;
  color: #333;
}

.event-date {
  font-size: 0.85rem;
  color: #777;
}

.newsletter-description {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 10px;
}

.newsletter-link {
  color: #f33434;
  text-decoration: underline;
}


/* Contact Options Styles */
.bot-msg .contact-options {
  background: transparent;
  padding: 8px 0 0 0;
  box-shadow: none;
  border: none;
}

.contact-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0;
}

.contact-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(99, 99, 99, 0.08);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid #ececec;
  transition: all 0.2s;
}

.contact-card:hover {
  box-shadow: 0 4px 12px rgba(243, 52, 52, 0.12);
  border-color: #f33434;
}

.contact-title {
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  color: #f33434;
}

.contact-status {
  margin-left: auto;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 10px;
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
  font-weight: 600;
}

.contact-status.online {
  background: #ffeaea;
  color: #f33434;
  border: 1px solid #fbbcbc;
}

.contact-desc {
  font-size: 0.87rem;
  color: #666;
  line-height: 1.3;
}

.contact-btn {
  background: #fff;
  color: #f33434;
  border: 1px solid #f33434;
  border-radius: 6px;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  margin-top: 4px;
  transition: all 0.2s;
}

.contact-btn:hover {
  background: #f33434;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(243, 52, 52, 0.2);
}

.contact-link {
  color: #f33434;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 2px;
  display: inline-block;
  transition: color 0.2s;
}

.contact-link:hover {
  color: #d92d2d;
  text-decoration: underline;
}

/* Benefits List */
.benefits-list {
  background: rgba(255, 255, 255, 0.5);
  padding: 10px;
  border-radius: 6px;
  margin: 8px 0 !important;
}

/* Products/Events Intro Text */
.products-intro,
.events-intro,
.support-intro {
  font-weight: 500 !important;
  color: #444 !important;
}

/* Scrollbar Styling */
.chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: #f33434;
  border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
  background: #d92d2d;
}

/* Options Styling */
.bot-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.chat-option-btn {
  background: #f0f0f0;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
  font-size: 0.95rem;
  color: #333;
  font-weight: 500;
  border: 1px solid #e0e0e0;
}

.chat-option-btn:hover {
  background: #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.chat-option-btn.selected {
  background: #f33434;
  color: #fff;
  border-color: #f33434;
  box-shadow: 0 2px 8px rgba(243, 52, 52, 0.2);
}

/* Responsive Styles */
@media (max-width: 480px) {
  #chatbot-window {
    width: calc(100% - 30px);
    right: 15px;
    bottom: 20px;
    height: 60vh;
    max-height: 60vh;
    border-radius: 12px;
  }

  .chatbot-messages {
    font-size: 0.85rem;
  }

  .chatbot-header {
    font-size: 0.9rem;
    padding: 10px 12px;
  }

  .bot-msg,
  .user-msg {
    font-size: 0.85rem;
    max-width: 85%;
    padding: 8px 12px;
  }

  .chatbot-input-area input[type="text"] {
    font-size: 0.85rem;
    padding: 8px 10px;
  }

  .quick-btn {
    font-size: 12px;
    padding: 4px 8px;
  }
}