.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a2e; /* Body background from shared.css */
}

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

.page-contact__hero-section {
  position: relative;
  padding: 100px 0 60px; /* Adjusted to prevent double padding with header offset */
  text-align: center;
  background: linear-gradient(135deg, #017439, #005f2c); /* Brand color gradient */
  padding-top: var(--header-offset, 120px); /* Apply header offset here */
}

.page-contact__dark-bg {
  background-color: #1a1a2e;
  color: #ffffff;
}

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

.page-contact__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFF00; /* Yellow for prominence */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-contact__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #ffffff;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
}

.page-contact__btn-primary {
  background-color: #C30808; /* Red for register/login */
  color: #FFFF00; /* Yellow for text */
  border: 2px solid #C30808;
}

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

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

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

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

.page-contact__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

.page-contact__methods-section,
.page-contact__form-section,
.page-contact__faq-section,
.page-contact__commitment-section,
.page-contact__join-us-section {
  padding: 80px 0;
}

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

.page-contact__method-card {
  text-align: center;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background-color: #f0f0f0; /* Lighter background for cards in light section */
  color: #333333; /* Dark text for light background */
}

.page-contact__card {
  background-color: #ffffff; /* Default for light background sections */
  color: #333333;
}

.page-contact__dark-bg .page-contact__card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-contact__method-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-contact__method-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #017439; /* Brand color for titles */
}

.page-contact__dark-bg .page-contact__method-title {
  color: #FFFF00; /* Yellow for titles on dark cards */
}

.page-contact__method-text {
  margin-bottom: 20px;
}

.page-contact__email-link {
  color: #017439;
  text-decoration: underline;
}

.page-contact__email-link:hover {
  color: #005f2c;
}

.page-contact__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-contact__form-section {
  background-color: #1a1a2e;
  color: #ffffff;
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

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

.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 #444;
  border-radius: 5px;
  background-color: #2a2a40;
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

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

.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 {
  width: auto;
  padding: 15px 40px;
  font-size: 1.1em;
  border: none;
  background-color: #C30808;
  color: #FFFF00;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

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

.page-contact__faq-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f9f9f9;
}

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

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

.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 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; /* Ensure it expands sufficiently */
  padding: 15px 20px;
}

.page-contact__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

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

.page-contact__commitment-item {
  padding: 30px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-contact__commitment-icon {
  width: 100%;
  height: auto;
  max-width: 150px;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-contact__commitment-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #FFFF00; /* Yellow for titles on dark background */
}

.page-contact__join-us-section {
  background-color: #017439;
  color: #ffffff;
  text-align: center;
}

.page-contact__join-us-section .page-contact__btn-secondary {
  color: #FFFF00;
  border-color: #FFFF00;
}

.page-contact__join-us-section .page-contact__btn-secondary:hover {
  background-color: #FFFF00;
  color: #017439;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 2.8em;
  }

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

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

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

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

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

  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .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__container,
  .page-contact__methods-grid,
  .page-contact__commitment-grid,
  .page-contact__contact-form,
  .page-contact__faq-list {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-contact__methods-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__commitment-section,
  .page-contact__join-us-section {
    padding: 50px 0;
  }

  .page-contact__method-card,
  .page-contact__commitment-item {
    padding: 20px;
  }

  .page-contact__form-submit {
    width: 100%;
  }

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

  /* Mobile video responsiveness (if any, though none for this page) */
  .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;
  }
}

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

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

  .page-contact__form-input,
  .page-contact__form-textarea,
  .page-contact__faq-question {
    font-size: 0.95em;
  }
}