.page-contact {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light background */
  line-height: 1.6;
  background-color: #FFFFFF; /* Explicitly setting background as per custom color */
}

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

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

.page-contact__section-description {
  font-size: 18px;
  color: #555555;
  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, body handles --header-offset */
  position: relative;
  overflow: hidden;
  margin-bottom: 50px;
}

.page-contact__hero-image-wrapper {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 30px;
}

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

.page-contact__hero-content {
  text-align: center;
  padding: 0 20px;
  max-width: 900px;
  margin: 0 auto;
}

.page-contact__main-title {
  font-weight: 800;
  line-height: 1.2;
  color: #017439;
  margin-bottom: 15px;
  font-size: clamp(2.2rem, 4vw, 3.2rem); /* Example clamp for responsiveness */
}

.page-contact__description {
  font-size: 18px;
  color: #555555;
  margin-bottom: 30px;
}

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

.page-contact__btn-primary,
.page-contact__btn-register,
.page-contact__btn-login {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  box-sizing: border-box;
}

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

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

.page-contact__btn-register {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

.page-contact__btn-register:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-contact__btn-login {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

.page-contact__btn-login:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

/* Contact Methods Section */
.page-contact__contact-methods {
  padding: 50px 0;
  background-color: #f9f9f9;
  margin-bottom: 50px;
}

.page-contact__methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.page-contact__method-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-contact__method-icon {
  width: 100%; /* Ensure images take full width of card */
  height: auto;
  max-height: 200px; /* Limit height for aesthetic */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
  min-width: 200px; /* Min size requirement */
  min-height: 200px;
}

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

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

.page-contact__phone-number {
  font-size: 18px;
  font-weight: 600;
  color: #C30808; /* Use red for phone number for prominence */
  margin-bottom: 20px;
}

.page-contact__social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  width: 100%; /* Ensure container respects width */
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-contact__social-link {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid #017439;
  border-radius: 5px;
  text-decoration: none;
  color: #017439;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
}

.page-contact__social-link:hover {
  background-color: #017439;
  color: #FFFFFF;
}

/* Contact Form Section */
.page-contact__form-section {
  padding: 50px 0;
  margin-bottom: 50px;
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 40px;
  box-sizing: border-box;
}

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

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

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #017439;
  box-shadow: 0 0 0 3px rgba(1, 116, 57, 0.2);
  outline: none;
}

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

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

.page-contact__faq-list {
  max-width: 900px;
  margin: 0 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-answer p {
  margin-top: 0;
  margin-bottom: 0;
}
.page-contact__faq-answer a {
  color: #017439;
  text-decoration: none;
}
.page-contact__faq-answer a:hover {
  text-decoration: underline;
}

/* Responsive Styles for Mobile */
@media (max-width: 768px) {
  .page-contact__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-contact__hero-section {
    padding-top: 10px !important; /* Small top padding */
    margin-bottom: 30px;
  }

  .page-contact__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 10px;
  }

  .page-contact__description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to prevent buttons from touching edges */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    flex-wrap: wrap !important; /* Ensure buttons wrap */
  }

  .page-contact__btn-primary,
  .page-contact__btn-register,
  .page-contact__btn-login,
  .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;
    padding: 12px 20px;
    font-size: 15px;
  }

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

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

  /* Images */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-contact__hero-image-wrapper {
    margin-bottom: 20px;
    border-radius: 0; /* Remove border-radius on mobile for full width */
  }

  .page-contact__contact-methods {
    padding: 30px 0;
    margin-bottom: 30px;
  }

  .page-contact__methods-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px; /* Add padding to prevent cards from touching edges */
  }

  .page-contact__method-card {
    padding: 25px;
  }

  .page-contact__method-icon {
    max-height: 150px; /* Adjust max height for mobile */
    min-width: 150px;
    min-height: 150px;
  }

  .page-contact__method-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .page-contact__method-text {
    font-size: 15px;
  }

  .page-contact__phone-number {
    font-size: 16px;
  }

  .page-contact__social-links {
    flex-direction: column; /* Stack social links vertically on mobile */
    gap: 10px;
    align-items: center;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-contact__social-link {
    width: 80%; /* Make social links wider */
    padding: 10px 15px;
    font-size: 15px;
  }

  .page-contact__form-section {
    padding: 30px 0;
    margin-bottom: 30px;
  }

  .page-contact__contact-form {
    padding: 25px;
    border-radius: 8px;
    margin: 0 15px; /* Adjust margin for mobile */
  }

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

  .page-contact__form-label {
    font-size: 15px;
    margin-bottom: 5px;
  }

  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px 12px;
    font-size: 15px;
  }

  .page-contact__faq-section {
    padding: 30px 0;
  }

  details.page-contact__faq-item summary.page-contact__faq-question {
    padding: 15px;
  }
  .page-contact__faq-qtext {
    font-size: 15px;
  }
  .page-contact__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-contact__faq-item .page-contact__faq-answer {
    padding: 0 15px 15px;
  }
}