/* Footer Custom Styles - WhatsApp & Chat Widget */

/* WhatsApp Button (Right) */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  animation: pulse 2s infinite;
}

.whatsapp-button {
  background: #25D366;
  color: white;
  padding: 15px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 16px;
}

.whatsapp-button:hover {
  background: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-text {
  white-space: nowrap;
}

/* Chat Button (Left) */
.chat-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  animation: bounce 2s infinite;
}

.chat-button {
  background: rgba(28, 37, 57, 1);
  color: white;
  padding: 15px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.6);
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 16px;
  position: relative;
}

.chat-button:hover {
  background: rgba(253, 118, 45, 1);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

.chat-text {
  white-space: nowrap;
}

.chat-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff4757;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  animation: badgePulse 1.5s infinite;
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

@keyframes badgePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* WhatsApp Modal */
.whatsapp-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  justify-content: center;
  align-items: center;
}

.whatsapp-modal-content {
  background: white;
  border-radius: 15px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.whatsapp-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.whatsapp-modal-header h3 {
  margin: 0;
  color: #25D366;
  font-size: 24px;
  font-weight: 700;
}

.whatsapp-close {
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-close:hover {
  color: #25D366;
}

.whatsapp-field {
  margin-bottom: 20px;
}

.whatsapp-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.whatsapp-field input,
.whatsapp-field select,
.whatsapp-field textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.whatsapp-field input:focus,
.whatsapp-field select:focus,
.whatsapp-field textarea:focus {
  outline: none;
  border-color: #25D366;
}

.whatsapp-submit-btn {
  background: #25D366;
  color: white;
  border: none;
  padding: 15px 25px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: center;
  transition: background 0.3s ease;
}

.whatsapp-submit-btn:hover {
  background: #128C7E;
}

/* Chat Widget Styles */
.chat-widget {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 350px;
  height: 500px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  flex-direction: column;
  overflow: hidden;
}

.chat-widget-header {
  background: #e26b45;
  color: white;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.chat-widget-avatar {
  width: 40px;
  height: 40px;
  background: #e26b45;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.chat-widget-info h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.chat-widget-info p {
  margin: 0;
  font-size: 12px;
  opacity: 0.9;
}

.chat-widget-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.chat-widget-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.chat-widget-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #f8f9fa;
}

.chat-message {
  display: flex;
  margin-bottom: 15px;
  align-items: flex-start;
  gap: 10px;
}

.message-avatar {
  width: 32px;
  height: 32px;
  background: #e26b45;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.message-content {
  flex: 1;
}

.message-bubble {
  background: white;
  padding: 12px 16px;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

.message-bubble p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #333;
}

.message-time {
  display: block;
  font-size: 11px;
  color: #999;
  margin-top: 5px;
}

.chat-options {
  padding: 0 20px 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-option {
  background: #e26b45;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.chat-option:hover {
  background: rgba(253, 118, 45, 1);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.option-icon {
  font-size: 14px;
}

.chat-input-area {
  padding: 15px 20px;
  background: white;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 10px;
  align-items: center;
}

.chat-input {
  flex: 1;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 10px 15px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s ease;
}

.chat-input:focus {
  border-color: rgba(253, 118, 45, 1);
}

.chat-send-btn {
  background: #e26b45;
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chat-send-btn:hover {
  background: rgba(253, 118, 45, 1);
  transform: scale(1.05);
}

/* User message styling */
.message-bubble.test p {
  color: white;
}

.message-bubble.test span {
  color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 15px;
    right: 15px;
  }
  
  .chat-float {
    bottom: 15px;
    left: 15px;
  }
  
  .whatsapp-button,
  .chat-button {
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .whatsapp-text,
  .chat-text {
    display: none;
  }
  
  .whatsapp-modal-content,
  .chat-modal-content {
    padding: 20px;
    margin: 20px;
  }
  
  .chat-features {
    grid-template-columns: 1fr;
  }
}
