:root {
  --primary-color: #000000;
  --primary-hover: #1a1a1a;
  --secondary-color: #6b7280;
  --success-color: #10b981;
  --background-color: #ffffff;
  --surface-color: #f9fafb;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  font-family: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  height: 100vh;
  color: var(--text-primary);
  font-family: "Raleway", sans-serif;
}

/* Privacy Notice */
.privacy-notice-banner {
  background: #f3f4f6;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin: 12px;
  opacity: 1;
  transform: translateY(0);
  transition: var(--transition);
}

.privacy-notice-content {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.privacy-notice-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 12px;
  color: var(--text-primary);
  font-family: "Raleway", sans-serif;
}

.privacy-notice-header i {
  font-size: 12px;
}

.privacy-notice-text {
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-secondary);
  font-family: "Raleway", sans-serif;
}

.privacy-notice-text a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.privacy-notice-text a:hover {
  text-decoration: underline;
}

.privacy-notice-actions {
  display: flex;
  justify-content: flex-start;
}

.privacy-btn {
  padding: 6px 14px;
  border: none;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: "Raleway", sans-serif;
}

.privacy-btn.got-it {
  background: var(--primary-color);
  color: white;
}

.privacy-btn.got-it:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.privacy-btn i {
  font-size: 9px;
}

/* Chat Container */
#chat-container {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: white;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

#chat-container.open {
  opacity: 1;
  visibility: visible;
}

/* Mobile Responsiveness */
body.mobile-detected #chat-container {
  width: 100vw !important;
  height: 100vh !important;
  bottom: 0 !important;
  right: 0 !important;
  left: 0 !important;
  top: 0 !important;
  border-radius: 0 !important;
  transform: translateY(100%) !important;
  box-shadow: none !important;
  border: none !important;
}

body.mobile-detected #chat-container.open {
  transform: translateY(0) !important;
}

body.mobile-detected #chat-container::after {
  display: none !important;
}

body.mobile-detected #chat-header-container {
  padding: 14px 16px !important;
}

body.mobile-detected #chat-icon.chat-open {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  pointer-events: none;
}

body:not(.mobile-detected) #chat-icon {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
}

#chat-container::after {
  content: "";
  position: absolute;
  bottom: -10px;
  right: 25px;
  width: 20px;
  height: 20px;
  background: var(--background-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  transform: rotate(45deg);
  z-index: -1;
}

/* Header */
#chat-header-container {
  background: #000000;
  padding: 14px 16px;
  color: white;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: padding 0.3s ease;
  border-bottom: 1px solid #1a1a1a;
}

#chat-container.messaging #chat-header-container {
  padding: 14px 16px;
}

#chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.header-info {
  flex: 1;
  min-width: 0;
}

#logo {
  flex-shrink: 0;
}

#logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

#dynamic-greeting {
  font-size: 15px;
  font-weight: 400;
  margin: 0;
  line-height: 1.4;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.6s ease;
  font-family: "Raleway", sans-serif;
}

#chat-container.messaging #dynamic-greeting {
  font-size: 13px;
  opacity: 1;
  transform: translateY(0);
}

#backToHome {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
  margin-right: 8px;
}

#backToHome:hover {
  background: rgba(255, 255, 255, 0.2);
}

#backToHome i {
  font-size: 14px;
}

#closeChat {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

#closeChat:hover {
  background: rgba(255, 255, 255, 0.2);
}

#closeChat i {
  font-size: 14px;
}

/* Content Container */
#chat-content-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  position: relative;
}

#scrollable-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  background: var(--background-color);
  scroll-behavior: smooth;
  visibility: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#scrollable-content::-webkit-scrollbar {
  display: none;
}

/* Content Sections */
.content-section {
  display: none;
  padding: 14px;
  flex-direction: column;
}

.content-section.active {
  display: flex;
}

/* Home Section */
#home-section {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 18px;
}

.welcome-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90%;
}

.welcome-image {
  width: 56px;
  height: 56px;
  background: #f3f4f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.welcome-image i {
  font-size: 26px;
  color: var(--primary-color);
}

.welcome-container h3 {
  margin: 0 0 2px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: "Raleway", sans-serif;
}

.welcome-container p {
  color: var(--text-secondary);
  margin-bottom: 0;
  font-size: 12px;
  line-height: 1.1;
  font-family: "Raleway", sans-serif;
}

#dynamic-home-content {
  width: 100%;
  margin-top: 20px;
}

/* Date Separator */
.date-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0 12px;
  position: relative;
}

