/* style/contact.css */

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

/* Base styles for the contact page */
.page-contact {
  background-color: var(--page-contact-background); /* Dark background */
  color: var(--page-contact-text-main); /* Light text for contrast */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Sections */
.page-contact__hero-section,
.page-contact__channels-section,
.page-contact__when-to-contact-section,
.page-contact__commitment-section,
.page-contact__faq-section,
.page-contact__final-cta-section {
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden; /* Ensure no overflow issues */
}

.page-contact__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Ensure hero section has a decent height */
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-width: 100%; /* Ensure it takes full width of its parent */
  position: relative;
  margin-bottom: 20px;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-contact__hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative; /* Ensure content is not absolutely positioned over image */
  z-index: 1;
  padding: 20px 0;
}

.page-contact__main-title {
  color: var(--page-contact-text-main);
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 100%; /* H1 should not have fixed font-size, rely on weight/line-height */
}

.page-contact__hero-description {
  color: var(--page-contact-text-secondary);
  font-size: 1.1em;
  margin-bottom: 30px;
}

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

/* General button styles */
.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: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box; /* Include padding in width calculation */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-contact__btn-primary {
  background: var(--page-contact-button-gradient);
  color: var(--page-contact-text-main); /* White text on dark button */
  border: 2px solid transparent;
}

.page-contact__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Reverse gradient on hover */
  box-shadow: 0 0 15px var(--page-contact-glow);
}

.page-contact__btn-secondary {
  background: transparent;
  color: var(--page-contact-primary-color);
  border: 2px solid var(--page-contact-primary-color);
}

.page-contact__btn-secondary:hover {
  background: var(--page-contact-primary-color);
  color: var(--page-contact-text-main);
}

.page-contact__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-contact__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Add horizontal padding for content */
  box-sizing: border-box;
}

.page-contact__section-title {
  color: var(--page-contact-text-main);
  font-size: 2.5em;
  margin-bottom: 20px;
}

.page-contact__section-title--light {
  color: var(--page-contact-text-main); /* Already light */
}

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

.page-contact__section-description--light {
  color: var(--page-contact-text-secondary); /* Already light */
}

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

.page-contact__channel-card {
  background-color: var(--page-contact-card-bg); /* Dark card background */
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--page-contact-border);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 400px; /* Ensure cards have similar height */
}

.page-contact__channel-icon {
  width: 200px; /* Minimum size 200px */
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
  border-radius: 8px;
}

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

.page-contact__card-text {
  color: var(--page-contact-text-secondary);
  margin-bottom: 25px;
  flex-grow: 1; /* Allow text to grow and push button to bottom */
}

.page-contact__email-link {
  color: var(--page-contact-gold);
  text-decoration: underline;
}
.page-contact__email-link:hover {
  color: var(--page-contact-glow);
}

/* When to Contact Section */
.page-contact__contact-reasons-list {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}

.page-contact__list-item {
  background-color: var(--page-contact-card-bg);
  border: 1px solid var(--page-contact-border);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
}

.page-contact__list-title {
  color: var(--page-contact-text-main);
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-contact__list-text {
  color: var(--page-contact-text-secondary);
}

/* Commitment Section */
.page-contact__dark-section {
  background-color: var(--page-contact-deep-green); /* Use deep green for dark sections */
  color: var(--page-contact-text-main);
}

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

.page-contact__commitment-item {
  background-color: var(--page-contact-card-bg);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--page-contact-border);
  text-align: center;
}

.page-contact__commitment-icon {
  width: 200px; /* Minimum size 200px */
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
  border-radius: 8px;
}

.page-contact__commitment-title {
  color: var(--page-contact-text-main);
  font-size: 1.5em;
  margin-bottom: 10px;
}

.page-contact__commitment-text {
  color: var(--page-contact-text-secondary);
}

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

.page-contact__faq-item {
  background-color: var(--page-contact-card-bg);
  border: 1px solid var(--page-contact-border);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden; /* For smooth transition if using JS */
}

.page-contact__faq-item summary {
  list-style: none; /* Hide default marker */
}

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

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  color: var(--page-contact-text-main);
  font-weight: bold;
  font-size: 1.2em;
  background-color: var(--page-contact-card-bg);
  border-bottom: 1px solid var(--page-contact-divider); /* Separator */
}

.page-contact__faq-question:hover {
  background-color: var(--page-contact-deep-green); /* Slightly darker on hover */
}

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

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

.page-contact__faq-answer {
  padding: 0 25px 20px 25px;
  color: var(--page-contact-text-secondary);
  font-size: 1em;
}

/* Final CTA Section */
.page-contact__final-cta-section {
  background-color: var(--page-contact-deep-green);
  padding: 80px 20px;
}

/* Global image styles (ensure minimum size and no filters) */
.page-contact img {
  min-width: 200px;
  min-height: 200px;
  filter: none; /* Absolutely no filters */
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-contact__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Body handles --header-offset */
    min-height: auto;
  }

  .page-contact__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

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

  .page-contact__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-contact__section-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

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

  .page-contact__channels-section,
  .page-contact__when-to-contact-section,
  .page-contact__commitment-section,
  .page-contact__faq-section,
  .page-contact__final-cta-section {
    padding: 40px 15px;
  }

  .page-contact__container {
    padding: 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-contact__channel-card,
  .page-contact__commitment-item,
  .page-contact__list-item,
  .page-contact__faq-item {
    padding: 20px;
    border-radius: 8px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-left: auto;
    margin-right: auto;
  }

  .page-contact__channel-icon,
  .page-contact__commitment-icon,
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  /* FAQ specific mobile styles */
  .page-contact__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-contact__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95em;
  }
}