.page-contact {
  color: #333333; /* Dark text for light body 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__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  min-width: 200px;
  min-height: 200px;
}

.page-contact__hero-overlay {
  position: relative;
  z-index: 1;
  text-align: center;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  padding: 40px 20px;
  border-radius: 8px;
  max-width: 900px;
  margin: 20px;
  color: #FFFFFF; /* Light text for dark overlay */
}

.page-contact__hero-title {
  font-size: 2.8em;
  margin-bottom: 15px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-contact__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-contact__info-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.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;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 200px;
}

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

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

.page-contact__form-section {
  padding: 60px 20px;
  background-color: #FFFFFF;
}

.page-contact__form-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: #f8f8f8;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-contact__form-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 15px;
}

.page-contact__form-description {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  margin-bottom: 30px;
}

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

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  padding: 12px 15px;
  border: 1px solid #cccccc;
  border-radius: 6px;
  font-size: 1em;
  color: #333333;
  background-color: #FFFFFF;
  min-width: 200px;
  min-height: 40px;
}

.page-contact__form-textarea {
  resize: vertical;
  min-height: 120px;
}

.page-contact__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  text-align: center;
  font-size: 1.1em;
  border: none;
  min-width: 200px; /* Ensure buttons are not too small */
}

.page-contact__button--primary {
  background-color: #FCBC45; /* Login color for primary actions */
  color: #000000;
}

.page-contact__button--primary:hover {
  background-color: #e0a73b;
  transform: translateY(-2px);
}

.page-contact__button--secondary {
  background-color: #000000;
  color: #FFFFFF; /* Register color for secondary actions */
}

.page-contact__button--secondary:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

.page-contact__button--submit {
  background-color: #FCBC45;
  color: #000000;
  margin-top: 10px;
  align-self: center;
  min-width: 250px;
}

.page-contact__button--submit:hover {
  background-color: #e0a73b;
  transform: translateY(-2px);
}

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

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

  .page-contact__info-container {
    grid-template-columns: 1fr;
  }

  .page-contact__card {
    padding: 25px;
  }

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

  .page-contact__form-container {
    padding: 30px;
  }

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

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

  .page-contact img {
    max-width: 100%;
    height: auto;
  }

  .page-contact__hero-image {
    min-width: 200px;
    min-height: 200px;
  }

  .page-contact__form-input, .page-contact__form-textarea {
    min-width: 200px;
  }

  .page-contact__button--submit {
    min-width: unset;
    width: 100%;
  }
}