.chatTeaser {
  position: fixed;
  width: 232px;
  height: 91px;
  right: 24px;
  bottom: 92px;
  background: #ffffff;
  border-radius: 18px;
  padding: 14px 18px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.18);
  z-index: 9999;
  cursor: pointer;
  animation: teaserFloat 3s ease-in-out infinite;
}

@keyframes teaserFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

.launcherDot {
  position: absolute;
  top: 1px;
  right: 3px;
  width: 12px;
  height: 12px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid #ffffff;
  animation: dotPulse 1.6s ease-in-out infinite;
}

@keyframes dotPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.25);
    opacity: 0.7;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.mesIcon {
  width: 35px;
  height: 35px;
  margin-top: -5px;
}

/* CHATBOT */
.chatWrapper {
  position: fixed;
  right: 24px;
  bottom: 96px;
  width: 420px;
  max-height: 83vh;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
  overflow: hidden;
  z-index: 9999;
}

.insideBot {
  width: 20px;
  height: 20px;
}

.chatHeader {
  padding: 14px 18px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}

.headerLeft {
  gap: 10px;
}

.headerIcon {
  width: 32px;
  height: 32px;
  border-radius: 50px;
  background: linear-gradient(144.05deg, #32236f 20.95%, #6043d5 115.14%);
  color: #ffffff;
}

.headerText h2 {
  color: #111827;
}

.headerText .sub {
  margin: 2px 0 0;
  color: #6b7280;
}

.headerClose {
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
}

/* chat area */
.chatWindow {
  flex: 1;
  padding: 14px 16px;
  overflow-y: auto;
  gap: 12px;
  background: #f3f4f6;
}

/* messages */
.msgRow {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.msgRow.bot {
  justify-content: flex-start;
}

.msgRow.user {
  justify-content: flex-end;
}

.userBubble {
  max-width: 70%;
  background: linear-gradient(144.05deg, #32236f 20.95%, #6043d5 115.14%);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 18px 4px 18px 18px;
  font-size: 14px;
  font-family: PlusJakartaSans-Regular;
  box-shadow: 0 2px 6px rgba(14, 165, 233, 0.35);
}

/* common avatar base */
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50px;
  flex-shrink: 0;
  background-image: url("../public/account-avatar.svg");
  background-size: cover;
}

.userAvatar {
  background: #e5e7eb;
  color: #374151;
  background-image: url("../public/man-users.svg");
}

.botBubble {
  max-width: 85%;
  background: #ffffff;
  border-radius: 18px;
  padding: 10px 14px;
  font-family: PlusJakartaSans-Regular;
  font-size: 14px;
  color: #111827;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

/* question bubble style like screenshot */
.botQuestion {
  background: rgba(229, 223, 255, 1);
}

/* chips */
.chipRow {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  padding: 8px 14px;
  color: #111827;
  cursor: pointer;
  transition: all 0.16s ease;
}

.chip:hover {
  background: #f3f4ff;
  border-color: #2563eb;
}

.chip.primary {
  background: linear-gradient(144.05deg, #32236f 20.95%, #6043d5 115.14%);
  border-color: linear-gradient(144.05deg, #32236f 20.95%, #6043d5 115.14%);
  color: #ffffff;
}

.chip.selected {
  background: linear-gradient(144.05deg, #32236f 20.95%, #6043d5 115.14%);
  border-color: linear-gradient(144.05deg, #32236f 20.95%, #6043d5 115.14%);
  color: #ffffff;
}

/* continue button area */
.ctaRow {
  margin-top: 14px;
}

.ctaButton {
  width: 100%;
  border: none;
  border-radius: 50px;
  padding: 12px 16px;
  font-size: 14px;
  cursor: pointer !important;
  background: linear-gradient(144.05deg, #32236f 20.95%, #6043d5 115.14%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.ctaButton:disabled {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
}

.ctaButton span.count {
  font-size: 12px;
  opacity: 0.85;
}

/* typing indicator */
.typingIndicator {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
}

.typingIndicator span {
  width: 6px;
  height: 6px;
  background: #9ca3af;
  border-radius: 50%;
  animation: bounce 0.9s infinite alternate;
}

.typingIndicator span:nth-child(2) {
  animation-delay: 0.15s;
}

.typingIndicator span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes bounce {
  to {
    opacity: 0.35;
    transform: translateY(-4px);
  }
}

/* footer note */
.chatFooterNote {
  padding: 8px 16px 12px;
  font-size: 11px;
  color: #6b7280;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
}

/* fit score card */
.scoreCard {
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #ecfdf3;
  border: 1px solid #a7f3d0;
}

.scoreTitle {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #16a34a;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.scoreValueRow {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.scoreValue {
  font-size: 32px;
  font-weight: 700;
  color: #15803d;
}

.scoreLabel {
  font-size: 14px;
  font-weight: 500;
  color: #15803d;
}

.scoreSubtext {
  margin-top: 6px;
  font-size: 12px;
  color: #4b5563;
}

/* small "pill" inside score card header */
.scorePillIcon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #dcfce7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #16a34a;
}

/* Start over button */
.startOverRow {
  margin-top: 10px;
  text-align: right;
}

.startOverBtn {
  border: none;
  background: transparent;
  color: #2563eb;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}

/* launcher circle */
.chatLauncher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(144.05deg, #32236f 20.95%, #6043d5 115.14%);
  color: #ffffff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.35);
  z-index: 10000;
}

.chatLauncher span {
  pointer-events: none;
}

/* "Other" input + send button row */
.otherInputRow {
  display: flex;
  align-items: center;
  gap: 6px;
}

.otherInput {
  flex: 1;
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  font-size: 13px;
}

.otherSendBtn {
  border: none;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  background: linear-gradient(135deg, #2563eb, #22c1c3);
  color: #ffffff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* utilities */
.hidden {
  display: none !important;
}

/* responsive: small screens */
@media (max-width: 1023px) {
  .chatTeaser {
    display: none !important;
  }

  .chatWrapper {
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
    bottom: 88px;
  }

  .chatLauncher {
    right: 16px;
    bottom: 16px;
  }
}
