/* Base styles for the contact page */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #FFFFFF; /* Body background from shared.css */
}

.page-contact__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-contact__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #017439;
}

.page-contact__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-contact__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-contact__hero-content {
  margin-bottom: 30px;
}

.page-contact__main-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 15px;
  color: #017439;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__hero-description {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto;
  color: #555555;
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-width: 1000px;
  margin-top: 30px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  border-radius: 10px;
  overflow: hidden;
}

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

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

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

.page-contact__contact-form {
  flex: 1;
  background: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  max-width: 600px;
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  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__submit-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  text-decoration: none;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-primary {
  background: #017439;
  color: #ffffff;
}

.page-contact__btn-primary:hover {
  background: #005f2f;
  transform: translateY(-2px);
}

.page-contact__form-image-aside {
  flex: 1;
  max-width: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-contact__form-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Other Contact Methods Section */
.page-contact__other-methods-section {
  padding: 80px 0;
  background: #017439;
  color: #ffffff; /* White text for dark background */
}

.page-contact__other-methods-section .page-contact__section-title,
.page-contact__other-methods-section .page-contact__section-description {
  color: #ffffff;
}

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

.page-contact__method-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.page-contact__method-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-contact__method-description {
  font-size: 16px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-contact__phone-number {
  font-size: 22px;
  font-weight: bold;
  color: #FFFF00;
  margin-top: 15px;
}

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

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

.page-contact__social-icon:hover {
  background: #f0f0f0;
  color: #005f2f;
}

.page-contact__team-image-wrapper {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.page-contact__team-image {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-contact__faq-item summary.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-contact__faq-item summary.page-contact__faq-question::-webkit-details-marker {
  display: none;
}
details.page-contact__faq-item summary.page-contact__faq-question:hover {
  background: #f5f5f5;
}
.page-contact__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-contact__faq-item .page-contact__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

.page-contact__faq-illustration-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 40px auto 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.page-contact__faq-illustration {
  max-width: 100%;
  height: auto;
  display: block;
}

/* CTA Section */
.page-contact__cta-section {
  padding: 80px 0;
  background: linear-gradient(to right, #017439, #005f2f);
  text-align: center;
  color: #ffffff;
}

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

.page-contact__cta-description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

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

.page-contact__btn-secondary:hover {
  background: #f0f0f0;
  color: #005f2f;
  transform: translateY(-2px);
}

/* Responsive styles */
@media (max-width: 1023px) {
  .page-contact__main-title {
    font-size: 40px;
  }
  .page-contact__hero-description {
    font-size: 18px;
  }
  .page-contact__form-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .page-contact__contact-form {
    max-width: 100%;
  }
  .page-contact__form-image-aside {
    max-width: 100%;
    margin-top: 40px;
  }
  .page-contact__methods-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-contact__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-contact__section-title {
    font-size: 28px;
  }
  .page-contact__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-contact__hero-section {
    padding-bottom: 40px;
  }
  .page-contact__main-title {
    font-size: 32px;
  }
  .page-contact__hero-description {
    font-size: 16px;
  }
  .page-contact__hero-image-wrapper {
    margin-top: 20px;
  }
  .page-contact__contact-form-section,
  .page-contact__other-methods-section,
  .page-contact__faq-section,
  .page-contact__cta-section {
    padding: 60px 0;
  }
  .page-contact__contact-form {
    padding: 30px;
  }
  .page-contact__form-group {
    margin-bottom: 20px;
  }
  .page-contact__form-label,
  .page-contact__form-input,
  .page-contact__form-textarea {
    font-size: 15px;
  }
  .page-contact__submit-button,
  .page-contact__method-button,
  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-contact__methods-grid {
    gap: 20px;
  }
  .page-contact__method-title {
    font-size: 20px;
  }
  .page-contact__phone-number {
    font-size: 20px;
  }
  .page-contact__social-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  details.page-contact__faq-item summary.page-contact__faq-question { padding: 15px; }
  .page-contact__faq-qtext { font-size: 15px; }
  .page-contact__cta-title {
    font-size: 30px;
  }
  .page-contact__cta-description {
    font-size: 16px;
  }
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-contact__hero-image-wrapper,
  .page-contact__form-image-aside,
  .page-contact__team-image-wrapper,
  .page-contact__faq-illustration-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
}