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

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  padding-bottom: 80px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Ensure hero section has a decent height */
  background: linear-gradient(135deg, #017439, #0a0a0a); /* Brand color gradient */
}

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

.page-contact__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Subtle background image */
  display: block;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-contact__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  color: #ffffff;
}

.page-contact__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

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

.page-contact__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* General Section Styling */
.page-contact__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
}

.page-contact__dark-bg {
  background-color: #0a0a0a; /* Dark background from body */
  color: #ffffff;
  padding: 60px 0;
}

.page-contact__section-title {
  font-size: 2.5em;
  color: inherit; /* Inherit from parent section */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__btn-register,
.page-contact__btn-login {
  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;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
}

.page-contact__btn-primary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

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

.page-contact__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

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

/* Specific Register/Login Buttons */
.page-contact__btn-register,
.page-contact__btn-login {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-contact__btn-register:hover,
.page-contact__btn-login:hover {
  background-color: #a10606;
  border-color: #a10606;
}

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

.page-contact__method-card {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  color: #333333;
}

.page-contact__method-card .page-contact__method-title {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
}

.page-contact__method-card .page-contact__method-text {
  margin-bottom: 20px;
  font-size: 1em;
}

.page-contact__method-card .page-contact__method-detail {
  font-size: 1.1em;
  margin-bottom: 10px;
}

.page-contact__method-card .page-contact__link-detail {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

.page-contact__method-card .page-contact__link-detail:hover {
  text-decoration: underline;
}

/* Social Channels Section */
.page-contact__social-channels {
  text-align: center;
}

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

.page-contact__social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #017439;
  color: #ffffff;
  font-size: 1.2em;
  text-decoration: none;
  transition: background-color 0.3s ease;
  font-weight: bold;
}

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

/* Contact Form Section */
.page-contact__contact-form-section {
  background-color: #f0f0f0;
  color: #333333;
}

.page-contact__form {
  max-width: 700px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.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 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1em;
  color: #333333;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #017439;
  outline: none;
}

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

/* FAQ Section */
.page-contact__faq-section {
  text-align: center;
}

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

.page-contact__faq-item {
  background-color: #1a1a1a; /* Dark card background */
  color: #ffffff;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-contact__faq-item summary {
  display: block; /* For details tag */
  padding: 20px;
  background-color: #017439;
  color: #ffffff;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  list-style: none; /* Remove default marker */
}

.page-contact__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for webkit */
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1em;
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
}

.page-contact__faq-answer {
  padding: 20px;
  background-color: #2a2a2a; /* Slightly lighter dark background for answer */
  color: #f0f0f0;
  border-top: 1px solid #005f2e;
  font-size: 1em;
}

/* Why Us Section */
.page-contact__why-us-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-contact__why-us-item {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-contact__why-us-heading {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 10px;
}

.page-contact__why-us-text {
  font-size: 1em;
}

.page-contact__why-us-image {
  display: block;
  margin: 50px auto 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

/* Office Location Section */
.page-contact__office-location {
  text-align: center;
}

.page-contact__location-details {
  margin-top: 30px;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-contact__address-text,
.page-contact__working-hours {
  margin-bottom: 10px;
}

.page-contact__map-wrapper {
  margin-top: 40px;
  background-color: #333333; /* Placeholder for map background */
  border-radius: 12px;
  overflow: hidden;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-contact__map-image {
  width: 100%;
  height: auto; /* To maintain aspect ratio */
  display: block;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

/* Final CTA Section */
.page-contact__final-cta {
  text-align: center;
}

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

/* 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__container {
    padding: 0 15px;
  }
  .page-contact__hero-section {
    padding-bottom: 60px;
    min-height: 450px;
  }
  .page-contact__hero-title {
    font-size: 2em;
  }
  .page-contact__hero-description {
    font-size: 1em;
  }
  .page-contact__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact__btn-register,
  .page-contact__btn-login {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-contact__contact-methods,
  .page-contact__social-channels,
  .page-contact__contact-form-section,
  .page-contact__faq-section,
  .page-contact__why-us,
  .page-contact__office-location,
  .page-contact__final-cta {
    padding: 40px 0;
  }
  .page-contact__section-title {
    font-size: 1.8em;
  }
  .page-contact__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-contact__methods-grid,
  .page-contact__why-us-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-contact__method-card,
  .page-contact__why-us-item {
    padding: 25px;
  }
  .page-contact__form {
    padding: 30px;
  }
  .page-contact__faq-item {
    margin-bottom: 10px;
  }
  .page-contact__faq-question {
    font-size: 1em;
  }

  /* All images must be responsive */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px; /* Ensure images are not too small */
  }
  /* All containers of images/videos/buttons must be responsive */
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__hero-section,
  .page-contact__hero-image-wrapper,
  .page-contact__map-wrapper,
  .page-contact__hero-cta-buttons,
  .page-contact__social-links,
  .page-contact__final-cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  /* Specific for button groups to handle wrap correctly */
  .page-contact__hero-cta-buttons,
  .page-contact__final-cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    align-items: center; /* Center them */
  }
  /* Ensure content padding for mobile */
  .page-contact__hero-content,
  .page-contact__contact-methods .page-contact__container,
  .page-contact__social-channels .page-contact__container,
  .page-contact__contact-form-section .page-contact__container,
  .page-contact__faq-section .page-contact__container,
  .page-contact__why-us .page-contact__container,
  .page-contact__office-location .page-contact__container,
  .page-contact__final-cta .page-contact__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-contact__hero-title {
    font-size: 1.8em;
  }
  .page-contact__section-title {
    font-size: 1.5em;
  }
  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact__btn-register,
  .page-contact__btn-login {
    padding: 10px 15px;
    font-size: 0.9em;
  }
}