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

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

.page-contact__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact__section-intro {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure spacing from fixed header */
}

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

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

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

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
}

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

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

.page-contact__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Register button color */
  color: #FFFF00; /* Register button font color */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
}

.page-contact__btn-primary:hover {
  background-color: #9c0606;
}

/* Contact Methods Section */
.page-contact__methods-section {
  padding: 80px 0;
}

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

.page-contact__card {
  background: #ffffff;
  color: #333333;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-contact__card:hover {
  transform: translateY(-5px);
}

.page-contact__method-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
}

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

.page-contact__method-description {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 15px;
}

.page-contact__method-detail {
  font-size: 1em;
  font-weight: bold;
  color: #017439;
}

.page-contact__social-links a {
  color: #017439;
  text-decoration: none;
  margin: 0 10px;
  font-weight: bold;
}

.page-contact__social-links a:hover {
  text-decoration: underline;
}

/* Contact Form Section */
.page-contact__form-section {
  padding: 80px 0;
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.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 #cccccc;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
  background-color: #f8f8f8;
  color: #333333;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: #999999;
}

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

/* FAQ Section */
.page-contact__faq-section {
  padding: 80px 0;
}

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

.page-contact__faq-item {
  border-bottom: 1px solid #eeeeee;
  margin-bottom: 15px;
}

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

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

.page-contact__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  transition: transform 0.3s ease;
}

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

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

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

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

/* Why Contact Section */
.page-contact__why-contact-section {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
}

.page-contact__why-contact-section .page-contact__section-title,
.page-contact__why-contact-section .page-contact__section-intro {
  color: #ffffff;
}

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

.page-contact__why-card {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: none;
}

.page-contact__why-card-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-contact__why-card-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* Location Section */
.page-contact__location-section {
  padding: 80px 0;
}

.page-contact__map-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__map-image {
  width: 100%;
  height: auto;
  display: block;
}

.page-contact__address-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: #ffffff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  max-width: 350px;
  text-align: left;
  color: #333333;
}

.page-contact__address-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: #017439;
}

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

@media (max-width: 768px) {
  .page-contact__hero-section {
    min-height: 400px;
  }
  .page-contact__hero-title {
    font-size: 2em;
  }
  .page-contact__hero-description {
    font-size: 1em;
  }
  .page-contact__btn-primary {
    padding: 12px 25px;
    font-size: 1em;
  }
  
  .page-contact__methods-grid {
    grid-template-columns: 1fr;
  }
  .page-contact__why-contact-grid {
    grid-template-columns: 1fr;
  }
  
  .page-contact__contact-form {
    padding: 25px;
  }
  
  .page-contact__faq-question {
    font-size: 1.1em;
  }
  
  .page-contact__address-info {
    position: static;
    margin: 20px auto 0;
    max-width: 90%;
  }

  /* Mobile image adaptation */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__map-wrapper,
  .page-contact__contact-form {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Ensure hero section padding-top is applied on mobile */
  .page-contact__hero-section {
    padding-top: var(--header-offset, 120px) !important; 
  }

  /* Mobile button adaptation */
  .page-contact__btn-primary,
  .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__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;
  }
  .page-contact__cta-buttons {
    display: flex;
    flex-direction: column;
  }

  /* Mobile video adaptation (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;
  }
}

@media (max-width: 480px) {
  .page-contact__hero-title {
    font-size: 1.8em;
  }
  .page-contact__section-title {
    font-size: 1.8em;
  }
  .page-contact__hero-description {
    font-size: 0.9em;
  }
  .page-contact__faq-question {
    font-size: 1em;
  }
}