/* Support Page Specific Styles */

.support-banner {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("../images/support-banner.jpg");
  background-size: cover;
  background-position: center;
}

/* Support Options */
.support-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin: 50px 0;
}

.support-option {
  background-color: #fff;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.support-option:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.support-icon {
  width: 70px;
  height: 70px;
  background-color: #f5f5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.support-icon i {
  font-size: 30px;
  color: #e73323;
}

.support-option h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.support-option p {
  font-size: 14px;
  color: #777;
  margin-bottom: 20px;
}

.support-link {
  display: inline-block;
  padding: 8px 20px;
  background-color: #e73323;
  color: #fff;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.support-link:hover {
  background-color: #d62c1a;
}

/* FAQ Section */
.faq-section {
  margin-bottom: 50px;
}

.faq-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.faq-category {
  padding: 8px 15px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 14px;
  color: #555;
  transition: all 0.3s ease;
  cursor: pointer;
}

.faq-category:hover {
  background-color: #eee;
}

.faq-category.active {
  background-color: #e73323;
  color: #fff;
  border-color: #e73323;
}

.faq-category-content {
  display: none;
}

.faq-category-content.active {
  display: block;
}

.faq-item {
  background-color: #fff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.faq-question {
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #f9f9f9;
}

.faq-question h3 {
  font-size: 16px;
  margin: 0;
}

.faq-question i {
  color: #777;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 20px 20px;
  max-height: 500px;
}

.faq-answer p {
  font-size: 14px;
  color: #777;
  line-height: 1.6;
}

/* Contact Form */
.contact-section {
  margin-bottom: 50px;
}

.contact-form-container {
  background-color: #fff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group {
  margin-bottom: 0;
}

.form-group:nth-child(5),
.form-group:nth-child(6),
.form-group:nth-child(7) {
  grid-column: span 2;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.form-group textarea {
  resize: vertical;
}

.file-info {
  font-size: 12px;
  color: #777;
  margin-top: 5px;
}

.submit-btn {
  grid-column: span 2;
  background-color: #e73323;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #d62c1a;
}

/* Live Chat Modal */
.chat-modal {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.chat-modal.active {
  display: block;
}

.chat-container {
  width: 350px;
  height: 450px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 15px;
  background-color: #e73323;
  color: #fff;
  border-radius: 8px 8px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h3 {
  margin: 0;
  font-size: 16px;
}

.close-chat {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.chat-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
}

.message {
  margin-bottom: 15px;
  max-width: 80%;
}

.message p {
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 5px;
}

.message-time {
  font-size: 12px;
  color: #777;
}

.message.system {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.message.system p {
  background-color: #f5f5f5;
  display: inline-block;
}

.message.user {
  margin-left: auto;
}

.message.user p {
  background-color: #e73323;
  color: #fff;
}

.message.agent {
  margin-right: auto;
}

.message.agent p {
  background-color: #f5f5f5;
}

.chat-input {
  padding: 15px;
  border-top: 1px solid #eee;
  display: flex;
}

.chat-input input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 14px;
}

.chat-input button {
  background-color: #e73323;
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-left: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .support-options {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .contact-form {
    grid-template-columns: 1fr;
  }

  .form-group:nth-child(5),
  .form-group:nth-child(6),
  .form-group:nth-child(7) {
    grid-column: span 1;
  }

  .submit-btn {
    grid-column: span 1;
  }

  .chat-container {
    width: 300px;
  }
}

@media (max-width: 576px) {
  .support-options {
    grid-template-columns: 1fr;
  }

  .faq-categories {
    justify-content: center;
  }
}

