.page-contact {
  color: #ffffff; /* Body background is dark, so text is light */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Rely on body background from shared.css */
}

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

.page-contact__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  overflow: hidden;
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-contact__hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-contact__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 20px;
}

.page-contact__intro-description {
  font-size: 1.1rem;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-contact__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem); /* Responsive font size */
  font-weight: 600;
  color: #017439; /* Brand color for titles */
  text-align: center;
  margin-bottom: 30px;
}

.page-contact__dark-bg .page-contact__section-title {
  color: #ffffff; /* White title on dark background */
}

.page-contact__text-block {
  font-size: 1rem;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-contact__contact-info-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
}

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

.page-contact__info-card {
  background-color: #2a2a2a;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 380px;
}

.page-contact__info-icon {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 4px;
  margin-bottom: 20px;
}

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

.page-contact__card-text {
  font-size: 1rem;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-contact__form-section {
  padding: 60px 0;
  background-color: #017439; /* Primary brand color background */
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 40px auto 0 auto;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.page-contact__form-label {
  display: block;
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #005f2b;
  border-radius: 5px;
  background-color: #004d22;
  color: #ffffff;
  font-size: 1rem;
  box-sizing: border-box;
}

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

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

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

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

.page-contact__faq-item {
  background-color: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15rem;
  color: #ffffff;
  cursor: pointer;
  background-color: #333333;
  border-bottom: 1px solid #444444;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-contact__faq-question::-webkit-details-marker {
  display: none; /* For details/summary */
}

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

.page-contact__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: #017439; /* Brand color for toggle */
  margin-left: 15px;
}

.page-contact__faq-answer {
  padding: 20px;
  font-size: 1rem;
  color: #cccccc;
  background-color: #2a2a2a;
  border-top: 1px solid #3a3a3a;
}

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

.page-contact__faq-answer a {
  color: #017439; /* Brand color for links */
  text-decoration: underline;
}

.page-contact__location-section {
  padding: 60px 0;
  background-color: #017439;
}

.page-contact__location-details {
  max-width: 900px;
  margin: 40px auto 0 auto;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 40px;
  border-radius: 8px;
  text-align: center;
  color: #ffffff;
}

.page-contact__address,
.page-contact__email,
.page-contact__phone {
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.page-contact__map-placeholder {
  margin-top: 30px;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
  white-space: normal; /* Allow button text to wrap */
  word-wrap: break-word; /* Allow button text to break words */
}

.page-contact__btn-primary {
  background-color: #C30808; /* Custom color for primary action (Login/Register intent) */
  color: #FFFF00; /* Custom font color */
  border: 2px solid transparent;
}

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

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

.page-contact__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #005f2b;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-contact__container,
  .page-contact__hero-section,
  .page-contact__contact-info-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__location-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-contact__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
  }

  .page-contact__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem); /* Adjust for smaller screens */
  }

  .page-contact__intro-description {
    font-size: 1rem;
  }

  .page-contact__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem); /* Adjust for smaller screens */
  }

  .page-contact__info-grid {
    grid-template-columns: 1fr;
  }

  .page-contact__info-card {
    min-height: auto;
  }

  .page-contact__contact-form,
  .page-contact__location-details {
    padding: 30px 20px;
  }

  .page-contact__faq-question {
    font-size: 1rem;
    padding: 15px;
  }

  .page-contact__faq-answer {
    padding: 15px;
  }

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

  /* Video responsive rules */
  .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;
  }

  /* Button responsive rules */
  .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; /* Ensure buttons take full width */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__cta-buttons,
  .page-contact__button-group,
  .page-contact__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }
}