.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #f8f9fa; /* Light background for the page content */
}

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

.page-contact__section-title {
  font-size: 2.5em;
  color: #007bff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background-color: #e9f7ff; /* Light blue background */
  overflow: hidden;
}

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

.page-contact__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image for text readability */
}

.page-contact__hero-section .page-contact__container {
  position: relative;
  z-index: 1;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-contact__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-contact__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #ffffff;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-primary {
  background-color: #007bff;
  color: #ffffff;
  border: 2px solid #007bff;
}

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

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

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

.page-contact__methods-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

.page-contact__method-card {
  background-color: #f8f9fa;
  border-radius: 12px;
  padding: 30px;
  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;
  justify-content: space-between;
  align-items: center;
  min-height: 450px;
}

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

.page-contact__card-title {
  font-size: 1.6em;
  color: #007bff;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__method-icon {
  width: 150px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

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

.page-contact__social-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #ffc107;
  color: #333333;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-contact__social-btn:hover {
  background-color: #e0a800;
}

.page-contact__guidance-section {
  padding: 80px 0;
  background-color: #f0f8ff;
}

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

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

.page-contact__guidance-heading {
  font-size: 1.4em;
  color: #007bff;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__guidance-item ul {
  list-style-type: disc;
  margin-left: 20px;
  color: #555555;
}

.page-contact__guidance-item ul li {
  margin-bottom: 10px;
}

.page-contact__faq-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

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

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #eaf6ff;
  border-bottom: 1px solid #d0e8ff;
  transition: background-color 0.3s ease;
}

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

.page-contact__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #007bff;
  font-weight: bold;
}

.page-contact__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #007bff;
  transition: transform 0.3s ease;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
  color: #ffc107;
}

.page-contact__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #ffffff;
  color: #555555;
}

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

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

.page-contact__faq-answer a {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.page-contact__faq-answer a:hover {
  text-decoration: underline;
}

.page-contact__faq-cta {
  text-align: center;
  margin-top: 40px;
}

.page-contact__faq-cta p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #555555;
}

.page-contact__commitment-section {
  padding: 80px 0;
  text-align: center;
  background-color: #007bff; /* Main brand color for dark background */
  color: #ffffff; /* White text for dark background */
}

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

.page-contact__commitment-image {
  max-width: 800px;
  width: 100%;
  height: auto;
  margin: 40px auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-contact__commitment-section .page-contact__btn-primary {
  background-color: #ffc107;
  border-color: #ffc107;
  color: #333333;
}

.page-contact__commitment-section .page-contact__btn-primary:hover {
  background-color: #e0a800;
  border-color: #e0a800;
}

.page-contact__commitment-section .page-contact__btn-secondary {
  border-color: #ffffff;
  color: #ffffff;
}

.page-contact__commitment-section .page-contact__btn-secondary:hover {
  background-color: #ffffff;
  color: #007bff;
}

.page-contact__final-cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #f0f8ff;
}

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

@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-contact__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
  }
  .page-contact__hero-title {
    font-size: 2.5em;
  }
  .page-contact__hero-description {
    font-size: 1.1em;
  }
  .page-contact__section-title {
    font-size: 1.8em;
  }
  .page-contact__section-intro {
    font-size: 1em;
  }
  .page-contact__method-card {
    min-height: auto;
  }
  .page-contact__method-icon {
    width: 120px;
  }
  .page-contact__cta-group {
    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__hero-section .page-contact__btn-primary {
    max-width: 300px !important; /* Limit hero button width */
    width: auto !important;
  }
  .page-contact__social-links {
    flex-wrap: wrap;
    gap: 10px;
  }
  .page-contact__social-btn {
    flex-grow: 1;
    max-width: 120px;
  }
  .page-contact__commitment-image {
    max-width: 100%;
  }

  /* Mobile image responsiveness */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-contact__hero-image {
    width: 100% !important;
    height: 100% !important;
  }
  .page-contact__section,
  .page-contact__card,
  .page-contact__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-contact__hero-section .page-contact__container {
    padding-left: 0;
    padding-right: 0;
  }
  .page-contact__method-card {
    padding: 20px;
  }
  .page-contact__guidance-item {
    padding: 20px;
  }
  .page-contact__faq-question,
  .page-contact__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-contact__hero-title {
    font-size: 2em;
  }
  .page-contact__section-title {
    font-size: 1.5em;
  }
  .page-contact__faq-question h3 {
    font-size: 1em;
  }
  .page-contact__faq-toggle {
    font-size: 1.5em;
  }
  .page-contact__hero-section .page-contact__btn-primary {
    max-width: 100% !important;
  }
}