/* Help & Support Page Styles */

.help-hero {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 4rem 0;
  text-align: center;
}

.help-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.help-title {
  font-size: 3rem;
  font-weight: 800;
  color: #2d3748;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.help-subtitle {
  font-size: 1.25rem;
  color: #4a5568;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

/* Search Bar */
.search-container {
  max-width: 600px;
  margin: 0 auto;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1.25rem;
  z-index: 2;
}

.search-input {
  width: 100%;
  padding: 1.25rem 1.25rem 1.25rem 3.5rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1.125rem;
  background-color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.search-input:focus {
  outline: none;
  border-color: #2b8659;
  box-shadow: 0 0 0 3px rgba(43, 134, 89, 0.1), 0 4px 16px rgba(0, 0, 0, 0.08);
}

.search-input::placeholder {
  color: #9ca3af;
}

/* Quick Help Categories */
.quick-help {
  padding: 5rem 0;
  background-color: white;
}

.help-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.help-category {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #f1f5f9;
}

.help-category:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.category-icon {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.category-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #2d3748;
  text-align: center;
}

.category-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: center;
}

.category-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.help-link {
  color: #5b4c8b;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.3s ease;
}

.help-link:hover {
  color: #4a3b73;
  padding-left: 0.5rem;
}

.help-link:last-child {
  border-bottom: none;
}

/* Contact Support Section */
.contact-support {
  padding: 5rem 0;
  background-color: #f8f9fa;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.contact-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.contact-icon {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.contact-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #2d3748;
}

.contact-description {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-info {
  font-size: 1.125rem;
  font-weight: 600;
  color: #5b4c8b;
}

.contact-hours {
  font-size: 0.9rem;
  color: #666;
}

.chat-button {
  background: linear-gradient(135deg, #2b8659 0%, #2b8659 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
}

.chat-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(91, 76, 139, 0.3);
}

/* FAQ Section */
.help-faq {
  padding: 5rem 0;
  background-color: white;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #f1f5f9;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.faq-question {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #5b4c8b;
  line-height: 1.3;
}

.faq-answer {
  color: #4a5568;
  line-height: 1.6;
  font-size: 1rem;
}

/* Contact Form Section */
.contact-form-section {
  padding: 5rem 0;
  background-color: #f8f9fa;
}

.contact-form-content {
  max-width: 800px;
  margin: 0 auto;
}

.form-header {
  text-align: center;
  margin-bottom: 3rem;
}

.form-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 1rem;
}

.form-subtitle {
  font-size: 1.125rem;
  color: #666;
  line-height: 1.6;
}

.support-contact-form {
  background: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.875rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: white;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #5b4c8b;
  box-shadow: 0 0 0 3px rgba(91, 76, 139, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit-support {
  background: linear-gradient(135deg, #2b8659 0%, #2b8659 100%);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 12px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  box-shadow: 0 4px 16px rgba(91, 76, 139, 0.3);
}

.btn-submit-support:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(91, 76, 139, 0.4);
}

/* Emergency Contact Section */
.emergency-contact {
  padding: 3rem 0;
  background-color: white;
}

.emergency-card {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  padding: 2.5rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 2rem;
  border: 2px solid #fecaca;
  max-width: 800px;
  margin: 0 auto;
}

.emergency-icon {
  flex-shrink: 0;
}

.emergency-content {
  flex: 1;
}

.emergency-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #dc2626;
  margin-bottom: 1rem;
}

.emergency-description {
  color: #7f1d1d;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.emergency-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.emergency-button {
  background: #dc2626;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.emergency-button:hover {
  background: #b91c1c;
  transform: translateY(-2px);
}

.emergency-number {
  font-size: 1.125rem;
  font-weight: 600;
  color: #dc2626;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .help-categories {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-options {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .help-hero {
    padding: 2rem 0;
  }

  .help-title {
    font-size: 2.5rem;
  }

  .help-subtitle {
    font-size: 1.125rem;
  }

  .help-categories {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-options {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .support-contact-form {
    padding: 2rem;
    margin: 0 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .form-title {
    font-size: 2rem;
  }

  .emergency-card {
    flex-direction: column;
    text-align: center;
    margin: 0 1rem;
    padding: 2rem;
  }

  .emergency-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .help-hero {
    padding: 1.5rem 0;
  }

  .help-title {
    font-size: 2rem;
  }

  .search-input {
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1rem;
  }

  .help-category {
    padding: 2rem 1.5rem;
  }

  .contact-card {
    padding: 2rem 1.5rem;
  }

  .support-contact-form {
    padding: 1.5rem;
    margin: 0 0.5rem;
  }

  .emergency-card {
    padding: 1.5rem;
    margin: 0 0.5rem;
  }

  .form-title {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.75rem;
  }
}

/* AI Chatbot Styles */
.chatbot-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #3d03db 0%, #3d03db 100%);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(61, 3, 219, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(32, 110, 86, 0.5);
}

.chatbot-notification {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #1e6ca6;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.chatbot-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 380px;
  height: 500px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(5, 19, 221, 0.2);
  z-index: 1001;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
}

.chatbot-container.active {
  display: flex;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chatbot-header {
  background: linear-gradient(135deg, #3d03db 0%, #3d03db 100%);
  padding: 1.5rem;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chatbot-avatar {
  width: 40px;
  height: 40px;
  background: rgba(6, 3, 156, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-title h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.chatbot-status {
  font-size: 0.875rem;
  opacity: 0.9;
}

.chatbot-close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.chatbot-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.chatbot-messages {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #f8fafc;
}

.message {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bot-message .message-avatar {
  background: #e2f0ee;
  color: #1e6ca6;
}

.user-message {
  flex-direction: row-reverse;
}

.user-message .message-avatar {
  background: #2b8659;
  color: white;
}

.message-content {
  flex: 1;
  max-width: 80%;
}

.user-message .message-content {
  text-align: right;
}

.message-content p {
  background: white;
  padding: 0.875rem 1rem;
  border-radius: 12px;
  margin: 0;
  line-height: 1.5;
  color: #2d3748;
  box-shadow: 0 2px 8px rgba(32, 110, 86, 0.08);
  border: 1px solid #e2f0ee;
}

.user-message .message-content p {
  background: #2b8659;
  color: white;
  border: none;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.quick-action {
  background: #1e6ca6;
  color: white;
  border: none;
  padding: 0.5rem 0.875rem;
  border-radius: 20px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.quick-action:hover {
  background: #2b8659;
  transform: translateY(-1px);
}

.chatbot-input {
  padding: 1rem 1.5rem;
  background: white;
  border-top: 1px solid #e2f0ee;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.chatbot-input input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid #e2f0ee;
  border-radius: 24px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.chatbot-input input:focus {
  border-color: #1e6ca6;
}

.chatbot-input button {
  background: linear-gradient(135deg, #2b8659 0%, #1e6ca6 100%);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.chatbot-input button:hover {
  transform: scale(1.05);
}

.typing-indicator {
  display: flex;
  gap: 0.25rem;
  padding: 0.875rem 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2f0ee;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: #1e6ca6;
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out;
}

.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.4;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .chatbot-container {
    width: calc(100vw - 2rem);
    height: 70vh;
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
  }

  .chatbot-toggle {
    bottom: 1rem;
    right: 1rem;
  }
}

@media (max-width: 480px) {
  .chatbot-container {
    width: calc(100vw - 1rem);
    height: 75vh;
    bottom: 0.5rem;
    right: 0.5rem;
    left: 0.5rem;
    border-radius: 12px;
  }

  .chatbot-toggle {
    bottom: 0.5rem;
    right: 0.5rem;
    width: 50px;
    height: 50px;
  }

  .chatbot-header {
    padding: 1rem;
  }

  .chatbot-messages {
    padding: 1rem;
  }

  .chatbot-input {
    padding: 0.75rem 1rem;
  }
}
