.page-contact {
  background-color: #08160F; /* Custom Background color */
  color: #F2FFF6; /* Custom Text Main color */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-contact__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0; /* Ensure text is above image, not overlaying */
  min-height: 200px; /* Minimum size requirement */
}

.page-contact__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__intro-text {
  font-size: 1.1rem;
  margin-bottom: 40px;
  color: #A7D9B8; /* Text Secondary */
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
  text-align: center;
}

.page-contact__section-description {
  font-size: 1rem;
  margin-bottom: 40px;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__methods-section,
.page-contact__form-section,
.page-contact__faq-section,
.page-contact__cta-section {
  padding: 60px 0;
  position: relative;
  z-index: 1; /* Ensure sections are above hero image background */
}

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

.page-contact__card {
  background-color: #11271B; /* Custom Card BG color */
  border: 1px solid #2E7A4E; /* Custom Border color */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #F2FFF6; /* Text Main for card */
}

.page-contact__card-title {
  font-size: 1.5rem;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-contact__card-text {
  font-size: 0.95rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  flex-grow: 1; /* Push button to bottom */
}

.page-contact__card-email,
.page-contact__card-phone {
  font-size: 1rem;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-contact__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button color */
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  max-width: 100%; /* Ensure button fits container */
  box-sizing: border-box;
}

.page-contact__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-contact__card-image {
  max-width: 250px; /* Example size for card images */
  height: auto;
  margin-top: 20px;
  border-radius: 8px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-contact__form {
  max-width: 700px;
  margin: 0 auto;
  background-color: #11271B; /* Custom Card BG color */
  border: 1px solid #2E7A4E; /* Custom Border color */
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-contact__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #2E7A4E; /* Custom Border color */
  border-radius: 5px;
  background-color: #08160F; /* Custom Background color */
  color: #F2FFF6; /* Text Main */
  box-sizing: border-box;
  font-size: 1rem;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: #A7D9B8; /* Text Secondary */
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: #2AD16F; /* Highlight color */
}

.page-contact__form-submit-btn {
  width: 100%;
  padding: 15px;
  font-size: 1.1rem;
}

.page-contact__form-image {
  display: block;
  margin: 40px auto 0 auto;
  max-width: 500px; /* Example size for form image */
  height: auto;
  border-radius: 10px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

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

.page-contact__faq-item {
  background-color: #11271B; /* Custom Card BG color */
  border: 1px solid #2E7A4E; /* Custom Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  color: #F2FFF6; /* Text Main */
  background-color: #11271B; /* Custom Card BG color */
  border-bottom: 1px solid #2E7A4E;
}

.page-contact__faq-question:hover {
  background-color: rgba(34, 199, 104, 0.1); /* Slightly lighter hover */
}

.page-contact__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #2AD16F; /* Highlight color */
  transition: transform 0.3s ease;
}

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

.page-contact__faq-answer {
  padding: 20px 25px;
  background-color: #08160F; /* Custom Background color */
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95rem;
  border-top: none;
}

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

.page-contact__faq-image {
  display: block;
  margin: 40px auto 0 auto;
  max-width: 500px; /* Example size for FAQ image */
  height: auto;
  border-radius: 10px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-contact__cta-section {
  text-align: center;
  padding-bottom: 80px;
}

.page-contact__cta-main-btn {
  font-size: 1.2rem;
  padding: 15px 30px;
  margin-top: 20px;
}

.page-contact__cta-subtext {
  margin-top: 20px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
}

.page-contact__cta-link {
  color: #2AD16F; /* Highlight color */
  text-decoration: none;
  font-weight: bold;
}

.page-contact__cta-link:hover {
  text-decoration: underline;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-contact__hero-section {
    padding-bottom: 40px;
  }
  .page-contact__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-contact__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .page-contact__container {
    padding: 0 15px;
  }

  .page-contact__hero-section {
    padding-top: 10px !important; /* body handles --header-offset, small padding for content */
    padding-bottom: 30px;
  }

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

  .page-contact__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }
  .page-contact__intro-text {
    font-size: 1rem;
  }

  .page-contact__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
  .page-contact__section-description {
    font-size: 0.9rem;
  }

  .page-contact__methods-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__cta-section {
    padding: 40px 0;
  }

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

  .page-contact__card {
    padding: 25px;
  }
  .page-contact__card-title {
    font-size: 1.3rem;
  }
  .page-contact__card-text {
    font-size: 0.9rem;
  }
  .page-contact__card-image {
    min-width: 200px !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-contact__form {
    padding: 30px;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    font-size: 0.9rem;
  }
  .page-contact__form-image {
    min-width: 200px !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-contact__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-contact__faq-answer {
    font-size: 0.9rem;
    padding: 15px 20px;
  }
  .page-contact__faq-image {
    min-width: 200px !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Mobile button adaptations */
  .page-contact__cta-button {
    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-main-btn {
    font-size: 1.1rem;
    padding: 12px 20px;
  }
  
  /* Ensure section/container max-width/width for mobile */
  .page-contact__methods-section .page-contact__container,
  .page-contact__form-section .page-contact__container,
  .page-contact__faq-section .page-contact__container,
  .page-contact__cta-section .page-contact__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
}

/* Ensure images do not use CSS filter */
.page-contact img {
  filter: none !important; /* Enforce no filter */
}

/* Color contrast enforcement - assuming dark body background */
.page-contact {
  color: #F2FFF6; /* Main text color */
}
.page-contact p, .page-contact li {
  color: #A7D9B8; /* Secondary text color */
}
.page-contact__main-title, .page-contact__section-title, .page-contact__card-title, .page-contact__card-email, .page-contact__card-phone, .page-contact__form-label, .page-contact__faq-question {
  color: #F2FFF6; /* Ensure titles are bright */
}
.page-contact__cta-button {
  color: #ffffff; /* Button text is white */
}
.page-contact__cta-link {
  color: #2AD16F; /* Link color is bright green */
}

/* Additional contrast fixes based on system guidance */
.page-contact__dark-bg {
  color: #ffffff; /* Deep Green background for instance */
  background: #0A4B2C; 
}

/* For any element that might have a lighter background, ensure dark text */
.page-contact__light-bg {
  color: #333333; 
  background: #ffffff;
}

/* Emergency fix classes */
.page-contact__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-contact__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}