*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 24px;
  background: radial-gradient(circle at 10% 20%, rgba(255, 250, 250, 1) 0%, rgba(255, 240, 243, 1) 90.1%);
  color: #202020;
  height: 100vh;
  overflow: hidden;
  position: relative;
  -webkit-text-size-adjust: 100%;
}

/* Background organic premium shapes */
body::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 40vh;
  height: 40vh;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 182, 193, 0.2) 0%, rgba(255, 240, 243, 0) 70%);
  z-index: -1;
  filter: blur(40px);
}

body::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 50vh;
  height: 50vh;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 237, 255, 0.3) 0%, rgba(255, 250, 250, 0) 70%);
  z-index: -1;
  filter: blur(50px);
}

.progress-bar-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: rgba(241, 241, 241, 0.8);
  backdrop-filter: blur(4px);
  z-index: 1000;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ffb3c1 0%, #a2c2e8 100%);
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px rgba(255, 179, 193, 0.6);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-container {
  max-width: 600px;
  margin: 0 auto;
  height: 100vh;
  overflow-y: auto;
  padding: 24px 20px 50vh 20px;
  scroll-behavior: smooth;
  position: relative;
  z-index: 1;
}

.chat-container::-webkit-scrollbar {
  width: 6px;
}

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

.chat-container::-webkit-scrollbar-thumb {
  background: rgba(209, 213, 223, 0.8);
  border-radius: 3px;
}

.chat-messages {
  display: flex;
  flex-direction: column;
}

/* Bot message group */
.bot-group {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 12px;
}

.bot-avatar {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #FFFFFF;
  box-shadow: 0 4px 10px rgba(255, 179, 193, 0.3);
  background: #FFF;
}

.bot-avatar-placeholder {
  width: 42px;
  min-width: 42px;
  flex-shrink: 0;
}

.bot-bubbles {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: calc(100% - 52px);
}

/* Bot bubble */
.bot-bubble {
  background: rgba(255, 255, 255, 0.9);
  color: #2D3142;
  padding: 12px 18px;
  border-radius: 16px 16px 16px 4px;
  width: fit-content;
  max-width: 100%;
  word-wrap: break-word;
  font-weight: 400;
  box-shadow: 0 4px 15px rgba(100, 110, 140, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(255, 240, 243, 0.8);
  animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.bot-bubble b {
  font-weight: 600;
  color: #1A1D20;
}

.bot-bubble i {
  font-style: italic;
  color: #555A6E;
}

.bot-bubble img {
  max-width: 100%;
  border-radius: 8px;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin: 6px 0;
}

/* Guest bubble */
.guest-bubble {
  background: #303235;
  color: #FFFFFF;
  padding: 12px 18px;
  border-radius: 16px 16px 4px 16px;
  width: fit-content;
  max-width: 80%;
  margin-left: auto;
  margin-bottom: 12px;
  word-wrap: break-word;
  box-shadow: 0 6px 20px rgba(48, 50, 53, 0.15);
  font-weight: 500;
  animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

/* Typing indicator */
.typing-bubble {
  background: rgba(255, 255, 255, 0.9);
  padding: 12px 20px;
  border-radius: 16px 16px 16px 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  box-shadow: 0 4px 12px rgba(100, 110, 140, 0.05);
  border: 1px solid rgba(255, 240, 243, 0.8);
}

.typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffb3c1;
  animation: typingPulse 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
  background: #a2c2e8;
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  background: #ffb3c1;
  animation-delay: 0.4s;
}

@keyframes typingPulse {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

/* Choice buttons */
.choices-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
  margin-bottom: 14px;
  padding-left: 52px;
  animation: fadeIn 0.4s ease forwards;
}

.choice-btn {
  background: #303235;
  color: #FFFFFF;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  animation: fadeInBtn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  width: 100%;
  text-align: left;
  box-shadow: 0 4px 12px rgba(48, 50, 53, 0.1);
}

.choice-btn:hover {
  background: #1f2022;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(48, 50, 53, 0.25);
}

.choice-btn:active {
  transform: translateY(0);
}

a.choice-btn {
  text-decoration: none;
  display: block;
  box-sizing: border-box;
}

/* CTA Checkout Specific Styling */
.cta-checkout {
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
  border: none;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  text-align: center;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3);
  animation: fadeInBtn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards, pulseCTA 2s infinite;
}

.cta-checkout:hover {
  background: linear-gradient(135deg, #4ade80 0%, #16a34a 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.45);
}

@keyframes pulseCTA {
  0% {
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3);
  }
  50% {
    box-shadow: 0 6px 25px rgba(34, 197, 94, 0.6), 0 0 0 8px rgba(34, 197, 94, 0.15);
  }
  100% {
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3);
  }
}

/* Number input */
.number-input-container {
  display: flex;
  gap: 8px;
  max-width: 320px;
  margin-top: 14px;
  margin-bottom: 10px;
  padding-left: 52px;
  animation: fadeIn 0.4s ease forwards;
}

.number-input-container input {
  flex: 1;
  background: #FFFFFF;
  color: #202020;
  border: 1.5px solid rgba(255, 179, 193, 0.3);
  border-radius: 12px;
  padding: 10px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  outline: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}

.number-input-container input:focus {
  border-color: #ffb3c1;
  box-shadow: 0 4px 12px rgba(255, 179, 193, 0.2), 0 0 0 3px rgba(255, 179, 193, 0.1);
}

.number-input-container input::placeholder {
  color: #9095A0;
}

.number-input-container button {
  background: #303235;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  transition: all 0.25s ease;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(48, 50, 53, 0.15);
}

.number-input-container button:hover {
  background: #1f2022;
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(48, 50, 53, 0.25);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.fade-out {
  animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-5px); }
}

/* Responsive */
@media (max-width: 640px) {
  body::before {
    width: 30vh;
    height: 30vh;
  }
  
  body::after {
    width: 35vh;
    height: 35vh;
  }

  .chat-container {
    padding: 16px 14px 50vh 14px;
  }

  .choices-container {
    padding-left: 0;
  }

  .number-input-container {
    max-width: 100%;
    width: 100%;
    padding-left: 0;
  }

  .bot-bubbles {
    max-width: calc(100% - 48px);
  }
  
  .bot-avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }
  
  .bot-avatar-placeholder {
    width: 38px;
    min-width: 38px;
  }
}
