/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default for light background */
  background-color: #ffffff;
}

.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: #017439;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  color: #ffffff;
  background-color: #017439;
  text-align: center;
  overflow: hidden;
}

.page-contact__hero-content {
  max-width: 600px;
  z-index: 1;
  padding: 20px;
  text-align: left;
}

.page-contact__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: #ffffff;
}

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

.page-contact__hero-image-wrapper {
  flex-shrink: 0;
  margin-left: 40px;
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* Info Section */
.page-contact__info-section {
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333;
}

.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: #f9f9f9;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-contact__channel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.page-contact__channel-icon {
  width: 100%;
  height: auto;
  max-width: 200px;
  margin: 0 auto 20px auto;
  border-radius: 4px;
  object-fit: cover;
}

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

.page-contact__channel-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-contact__email-link, .page-contact__phone-link {
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-contact__email-link:hover, .page-contact__phone-link:hover {
  color: #005f2a;
  text-decoration: underline;
}

.page-contact__social-media-info {
  text-align: center;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #eee;
}

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

.page-contact__social-text {
  font-size: 1.1em;
  color: #555555;
  max-width: 700px;
  margin: 0 auto 30px auto;
}

.page-contact__social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-contact__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #017439;
  color: #ffffff;
  font-size: 1.2em;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-contact__social-link:hover {
  background-color: #005f2a;
  transform: translateY(-3px);
}

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

.page-contact__form-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}

.page-contact__form-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-contact__form {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #005f2a;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #333333;
  font-size: 1em;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: #888888;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: #00cc66;
  box-shadow: 0 0 0 3px rgba(0, 204, 102, 0.3);
}

.page-contact__form-submit-btn {
  width: auto;
  padding: 12px 30px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  border: none;
  background-color: #C30808; /* Custom color for submit button */
  color: #FFFF00; /* Custom font color for submit button */
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.page-contact__form-submit-btn:hover {
  background-color: #a00606;
}

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

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

.page-contact__faq-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

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

.page-contact__faq-title {
  font-size: 1.2em;
  color: #017439;
  margin: 0;
  font-weight: bold;
  flex-grow: 1;
  text-align: left;
}

.page-contact__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #017439;
  margin-left: 20px;
  transition: transform 0.3s ease;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  transform: rotate(45deg);
}

.page-contact__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  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: 20px;
  padding-top: 0; /* Adjust padding to avoid double padding */
}

.page-contact__faq-answer p {
  margin-bottom: 1em;
  text-align: left;
}

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

.page-contact__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

.page-contact__cta-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-contact__btn-primary {
  background-color: #C30808; /* Custom color for register/login buttons */
  color: #FFFF00; /* Custom font color */
  border: 2px solid #C30808;
}

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

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

.page-contact__btn-secondary:hover {
  background-color: #e0e0e0;
  border-color: #005f2a;
  color: #005f2a;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 3em;
  }
  .page-contact__hero-image-wrapper {
    margin-left: 20px;
  }
}

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

  .page-contact__hero-section {
    flex-direction: column;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-contact__hero-content {
    max-width: 100%;
    padding: 0;
    text-align: center;
  }

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

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

  .page-contact__hero-image-wrapper {
    margin-left: 0;
    margin-top: 30px;
    max-width: 100%;
  }

  .page-contact__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

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

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

  .page-contact__channel-card {
    padding: 20px;
  }

  .page-contact__channel-icon {
    max-width: 150px;
  }

  .page-contact__social-links {
    flex-wrap: wrap;
    gap: 15px;
  }

  .page-contact__form-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .page-contact__form-image {
    max-width: 100%;
    order: -1; /* Image appears above form on mobile */
  }

  .page-contact__form {
    padding: 30px;
    max-width: 100%;
    width: 100%;
  }

  .page-contact__faq-title {
    font-size: 1.1em;
  }

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

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

  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

  /* Ensure all images are responsive */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-contact__section,
  .page-contact__card,
  .page-contact__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

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

/* Color Contrast Safeguards - Applied via class for clarity */
.page-contact__dark-bg {
  color: #ffffff;
  background: #017439;
}

.page-contact__light-bg {
  color: #333333;
  background: #ffffff;
}

.page-contact__form-submit-btn {
  background-color: #C30808; /* Specific custom color */
  color: #FFFF00; /* Specific custom font color */
}

.page-contact__btn-primary {
  background-color: #C30808; /* Specific custom color */
  color: #FFFF00; /* Specific custom font color */
  border-color: #C30808;
}

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