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

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

.page-contact__hero-section {
  background-color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-contact__hero-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.page-contact__hero-title {
  font-size: 3.2em;
  color: #000000; /* Main color for important titles */
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.page-contact__hero-description {
  font-size: 1.2em;
  color: #333333;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

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

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

.page-contact__methods-section {
  background-color: #f9f9f9;
  padding: 80px 20px;
}

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

.page-contact__card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-contact__card-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

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

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

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

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  background-color: #f9f9f9;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

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

.page-contact__form-label {
  display: block;
  font-size: 1.1em;
  color: #333333;
  margin-bottom: 8px;
  font-weight: bold;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  font-size: 1em;
  color: #333333;
  background-color: #FFFFFF;
  transition: border-color 0.3s ease;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #FCBC45;
  outline: none;
}

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

.page-contact__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  text-align: center;
  border: none;
}

.page-contact__btn--primary {
  background-color: #FCBC45; /* Login button color */
  color: #000000;
  margin-top: 30px;
}

.page-contact__btn--primary:hover {
  background-color: #e0a53b;
  transform: translateY(-3px);
}

.page-contact__btn--secondary {
  background-color: #000000; /* Main color for secondary buttons */
  color: #FFFFFF; /* Register button color */
  border: 1px solid #000000;
}

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

.page-contact__btn--submit {
  background-color: #FCBC45;
  color: #000000;
  width: 100%;
  margin-top: 20px;
}

.page-contact__btn--submit:hover {
  background-color: #e0a53b;
  transform: translateY(-3px);
}

.page-contact__form-note {
  text-align: center;
  margin-top: 30px;
  font-size: 0.95em;
  color: #777777;
}

.page-contact__links-section {
  background-color: #f0f0f0;
  padding: 80px 20px;
}

.page-contact__links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.page-contact__link-item {
  display: block;
  background-color: #FFFFFF;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  font-size: 1.1em;
  color: #000000;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-contact__link-item:hover {
  background-color: #e6e6e6;
  transform: translateY(-3px);
}

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

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

@media (max-width: 768px) {
  .page-contact__hero-title {
    font-size: 2.2em;
  }

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

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

  .page-contact__section-intro {
    font-size: 1em;
  }

  .page-contact__btn {
    padding: 12px 25px;
    font-size: 1em;
  }

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

  /* Ensure images do not overflow on mobile */
  .page-contact__hero-image,
  .page-contact__card-icon,
  .page-contact__contact-form img { /* General rule for all images within content area */
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
  }
}

@media (max-width: 480px) {
  .page-contact__hero-title {
    font-size: 1.8em;
  }

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

  .page-contact__hero-section,
  .page-contact__methods-section,
  .page-contact__form-section,
  .page-contact__links-section {
    padding: 40px 15px;
  }

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