.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;
  color: #ffffff;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.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: 900px;
  padding: 20px;
}

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

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

.page-contact__hero-cta .page-contact__btn-primary {
  background: #017439;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-contact__hero-cta .page-contact__btn-primary:hover {
  background-color: #005a2d;
}

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

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

.page-contact__section-intro {
  font-size: 1.1em;
  color: #f0f0f0; /* Light text for dark body background */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.page-contact__methods-section {
  background-color: #0a0a0a; /* Body background */
  padding: 60px 0;
  color: #ffffff; /* Light text for dark background */
}

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

.page-contact__method-card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

.page-contact__method-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-contact__method-icon {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

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

.page-contact__card-text {
  font-size: 1em;
  line-height: 1.5;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-contact__btn-secondary {
  display: inline-block;
  background: #ffffff;
  color: #017439;
  padding: 10px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #017439;
}

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

.page-contact__form-section {
  background-color: #0d0d0d; /* Slightly different dark background */
  padding: 60px 0;
  color: #ffffff;
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.08); /* Lighter semi-transparent white */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.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 rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

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

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

.page-contact__form-textarea {
  resize: vertical;
}

.page-contact__form-submit-btn {
  width: 100%;
  background: #017439;
  color: #ffffff;
  padding: 15px 20px;
  border-radius: 8px;
  border: none;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.page-contact__faq-section {
  background-color: #0a0a0a; /* Body background */
  padding: 60px 0;
  color: #ffffff;
}

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

.page-contact__faq-item {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  color: #ffffff;
  transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-contact__faq-title {
  margin: 0;
  color: #ffffff;
}

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

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

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

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

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

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

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

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

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

.page-contact__btn-primary.page-contact__register-btn {
  background: #C30808; /* Custom register button color */
  color: #FFFF00; /* Custom register font color */
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
}

.page-contact__btn-primary.page-contact__register-btn:hover {
  background-color: #9e0606;
}

.page-contact__btn-secondary.page-contact__login-btn {
  background: #C30808; /* Custom login button color */
  color: #FFFF00; /* Custom login font color */
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
}

.page-contact__btn-secondary.page-contact__login-btn:hover {
  background-color: #9e0606;
}

/* General button styling to prevent small icons */
.page-contact a[class*="btn"],
.page-contact button[class*="btn"] {
  min-width: 200px; /* Ensure buttons are not small */
  min-height: 50px; /* Ensure buttons are not small */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 2.2em;
  }
  .page-contact__hero-description {
    font-size: 1em;
  }
  .page-contact__section-title {
    font-size: 1.8em;
  }
  .page-contact__cta-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    height: 400px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-contact__hero-title {
    font-size: 1.8em;
  }
  .page-contact__hero-description {
    font-size: 0.95em;
  }
  .page-contact__methods-grid {
    grid-template-columns: 1fr;
  }
  .page-contact__method-card {
    padding: 20px;
  }
  .page-contact__form-contact {
    padding: 30px 20px;
  }
  .page-contact__cta-title {
    font-size: 1.8em;
  }
  .page-contact__cta-description {
    font-size: 1em;
  }
  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact__form-submit-btn,
  .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-left: 15px;
    padding-right: 15px;
  }
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__contact-form,
  .page-contact__faq-list,
  .page-contact__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-contact img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-contact__method-icon {
    height: auto; /* Allow height to adjust on mobile */
  }
  .page-contact__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-contact__faq-question {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-contact__hero-title {
    font-size: 1.5em;
  }
  .page-contact__hero-description {
    font-size: 0.9em;
  }
  .page-contact__hero-cta .page-contact__btn-primary {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-contact__section-title {
    font-size: 1.5em;
  }
  .page-contact__section-intro {
    font-size: 0.9em;
  }
  .page-contact__cta-title {
    font-size: 1.5em;
  }
  .page-contact__cta-description {
    font-size: 0.9em;
  }
  .page-contact__btn-primary.page-contact__register-btn,
  .page-contact__btn-secondary.page-contact__login-btn {
    padding: 12px 25px;
    font-size: 1em;
  }
}