/* FAQ Section Styles - Chatbot AI Design */
.faq-area {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f0f9ff 100%);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.faq-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 15% 85%, rgba(72,219,216,0.08) 0%, transparent 50%),
    radial-gradient(circle at 85% 15%, rgba(107,227,170,0.06) 0%, transparent 50%);
  animation: background-pulse 12s ease-in-out infinite;
}

@keyframes background-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

.faq-area-inner {
    display: block;
  position: relative;
  z-index: 2;
}

/* Header Section */
.faq-area .section-header {
  margin-bottom: 60px;
  text-align: center;
}

.faq-area .section-title {
  font-size: 48px;
  font-weight: 800;
  color: #2c3e50;
  margin-bottom: 30px;
  line-height: 1.2;
  position: relative;
}

.faq-area .section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #48DBD8, #6BE3AA);
  border-radius: 2px;
}

.faq-area .text {
  font-size: 20px;
  line-height: 1.6;
  color: #4a5568;
  max-width: 700px;
  margin: 0 auto;
}

/* FAQ Split Layout Container */
.faq-container {
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 450px 1fr;
  gap: 40px;
  min-height: 600px;
  background: white;
  border-radius: 25px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 2px solid rgba(72, 219, 216, 0.1);
}

/* Questions Panel (Left Side) */
.questions-panel {
  background: linear-gradient(180deg, #fafbfc 0%, #f8f9fa 100%);
  padding: 30px;
  border-right: 2px solid rgba(72, 219, 216, 0.1);
  overflow-y: auto;
  max-height: 70vh;
}

.questions-header {
  margin-bottom: 25px;
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(72, 219, 216, 0.1);
}

.questions-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 8px 0;
}

.questions-header p {
  font-size: 14px;
  color: #6c757d;
  margin: 0;
}

/* Question Cards */
.question-card {
  background: white;
  border: 2px solid rgba(72, 219, 216, 0.1);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 15px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.question-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(72, 219, 216, 0.1), transparent);
  transition: left 0.6s ease;
}

.question-card:hover::before {
  left: 100%;
}

.question-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(72, 219, 216, 0.2);
  border-color: rgba(72, 219, 216, 0.3);
}

.question-card.active {
  border-color: #48DBD8;
  background: linear-gradient(135deg, rgba(72, 219, 216, 0.1), rgba(107, 227, 170, 0.05));
  box-shadow: 0 10px 30px rgba(72, 219, 216, 0.25);
}

.question-card.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #48DBD8, #6BE3AA);
}

.question-text {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  line-height: 1.4;
  margin: 0;
  position: relative;
  z-index: 2;
}

.question-card.active .question-text {
  color: #1a365d;
}

/* Chat Interface (Right Side) */
.chat-interface {
  display: flex;
  flex-direction: column;
  height: 70vh;
  background: white;
}

