.chat-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ececfb;
  padding: 16px 24px;
}

@media only screen and (max-width: 767px) {
  .chat-top-bar {
    padding: 16px;
  }
}

.chat-top-bar .section-title {
  display: flex;
  align-items: center;
}

.chat-top-bar .section-title .icon {
  margin-right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-top-bar .section-title .title {
  margin-bottom: 0;
}

.chat-top-bar .more-info-icon {
  background: var(--color-gray);
  border: 0;
  padding: 6px 8px;
  border-radius: 4px;
  color: var(--color-heading);
}

.chat-container {
  width: 1200px;
  height: 700px;
  background: transparent;
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 20px;
}

.chat-messages {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  background: var(--color-primary);
}

.message {
  margin-bottom: 16px;
  animation: slideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.message.user {
  text-align: right;
  margin-bottom: 16px;
}

.message.user .message-bubble {
  background: #667eea;
  color: #333;
  display: inline-block;
  padding: 12px 16px;
  border-radius: 18px;
  border-bottom-right-radius: 4px;
  font-size: 14px;
  line-height: 1.4;
}

.ai-message {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.ai-avatar {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

.ai-content {
  flex: 1;
}

.ai-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
}

.response-card {
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 16px;
}

.problem-title {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.problem-title .label {
  font-weight: 700;
  color: #000;
}

.info-row {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.info-row .label {
  font-weight: bold;
  color: #8b3c96;
}

.divider {
  height: 1px;
  background: #e5e5e5;
  margin: 10px 0;
}

.step-item {
  font-size: 10px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.step-item .step-label {
  font-weight: bold;
  color: #8b3c96;
}

.time-badge {
  background: rgba(0, 136, 255, 0.1);
  border: 1px solid rgba(0, 136, 255, 0.5);
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 8px;
  font-weight: 500;
  color: #0088ff;
  margin: 16px 0 10px 0;
  display: inline-block;
}

.safety-card {
  background: #fcedee;
  border: 1px solid #ffaeae;
  border-radius: 4px;
  padding: 12px;
  font-size: 8px;
  line-height: 1.5;
  color: #ff0000;
}

.safety-card .label {
  font-weight: 700;
}

.options-section {
  margin-top: 24px;
  padding-left: 32px;
}

.section-title {
  font-size: 16px;
  font-weight: bold;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.option-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.07);
  padding: 18px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: transform 0.2s;
}

.option-card:hover {
  transform: translateY(-2px);
}

.option-card .text {
  font-size: 12px;
  color: #666;
  font-weight: 400;
}

.next-step-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  padding: 20px;
  cursor: pointer;
  transition: transform 0.2s;
}

.next-step-card:hover {
  transform: translateY(-2px);
}

.next-step-header {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.next-step-label {
  font-size: 8px;
  color: #1976d2;
  font-weight: 500;
}

.next-step-title {
  font-size: 12px;
  font-weight: 600;
  color: #7b1fa2;
}

.chat-input {
  padding: 20px;
  background: transparent;
}

.input-container {
  display: flex;
  align-items: center;
  background: var(--color-primary);
  border: 2px solid #e5e7eb;
  border-radius: 25px;
  padding: 8px 16px;
  margin-bottom: 12px;
  transition: border-color 0.3s;
}

.input-container:focus-within {
  border-color: #8b5cf6;
}

.input-icon.left {
  margin-right: 12px;
  color: #8b5cf6;
}

.message-input {
  flex: 1;
  border: none !important;
  outline: none !important;
  font-size: 14px;
  background: transparent;
  padding: 8px 0;
}

.message-input::placeholder {
  color: #9ca3af;
}

.input-icons.right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
}

.icon-btn {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.3s;
}

.icon-btn:hover {
  color: #374151;
}

.send-btn {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.3s;
}

.send-btn:hover {
  color: #374151;
}

.disclaimer {
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  margin: 0;
}

.processing {
  display: none;
}

.processing.show {
  display: block;
}

.typing-dots {
  display: flex;
  gap: 4px;
}

.dot {
  width: 8px;
  height: 8px;
  background: #999;
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}

.dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-10px);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}
