#cs-chat-container {
  position: relative;
  width: 100%;
  height: 100vh;
  background: #0a1929;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  font-family: 'Manrope', system-ui, sans-serif;
  overflow: hidden;
}

.cs-section-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 900px;
}

.cs-section-title {
  text-align: center;
  color: #f1ead8;
}

.cs-section-title h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 400;
  margin: 0 0 16px 0;
  letter-spacing: 0.01em;
}

.cs-section-title p {
  font-size: 18px;
  margin: 0;
  color: rgba(241, 234, 216, 0.8);
  line-height: 1.6;
  max-width: 500px;
}

.cs-chat-window {
  width: 90%;
  height: 85vh;
  max-width: 900px;
  max-height: 600px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #10202a 0%, #1a2f3c 50%, #243845 100%);
  color: #f1ead8;
  position: relative;
  border: 1px solid rgba(241, 234, 216, 0.1);
}

/* Wave pattern background */
.cs-chat-window::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='160' viewBox='0 0 240 160'><g fill='none' stroke='%23f1ead8' stroke-opacity='0.08' stroke-width='1'><path d='M-20 20 Q40 -10 100 20 T220 20 T340 20'/><path d='M-20 50 Q40 20 100 50 T220 50 T340 50'/><path d='M-20 80 Q40 50 100 80 T220 80 T340 80'/><path d='M-20 110 Q40 80 100 110 T220 110 T340 110'/><path d='M-20 140 Q40 110 100 140 T220 140 T340 140'/></g></svg>");
  background-size: 240px 160px;
  pointer-events: none;
  z-index: 0;
}

.cs-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 40px;
  border-bottom: 1px solid rgba(241, 234, 216, 0.15);
  position: relative;
  z-index: 1;
}

.cs-chat-header h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 400;
  margin: 0;
  letter-spacing: 0.01em;
}

.cs-close-btn {
  background: none;
  border: none;
  color: #f1ead8;
  font-size: 40px;
  cursor: pointer;
  padding: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  line-height: 1;
}

.cs-close-btn:hover {
  opacity: 1;
}

.cs-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cs-message {
  animation: slideIn 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cs-message.user {
  align-self: flex-end;
  max-width: 70%;
}

.cs-message.assistant {
  align-self: flex-start;
  max-width: 70%;
}

.cs-message-bubble {
  padding: 16px 24px;
  border-radius: 8px;
  line-height: 1.6;
  word-wrap: break-word;
}

/* Markdown formatting in chat messages */
.cs-message-bubble strong {
  font-weight: 700;
  color: inherit;
}

.cs-message-bubble em {
  font-style: italic;
  color: inherit;
}

.cs-message-bubble u {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  color: inherit;
}

.cs-message-bubble h2 {
  margin: 16px 0 8px 0;
  font-size: 1.2em;
  font-weight: 700;
  line-height: 1.4;
  color: inherit;
}

.cs-message-bubble h3 {
  margin: 12px 0 6px 0;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.4;
  color: inherit;
}

.cs-message.user .cs-message-bubble {
  background: #b27556;
  color: #faf6ec;
}

.cs-message.assistant .cs-message-bubble {
  background: rgba(241, 234, 216, 0.1);
  border: 1px solid rgba(241, 234, 216, 0.2);
  color: #f1ead8;
}

.cs-typing-bubble {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
}

.cs-typing-bubble .cs-typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f1ead8;
  opacity: 0.4;
  animation: cs-typing-bounce 1.2s infinite ease-in-out;
}

.cs-typing-bubble .cs-typing-dot:nth-child(2) { animation-delay: 0.18s; }
.cs-typing-bubble .cs-typing-dot:nth-child(3) { animation-delay: 0.36s; }

@keyframes cs-typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%           { transform: translateY(-5px); opacity: 1; }
}

.cs-chat-input-area {
  display: flex;
  gap: 16px;
  padding: 32px 40px;
  border-top: 1px solid rgba(241, 234, 216, 0.15);
  position: relative;
  z-index: 1;
  background: rgba(16, 32, 42, 0.5);
}

.cs-input {
  flex: 1;
  background: rgba(241, 234, 216, 0.08);
  border: 1px solid rgba(241, 234, 216, 0.2);
  color: #f1ead8;
  padding: 14px 20px;
  border-radius: 6px;
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.cs-input::placeholder {
  color: rgba(241, 234, 216, 0.5);
}

.cs-input:focus {
  outline: none;
  background: rgba(241, 234, 216, 0.12);
  border-color: #b27556;
}

.cs-send-btn {
  background: #b27556;
  color: #faf6ec;
  border: none;
  padding: 14px 32px;
  border-radius: 6px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.cs-send-btn:hover {
  background: #8f5a40;
}

.cs-send-btn:active {
  transform: scale(0.98);
}

.cs-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: scale(1);
}

/* Scrollbar styling */
.cs-chat-messages::-webkit-scrollbar {
  width: 6px;
}

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

.cs-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(241, 234, 216, 0.2);
  border-radius: 3px;
}

.cs-chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(241, 234, 216, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .cs-chat-header {
    padding: 20px 24px;
  }

  .cs-chat-header h3 {
    font-size: 24px;
  }

  .cs-chat-messages {
    padding: 24px;
    gap: 16px;
  }

  .cs-message.user,
  .cs-message.assistant {
    max-width: 90%;
  }

  .cs-chat-input-area {
    padding: 20px 24px;
    gap: 12px;
  }

  .cs-input {
    padding: 12px 16px;
    font-size: 14px;
  }

  .cs-send-btn {
    padding: 12px 20px;
    font-size: 12px;
  }
}
