/* style/contact.css */

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

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

.page-contact__section {
  padding: 60px 0;
  text-align: center;
}

.page-contact__section:nth-child(even) {
  background-color: #0A4B2C; /* Deep Green for alternating sections */
}

.page-contact__section-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #F2FFF6; /* Custom Text Main */
  line-height: 1.2;
}

.page-contact__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #A7D9B8; /* Custom Text Secondary */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px 60px; /* Small top padding, larger bottom padding */
  overflow: hidden; /* Ensure no image overflow */
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 1920px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px; /* Space between image and content */
}

.page-contact__hero-content {
  max-width: 900px;
  text-align: center;
  z-index: 1; /* Ensure content is above any potential background layers */
}

.page-contact__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  color: #F2FFF6; /* Custom Text Main */
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.page-contact__description {
  font-size: 1.2em;
  color: #A7D9B8; /* Custom Text Secondary */
  margin-bottom: 40px;
}

/* Cards */
.page-contact__card {
  background-color: #11271B; /* Custom Card BG */
  border: 1px solid #2E7A4E; /* Custom Border */
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensure cards in grid have equal height */
}

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

.page-contact__card-text {
  font-size: 1em;
  color: #A7D9B8; /* Custom Text Secondary */
  flex-grow: 1; /* Allow text to grow and fill space */
  margin-bottom: 20px;
}

.page-contact__card-image-wrapper {
  margin-bottom: 20px;
  text-align: center;
}

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


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

.page-contact__contact-detail {
  font-size: 1.1em;
  color: #F2FFF6;
  margin-bottom: 15px;
}

.page-contact__email-link,
.page-contact__phone-link {
  color: #57E38D; /* Custom Glow */
  text-decoration: none;
  font-weight: bold;
}

.page-contact__email-link:hover,
.page-contact__phone-link:hover {
  text-decoration: underline;
}

/* Common Issues Grid */
.page-contact__issues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

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

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Ensure padding is included in width */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-contact__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button Gradient */
  color: #F2FFF6; /* Custom Text Main */
  border: 2px solid transparent;
}

.page-contact__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px #57E38D; /* Custom Glow */
}

.page-contact__btn-secondary {
  background-color: transparent;
  color: #57E38D; /* Custom Glow */
  border: 2px solid #57E38D; /* Custom Glow for border */
}

.page-contact__btn-secondary:hover {
  background-color: #57E38D; /* Custom Glow */
  color: #11271B; /* Custom Card BG for contrast */
  box-shadow: 0 0 15px #57E38D;
}

.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

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

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

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #F2FFF6; /* Custom Text Main */
  background-color: #11271B; /* Custom Card BG */
  transition: background-color 0.3s ease;
  list-style: none; /* Hide default details marker */
}

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

.page-contact__faq-question:hover {
  background-color: #0A4B2C; /* Deep Green */
}

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

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

.page-contact__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #A7D9B8; /* Custom Text Secondary */
  line-height: 1.7;
}

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

/* Commitment Section */
.page-contact__commitment-section {
  padding-bottom: 80px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-contact__hero-image {
    width: 100%;
    height: auto;
  }
}

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

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

  .page-contact__section-description {
    font-size: 1em;
  }

  .page-contact__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

  .page-contact__description {
    font-size: 1em;
  }

  .page-contact__card {
    padding: 20px;
  }

  .page-contact__card-title {
    font-size: 1.3em;
  }

  .page-contact__card-text {
    font-size: 0.95em;
  }

  /* Force responsive for all images */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  
  /* Ensure image containers are responsive */
  .page-contact__card-image-wrapper,
  .page-contact__hero-section,
  .page-contact__section,
  .page-contact__container,
  .page-contact__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent content overflow */
  }

  /* Add padding to main containers on mobile to avoid edge-to-edge content */
  .page-contact__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  .page-contact__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Force responsive for all buttons */
  .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; /* Ensure text inside button has padding */
    padding-right: 15px !important;
  }

  .page-contact__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-contact__channels-grid,
  .page-contact__issues-grid,
  .page-contact__process-steps {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }

  .page-contact__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

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

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

  .page-contact__main-title {
    font-size: clamp(1.6em, 8vw, 2.2em);
  }

  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    font-size: 1em;
    padding: 10px 20px;
  }
}