/* style/support.css */

/* BEM Naming: page-support__element-name */
/* Scope: .page-support */
/* Colors: #26A9E0 (primary), #FFFFFF (secondary), #EA7C07 (login), #000000 */

.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--background-color, #f8f8f8); /* Inherit from shared, fallback to light gray */
}

/* Fixed Header Offset - applied to the main content wrapper or hero section */
.page-support__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background: linear-gradient(135deg, #E0F2F7, #FFFFFF); /* Light gradient for hero */
  color: #333333;
}

.page-support__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column; /* Default stack for mobile, will change for desktop */
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.page-support__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-support__hero-content h1 {
  font-size: 3.2em;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-support__hero-content p {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-support__hero-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.page-support__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Ensure padding doesn't cause overflow */
  max-width: 100%; /* For mobile adaptation */
  white-space: normal; /* For mobile button text wrap */
  word-wrap: break-word; /* For mobile button text wrap */
}

.page-support__btn-primary {
  background: #26A9E0;
  color: #ffffff;
  border: 2px solid transparent;
}

.page-support__btn-primary:hover {
  background: #1e87b7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-support__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-support__btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-support__hero-image {
  width: 100%;
  max-width: 800px; /* Limit image width on desktop */
}

.page-support__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.page-support__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
}

.page-support__section-description {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-support__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Contact Methods Section */
.page-support__contact-methods {
  padding: 80px 0;
  background: #26A9E0; /* Dark section for contrast */
  color: #ffffff;
}

.page-support__contact-methods .page-support__section-title {
  color: #ffffff;
}

.page-support__contact-methods .page-support__section-description {
  color: #e0f2f7;
}

.page-support__methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-support__method-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

.page-support__method-card img {
  width: 100%; /* Adjusted for content display, not tiny icon */
  max-width: 250px; /* Max width for image within card */
  height: auto;
  border-radius: 4px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Enforce minimum size */
  min-width: 200px; /* Enforce minimum size */
}

.page-support__method-card h3 {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-support__method-card p {
  margin-bottom: 25px;
  flex-grow: 1; /* Allow paragraph to take available space */
}

.page-support__method-card .page-support__btn-primary {
  width: auto;
  padding: 12px 25px;
  font-size: 16px;
}

/* FAQ Section */
.page-support__faq-section {
  padding: 80px 0;
  background-color: var(--background-color, #f8f8f8);
}

.page-support__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-support__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  background: #f9f9f9; /* Light background for answers */
  color: #333333;
}

.page-support__faq-item.active .page-support__faq-answer {
  max-height: 2000px !important; /* Ensure content expands fully */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-support__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-support__faq-question:active {
  background: #eeeeee;
}

.page-support__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click */
  color: #26A9E0;
}

.page-support__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-support__faq-item.active .page-support__faq-toggle {
  color: #333;
  transform: rotate(45deg); /* Change from + to X or just a dash */
}

.page-support__cta-bottom {
  text-align: center;
  margin-top: 40px;
}

/* Resources Section */
.page-support__resources-section {
  padding: 80px 0;
  background-color: #f0f8ff; /* Light blueish background */
}

.page-support__resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-support__resource-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #333333;
}

.page-support__resource-card img {
  width: 100%;
  max-width: 350px; /* Limit image width */
  height: auto;
  min-height: 200px; /* Enforce minimum size */
  min-width: 200px; /* Enforce minimum size */
  border-radius: 4px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-support__resource-card h3 {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-support__resource-card h3 a {
  color: #26A9E0;
  text-decoration: none;
}

.page-support__resource-card h3 a:hover {
  text-decoration: underline;
}

.page-support__resource-card p {
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-support__card-link {
  display: inline-block;
  padding: 10px 20px;
  background: #26A9E0;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-support__card-link:hover {
  background: #1e87b7;
}

/* Feedback Section */
.page-support__feedback-section {
  padding: 80px 0;
  background: #26A9E0; /* Dark section for contrast */
  color: #ffffff;
}

.page-support__feedback-section .page-support__section-title {
  color: #ffffff;
}

.page-support__feedback-section .page-support__section-description {
  color: #e0f2f7;
}

.page-support__feedback-form {
  max-width: 700px;
  margin: 40px auto 0 auto;
  background: #ffffff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  color: #333333;
  text-align: left;
}

.page-support__form-group {
  margin-bottom: 20px;
}

.page-support__form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333333;
}

.page-support__form-group input[type="text"],
.page-support__form-group input[type="email"],
.page-support__form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.page-support__form-group input:focus,
.page-support__form-group textarea:focus {
  border-color: #26A9E0;
  outline: none;
}