/* askbayanihan.css */

body {
  position: relative;
  background-color: var(--light-bg);
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("../assets/images/launchpage-bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  z-index: -1;
}

.abvn-registration {
  padding: 20px;
  background: url('../assets/images/background.jpg') no-repeat center center fixed;
  background-size: cover;
  min-height: calc(100vh - 100px);
}

.container {
  max-width: 950px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  animation: fadeIn 1s ease-in;
}

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

.form-title {
  color: #ff69b4;
  text-align: center;
  margin-bottom: 10px;
}

.form-subtitle {
  color: #333;
  text-align: center;
  margin-bottom: 20px;
}

/* Container Styling */
.chat-container {
  scroll-behavior: smooth;
  height: 390px;
  overflow-y: auto;
  border: none;
  border-radius: 16px;
  padding: 20px;
  background: #fefefe;
  margin-bottom: 20px;
  box-shadow: inset 0 0 0 1px #e5e7eb, 0 4px 12px rgba(0, 0, 0, 0.03);
}


/* Message Bubbles */
.chat-message {
  padding: 14px 18px;
  margin: 12px 0;
  border-radius: 18px;
  max-width: 80%;
  font-size: 0.95rem;
  transition: transform 0.2s ease;
  word-break: break-word;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.chat-message.user {
  background: #2563eb;
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 6px;
}

.chat-message.bot {
  background: #f1f5f9;
  color: #111827;
  margin-right: auto;
  border-bottom-left-radius: 6px;
}


/* Hover Expansion */
.chat-message:hover {
  transform: scale(1.015);
  cursor: default;
}

/* Expanded State */
.chat-message.expanded {
  max-width: 100%;
  background: #ffffff;
  border: 2px solid #0078d4;
  padding: 16px 20px;
}

/* Input Section */
.chat-input {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

#chat-input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #fff;
  font-size: 15px;
  transition: border 0.2s ease;
}

#chat-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}


#send-button {
  background: linear-gradient(to right, #3b82f6, #2563eb);
  padding: 10px 20px;
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.2);
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

/* Pulse on Hover */
#send-button:hover {
  animation: pulse 0.6s ease-in-out;
  background: linear-gradient(to right, #2563eb, #1d4ed8);
  box-shadow: 0 6px 12px rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

/* Click bounce effect */
#send-button:active {
  transform: scale(0.98);
  box-shadow: 0 2px 5px rgba(37, 99, 235, 0.2);
}

/* Pulse animation keyframes */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
  }
}




.pre-made-wrapper {
  margin-bottom: 1.75rem;
  border-radius: 14px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  overflow: hidden;
}

.pre-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  cursor: pointer;
  background-color: #f9fafb;
  transition: background-color 0.3s ease;
}

.pre-header:hover {
  background-color: #f3f4f6;
}

.pre-title {
  font-weight: 600;
  font-size: 1.05rem;
  color: #1f2937;
}


.chevron {
  transition: transform 0.3s;
}

.pre-made-questions {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 1.25rem; /* keep horizontal padding */
}

.pre-made-questions.expanded {
  max-height: 500px; /* enough height for content */
  padding: 1rem 1.25rem; /* restore vertical padding */
}


.hidden {
  display: none;
}

.assistant-intro {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.assistant-msg {
  font-size: 0.95rem;
  color: #444;
}

.question-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0.5rem;
}

.chip {
  background-color: #f3f4f6;
  color: #1f2937;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid #d1d5db;
  cursor: pointer;
  transition: all 0.25s ease;
}

.chip:hover {
  background-color: #e0e7ff;
  color: #3730a3;
  border-color: #6366f1;
}


.chip.fade-out {
  opacity: 0;
  transform: translateY(-6px) scale(0.95);
  transition: all 0.3s ease;
  pointer-events: none;
}

