* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  overflow: hidden;
}

:root {
  --text-dark: #2d3436;
  --text-light: #ffffff;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

body {
  font-family: "Nunito", sans-serif;
  height: 100%;
  overflow: hidden;
}

/* ===== PRIVACY MODAL ===== */
.privacy-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  overflow-y: auto;
}
.privacy-overlay.hidden {
  display: none;
}
.privacy-box {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 340px;
  padding: 24px 20px;
  text-align: center;
  margin: auto;
}
.privacy-box h2 {
  font-size: 18px;
  margin: 12px 0 8px;
  color: var(--text-dark);
}
.privacy-box > p {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 20px;
}
.privacy-features {
  text-align: left;
  margin-bottom: 20px;
}
.privacy-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #f8f9fa;
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 13px;
}
.privacy-check {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 10px;
}
.privacy-check input {
  width: 26px;
  height: 26px;
  min-width: 26px;
  accent-color: var(--primary);
}
.privacy-check label {
  font-size: 14px;
  color: var(--text-dark);
  user-select: none;
}
.privacy-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: none;
  border-radius: 25px;
  color: white;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s, transform 0.1s;
}
.privacy-btn.active {
  opacity: 1;
}
.privacy-btn.active:active {
  transform: scale(0.97);
}
.privacy-note {
  font-size: 11px;
  color: #999;
  margin-top: 12px;
}
.privacy-note a {
  color: var(--primary);
}
.privacy-icon {
  font-size: 40px;
}

/* ===== MAIN CHAT SCREEN ===== */
.chat-screen {
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
}

.chat-screen.visible {
  display: flex;
}

/* Banner */
.banner {
  background: var(--primary);
  color: white;
  padding: 12px 20px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.banner-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: blink 1s infinite;
}
.banner-text {
  display: flex;
  align-items: center;
  gap: 6px;
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
/* Background */
.bg-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
}

/* Desktop styles - same layout as mobile, just centered */
@media (min-width: 768px) {
  .bg-container {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .chat-overlay {
    position: relative;
    inset: auto;
  }
  .input-card {
    min-width: 380px;
  }
}
/* Chat Overlay */
.chat-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  pointer-events: none;
}
.chat-overlay > * {
  pointer-events: auto;
}

/* Messages Area */
.messages-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 340px;
  width: 100%;
  margin-bottom: 20px;
}

/* Message Bubble */
.message-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 340px;
  width: 100%;
  animation: fadeInUp 0.4s ease;
  margin-bottom: 20px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.bubble {
  background: rgba(70, 70, 70, 0.92);
  color: white;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.bubble::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 18px;
  border: 8px solid transparent;
  border-right-color: rgba(70, 70, 70, 0.92);
  border-left: 0;
}

/* User message */
.user-message {
  align-self: flex-end;
  margin-left: auto;
  max-width: 280px;
  animation: fadeInUp 0.3s ease;
}

.user-bubble {
  background: var(--primary);
  color: white;
  padding: 12px 16px;
  border-radius: 18px;
  border-bottom-right-radius: 4px;
  font-size: 15px;
  font-weight: 600;
}

/* Typing indicator */
.typing-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: fadeInUp 0.3s ease;
}

.typing-bubble {
  background: rgba(70, 70, 70, 0.92);
  padding: 14px 18px;
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  display: flex;
  gap: 4px;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out;
}
.typing-dot:nth-child(1) {
  animation-delay: 0s;
}
.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  40% {
    transform: translateY(-6px);
    opacity: 1;
  }
}
/* Input Card */
.input-card {
  background: white;
  border-radius: 20px;
  padding: 16px;
  max-width: 340px;
  width: 100%;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.4s ease 0.15s both;
}

/* Answer Options */
.options-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-bottom: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
.options-container::-webkit-scrollbar {
  display: none;
}

.option-btn {
  padding: 10px 18px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.1s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.option-btn:active {
  transform: scale(0.97);
  background: #f5f5f5;
  border-color: var(--primary);
}

/* Input Row */
.input-row {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border-radius: 25px;
  padding: 6px 6px 6px 16px;
  gap: 10px;
}

.input-field {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  color: var(--text-dark);
  min-width: 0;
}
.input-field::placeholder {
  color: #999;
}

.send-btn {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.send-btn svg {
  width: 18px;
  height: 18px;
  fill: white;
  margin-left: 2px;
}
.send-btn:active {
  transform: scale(0.95);
}

/* Registration Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  padding: 16px;
  overflow-y: auto;
}

.modal {
  background: white;
  border-radius: 24px;
  width: 100%;
  max-width: 360px;
  overflow: hidden;
  margin: auto;
  animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.modal-close svg {
  width: 18px;
  height: 18px;
  stroke: white;
}

.modal-head {
  background: linear-gradient(135deg, var(--primary), #e84393);
  padding: 30px 20px;
  text-align: center;
  color: white;
  position: relative;
}
.modal-head img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  margin-bottom: 16px;
}
.modal-head h2 {
  font-size: 20px;
  margin-bottom: 6px;
}
.modal-head p {
  font-size: 14px;
  opacity: 0.9;
}

.modal-body {
  padding: 24px 20px;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}
.benefit:last-child {
  border-bottom: none;
}

.benefit-icon {
  width: 40px;
  height: 40px;
  background: #fef0f3;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.benefit strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

.benefit span {
  font-size: 13px;
  color: #666;
}

.modal-button {
  display: block;
  text-align: center;
}

.modal-cta {
  width: 100%;
  padding: 18px;
  margin-top: 20px;
  background: linear-gradient(135deg, var(--primary), #e84393);
  border: none;
  border-radius: 30px;
  color: white;
  font-size: 18px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.modal-cta:active {
  transform: scale(0.98);
}

.modal-skip {
  width: 100%;
  padding: 14px;
  background: transparent;
  border: 2px solid #ddd;
  border-radius: 30px;
  color: #555;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-top: 12px;
  transition: border-color 0.2s, color 0.2s;
}
.modal-skip:hover, .modal-skip:active {
  border-color: #bbb;
  color: #333;
}

.modal-footer {
  text-align: center;
  font-size: 12px;
  color: #999;
  margin-top: 16px;
}
.modal-footer a {
  color: var(--primary);
}

.hidden {
  display: none;
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/*# sourceMappingURL=chat-template.css.map */
