.page-contact {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: #ffffff; /* Body background is dark, so light text */
  background-color: transparent; /* Inherit from body, as per requirements */
}

.page-contact__hero-section {
  position: relative;
  width: 100%;
  padding-top: var(--header-offset, 120px); /* Apply header offset */
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-contact__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65); /* Dark overlay for text readability */
  z-index: -1;
}

.page-contact__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}

.page-contact__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

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

.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none; /* Remove default button border */
  font-size: 1.05em;
}

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

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

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

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

/* Specific colors for login/register if needed on this page */
.page-contact__login-btn {
  background-color: #C30808; /* Login color */
  color: #FFFF00; /* Login font color */
}

.page-contact__register-btn {
  background-color: #C30808; /* Register color */
  color: #FFFF00; /* Register font color */
}

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

.page-contact__section-title {
  font-size: 2.8em;
  color: #017439; /* Brand color for titles on dark backgrounds, but needs contrast */
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-contact__section-intro {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__methods-section {
  padding: 60px 0;
  background-color: #1a1a2e; /* Inherited body background */
}

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

.page-contact__method-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for cards */
  padding: 35px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.page-contact__method-card a {
  color: #FFFF00; /* Link color within card description */
  text-decoration: underline;
}

.page-contact__method-card a:hover {
  color: #017439;
}

.page-contact__card-title {
  font-size: 1.9em;
  color: #FFFF00; /* Accent color for card titles */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-contact__card-description {
  font-size: 1em;
  color: #e0e0e0;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-contact__form-section {
  padding: 60px 0;
  background-color: #1a1a2e;
}

.page-contact__contact-form {
  max-width: 750px;
  margin: 50px auto 0;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 45px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #017439;
  background-color: rgba(0, 0, 0, 0.5);
  outline: none;
}

.page-contact__form-submit {
  width: 100%;
  padding: 16px;
  font-size: 1.2em;
  margin-top: 25px;
}

.page-contact__form-post-text {
  margin-top: 40px;
  font-size: 1em;
  color: #e0e0e0;
  text-align: center;
}

.page-contact__faq-section {
  padding: 60px 0;
  background-color: #1a1a2e;
}

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

.page-contact__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 18px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  color: #ffffff;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 30px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
}

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

.page-contact__faq-title {
  margin: 0;
  font-size: 1.25em;
  color: #ffffff;
  font-weight: 600;
}

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

.page-contact__faq-item.active .page-contact__faq-toggle {
  transform: rotate(45deg);
  color: #FFFF00; /* Highlight when active */
}

.page-contact__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  color: #e0e0e0;
}

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

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

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

.page-contact__commitment-section .page-contact__section-title {
  color: #ffffff;
}

.page-contact__commitment-section .page-contact__section-intro {
  color: #f0f0f0;
}

.page-contact__commitment-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
  margin-top: 50px;
  text-align: left;
}

.page-contact__commitment-item {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #ffffff;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-contact__commitment-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.25);
}

.page-contact__item-title {
  font-size: 1.6em;
  color: #FFFF00; /* Highlight with accent color */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-contact__item-title + p {
  color: #e0e0e0;
  font-size: 0.95em;
}

.page-contact__section-image {
  display: block;
  margin: 60px auto 0;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  max-width: 100%;
  height: auto;
}

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

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

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

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

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

  .page-contact__section-intro {
    font-size: 0.95em;
  }

  .page-contact__methods-grid,
  .page-contact__commitment-points {
    grid-template-columns: 1fr;
  }

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

  .page-contact__hero-section,
  .page-contact__methods-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__commitment-section,
  .page-contact__container,
  .page-contact__contact-form,
  .page-contact__faq-list,
  .page-contact__methods-grid,
  .page-contact__commitment-points {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }

  /* Adjust padding for form and faq list within container */
  .page-contact__contact-form,
  .page-contact__faq-list {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Button responsiveness */
  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact__hero-button,
  .page-contact__form-submit,
  .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;
    text-align: center;
    margin-bottom: 10px;
  }

  /* Form elements mobile adjustments */
  .page-contact__form-input, .page-contact__form-textarea {
    padding: 12px 15px !important;
  }

  .page-contact__faq-question {
    padding: 18px 20px !important;
  }

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

  .page-contact__faq-answer {
    padding: 0 20px !important;
  }

  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 15px 20px !important;
  }

  .page-contact__card-title {
    font-size: 1.6em !important;
  }

  .page-contact__commitment-item {
    padding: 30px !important;
  }

  .page-contact__item-title {
    font-size: 1.4em !important;
  }
}

@media (max-width: 480px) {
  .page-contact__hero-title {
    font-size: 1.8em;
  }
  .page-contact__section-title {
    font-size: 1.8em;
  }
  .page-contact__card-title {
    font-size: 1.5em;
  }
  .page-contact__hero-description {
    font-size: 0.9em;
  }
  .page-contact__btn-primary, .page-contact__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-contact__form-submit {
    padding: 14px;
    font-size: 1.1em;
  }
}