.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 is handled by shared.css */
}

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

.page-contact__hero-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  min-width: unset; /* Ensure it's not restricted by general min-width rules */
  min-height: unset;
}

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

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

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

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

/* General Section Styles */
.page-contact__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

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

.page-contact__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.8;
}

/* Color Schemes */
.page-contact__dark-bg {
  background-color: #0a0a0a; /* Body background */
  color: #ffffff;
}

.page-contact__light-bg {
  background-color: #f8f8f8; /* Light background for contrast sections */
  color: #333333;
}

/* Buttons */
.page-contact__btn-primary {
  display: inline-block;
  background-color: #017439; /* Brand primary green */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-contact__btn-primary:hover {
  background-color: #005f2c; /* Darker green on hover */
  transform: translateY(-2px);
}

.page-contact__link {
  color: #017439; /* Brand green for links */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-contact__link:hover {
  color: #005f2c;
}

/* Contact Info Section */
.page-contact__contact-info-section {
  padding: 80px 0;
}

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

.page-contact__info-card {
  background-color: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.page-contact__info-icon {
  width: 200px; /* Set explicit width for consistent display */
  height: 133px; /* Set explicit height for consistent display */
  object-fit: cover; /* Ensure image covers the area without distortion */
  margin-bottom: 20px;
}

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

.page-contact__info-text {
  font-size: 1em;
  margin-bottom: 20px;
  color: #555555;
  flex-grow: 1; /* Pushes link to bottom */
}

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

.page-contact__contact-form {
  max-width: 700px;
  margin: 50px auto 0 auto;
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

.page-contact__form-label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
  color: #f0f0f0;
  font-size: 1.1em;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #017439;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.4); /* Dark input background */
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: #00e676; /* Lighter green on focus */
  box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.3);
}

.page-contact__form-textarea {
  resize: vertical;
  min-height: 120px;
}

.page-contact__form-submit-btn {
  width: 100%;
  padding: 18px;
  font-size: 1.2em;
  margin-top: 20px;
  background-color: #C30808; /* Custom color for register/login type buttons */
  color: #FFFF00; /* Register/Login font color */
}

.page-contact__form-submit-btn:hover {
  background-color: #a00606;
}

/* Office Location Section */
.page-contact__office-location-section {
  padding: 80px 0;
  text-align: center;
}

.page-contact__location-details {
  margin-top: 50px;
  background-color: #ffffff;
  color: #333333;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__address-line {
  font-size: 1.1em;
  margin-bottom: 10px;
}

.page-contact__map-placeholder {
  margin-top: 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-contact__map-image {
  width: 100%;
  height: auto; /* Maintain aspect ratio */
  display: block;
  object-fit: cover;
  min-width: unset; /* Ensure it's not restricted by general min-width rules */
  min-height: unset;
}

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

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

.page-contact__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.page-contact__faq-item.active {
  background-color: rgba(255, 255, 255, 0.15);
}

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

.page-contact__faq-question:hover {
  color: #00e676; /* Lighter green on hover */
}

.page-contact__faq-title {
  margin: 0;
  font-size: 1.2em;
  color: inherit; /* Inherit color from question */
}

.page-contact__faq-toggle {
  font-size: 1.8em;
  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 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #f0f0f0; /* Light text for dark background */
}

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

.page-contact__faq-answer p {
  margin-bottom: 10px;
  font-size: 1em;
}

.page-contact__faq-answer .page-contact__link {
  color: #00e676; /* Lighter green for links in FAQ answers */
}

/* CTA Section */
.page-contact__cta-section {
  padding: 80px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.page-contact__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3; /* Subtle background image */
  min-width: unset;
  min-height: unset;
}

.page-contact__cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 40px;
  background-color: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  border-radius: 12px;
}

.page-contact__cta-content .page-contact__section-title {
  color: #ffffff;
  font-size: 2.8em;
  margin-bottom: 25px;
}

.page-contact__cta-content .page-contact__section-description {
  color: #f0f0f0;
  font-size: 1.1em;
  margin-bottom: 40px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 2.8em;
  }
  .page-contact__section-title {
    font-size: 2em;
  }
  .page-contact__info-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  /* General mobile container padding */
  .page-contact__container {
    padding: 15px;
  }

  /* Hero Section */
  .page-contact__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile specific override */
  }
  .page-contact__hero-title {
    font-size: 2em;
  }
  .page-contact__hero-description {
    font-size: 1em;
  }

  /* General Section Styles */
  .page-contact__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-contact__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  /* Buttons */
  .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: 15px;
    font-size: 1em;
  }

  /* Images */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images or content */
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__info-card,
  .page-contact__contact-form,
  .page-contact__office-location-section,
  .page-contact__location-details,
  .page-contact__faq-item,
  .page-contact__cta-section,
  .page-contact__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Form Section */
  .page-contact__contact-form {
    padding: 25px;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 12px;
  }

  /* FAQ Section */
  .page-contact__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-contact__faq-title {
    font-size: 1.1em;
  }
  .page-contact__faq-answer {
    padding: 0 20px;
  }
  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 10px 20px 20px 20px;
  }

  /* CTA Section */
  .page-contact__cta-content {
    padding: 30px 20px;
  }
  .page-contact__cta-content .page-contact__section-title {
    font-size: 2em;
  }
  .page-contact__cta-content .page-contact__section-description {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-contact__hero-title {
    font-size: 1.8em;
  }
  .page-contact__section-title {
    font-size: 1.6em;
  }
  .page-contact__info-grid {
    grid-template-columns: 1fr;
  }
  .page-contact__cta-content .page-contact__section-title {
    font-size: 1.8em;
  }
}

/* Ensure images meet minimum size requirements for content images */
.page-contact__info-icon {
  width: 200px; /* Set explicit width for consistent display */
  height: 133px; /* Set explicit height for consistent display */
  object-fit: cover; /* Ensure image covers the area without distortion */
}