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

.page-contact__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  margin-bottom: 40px;
  background-color: #f8f8f8;
  overflow: hidden;
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height for aesthetic */
  overflow: hidden;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover the area, may crop */
}

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly for visual effect, but text is below image */
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__main-title {
  color: #017439;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.page-contact__intro-text {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #555555;
}

.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  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: #017439;
  color: #FFFFFF;
  border: 2px solid #017439;
}

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

.page-contact__btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.page-contact__section {
  padding: 60px 20px;
  margin-bottom: 40px;
  text-align: center;
}

.page-contact__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

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

.page-contact__section-title {
  color: inherit;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.3;
}

.page-contact__section-description {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: inherit;
}

.page-contact__contact-methods {
  background-color: #f0f0f0;
}

.page-contact__methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-contact__method-icon {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
  max-width: 100%;
  height: auto;
  display: block;
}

.page-contact__method-title {
  color: #017439;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.page-contact__method-text {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-contact__support-overview {
  padding: 80px 20px;
}

.page-contact__overview-content {
  display: flex;
  align-items: center;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.page-contact__overview-text {
  flex: 1;
}

.page-contact__overview-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #333333;
}

.page-contact__overview-image {
  flex: 1;
  min-width: 400px;
}

.page-contact__image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  height: auto;
  display: block;
}

.page-contact__faq-section {
  background-color: #017439;
  color: #ffffff;
  padding-bottom: 80px;
}

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

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

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.page-contact__faq-question::-webkit-details-marker {
  display: none;
}

.page-contact__faq-qtext {
  flex-grow: 1;
  color: #017439;
}

.page-contact__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #017439;
}

.page-contact__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  color: #555555;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-contact__faq-item[open] .page-contact__faq-answer {
  max-height: 500px; /* Arbitrary large value for smooth transition */
  padding-top: 10px;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
  content: '−';
}

.page-contact__faq-cta {
  max-width: 800px;
  margin: 40px auto 0 auto;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.page-contact__faq-cta p {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 0;
}

.page-contact__faq-image {
  width: 200px;
  height: auto;
  max-width: 100%;
  height: auto;
  display: block;
}

.page-contact__location-info {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-contact__info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-contact__info-card {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: left;
  border-left: 5px solid #017439;
}

.page-contact__info-title {
  color: #017439;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.page-contact__info-text {
  font-size: 1rem;
  color: #555555;
}

.page-contact__why-contact {
  padding: 80px 20px;
}

.page-contact__why-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto 40px auto;
  text-align: left;
}

.page-contact__why-list li {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 1.1rem;
  color: #ffffff;
  display: flex;
  align-items: center;
}

.page-contact__why-list li strong {
  color: #FFFF00;
  margin-right: 10px;
}

.page-contact__why-list li::before {
  content: '✓';
  color: #FFFF00;
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.2em;
}

.page-contact__cta-bottom {
  margin-top: 40px;
}

.page-contact__social-media {
  padding: 60px 20px;
  background-color: #f0f0f0;
}

.page-contact__social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.page-contact__social-icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #017439;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-contact__social-icon-link:hover {
  color: #005a2e;
}

.page-contact__social-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 10px;
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Responsive Styles --- */

@media (max-width: 1024px) {
  .page-contact__overview-content {
    flex-direction: column;
    text-align: center;
  }

  .page-contact__overview-image {
    margin-top: 40px;
    min-width: unset;
  }
}

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

  .page-contact__hero-section {
    padding-top: 10px !important;
  }

  .page-contact__hero-image {
    object-fit: contain !important; /* Ensure image is fully visible */
    max-height: 300px !important; /* Limit height for mobile */
  }

  .page-contact__hero-content {
    padding: 30px 15px;
    margin-top: -50px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-contact__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-contact__intro-text {
    font-size: 1rem;
  }

  .page-contact__cta-buttons {
    flex-direction: column !important; /* Force vertical stacking */
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .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;
  }

  .page-contact__section {
    padding: 40px 15px;
    margin-bottom: 20px;
  }

  .page-contact__section-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
  }

  .page-contact__section-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-contact__methods-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-contact__method-card {
    padding: 20px;
  }

  .page-contact__overview-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .page-contact__overview-image {
    margin-top: 30px;
  }

  .page-contact__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-contact__overview-text p {
    font-size: 1rem;
  }

  .page-contact__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-contact__faq-question {
    font-size: 1rem;
    padding: 15px;
  }

  .page-contact__faq-answer {
    padding: 0 15px 15px 15px;
    font-size: 0.95rem;
  }

  .page-contact__faq-cta {
    padding: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__faq-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-contact__info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-contact__info-card {
    padding: 20px;
  }

  .page-contact__why-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-contact__why-list li {
    font-size: 1rem;
    padding: 12px 15px;
  }

  .page-contact__social-links {
    gap: 20px;
  }

  .page-contact__social-icon {
    width: 48px;
    height: 48px;
  }

  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !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;
  }
}