:root {
  --main-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --bg-color: #08160F;
  --card-bg-color: #11271B;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

/* Base styles for the page-contact scope */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Uses light text color for dark body background */
  background-color: var(--bg-color); /* From shared.css, expected to be #08160F */
}

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

/* Section styling */
.page-contact__hero-section,
.page-contact__methods-section,
.page-contact__form-section,
.page-contact__faq-section,
.page-contact__social-media-section,
.page-contact__commitment-section {
  padding: 60px 0;
  text-align: center;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 80px;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly darken image for text readability if text were overlaid, but text is below */
}

.page-contact__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-top: 40px;
  padding: 0 20px;
}

.page-contact__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem); /* H1 font size with clamp */
  font-weight: bold;
  color: var(--text-main-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-contact__subtitle {
  font-size: 1.1em;
  color: var(--text-secondary-color);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Buttons */
.page-contact__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box;
}

.page-contact__btn-primary {
  background: var(--button-gradient); /* linear-gradient(180deg, #2AD16F 0%, #13994A 100%) */
  color: var(--text-main-color); /* White text for primary button */
  border: none;
}

.page-contact__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-contact__btn-secondary {
  background: none;
  color: var(--main-color); /* Uses primary brand color for text */
  border: 2px solid var(--border-color); /* Uses border color */
}

.page-contact__btn-secondary:hover {
  background: var(--main-color);
  color: #ffffff;
}

/* Section Titles and Descriptions */
.page-contact__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--text-main-color);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-contact__section-description {
  font-size: 1em;
  color: var(--text-secondary-color);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-contact__method-card {
  text-align: center;
  padding: 30px;
  border-radius: 12px;
  background-color: var(--card-bg-color); /* #11271B */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-main-color); /* Light text for dark card background */
  border: 1px solid var(--border-color);
}

.page-contact__card-image {
  width: 100%;
  max-width: 400px; /* Ensure images are not too wide */
  height: auto;
  min-height: 200px; /* Minimum size requirement */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-contact__card-title {
  font-size: 1.5em;
  color: var(--text-main-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__card-text {
  font-size: 0.95em;
  color: var(--text-secondary-color);
  margin-bottom: 25px;
  flex-grow: 1; /* Allow text to take up available space */
}

/* Contact Form */
.page-contact__contact-form {
  max-width: 700px;
  margin: 40px auto 0;
  text-align: left;
  padding: 30px;
  background-color: var(--card-bg-color); /* #11271B */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

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

.page-contact__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--text-main-color);
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: #0A1C14; /* Slightly lighter than card BG for input contrast */
  color: var(--text-main-color);
  font-size: 1em;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: var(--text-secondary-color);
  opacity: 0.7;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: var(--main-color);
  box-shadow: 0 0 0 3px rgba(34, 199, 104, 0.3);
}

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

.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  background-color: var(--card-bg-color); /* #11271B */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
  overflow: hidden; /* For details tag */
}

.page-contact__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--text-main-color);
  background-color: #0A1C14; /* Slightly lighter than card BG for summary contrast */
  border-bottom: 1px solid var(--divider-color); /* #1E3A2A */
  transition: background-color 0.3s ease;
}

.page-contact__faq-item summary:hover {
  background-color: #11271B; /* Darker hover */
}

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

.page-contact__faq-qtext {
  flex-grow: 1;
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--main-color);
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
  content: '−'; /* Change to minus when open */
}

.page-contact__faq-answer {
  padding: 20px 25px;
  font-size: 0.95em;
  color: var(--text-secondary-color);
  border-top: none;
}

/* Social Media Section */
.page-contact__social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-contact__social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-main-color);
  font-weight: bold;
  font-size: 1em;
  transition: color 0.3s ease;
}

.page-contact__social-link:hover {
  color: var(--main-color);
}

.page-contact__social-link img {
  width: 200px; /* Enforce min 200x200 for social icons */
  height: 200px;
  object-fit: contain;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
  border-radius: 50%; /* Make them circular */
  border: 2px solid var(--border-color);
}

.page-contact__social-link:hover img {
  transform: scale(1.05);
  border-color: var(--main-color);
}

/* Commitment Section (Darker background) */
.page-contact__commitment-section {
  background-color: var(--deep-green-color); /* #0A4B2C, a darker green */
  color: #ffffff; /* Ensure light text on this dark background */
  padding: 80px 0;
}

.page-contact__dark-section .page-contact__section-title {
  color: #ffffff;
}

.page-contact__dark-section .page-contact__section-description {
  color: var(--text-secondary-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-contact__hero-section,
  .page-contact__methods-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__social-media-section,
  .page-contact__commitment-section {
    padding: 40px 0;
  }
}

@media (max-width: 768px) {
  /* Ensure all images are responsive */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure all sections/containers are responsive and padded */
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__hero-content,
  .page-contact__contact-form,
  .page-contact__faq-list,
  .page-contact__method-card,
  .page-contact__social-links {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  
  /* Buttons responsive */
  .page-contact__cta-button,
  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .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 !important;
    padding-right: 15px !important;
    margin-bottom: 10px; /* Add spacing between stacked buttons */
  }

  /* Button groups, if any, should stack */
  .page-contact__button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .page-contact__hero-section {
    padding-top: 10px !important; /* Small top padding for hero on mobile */
    padding-bottom: 60px;
  }

  .page-contact__main-title {
    font-size: 2em; /* Adjust for smaller screens */
  }

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

  .page-contact__method-grid {
    grid-template-columns: 1fr; /* Stack cards vertically */
  }

  .page-contact__social-links {
    flex-direction: column; /* Stack social links vertically */
    gap: 20px;
  }

  .page-contact__social-link img {
     /* Slightly smaller social icons on mobile */
    
  }

  /* FAQ toggle */
  .page-contact__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-contact__faq-answer {
    padding: 15px 20px;
  }
}

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

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

/* Contrast Fixes - Ensure text is always readable */
.page-contact p,
.page-contact li,
.page-contact label,
.page-contact input,
.page-contact textarea,
.page-contact__card-text,
.page-contact__subtitle,
.page-contact__section-description,
.page-contact__faq-answer {
  color: var(--text-secondary-color); /* Default text color for general content */
}

.page-contact h1,
.page-contact h2,
.page-contact h3,
.page-contact__card-title,
.page-contact__faq-qtext {
  color: var(--text-main-color); /* Default heading color */
}

/* Specific contrast for buttons if needed */
.page-contact__btn-primary {
  color: #ffffff; /* Always white on green gradient */
}

.page-contact__btn-secondary {
  color: var(--main-color); /* Green text on transparent/white background */
}