.page-contact {
  color: #333333; /* Dark text for light background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-contact__hero-section {
  position: relative;
  overflow: hidden;
  padding: 0;
  background-color: #000000; /* Dark background for the hero content overlay */
}

.page-contact__hero-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Minimum height for hero section */
}

.page-contact__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  opacity: 0.6; /* Slightly dim the image for text readability */
}

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #FFFFFF;
  padding: 40px 20px;
  max-width: 800px;
}

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

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

.page-contact__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-contact__button {
  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;
  font-size: 1.1em;
}

.page-contact__button--login {
  background-color: #FCBC45; /* Login button color */
  color: #000000;
}

.page-contact__button--login:hover {
  background-color: #e0a53b;
}

.page-contact__button--register {
  background-color: #FFFFFF; /* Register button color */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-contact__button--register:hover {
  background-color: #f0f0f0;
  border-color: #e0a53b;
}

.page-contact__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
  margin-top: 60px;
}

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

.page-contact__info-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

.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: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

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

.page-contact__method-button {
  display: inline-block;
  padding: 12px 25px;
  background-color: #FCBC45;
  color: #000000;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-contact__form-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.page-contact__form-container {
  display: flex;
  gap: 50px;
  align-items: center;
}

.page-contact__form-image-wrapper {
  flex: 1;
  min-width: 200px; /* Minimum width for image wrapper */
}

.page-contact__form-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  display: block; /* Ensure it behaves as a block element */
}

.page-contact__form-content {
  flex: 1;
}

.page-contact__contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.page-contact__form-group {
  display: flex;
  flex-direction: column;
}

.page-contact__form-label {
  font-weight: bold;
  margin-bottom: 8px;
  color: #000000;
}

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

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

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

.page-contact__submit-button {
  padding: 15px 30px;
  background-color: #000000;
  color: #FFFFFF;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-contact__submit-button:hover {
  background-color: #333333;
}

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

.page-contact__faq-content {
  display: flex;
  gap: 50px;
  align-items: center;
  margin-top: 40px;
}

.page-contact__faq-image {
  flex: 1;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  display: block; /* Ensure it behaves as a block element */
}

.page-contact__faq-text {
  flex: 1;
}

.page-contact__faq-text ul {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-contact__faq-text li {
  margin-bottom: 15px;
}

.page-contact__faq-link {
  color: #000000;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-contact__faq-link:hover {
  color: #FCBC45;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-contact__hero-title {
    font-size: 2.8em;
  }

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

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

  .page-contact__form-container,
  .page-contact__faq-content {
    flex-direction: column;
  }

  .page-contact__form-image-wrapper,
  .page-contact__form-content,
  .page-contact__faq-image,
  .page-contact__faq-text {
    flex: none;
    width: 100%;
  }
  
  .page-contact__faq-content .page-contact__faq-image {
    order: -1; /* Move image above text for better flow on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-contact {
    padding-top: var(--header-offset, 80px); /* Adjust padding for mobile header */
  }

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

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

  .page-contact__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-contact__button {
    width: 100%;
  }

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

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

  /* Ensure all content area images are responsive and not too small */
  .page-contact__hero-image,
  .page-contact__form-image,
  .page-contact__faq-image {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Minimum size for content images */
    min-height: 200px;
  }

  .page-contact__form-image-wrapper, .page-contact__faq-image {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .page-contact__hero-container {
    min-height: 400px;
  }

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

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

  .page-contact__button {
    padding: 12px 20px;
    font-size: 1em;
  }

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

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

  .page-contact__method-button {
    font-size: 0.9em;
  }

  .page-contact__submit-button {
    font-size: 1em;
  }
}