/* Chatbot Header */
.chatbot-header {
  background: linear-gradient(135deg, #48DBD8 0%, #6BE3AA 100%);
  padding: 25px 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.chatbot-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 3s infinite;
}

.chatbot-avatar {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  position: relative;
  animation: pulse-avatar 2s ease-in-out infinite;
}

.chatbot-info h3 {
  color: white;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 5px 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chatbot-status {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-indicator {
  width: 8px;
  height: 8px;
  background: #6BE3AA;
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

/* Chat Messages Container */
.chat-messages {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
  background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Welcome Message */
.welcome-message {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.ai-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #48DBD8, #6BE3AA);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(72, 219, 216, 0.3);
}

.welcome-bubble {
  background: white;
  border: 2px solid rgba(72, 219, 216, 0.1);
  padding: 20px 25px;
  border-radius: 5px 20px 20px 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.welcome-bubble::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #48DBD8, #6BE3AA);
}

.welcome-text {
  color: #4a5568;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

/* Response Message */
.response-message {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.response-message.show {
  opacity: 1;
  transform: translateY(0);
}

.response-bubble {
  background: white;
  border: 2px solid rgba(72, 219, 216, 0.1);
  padding: 20px 25px;
  border-radius: 5px 20px 20px 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.response-bubble::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #48DBD8, #6BE3AA);
}

.response-content {
  color: #4a5568;
  font-size: 16px;
  line-height: 1.7;
}

.response-content p {
  margin: 0 0 15px 0;
}

.response-content p:last-child {
  margin-bottom: 0;
}

/* Special styling for responses */
.response-content strong {
  color: #2c3e50;
  font-weight: 700;
}

.response-content em {
  color: #48DBD8;
  font-style: normal;
  font-weight: 600;
}

/* Special content styling for responses */
.faq-highlight {
  background: linear-gradient(135deg, rgba(72, 219, 216, 0.1), rgba(107, 227, 170, 0.1));
  border-left: 4px solid #48DBD8;
  padding: 15px 20px;
  margin: 15px 0;
  border-radius: 10px;
  position: relative;
}

.faq-highlight::before {
  content: '💡';
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 18px;
}

/* Quote styling in responses */
.faq-quote {
  font-style: italic;
  background: rgba(72, 219, 216, 0.05);
  padding: 15px 20px;
  border-left: 3px solid #48DBD8;
  margin: 15px 0;
  border-radius: 8px;
}

/* Special content styling */
.faq-price-highlight {
  background: linear-gradient(135deg, rgba(255, 230, 109, 0.2), rgba(255, 230, 109, 0.1));
  border-left: 4px solid #FFE66D;
  padding: 15px 20px;
  margin: 15px 0;
  border-radius: 10px;
  font-weight: 600;
  color: #8B5A2B;
}

.faq-security-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(107, 227, 170, 0.1);
  color: #2f855a;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin: 10px 0;
}

.faq-security-badge::before {
  content: '🛡️';
  font-size: 16px;
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
  margin-bottom: 0;
}

.typing-indicator.show {
  opacity: 1;
}

.typing-bubble {
  background: white;
  border: 2px solid rgba(72, 219, 216, 0.1);
  padding: 15px 20px;
  border-radius: 5px 20px 20px 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.typing-bubble::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #48DBD8, #6BE3AA);
}

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

.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 typing {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.5;
    background: #48DBD8;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
    background: #3DBFBA;
  }
}

/* Make sure animation keyframes exist */
@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes pulse-avatar {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar,
.questions-panel::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track,
.questions-panel::-webkit-scrollbar-track {
  background: rgba(72, 219, 216, 0.1);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb,
.questions-panel::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #48DBD8, #6BE3AA);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover,
.questions-panel::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #3DBFBA, #5AD492);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .faq-container {
    grid-template-columns: 400px 1fr;
    gap: 30px;
  }
}

@media (max-width: 991px) {
  .faq-container {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: auto;
  }
  
  .questions-panel {
    border-right: none;
    border-bottom: 2px solid rgba(72, 219, 216, 0.1);
    max-height: 400px;
    padding: 25px;
  }
  
  .chat-interface {
    height: 500px;
  }
  
  .chatbot-header {
    padding: 20px 25px;
  }
  
  .chat-messages {
    padding: 25px;
  }
}

@media (max-width: 767px) {
  .faq-area {
    padding: 60px 0;
  }
  
  .faq-container {
    margin: 0 15px;
    border-radius: 20px;
  }
  
  .questions-panel {
    padding: 20px;
    max-height: 350px;
  }
  
  .question-card {
    padding: 15px;
    margin-bottom: 12px;
  }
  
  .question-text {
    font-size: 14px;
  }
  
  .chat-interface {
    height: 450px;
  }
  
  .chatbot-header {
    padding: 18px 20px;
  }
  
  .chatbot-avatar {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .chatbot-info h3 {
    font-size: 18px;
  }
  
  .chat-messages {
    padding: 20px;
  }
  
  .response-content {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .faq-container {
    margin: 0 10px;
  }
  
  .questions-panel {
    padding: 15px;
  }
  
  .question-card {
    padding: 12px;
  }
  
  .question-text {
    font-size: 13px;
  }
  
  .chat-interface {
    height: 400px;
  }
  
  .chatbot-header {
    padding: 15px 18px;
  }
  
  .chat-messages {
    padding: 15px;
  }
  
  .response-content {
    font-size: 13px;
  }
  
  .faq-security-badge {
    font-size: 12px;
    padding: 6px 12px;
  }
}