.date-separator-line {
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.date-separator-text {
  padding: 0 12px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  background: white;
  font-family: "Raleway", sans-serif;
}

/* Quick Buttons */
#quick-buttons-section {
  background: var(--background-color);
  flex-shrink: 0;
  margin-bottom: 10px;
}

#quick-buttons-section h3 {
  margin: 0 0 10px 0;
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: "Raleway", sans-serif;
}

#quick-buttons-container {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  width: 100%;
}

.quick-button {
  padding: 8px 14px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-primary);
  font-weight: 400;
  white-space: nowrap;
  font-family: "Raleway", sans-serif;
}

.quick-button:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

/* Help Section */
#help-section {
  padding: 16px;
  background: var(--background-color);
  flex: 1;
  min-height: 100%;
  box-sizing: border-box;
}

.help-search-container {
  margin-bottom: 14px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-secondary);
  font-size: 14px;
  pointer-events: none;
}

#faqSearch {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 13px;
  box-sizing: border-box;
  transition: var(--transition);
  background: white;
  font-family: "Raleway", sans-serif;
}

#faqSearch:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

#clearSearch {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

#clearSearch:hover {
  background: var(--surface-color);
  color: var(--text-primary);
}

#help-section h3 {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
  margin: 0 0 14px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: "Raleway", sans-serif;
}
.accordion {
  width: 100%;
}
.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
  background: #fff;
  transition: var(--transition);
}
.accordion-item:hover {
  box-shadow: var(--shadow-sm);
}
.accordion-header {
  padding: 12px 14px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  cursor: pointer;
  font-weight: 400;
  color: var(--text-primary);
  user-select: none;
  font-size: 13px;
  transition: var(--transition);
  font-family: "Raleway", sans-serif;
}
.accordion-header:hover {
  background: var(--surface-color);
}
.accordion-header span {
  line-height: 1.5;
  flex: 1;
  padding-right: 10px;
}
.accordion-header i {
  color: var(--text-secondary);
  font-size: 11px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-top: 3px;
}
.accordion-item.active .accordion-header {
  border-bottom: 1px solid var(--border-color);
  background: #fff;
}
.accordion-item.active .accordion-header i {
  transform: rotate(180deg);
}
.accordion-content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: var(--surface-color);
}
.accordion-item.active .accordion-content {
  padding: 12px 14px;
  max-height: 500px;
  overflow-y: auto;
}
.accordion-content p {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-family: "Raleway", sans-serif;
  font-weight: 400;
}
#noResults {
  text-align: center;
  padding: 24px;
  color: var(--text-secondary);
}
#noResults p {
  margin: 0;
  font-size: 13px;
  font-family: "Raleway", sans-serif;
} /* Messages */
#messages {
  flex: 1;
  padding: 14px;
  min-height: 100px;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
