.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* body background is handled by shared.css */
}

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

.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 60px 0;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  text-align: center;
  background-color: #007bff; /* Primary brand color for hero background */
  color: #ffffff;
  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;
  opacity: 0.3;
}

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

.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: #f0f0f0;
}

.page-contact__hero-cta-button {
  display: inline-block;
  background-color: #ffc107;
  color: #000000; /* Ensure contrast for #ffc107 background */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  border: none;
}

.page-contact__hero-cta-button:hover {
  background-color: #e0a800;
}

.page-contact__section-title {
  font-size: 2.5em;
  color: #ffc107; /* Highlight with auxiliary color */
  text-align: center;
  margin-bottom: 20px;
  margin-top: 40px;
}

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

.page-contact__info-section {
  padding: 80px 0;
  background-color: #1a1a2e; /* Match body background for consistency */
}

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

.page-contact__method-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter card background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-contact__method-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.1);
}

.page-contact__method-icon {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
  filter: invert(0); /* Ensure no color filters */
}

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

.page-contact__method-description {
  color: #e0e0e0;
  margin-bottom: 15px;
}

.page-contact__method-detail,
.page-contact__method-detail a {
  color: #ffc107;
  text-decoration: none;
  font-weight: bold;
}

.page-contact__method-button {
  display: inline-block;
  background-color: #007bff;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  transition: background-color 0.3s ease;
  border: none;
}

.page-contact__method-button:hover {
  background-color: #0056b3;
}

.page-contact__form-section {
  padding: 80px 0;
  background-color: #007bff; /* Primary color for form section */
  color: #ffffff;
}

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

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

.page-contact__contact-form {
  max-width: 700px;
  margin: 40px auto 0 auto;
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for form background */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.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 rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.3); /* Darker input background */
  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 {
  border-color: #ffc107;
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.5);
}

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

.page-contact__form-submit-button {
  display: block;
  width: 100%;
  padding: 15px;
  background-color: #ffc107;
  color: #000000; /* Ensure contrast */
  border: none;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-contact__form-submit-button:hover {
  background-color: #e0a800;
}

.page-contact__faq-section {
  padding: 80px 0;
  background-color: #1a1a2e; /* Match body background */
}

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

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

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

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

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

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

.page-contact__faq-item.active .page-contact__faq-toggle {
  transform: rotate(45deg); /* Plus to X (minus) */
}

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

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

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

.page-contact__cta-section {
  padding: 80px 0;
  background-color: #007bff; /* Primary color for CTA section */
  text-align: center;
  color: #ffffff;
}

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

.page-contact__cta-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

.page-contact__cta-button {
  display: inline-block;
  background-color: #ffc107;
  color: #000000; /* Ensure contrast */
  padding: 15px 40px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
  border: none;
}

.page-contact__cta-button:hover {
  background-color: #e0a800;
}

/* Global button styles for consistency */
.page-contact__btn-primary {
  background-color: #007bff;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  border: none;
  transition: background-color 0.3s ease;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 2.5em;
  }

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

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

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

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

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

  .page-contact__section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

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

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

  .page-contact__contact-form {
    padding: 25px;
    margin-top: 20px;
  }

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

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

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

  /* Mobile button responsiveness */
  .page-contact__hero-cta-button,
  .page-contact__method-button,
  .page-contact__form-submit-button,
  .page-contact__cta-button,
  .page-contact__btn-primary,
  .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__contact-methods {
    flex-wrap: wrap !important;
    gap: 20px;
  }

  .page-contact__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .page-contact__hero-content,
  .page-contact__contact-form,
  .page-contact__faq-list,
  .page-contact__cta-section .page-contact__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}