/* style/contact.css */
/* 
 * CSS styles for the Contact Us page (page-contact).
 * All selectors must use BEM naming convention: .page-contact__element-name.
 * Styles are scoped to the .page-contact class.
 */

/* --- Base Styles --- */
.page-contact {
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-contact__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-contact__dark-section {
  background-color: #017439; /* Brand primary color for dark sections */
  color: #ffffff;
  padding: 60px 20px;
}

.page-contact__section-heading {
  font-size: 2.5em;
  color: #017439; /* Brand primary color for headings on light bg */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact__section-heading--white {
  color: #ffffff; /* White color for headings on dark bg */
}

.page-contact__sub-title {
  font-size: 1.5em;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-contact__paragraph--white {
  color: #ffffff;
}

.page-contact__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-contact__list-item {
  margin-bottom: 10px;
}

/* --- Buttons --- */
.page-contact__cta-button,
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__channel-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-primary {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
}

.page-contact__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-contact__btn-secondary {
  background-color: transparent;
  color: #017439; /* Brand primary color */
  border: 2px solid #017439;
}

.page-contact__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

.page-contact__btn-primary--large,
.page-contact__btn-secondary--large {
  padding: 15px 30px;
  font-size: 1.2em;
}

.page-contact__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-contact__button-group--center {
    justify-content: center;
}

/* --- Hero Section --- */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  box-sizing: border-box;
}

.page-contact__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-contact__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

.page-contact__hero-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  max-width: 900px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5); /* Slightly darker background for text box */
  border-radius: 10px;
}

.page-contact__main-heading {
  font-size: 3.5em;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
  color: #ffffff;
}

.page-contact__sub-heading {
  font-size: 1.4em;
  margin-bottom: 30px;
  line-height: 1.5;
  color: #f0f0f0;
}

/* --- Channels Section --- */
.page-contact__channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-contact__channel-card {
  background-color: rgba(255, 255, 255, 0.1); /* Light transparent background for dark section */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__channel-icon {
  width: 200px; /* Adjusted to meet minimum size requirement */
  height: 200px; /* Adjusted to meet minimum size requirement */
  object-fit: contain;
  margin-bottom: 20px;
  filter: none; /* Ensure no CSS filter changes original image color */
}

.page-contact__card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #ffffff;
}

.page-contact__card-text {
  font-size: 1em;
  margin-bottom: 25px;
  flex-grow: 1;
  color: #f0f0f0;
}

.page-contact__channel-button {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
}

.page-contact__channel-button:hover {
  background-color: #a00606;
  border-color: #a00606;
}

/* --- Guide Section --- */
.page-contact__guide-item {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly visible background on dark body */
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  color: #ffffff; /* Light text for dark body background */
}

.page-contact__guide-title {
  font-size: 2em;
  color: #017439;
  margin-bottom: 20px;
  font-weight: bold;
}

/* --- Common Issues Section --- */
.page-contact__issues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-contact__issue-card {
  background-color: rgba(255, 255, 255, 0.1); /* Light transparent background for dark section */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__issue-icon {
  width: 200px; /* Adjusted to meet minimum size requirement */
  height: 200px; /* Adjusted to meet minimum size requirement */
  object-fit: contain;
  margin-bottom: 20px;
  filter: none;
}

.page-contact__card-title--white {
  color: #ffffff;
}

.page-contact__card-text--white {
  color: #f0f0f0;
}

/* --- Commitment Section --- */
.page-contact__commitment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-contact__commitment-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact__commitment-icon {
  width: 200px; /* Adjusted to meet minimum size requirement */
  height: 200px; /* Adjusted to meet minimum size requirement */
  object-fit: contain;
  margin-bottom: 20px;
  filter: none;
}

.page-contact__commitment-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #017439; /* Brand primary color */
}

.page-contact__commitment-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* --- FAQ Section --- */
.page-contact__faq-list {
  margin-top: 40px;
}

.page-contact__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly visible background on dark body */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15); /* Slightly darker for question area */
  color: #ffffff;
  font-weight: bold;
  font-size: 1.2em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-contact__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFFF00; /* Custom color for toggle icon */
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  transform: rotate(45deg); /* Plus to X (or rotate to minus) */
}

.page-contact__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

.page-contact__faq-answer p {
  margin-bottom: 0; /* Remove default paragraph margin */
}

/* --- Final CTA Section --- */
.page-contact__cta-final-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-contact__main-heading {
    font-size: 2.8em;
  }
  .page-contact__sub-heading {
    font-size: 1.2em;
  }
  .page-contact__section-heading {
    font-size: 2em;
  }
  .page-contact__card-title {
    font-size: 1.5em;
  }
  .page-contact__guide-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-contact__content-area,
  .page-contact__dark-section,
  .page-contact__hero-content,
  .page-contact__channel-card,
  .page-contact__issue-card,
  .page-contact__commitment-item,
  .page-contact__guide-item,
  .page-contact__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Images responsive */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important; /* Ensure image takes full width of its container */
    height: auto !important;
    display: block !important;
  }

  /* Video responsive (if any) */
  .page-contact video,
  .page-contact__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-contact__video-section,
  .page-contact__video-container,
  .page-contact__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-contact__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  /* Buttons responsive */
  .page-contact__cta-button,
  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact__channel-button,
  .page-contact a[class*="button"],
  .page-contact a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important; /* Ensure button takes full width of its container */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__button-group {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important; /* Adjust gap for stacked buttons */
  }

  .page-contact__main-heading {
    font-size: 2em;
  }
  .page-contact__sub-heading {
    font-size: 1.1em;
  }
  .page-contact__section-heading {
    font-size: 1.8em;
  }
  .page-contact__card-title {
    font-size: 1.3em;
  }
  .page-contact__guide-title {
    font-size: 1.5em;
  }
  .page-contact__faq-question {
    font-size: 1.1em;
  }
  .page-contact__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important;
  }
}

@media (max-width: 480px) {
  .page-contact__main-heading {
    font-size: 1.8em;
  }
  .page-contact__sub-heading {
    font-size: 1em;
  }
  .page-contact__section-heading {
    font-size: 1.5em;
  }
}