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

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  overflow: hidden;
  color: #ffffff;
}

.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);
  z-index: 2;
}

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

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

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

.page-contact__hero-button {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* General Section Styles */
.page-contact__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #017439;
}

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

/* Info Section */
.page-contact__info-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
}

.page-contact__info-section .page-contact__section-title {
  color: #017439;
}

.page-contact__info-section .page-contact__section-description {
  color: #555555;
}

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

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

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

.page-contact__info-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  border-radius: 50%;
  object-fit: contain;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
  width: auto; /* Allow auto scaling */
  height: auto; /* Allow auto scaling */
}

.page-contact__info-card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #017439;
}

.page-contact__info-card-text {
  font-size: 1em;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-contact__info-detail {
  font-size: 1.1em;
  font-weight: bold;
  color: #333333;
  margin-bottom: 10px;
}

.page-contact__email-link, .page-contact__phone-link {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

.page-contact__email-link:hover, .page-contact__phone-link:hover {
  text-decoration: underline;
}

.page-contact__info-button {
  display: inline-block;
  padding: 12px 25px;
  font-size: 1em;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  margin-top: auto;
}

/* Contact Form Section */
.page-contact__form-section {
  padding: 80px 0;
  background-color: #1a1a2e;
  color: #ffffff;
}

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

.page-contact__form-section .page-contact__section-description {
  color: #f0f0f0;
}

.page-contact__form-wrapper {
  display: flex;
  gap: 50px;
  align-items: center;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.page-contact__contact-form {
  flex: 1;
  min-width: 300px;
  background-color: rgba(255, 255, 255, 0.1);
  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;
  border: 1px solid #017439;
  border-radius: 6px;
  background-color: 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: #cccccc;
}

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

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

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

.page-contact__form-illustration {
  flex: 1;
  max-width: 400px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
  width: auto; /* Allow auto scaling */
  height: auto; /* Allow auto scaling */
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-contact__faq-section .page-contact__section-title {
  color: #017439;
}

.page-contact__faq-section .page-contact__section-description {
  color: #555555;
}

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

.page-contact__faq-item {
  background-color: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-contact__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #e0e0e0;
  border-bottom: 1px solid #cccccc;
  list-style: none; /* Hide default marker */
}

.page-contact__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit */
}

.page-contact__faq-item[open] summary {
  background-color: #d0d0d0;
}

.page-contact__faq-qtext {
  flex-grow: 1;
  color: #017439;
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #017439;
}

.page-contact__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #555555;
  border-top: 1px solid #eeeeee;
}

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

.page-contact__faq-answer a {
  color: #017439;
  text-decoration: underline;
}

/* Why Us Section */
.page-contact__why-us-section {
  padding: 80px 0;
  background-color: #1a1a2e;
  color: #ffffff;
}

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

.page-contact__why-us-section .page-contact__section-description {
  color: #f0f0f0;
}

.page-contact__why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-contact__why-us-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__why-us-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #017439;
}

.page-contact__why-us-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* Social Media Section */
.page-contact__social-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-contact__social-section .page-contact__section-title {
  color: #017439;
}

.page-contact__social-section .page-contact__section-description {
  color: #555555;
}

.page-contact__social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.page-contact__social-icon-link {
  display: inline-block;
  transition: transform 0.3s ease;
}

.page-contact__social-icon-link:hover {
  transform: translateY(-5px);
}

.page-contact__social-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Min size requirement, will be scaled down by CSS */
  min-height: 200px; /* Min size requirement */
  width: auto; /* Allow auto scaling */
  height: auto; /* Allow auto scaling */
}

/* Button Styles */
.page-contact__btn-primary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

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

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

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

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

  .page-contact__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure space below fixed header for mobile */
  }

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

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

  .page-contact__hero-content {
    padding: 20px;
  }

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

  .page-contact__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-contact__info-section, .page-contact__form-section, .page-contact__faq-section, .page-contact__why-us-section, .page-contact__social-section {
    padding: 40px 0;
  }

  .page-contact__info-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

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

  .page-contact__info-icon {
    width: 80px;
    height: 80px;
    min-width: 80px !important; /* Scale down for mobile */
    min-height: 80px !important; /* Scale down for mobile */
  }

  .page-contact__form-wrapper {
    flex-direction: column;
    padding: 0 15px;
    gap: 30px;
  }

  .page-contact__contact-form {
    padding: 30px;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-contact__form-illustration {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important; /* Maintain min size */
    min-height: 200px !important;
  }

  .page-contact__faq-list {
    padding: 0 15px;
  }

  .page-contact__faq-item summary {
    font-size: 1em;
    padding: 15px 20px;
  }

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

  .page-contact__why-us-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .page-contact__social-links {
    gap: 20px;
  }

  .page-contact__social-icon {
    width: 48px;
    height: 48px;
    min-width: 48px !important;
    min-height: 48px !important;
  }

  /* Ensure all images are responsive */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__form-wrapper,
  .page-contact__info-grid,
  .page-contact__why-us-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  /* Ensure all buttons are responsive */
  .page-contact__cta-button,
  .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__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;
    display: flex;
    flex-direction: column;
  }
}