.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 handled by shared.css */
}

.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;
  background-color: #0a0a0a; /* Ensure dark background for this section */
  color: #ffffff;
  overflow: hidden;
}

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

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

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

.page-contact__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-contact__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

.page-contact__btn-primary:hover {
  background-color: #1e87b7;
  border-color: #1e87b7;
}

.page-contact__btn-secondary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

.page-contact__info-section,
.page-contact__faq-section {
  padding: 60px 20px;
  background-color: #ffffff; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-contact__form-section {
  padding: 60px 20px;
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff;
}

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

.page-contact__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
}

.page-contact__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: inherit;
}

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

.page-contact__method-card {
  background-color: #f8f8f8; /* Slightly off-white for cards on light background */
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact__card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-contact__info-section .page-contact__card {
  background: #ffffff; /* Override for light background section */
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-contact__method-icon {
  width: 200px; /* Min size */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-contact__method-title {
  font-size: 1.6rem;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-contact__method-text {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #555555;
}

.page-contact__info-section .page-contact__method-text {
  color: #555555; /* Ensure dark text for light background section */
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark for form on dark background */
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

.page-contact__form-label {
  display: block;
  font-size: 1rem;
  margin-bottom: 8px;
  color: #f0f0f0;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #555555;
  border-radius: 5px;
  background-color: #333333;
  color: #ffffff;
  font-size: 1rem;
  box-sizing: border-box;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: #26A9E0;
  box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.5);
}

.page-contact__contact-form .page-contact__btn-primary {
  width: auto;
  padding: 12px 25px;
  margin-top: 10px;
}

.page-contact__faq-list {
  margin-top: 40px;
}

.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  background-color: #f0f0f0; /* Light background for FAQ items */
  color: #333333;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #e8e8e8;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  color: #333333;
  list-style: none;
  user-select: none; /* Prevent text selection on click */
}

.page-contact__faq-item summary::-webkit-details-marker {
  display: none;
}

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

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

.page-contact__faq-answer {
  padding: 20px;
  background-color: #f8f8f8;
  border-top: 1px solid #e0e0e0;
  font-size: 1rem;
  color: #555555;
}

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

.page-contact__link {
  color: #26A9E0;
  text-decoration: underline;
}

.page-contact__link:hover {
  color: #1e87b7;
}

/* Ensure links within sections inherit color correctly */
.page-contact__hero-section a, .page-contact__form-section a {
  color: #26A9E0;
  text-decoration: underline;
}
.page-contact__hero-section a:hover, .page-contact__form-section a:hover {
  color: #1e87b7;
}

.page-contact__info-section a, .page-contact__faq-section a {
  color: #26A9E0;
  text-decoration: underline;
}
.page-contact__info-section a:hover, .page-contact__faq-section a:hover {
  color: #1e87b7;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-contact__hero-section {
    padding: 40px 15px;
  }

  .page-contact__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

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

@media (max-width: 768px) {
  .page-contact__hero-section,
  .page-contact__info-section,
  .page-contact__form-section,
  .page-contact__faq-section {
    padding: 30px 15px;
  }

  .page-contact__hero-content,
  .page-contact__container,
  .page-contact__contact-form {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-contact__method-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  .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;
    flex-direction: column;
  }

  .page-contact__hero-section {
    padding-top: 10px !important;
  }

  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__video-section {
    padding-top: 10px !important;
  }

  /* Content area image size constraint */
  .page-contact img:not(.page-contact__hero-image, .page-contact__method-icon) {
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-contact__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

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

  .page-contact__hero-description,
  .page-contact__section-description,
  .page-contact__method-text,
  .page-contact__faq-answer p {
    font-size: 0.95rem;
  }

  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    padding: 12px 20px;
  }
}