.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #FFFFFF; /* Ensures consistency with shared body background */
}

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
  padding: 120px 0 80px; /* Adjust for header offset, mobile will be handled in media query */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding-top: var(--header-offset, 120px);
}

.page-contact__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.page-contact__hero-title,
.page-contact__hero-description,
.page-contact__contact-info-summary {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto 20px;
}

.page-contact__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFF00; /* Register and Login Font color */
}

.page-contact__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-contact__contact-info-summary p {
  margin: 10px 0;
  font-size: 1.1em;
}

.page-contact__contact-link {
  color: #FFFF00; /* Register and Login Font color */
  text-decoration: underline;
}

.page-contact__contact-link:hover {
  color: #FFFFFF;
}

/* General Section Styles */
.page-contact__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #017439; /* Primary color */
}

.page-contact__section-title--light {
  color: #FFFFFF;
}

.page-contact__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #333333;
}

.page-contact__section-intro--light {
  color: #f0f0f0;
}

/* Form Section */
.page-contact__form-section {
  padding: 60px 0;
  background-color: #FFFFFF;
  color: #333333;
}

.page-contact__form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-contact__form-container {
  padding: 30px;
  border-radius: 8px;
  background-color: #f9f9f9;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__contact-form {
  display: flex;
  flex-direction: column;
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
}

.page-contact__form-textarea {
  resize: vertical;
}

.page-contact__form-image-wrapper {
  text-align: center;
}

.page-contact__form-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce min size */
  min-height: 200px;
}

/* Channels Section */
.page-contact__channels-section {
  padding: 60px 0;
  background-color: #017439; /* Primary color */
  color: #FFFFFF;
}

.page-contact__channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-contact__channel-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-contact__channel-card:hover {
  transform: translateY(-10px);
}

.page-contact__channel-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px;
  width: 100%; /* For responsive scaling */
  height: auto;
}

.page-contact__channel-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FFFF00; /* Register and Login Font color */
}

.page-contact__channel-description {
  font-size: 1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 60px 0;
  background-color: #FFFFFF;
  color: #333333;
}

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

.page-contact__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #017439; /* Primary color */
  color: #FFFFFF;
  transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
  background-color: #005f2f; /* Slightly darker primary color on hover */
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  transform: rotate(45deg);
}

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

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 20px;
  background-color: #ffffff;
}

.page-contact__faq-answer p {
  margin-bottom: 10px;
}

/* Why Us Section */
.page-contact__why-us-section {
  padding: 60px 0;
  background-color: #017439; /* Primary color */
  color: #FFFFFF;
}

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

.page-contact__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px;
  width: 100%; /* For responsive scaling */
  height: auto;
}

.page-contact__feature-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #FFFF00; /* Register and Login Font color */
}

.page-contact__feature-description {
  font-size: 1em;
  color: #f0f0f0;
}

.page-contact__cta-wrapper {
  text-align: center;
  margin-top: 40px;
}

/* Location Section */
.page-contact__location-section {
  padding: 60px 0;
  background-color: #FFFFFF;
  color: #333333;
}

.page-contact__location-details {
  text-align: center;
  margin-top: 30px;
}

.page-contact__location-details p {
  font-size: 1.1em;
  margin-bottom: 10px;
}

.page-contact__location-map {
  max-width: 100%;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-top: 20px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-contact__btn-secondary {
  background-color: #FFFFFF;
  color: #017439; /* Primary color */
  border: 2px solid #017439;
}

.page-contact__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #005f2f;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 2.8em;
  }

  .page-contact__section-title {
    font-size: 2em;
  }
}

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

  .page-contact__hero-section {
    padding: 80px 0 50px;
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-contact__hero-title {
    font-size: 2.2em;
  }

  .page-contact__hero-description {
    font-size: 1em;
  }

  .page-contact__form-grid {
    grid-template-columns: 1fr;
  }

  .page-contact__channel-card,
  .page-contact__feature-card {
    padding: 20px;
  }

  .page-contact__channel-icon,
  .page-contact__feature-icon {
    width: 80px;
    height: 80px;
    min-width: 200px !important; /* Enforce min size */
    min-height: 200px !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .page-contact__form-image {
    min-width: 200px !important; /* Enforce min size */
    min-height: 200px !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .page-contact__location-map {
    min-width: 200px !important; /* Enforce min size */
    min-height: 200px !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .page-contact__section,
  .page-contact__card,
  .page-contact__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__channels-grid,
  .page-contact__features-grid {
    grid-template-columns: 1fr;
  }

  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact a[class*="button"],
  .page-contact a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 10px;
  }

  .page-contact__cta-buttons,
  .page-contact__button-group,
  .page-contact__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column;
  }

  /* Ensure all images inside page-contact are responsive */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Video responsiveness */
  .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;
  }

  .page-contact__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-contact__faq-question {
    padding: 15px;
    font-size: 1.1em;
  }

  .page-contact__faq-answer {
    padding: 0 15px;
  }

  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-contact__hero-title {
    font-size: 1.8em;
  }

  .page-contact__section-title {
    font-size: 1.8em;
  }

  .page-contact__btn-large {
    font-size: 1em;
    padding: 12px 20px;
  }
}

/* Color Contrast Fixes */
.page-contact__dark-section {
  background: #017439;
  color: #ffffff;
}

.page-contact__light-bg {
  background: #ffffff;
  color: #333333;
}

.page-contact p,
.page-contact li {
  color: #333333;
}

.page-contact__dark-section p,
.page-contact__dark-section li {
  color: #f0f0f0;
}

.page-contact__channel-card,
.page-contact__feature-card {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-contact__form-container {
  background-color: #f9f9f9;
  color: #333333;
}

.page-contact__form-label {
  color: #333333;
}

.page-contact__faq-item.active .page-contact__faq-answer {
  background-color: #ffffff;
  color: #333333;
}

.page-contact__faq-question {
  background-color: #017439;
  color: #ffffff;
}

.page-contact__faq-question:hover {
  background-color: #005f2f;
}

.page-contact__channel-title,
.page-contact__feature-title {
  color: #FFFF00;
}