/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text on light background */
  background-color: var(--secondary-color, #FFFFFF); /* Body background from shared.css */
}

.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; /* Brand color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  overflow: hidden;
  text-align: center;
  background-color: #017439; /* Dark background for hero */
  color: #FFFFFF; /* Light text on dark background */
}

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 8px;
}

.page-contact__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFF00; /* Yellow for prominence */
  line-height: 1.2;
}

.page-contact__intro-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #FFFFFF;
}

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

.page-contact__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6; /* Make image subtle behind text */
}

/* CTA Buttons */
.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Ensure padding doesn't increase width beyond max-width */
}

.page-contact__btn-primary {
  background-color: #C30808; /* Red for action, from custom colors */
  color: #FFFF00; /* Yellow text for contrast, from custom colors */
  border: 2px solid #C30808;
}

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

.page-contact__btn-secondary {
  background-color: #FFFFFF;
  color: #017439; /* Brand green text */
  border: 2px solid #017439;
}

.page-contact__btn-secondary:hover {
  background-color: #017439;
  color: #FFFFFF;
}

/* Contact Methods Section */
.page-contact__methods-section {
  padding: 60px 0;
  background-color: #FFFFFF;
  color: #333333;
}

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

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

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

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

.page-contact__method-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1; /* Make text take available space */
}

.page-contact__method-text a {
  color: #017439;
  text-decoration: underline;
}

.page-contact__method-button {
  width: auto;
  padding: 10px 20px;
  font-size: 0.9em;
  margin-top: auto; /* Push button to bottom */
}

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

.page-contact__social-link {
  display: inline-block;
  padding: 10px 15px;
  background-color: #017439;
  color: #FFFFFF;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  min-width: 100px; /* Ensure buttons are not too small */
  text-align: center;
  box-sizing: border-box;
}

.page-contact__social-link:hover {
  background-color: #005028;
}

.page-contact__social-image-wrapper {
  margin-top: 30px;
  text-align: center;
}

.page-contact__social-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Contact Form Section */
.page-contact__form-section {
  padding: 60px 0;
  background-color: #017439; /* Dark background */
  color: #FFFFFF; /* Light text */
  text-align: center;
}

.page-contact__form-section .page-contact__section-title {
  color: #FFFF00; /* Yellow title */
}

.page-contact__form-section .page-contact__section-description {
  color: #E0E0E0;
}

.page-contact__form {
  max-width: 700px;
  margin: 40px auto 0;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
}

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

.page-contact__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #FFFFFF;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #005028; /* Darker green border */
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #333333;
  font-size: 1em;
  box-sizing: border-box;
}

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

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

.page-contact__form-submit {
  width: 100%;
  padding: 15px;
  font-size: 1.2em;
  border: none;
  border-radius: 8px;
  background-color: #C30808; /* Red from custom colors */
  color: #FFFF00; /* Yellow text */
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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


/* FAQ Section */
.page-contact__faq-section {
  padding: 60px 0;
  background-color: #FFFFFF;
  color: #333333;
}

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

.page-contact__faq-item {
  background-color: #F5F5F5;
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #E0E0E0;
  border-bottom: 1px solid #D0D0D0;
  transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
  background-color: #D0D0D0;
}

.page-contact__faq-title {
  font-size: 1.2em;
  color: #017439;
  margin: 0;
}

.page-contact__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #017439;
  transition: transform 0.3s ease;
  user-select: none;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  transform: rotate(45deg); /* Plus sign rotates to form an X */
  content: "−"; /* Change to minus sign */
}

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

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

.page-contact__faq-answer p {
  margin: 0;
}

.page-contact__faq-answer a {
  color: #017439;
  text-decoration: underline;
}

.page-contact__faq-image-wrapper {
  margin-top: 60px;
  text-align: center;
}

.page-contact__faq-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Benefits Section */
.page-contact__benefits-section {
  padding: 60px 0;
  background-color: #017439; /* Dark background */
  color: #FFFFFF; /* Light text */
}

.page-contact__benefits-section .page-contact__section-title {
  color: #FFFF00; /* Yellow title */
}

.page-contact__benefits-section .page-contact__section-description {
  color: #E0E0E0;
}

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

.page-contact__benefit-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

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

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

.page-contact__benefit-text {
  font-size: 1em;
  color: #E0E0E0;
}

/* Final CTA Section */
.page-contact__cta-final-section {
  padding: 60px 0;
  background-color: #FFFFFF;
  color: #333333;
  text-align: center;
}

.page-contact__cta-final-content {
  padding: 40px;
  background-color: #F5F5F5;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-contact__cta-final-section .page-contact__section-title {
  color: #017439;
}

.page-contact__cta-final-section .page-contact__section-description {
  color: #555555;
}

.page-contact__cta-image-wrapper {
  margin-top: 40px;
  text-align: center;
}

.page-contact__cta-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-contact__main-title {
    font-size: 3em;
  }
  .page-contact__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    min-height: 400px;
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }

  .page-contact__main-title {
    font-size: 2.5em;
  }

  .page-contact__intro-description {
    font-size: 1.1em;
  }

  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-contact__section-title {
    font-size: 1.8em;
  }

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

  .page-contact__methods-grid,
  .page-contact__benefits-grid {
    grid-template-columns: 1fr;
  }

  .page-contact__method-card,
  .page-contact__benefit-item,
  .page-contact__form {
    padding: 25px;
  }

  .page-contact__faq-question {
    padding: 18px 20px;
  }

  .page-contact__faq-title {
    font-size: 1.1em;
  }

  .page-contact__faq-answer {
    padding: 10px 20px 15px;
  }

  /* Mobile image responsiveness */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile container responsiveness for images/videos/buttons */
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__hero-section,
  .page-contact__methods-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__benefits-section,
  .page-contact__cta-final-section,
  .page-contact__cta-buttons,
  .page-contact__social-links,
  .page-contact__social-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  /* Specific adjustment for hero content padding on mobile */
  .page-contact__hero-content {
    padding: 15px;
  }
  
  .page-contact__form {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-contact__main-title {
    font-size: 2em;
  }
  .page-contact__section-title {
    font-size: 1.5em;
  }
}

/* Ensure content images are at least 200px wide for content sections */
.page-contact__methods-image,
.page-contact__faq-image,
.page-contact__cta-image,
.page-contact__social-image {
  min-width: 200px;
  min-height: 200px;
}

/* Page content area images CSS width/height lower bound */
.page-contact__methods-section img,
.page-contact__form-section img,
.page-contact__faq-section img,
.page-contact__benefits-section img,
.page-contact__cta-final-section img {
  width: auto; /* allow natural width */
  height: auto; /* allow natural height */
  max-width: 100%;
  min-width: 200px; /* Enforce minimum width for content images */
  min-height: 200px; /* Enforce minimum height for content images */
}

/* Global image styling for the page */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px; /* Consistent rounded corners */
}

/* No CSS filters allowed for images */
.page-contact img {
  filter: none !important; /* Explicitly disable any filters */
}