/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light background */
  background-color: #FFFFFF; /* White background for main content area */
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  height: 500px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #FFFFFF; /* Light text for hero overlay */
}

.page-contact__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-contact__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

.page-contact__hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 20px;
}

.page-contact__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFFFF;
}

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

/* General Section Styles */
.page-contact__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-contact__section-title,
.page-contact__cta-title {
  font-size: 2.5em;
  color: #017439; /* Primary brand color */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact__section-description,
.page-contact__cta-description {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__btn-submit {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-contact__btn-primary {
  background-color: #017439; /* Primary brand color */
  color: #FFFFFF;
  border: 2px solid #017439;
}

.page-contact__btn-primary:hover {
  background-color: #005f2e;
  border-color: #005f2e;
}

.page-contact__btn-secondary {
  background-color: #FFFFFF;
  color: #017439; /* Primary brand color */
  border: 2px solid #017439;
  margin-left: 15px;
}

.page-contact__btn-secondary:hover {
  background-color: #f0f0f0;
}

.page-contact__btn-submit {
  background-color: #C30808; /* Custom color for submit */
  color: #FFFF00; /* Custom color for submit text */
  border: 2px solid #C30808;
  width: 100%;
  max-width: 300px; /* Limit width for form button */
  margin: 30px auto 0 auto;
  display: block;
}

.page-contact__btn-submit:hover {
  background-color: #a00606;
  border-color: #a00606;
}

/* Contact Form Section */
.page-contact__form-section {
  background-color: #f9f9f9;
  padding: 60px 0;
}

.page-contact__form {
  max-width: 700px;
  margin: 0 auto;
  padding: 30px;
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.page-contact__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333333;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  font-size: 1em;
  color: #333333;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #017439;
  outline: none;
}

.page-contact__form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Other Channels Section */
.page-contact__other-channels-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.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: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact__channel-card:hover {
  transform: translateY(-5px);
}

.page-contact__channel-icon {
  width: 100%; /* Ensure image fills card width */
  height: 200px; /* Fixed height for consistency */
  object-fit: cover; /* Cover the area, crop if needed */
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

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

.page-contact__channel-text {
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1; /* Pushes button to bottom */
}

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

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

.page-contact__faq-item {
  background-color: #FFFFFF;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  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: #333333;
  transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
  background-color: #f5f5f5;
}

.page-contact__faq-question h3 {
  margin: 0;
  flex-grow: 1;
  color: #017439; /* Primary brand color for question */
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #017439;
  transition: transform 0.3s ease;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
}

.page-contact__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 20px 25px;
}

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

.page-contact__faq-answer a {
  color: #017439;
  text-decoration: none;
}

.page-contact__faq-answer a:hover {
  text-decoration: underline;
}

/* CTA Section */
.page-contact__cta-section {
  background-color: #017439; /* Primary brand color as background */
  padding: 80px 0;
  text-align: center;
  color: #FFFFFF;
}

.page-contact__cta-title {
  color: #FFFFFF;
  margin-bottom: 25px;
}

.page-contact__cta-description {
  color: #F0F0F0;
  margin-bottom: 40px;
}

.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-contact__cta-buttons .page-contact__btn-primary,
.page-contact__cta-buttons .page-contact__btn-secondary {
  margin: 0; /* Override default button margin */
}

.page-contact__cta-buttons .page-contact__btn-secondary {
  background-color: #FFFFFF;
  color: #017439;
  border-color: #FFFFFF;
}

.page-contact__cta-buttons .page-contact__btn-secondary:hover {
  background-color: #e0e0e0;
}


/* Responsive Styles */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 2.5em;
  }
  .page-contact__section-title,
  .page-contact__cta-title {
    font-size: 2em;
  }
  .page-contact__channel-icon {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-contact__hero-section {
    height: 400px;
  }

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

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

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

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

  .page-contact__section-description,
  .page-contact__cta-description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  .page-contact__channels-grid {
    grid-template-columns: 1fr;
  }

  .page-contact__channel-icon {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    min-width: 200px !important; /* Ensure min size */
    min-height: 200px !important; /* Ensure min size */
  }

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

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

  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 10px 20px 15px 20px;
  }

  /* Mobile button adaptations */
  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact__btn-submit,
  .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;
    margin-left: 0 !important; /* Remove left margin for stacking */
    margin-bottom: 10px; /* Add space between stacked buttons */
  }
  
  .page-contact__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
  }

  .page-contact__cta-buttons .page-contact__btn-primary,
  .page-contact__cta-buttons .page-contact__btn-secondary {
    width: 100% !important;
  }

  /* Image responsiveness for content area */
  .page-contact img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-contact__hero-image {
    max-width: 100% !important;
    height: 100% !important; /* Hero image needs to maintain height */
    object-fit: cover !important;
  }

  /* Video responsiveness (if any, although not used here) */
  .page-contact video,
  .page-contact__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-contact__video-section,
  .page-contact__video-container,
  .page-contact__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}