/* style/contact.css */

/* Base styles for the contact page, using custom colors */
.page-contact {
  background-color: #08160F; /* Custom background color */
  color: #F2FFF6; /* Custom main text color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 60px; /* Add some padding at the bottom */
}

/* Ensure body padding-top is handled by shared.css, not here */
/* .page-contact { padding-top: var(--header-offset); } - DO NOT ADD HERE */

.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: #F2FFF6; /* Main text color */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  letter-spacing: 0.05em;
}

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px; /* Small top padding, more bottom padding */
  overflow: hidden; /* Ensure nothing spills out */
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 40px; /* Space between image and content */
}

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

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

.page-contact__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
  color: #F2FFF6;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
}

.page-contact__hero-description {
  font-size: 1.2em;
  color: #A7D9B8;
  margin-bottom: 30px;
}

.page-contact__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  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;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
  text-align: center;
}

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

.page-contact__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-contact__btn-secondary {
  background: transparent;
  color: #2AD16F;
  border: 2px solid #2AD16F;
}

.page-contact__btn-secondary:hover {
  background: rgba(42, 209, 111, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.2);
}

/* Channels Section */
.page-contact__channels-section {
  padding: 60px 0;
}

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

.page-contact__channel-card {
  background-color: #11271B; /* Custom Card BG */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Custom Border color */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact__channel-icon {
  width: 200px; /* Minimum size requirement */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px; /* Slightly rounded corners for images */
  object-fit: cover;
}

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

.page-contact__card-text {
  color: #A7D9B8;
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow text to take available space */
}

.page-contact__card-email {
  color: #F2C14E; /* Gold color for email */
  font-weight: bold;
  margin-bottom: 20px;
  font-size: 1.1em;
}

/* Common Issues Section */
.page-contact__common-issues-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green for a subtle contrast */
}

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

.page-contact__issue-card {
  background-color: #11271B; /* Custom Card BG */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E;
}

.page-contact__issue-list {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

.page-contact__issue-list li {
  color: #A7D9B8;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-contact__issue-list li::before {
  content: "•";
  color: #2AD16F; /* Green bullet point */
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.2em;
  top: -2px;
}

/* Effective Contact Guide Section */
.page-contact__effective-contact-guide {
  padding: 60px 0;
}

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

.page-contact__guide-item {
  background-color: #11271B; /* Custom Card BG */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E;
}

.page-contact__guide-icon {
  font-size: 3em;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1;
}

.page-contact__gold-text {
  color: #F2C14E; /* Gold color */
}

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

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

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

.page-contact__faq-item summary {
  list-style: none; /* Remove default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2em;
  color: #F2FFF6;
  background-color: #11271B;
}

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

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

.page-contact__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #2AD16F; /* Green for toggle icon */
}

.page-contact__faq-answer {
  padding: 0 25px 20px;
  color: #A7D9B8;
  font-size: 1em;
}

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

/* Commitment Section */
.page-contact__commitment-section {
  padding: 60px 0;
}

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

.page-contact__commitment-item {
  background-color: #11271B; /* Custom Card BG */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #2E7A4E;
}

.page-contact__item-title {
  font-size: 1.4em;
  color: #F2FFF6;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-contact__item-text {
  color: #A7D9B8;
  font-size: 0.95em;
}

.page-contact__commitment-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto 0;
  max-width: 900px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #2E7A4E;
}

/* Final CTA Section */
.page-contact__final-cta {
  padding: 60px 0;
  text-align: center;
}

.page-contact__final-cta .page-contact__container {
  background-color: #11271B; /* Card BG for the final CTA container */
  padding: 40px;
  border-radius: 12px;
  border: 1px solid #2E7A4E;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-contact__section-title {
    font-size: 2em;
  }
  .page-contact__hero-image-wrapper {
    max-height: 400px;
  }
}

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

  .page-contact__hero-section {
    padding-top: 10px !important; /* body handles header offset, small top padding for section */
    padding-bottom: 40px;
  }
  
  .page-contact__hero-image-wrapper {
    max-height: 300px;
    margin-bottom: 20px;
  }

  .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;
  }

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

  .page-contact__container,
  .page-contact__channels-section .page-contact__container,
  .page-contact__common-issues-section .page-contact__container,
  .page-contact__effective-contact-guide .page-contact__container,
  .page-contact__faq-section .page-contact__container,
  .page-contact__commitment-section .page-contact__container,
  .page-contact__final-cta .page-contact__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Ensure no horizontal scroll */
  }

  /* All images */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-contact__channel-icon {
    width: 150px; /* Adjust size for mobile if needed, still >200 for AI gen */
    height: auto;
  }

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

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

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

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

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

  .page-contact__commitment-image {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

/* Ensure no CSS filters are used for images */
.page-contact img {
  filter: none !important; /* Override any potential default filters */
}

/* Specific styling for card backgrounds to ensure contrast */
.page-contact__channel-card,
.page-contact__issue-card,
.page-contact__guide-item,
.page-contact__faq-item,
.page-contact__commitment-item,
.page-contact__final-cta .page-contact__container {
  background-color: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
}

.page-contact__channel-card .page-contact__card-text,
.page-contact__issue-card .page-contact__card-text,
.page-contact__guide-item .page-contact__card-text,
.page-contact__faq-item .page-contact__faq-answer,
.page-contact__commitment-item .page-contact__item-text {
  color: #A7D9B8; /* Text Secondary */
}

/* Override for gold text */
.page-contact__guide-icon.page-contact__gold-text {
  color: #F2C14E; /* Gold */
}

/* Override for green accents */
.page-contact__issue-list li::before,
.page-contact__faq-toggle {
  color: #2AD16F; /* Button top gradient start color, good for accents */
}