.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #FFFFFF); /* Inherit from shared, default to white */
}

.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  text-align: center;
  overflow: hidden;
  color: #ffffff;
  background-color: #017439; /* Primary brand color for hero */
}

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

.page-contact__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Subtle overlay for text readability */
}

.page-contact__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.page-contact__hero-title {
  font-size: 3em;
  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: #FFFFFF;
}

.page-contact__section {
  padding: 60px 20px;
  text-align: center;
}

.page-contact__dark-section {
  background-color: #017439;
  color: #ffffff;
}

.page-contact__dark-section .page-contact__section-title,
.page-contact__dark-section .page-contact__section-description,
.page-contact__dark-section .page-contact__card-title,
.page-contact__dark-section .page-contact__card-text,
.page-contact__dark-section .page-contact__list-item strong,
.page-contact__dark-section .page-contact__process-step-title,
.page-contact__dark-section .page-contact__process-text,
.page-contact__dark-section .page-contact__text-block {
  color: #ffffff;
}

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

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

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

.page-contact__dark-section .page-contact__section-title {
  color: #FFFFFF;
}

.page-contact__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #555555;
}

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

.page-contact__text-block {
  font-size: 1em;
  margin-top: 30px;
  color: #555555;
}

.page-contact__dark-section .page-contact__text-block {
  color: #f0f0f0;
}

.page-contact__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
}

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

.page-contact__btn-secondary {
  display: inline-block;
  background-color: #ffffff;
  color: #017439;
  padding: 12px 25px;
  border: 2px solid #017439;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1em;
}

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

.page-contact__list {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px auto;
  max-width: 800px;
  text-align: left;
}

.page-contact__list-item {
  background-color: #f9f9f9;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  color: #333333;
  font-size: 1.05em;
}

.page-contact__dark-section .page-contact__list-item {
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  color: #ffffff;
}

.page-contact__list-item strong {
  color: #017439;
}

.page-contact__dark-section .page-contact__list-item strong {
  color: #FFFF00; /* Contrast with dark background */
}

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

.page-contact__card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #333333;
}

.page-contact__dark-section .page-contact__card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: none;
}

.page-contact__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

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

.page-contact__dark-section .page-contact__card-title {
  color: #FFFF00;
}

.page-contact__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-contact__dark-section .page-contact__card-text {
  color: #f0f0f0;
}

.page-contact__card-text strong {
  color: #017439;
}

.page-contact__dark-section .page-contact__card-text strong {
  color: #FFFF00;
}

.page-contact__process-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
  text-align: left;
}

.page-contact__process-item {
  background-color: #f0f8f0;
  padding: 25px;
  margin-bottom: 20px;
  border-left: 5px solid #017439;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  counter-increment: process-step;
  position: relative;
  padding-left: 70px; /* Space for step number */
}

.page-contact__process-item::before {
  content: "Bước " counter(process-step);
  position: absolute;
  left: 15px;
  top: 20px;
  background-color: #017439;
  color: #ffffff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9em;
}

.page-contact__process-step-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 10px;
}

.page-contact__process-text {
  color: #555555;
}

.page-contact__faq-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

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

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

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

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

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

.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; /* Sufficiently large for content */
  padding: 20px;
}

.page-contact__faq-answer p {
  margin: 0;
  font-size: 1em;
}

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

.page-contact__cta-section {
  padding: 80px 20px;
  background-color: #017439;
  color: #ffffff;
  text-align: center;
}

.page-contact__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-contact__cta-section .page-contact__section-title {
  color: #FFFFFF;
  margin-bottom: 20px;
}

.page-contact__cta-section .page-contact__section-description {
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-contact__cta-section .page-contact__btn-primary {
  background-color: #C30808;
  color: #FFFF00;
  font-size: 1.2em;
  padding: 18px 35px;
}

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

.page-contact__cta-section .page-contact__text-block {
  color: #f0f0f0;
  margin-top: 30px;
  font-style: italic;
}

/* Global image responsiveness and size requirements */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block; /* Prevents extra space below images */
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-contact__hero-section {
    padding: 40px 15px;
    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__section {
    padding: 40px 15px;
  }

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

  .page-contact__section-description,
  .page-contact__text-block,
  .page-contact__card-text,
  .page-contact__list-item,
  .page-contact__process-text,
  .page-contact__faq-answer p {
    font-size: 0.95em;
  }

  .page-contact__methods-grid, .page-contact__issues-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-contact__card {
    padding: 20px;
  }

  .page-contact__card-title {
    font-size: 1.5em;
  }

  .page-contact__process-item {
    padding: 20px 15px 20px 60px;
  }

  .page-contact__process-item::before {
    left: 10px;
    top: 15px;
    width: 35px;
    height: 35px;
    font-size: 0.8em;
  }

  .page-contact__process-step-title {
    font-size: 1.3em;
  }

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

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

  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 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: 15px 20px !important; /* Adjust padding for mobile buttons */
  }

  .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;
  }

  .page-contact__cta-buttons {
    display: flex;
    flex-direction: column;
  }

  /* Ensure all image containers are responsive */
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent overflow from images */
  }

  /* Force images to be responsive */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}