#messages::-webkit-scrollbar {
  display: none;
}
.message {
  margin: 6px 0;
  padding: 10px 14px;
  border-radius: 14px;
  animation: messageAppear 0.3s ease;
  word-wrap: break-word;
  line-height: 1.4;
  width: fit-content;
  max-width: 75%;
  font-size: 13px;
  font-family: "Raleway", sans-serif;
}
@keyframes messageAppear {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.user {
  background: #000000;
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 3px;
}
.bot {
  background: #f3f4f6;
  border: 1px solid var(--border-color);
  margin-right: auto;
  border-bottom-left-radius: 3px;
  color: var(--text-primary);
} /* Image Container */
.image-container {
  position: relative;
  display: inline-block;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease;
}
.image-container:hover {
  transform: scale(1.02);
}
.image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
} /* Typing Indicator */
.typing-indicator {
  margin: 6px 0;
  padding: 10px 14px;
  border-radius: 14px;
  width: fit-content;
  max-width: 75%;
  background: #f3f4f6;
  border: 1px solid var(--border-color);
  margin-right: auto;
  border-bottom-left-radius: 3px;
  animation: messageAppear 0.3s ease;
  display: flex;
  align-items: center;
  gap: 7px;
}
.typing-dots {
  display: flex;
  align-items: center;
  gap: 3px;
}
.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--text-secondary);
  animation: typingAnimation 1.4s infinite ease-in-out;
}
.typing-dots span:nth-child(1) {
  animation-delay: 0ms;
}
.typing-dots span:nth-child(2) {
  animation-delay: 200ms;
}
.typing-dots span:nth-child(3) {
  animation-delay: 400ms;
}
@keyframes typingAnimation {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-6px);
    opacity: 1;
  }
}
.typing-text {
  font-size: 11px;
  color: var(--text-secondary);
  font-style: italic;
  font-family: "Raleway", sans-serif;
} /* Contact Form */
.email-form {
  width: 100%;
  border-radius: 10px;
}
.email-form input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 7px;
  font-size: 13px;
  box-sizing: border-box;
  transition: var(--transition);
  background: white;
  font-family: "Raleway", sans-serif;
}
.email-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}
.email-form button {
  width: 100%;
  padding: 10px;
  background: #000000;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-size: 13px;
  margin-top: 3px;
  font-family: "Raleway", sans-serif;
}
.email-form button:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}
.email-form.hide {
  opacity: 0;
  transform: translateY(8px);
}
.email-success {
  background: var(--success-color);
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
  margin-top: 10px;
  font-size: 12px;
  display: none;
  text-align: center;
  font-family: "Raleway", sans-serif;
}
.email-success i {
  margin-right: 5px;
} /* Chat Input */
#chat-input-section {
  padding: 14px;
  background: white;
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
}
#input-container {
  display: flex;
  gap: 7px;
  align-items: center;
  background: #f9fafb;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 4px;
  transition: var(--transition);
}
#input-container:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}
#userInput {
  flex: 1;
  padding: 8px 10px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-family: "Raleway", sans-serif;
}
#userInput:focus {
  outline: none;
}
#userInput::placeholder {
  color: #9ca3af;
}
.input-action-btn {
  background: transparent;
  border: none;
  padding: 7px;
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.input-action-btn i {
  color: var(--text-secondary);
  font-size: 15px;
}
.input-action-btn:hover {
  background: var(--border-color);
}
#file-preview {
  margin-bottom: 7px;
  padding: 8px;
  background: var(--surface-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  display: none;
  border: 1px solid var(--border-color);
}
.file-preview-container {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  max-width: 100%;
  overflow: hidden;
  width: 100%;
}
.file-preview-container span {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  font-size: 12px;
  font-family: "Raleway", sans-serif;
}
.file-preview-container button {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 14px;
  padding: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.file-preview-container button:hover {
  color: var(--text-primary);
  background: var(--border-color);
}
#sendButton {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 8px;
  border-radius: 7px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}
#sendButton:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}
#sendButton i {
  font-size: 13px;
}

#footer-tabs {
  display: flex;
  justify-content: space-around;
  padding: 6px 0;
  background: white;
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
}
.footer-tab {
  cursor: pointer;
  transition: var(--transition);
  color: #9ca3af;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 7px 10px;
  border-radius: 7px;
  flex: 1;
  max-width: 100px;
}
.footer-tab:hover {
  background: var(--surface-color);
}
.footer-tab.active {
  color: var(--primary-color);
}
.footer-tab i {
  font-size: 18px;
  margin-bottom: 3px;
}
.footer-tab span {
  font-size: 10px;
  font-weight: 500;
  font-family: "Raleway", sans-serif;
} /* Image Popup */
.image-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.image-popup img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}
.image-popup button {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  border-radius: 7px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}
.image-popup button:hover {
  background: rgba(255, 255, 255, 0.3);
} /* Document Preview */
.doc-preview {
  display: flex;
  align-items: center;
  background: var(--surface-color);
  border-radius: 8px;
  padding: 10px;
  max-width: 240px;
  width: 100%;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
} /* Loading Indicator */
.loading-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  z-index: 10;
}
.loading-indicator p {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  font-family: "Raleway", sans-serif;
}
.spinner {
  position: relative;
  width: 36px;
  height: 36px;
}
.spinner:before,
.spinner:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--primary-color);
}
.spinner:before {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  animation: spin 1s linear infinite;
}
.spinner:after {
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  animation: spin 1.5s linear reverse infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
#scrollable-content.loaded {
  visibility: visible;
  animation: fadeIn 0.3s ease-in-out;
} /* Branding */
#branding {
  padding: 5px;
  font-weight: 200;
  text-align: center;
  color: #9ca3af;
  font-size: 8px;
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
  background: #fafafa;
  font-family: "Raleway", sans-serif;
}
#branding a {
  color: #eb6c33;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}
#branding a:hover {
  text-decoration: underline;
} /* Mobile Adjustments */
body.mobile-detected .message {
  max-width: 80% !important;
  font-size: 13px !important;
}
body.mobile-detected #userInput {
  font-size: 16px !important;
}
body.mobile-detected.landscape #chat-header-container {
  padding: 12px 16px !important;
}
