/* style/contact-us.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-contact-us {
  color: #F2FFF6; /* Text Main */
  background-color: transparent; /* Body background is handled by shared.css #08160F */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Hero Section */
.page-contact-us__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 40px;
  background-color: #0A4B2C; /* Deep Green for hero section background */
  overflow: hidden;
}

.page-contact-us__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-contact-us__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  width: 100%; /* Ensure image takes full width of its container */
  min-height: 200px; /* Minimum size requirement */
}

.page-contact-us__hero-content {
  max-width: 900px;
  padding: 20px;
  z-index: 1; /* Ensure content is above image if any overlap */
}

.page-contact-us__main-title {
  font-size: clamp(2em, 5vw, 3em); /* Responsive font size */
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-contact-us__hero-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact-us__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Minimum width for buttons */
}

.page-contact-us__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-contact-us__cta-button--small {
  padding: 8px 20px;
  font-size: 0.95em;
  min-width: unset; /* Override min-width for smaller buttons */
}

/* General Section Styling */
.page-contact-us__section-title {
  font-size: 2.2em;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact-us__section-description {
  font-size: 1.05em;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-contact-us__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Dark Section Background */
.page-contact-us__dark-section {
  background-color: #0A4B2C; /* Deep Green */
  padding: 60px 0;
}

/* Light Section Background */
.page-contact-us__light-section {
  background-color: #08160F; /* Body Background */
  padding: 60px 0;
}

/* Channel Grid Section */
.page-contact-us__channels-section {
  padding: 60px 0;
}

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

.page-contact-us__channel-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-contact-us__channel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-contact-us__channel-icon {
  width: 100%; /* Ensure icons take full width */
  max-width: 150px;
  height: auto;
  margin: 0 auto 20px auto;
  display: block;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
  object-fit: contain;
}

.page-contact-us__channel-title {
  font-size: 1.4em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact-us__channel-text {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  flex-grow: 1; /* Allow text to grow */
}

.page-contact-us__highlight-text {
  color: #57E38D; /* Glow */
  font-weight: bold;
}

/* When to Contact Section */
.page-contact-us__when-to-contact-section {
  padding: 60px 0;
  background-color: #08160F; /* Body Background */
}

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

.page-contact-us__reason-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border */
}

.page-contact-us__reason-title {
  font-size: 1.3em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact-us__reason-text {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
}

/* Process Section */
.page-contact-us__process-section {
  padding: 60px 0;
}

.page-contact-us__process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-contact-us__step-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border */
}

.page-contact-us__step-title {
  font-size: 1.4em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact-us__step-text {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
}

.page-contact-us__step-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
  object-fit: cover;
}

/* FAQ Section */
.page-contact-us__faq-section {
  padding: 60px 0;
  background-color: #08160F; /* Body Background */
}

.page-contact-us__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-contact-us__faq-item {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  border: 1px solid #2E7A4E; /* Border */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: #F2FFF6; /* Text Main */
}

.page-contact-us__faq-item summary {
  list-style: none; /* Remove default marker */
  cursor: pointer;
  padding: 20px 25px;
  font-size: 1.1em;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #F2FFF6; /* Text Main */
  position: relative;
}

.page-contact-us__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-contact-us__faq-qtext {
  flex-grow: 1;
}

.page-contact-us__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D; /* Glow */
}

.page-contact-us__faq-item[open] .page-contact-us__faq-toggle {
  content: "−";
}

.page-contact-us__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.8;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-contact-us__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-contact-us__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-contact-us__hero-section {
    padding-bottom: 30px;
  }

  .page-contact-us__hero-content {
    padding: 15px;
  }

  .page-contact-us__main-title {
    font-size: clamp(1.5em, 8vw, 2.2em);
    margin-bottom: 10px;
  }

  .page-contact-us__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-contact-us__cta-button {
    padding: 10px 20px;
    font-size: 1em;
    min-width: unset; /* Allow buttons to shrink on mobile */
    width: 100% !important; /* Force full width on mobile */
    max-width: 300px !important; /* Max width for central alignment */
    margin: 0 auto; /* Center button */
    display: block; /* Ensure block display for centering */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-contact-us__cta-button--small {
    width: auto !important; /* Allow small buttons to be smaller */
    max-width: fit-content !important;
    display: inline-block !important; /* Revert to inline-block for small buttons */
    margin: 0; /* Remove auto margin */
  }

  .page-contact-us__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-contact-us__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-contact-us__container {
    padding: 0 15px;
  }

  .page-contact-us__channels-section,
  .page-contact-us__when-to-contact-section,
  .page-contact-us__process-section,
  .page-contact-us__faq-section {
    padding: 40px 0;
  }

  .page-contact-us__channel-grid,
  .page-contact-us__reason-grid,
  .page-contact-us__process-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-contact-us__channel-card,
  .page-contact-us__reason-card,
  .page-contact-us__step-card {
    padding: 20px;
  }

  .page-contact-us__channel-title,
  .page-contact-us__reason-title,
  .page-contact-us__step-title {
    font-size: 1.2em;
  }

  .page-contact-us__channel-text,
  .page-contact-us__reason-text,
  .page-contact-us__step-text,
  .page-contact-us__faq-item p {
    font-size: 0.9em;
  }

  .page-contact-us__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-contact-us__faq-answer {
    padding: 0 20px 15px 20px;
  }

  /* Mobile image and video responsiveness */
  .page-contact-us img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Ensure minimum size is maintained if image is large */
  }
  
  .page-contact-us video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-contact-us__hero-image-wrapper,
  .page-contact-us__channel-grid,
  .page-contact-us__reason-grid,
  .page-contact-us__process-steps,
  .page-contact-us__faq-list,
  .page-contact-us__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  /* Specific handling for buttons in grids to prevent overflow */
  .page-contact-us__channel-card .page-contact-us__cta-button--small {
    width: auto !important;
    max-width: 100% !important;
    display: inline-block !important; /* Keep it inline for card context */
    margin: 0;
  }
}

/* Contrast Fixes (if needed, but primary colors should be good) */
.page-contact-us p,
.page-contact-us li,
.page-contact-us__channel-text,
.page-contact-us__reason-text,
.page-contact-us__step-text,
.page-contact-us__faq-answer p {
  color: #A7D9B8; /* Text Secondary, ensures contrast on dark backgrounds */
}

.page-contact-us h1,
.page-contact-us h2,
.page-contact-us h3,
.page-contact-us__main-title,
.page-contact-us__section-title,
.page-contact-us__channel-title,
.page-contact-us__reason-title,
.page-contact-us__step-title,
.page-contact-us__faq-item summary {
  color: #F2FFF6; /* Text Main, ensures contrast on dark backgrounds */
}

/* Ensure images within content areas are not too small */
.page-contact-us__channel-icon,
.page-contact-us__step-image {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover; /* or contain, depending on desired effect */
}

/* Ensure buttons have proper word-wrap */
.page-contact-us__cta-button {
  white-space: normal;
  word-wrap: break-word;
}