/* If style1.css is linked from www.funxon.co.in, no @import needed here */

/* --- General Support Area --- */
main.support-content-area {
  max-width: 900px; /* Good width for FAQ readability */
  margin: 2rem auto;
  padding: 1.5rem 2rem;
  background-color: rgba(38, 38, 38, 0.5);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
  text-align: left;
}

main.support-content-area > h1 { /* Main Page Title */
  font-size: clamp(2rem, 6vw, 2.5rem);
  color: #ffffff;
  text-align: center;
  margin-top: 0;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #555;
  padding-bottom: 0.5rem;
}

.support-intro {
  text-align: center;
  color: #cccccc;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* --- Search Container --- */
.search-container {
  margin-bottom: 2rem;
}

#faq-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  border: 1px solid #555;
  border-radius: 6px;
  background-color: rgba(20, 20, 20, 0.7);
  color: #e0e0e0;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s, box-shadow 0.2s;
}

#faq-search-input::placeholder {
  color: #888;
}

#faq-search-input:focus {
  outline: none;
  border-color: var(--hover-btn-color, #af40ff);
  box-shadow: 0 0 0 2px rgba(175, 64, 255, 0.3);
}

/* --- FAQ Section --- */
#faq-section {
  margin-bottom: 2.5rem;
}

#faq-section > h2 { /* "Frequently Asked Questions" Title */
  font-size: clamp(1.6rem, 5vw, 2rem);
  color: #e0e0e0;
  margin-bottom: 1.5rem;
  text-align: center;
  border-bottom: 1px solid #4a4a4a;
  padding-bottom: 0.5rem;
}

#faq-list-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* Smaller gap between individual FAQ items */
}

.faq-category-group {
  margin-bottom: 1.5rem; /* Space between category groups */
}

.faq-category-title {
  font-size: 1.3rem;
  color: var(--hover-btn-color, #af40ff);
  margin-bottom: 0.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px dashed #444;
  font-family: 'Yatra One', sans-serif;
}

.faq-item {
  background-color: rgba(50, 50, 50, 0.6);
  border-radius: 6px;
  border: 1px solid #444;
  overflow: hidden; /* For smooth open/close */
  transition: background-color 0.2s;
}
.faq-item.hidden-by-search {
  display: none;
}

.faq-question {
  padding: 1rem 1.2rem;
  font-weight: 600;
  color: #d5d5d5;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s;
  font-size: 1.05rem;
}

.faq-question:hover {
  background-color: rgba(65, 65, 65, 0.7);
}

.faq-question .arrow {
  font-size: 0.8em;
  transition: transform 0.3s ease-in-out;
}

.faq-item.open .faq-question {
  background-color: rgba(70, 70, 70, 0.75); /* Slightly different bg when open */
  color: #fff;
}

.faq-item.open .faq-question .arrow {
  transform: rotate(90deg); /* Pointing down */
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), padding 0.3s ease-in-out;
  font-family: 'Arial', sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #c0c0c0;
  background-color: rgba(40, 40, 40, 0.5);
}

.faq-answer p {
  margin: 0; /* Reset p margin inside answer if just one */
  padding: 0.5rem 1.2rem 1.2rem 1.2rem; /* Consistent padding with question */
}

.faq-item.open .faq-answer {
  max-height: 500px; /* Adjust as needed for max answer height */
  /* padding-top and padding-bottom applied to p tag already */
}

/* --- Contact Us Section --- */
#contact-us-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #555;
  text-align: center;
}

#contact-us-section > h2 {
  font-size: clamp(1.6rem, 5vw, 2rem);
  color: #e0e0e0;
  margin-bottom: 1rem;
}

#contact-us-section p {
  color: #cccccc;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.contact-methods {
  margin-top: 1rem;
}

.support-email-link {
  color: var(--link-blue, #8bbaff);
  text-decoration: underline;
  font-weight: bold;
}

.support-email-link:hover {
  color: var(--link-blue-hover, #b0d0ff);
}

/* Loading/Error/Info Messages */
.loading-message,
.error-message,
.info-message {
  text-align: center;
  font-style: italic;
  color: #ccc;
  padding: 2rem 0;
  font-size: 1.1rem;
}

.error-message {
  color: #ff6b6b;
  font-weight: bold;
}

.info-message {
  color: #90caf9; /* A light blue for info */
}

/* Responsive */
@media (max-width: 768px) {
  main.support-content-area {
    padding: 1rem 1.5rem;
    margin: 1.5rem auto;
  }

  .faq-question {
    padding: 0.8rem 1rem;
    font-size: 1rem;
  }

  .faq-answer p {
    padding: 0.5rem 1rem 1rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 600px) {
  main.support-content-area {
    padding: 1rem;
    margin: 1rem auto;
  }

  main.support-content-area > h1 {
    font-size: 1.8rem;
  }

  #faq-section > h2,
  #contact-us-section > h2 {
    font-size: 1.4rem;
  }

  #faq-search-input {
    font-size: 0.95rem;
    padding: 0.7rem 0.9rem;
  }

  .faq-category-title {
    font-size: 1.15rem;
  }
}