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

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

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

.page-contact__main-title {
  font-size: 2.8em;
  color: #000000;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin: 0 10px 20px;
}

.page-contact__cta-button--primary {
  background-color: #FCBC45; /* Login color for primary action */
  color: #000000;
}

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

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

.page-contact__methods-section {
  background-color: #ffffff;
  padding: 60px 20px;
  text-align: center;
}

.page-contact__methods-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-contact__section-title {
  font-size: 2em;
  color: #000000;
  margin-bottom: 40px;
}

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

.page-contact__method-card {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-contact__method-card:hover {
  transform: translateY(-5px);
}

.page-contact__method-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
  width: 100%; /* Make images responsive within card */
  height: auto;
  object-fit: contain;
}

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

.page-contact__method-description {
  color: #555555;
  margin-bottom: 25px;
}

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

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

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

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

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

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

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #cccccc;
  border-radius: 6px;
  font-size: 1em;
  color: #333333;
  box-sizing: border-box; /* Include padding in element's total width and height */
}

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

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

.page-contact__form-submit-button {
  background-color: #FCBC45; /* Login color */
  color: #000000;
  padding: 15px 25px;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.page-contact__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
}

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

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

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

.page-contact__cta-button--secondary {
  background-color: #FFFFFF; /* Register color */
  color: #000000;
}

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

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

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

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

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

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

  .page-contact__cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .page-contact__cta-button {
    width: 80%;
    margin: 10px 0;
  }
  
  /* Ensure content images are responsive and do not overflow */
  .page-contact img {
    max-width: 100%;
    height: auto;
  }
  
  /* Override min-width/height for mobile to ensure responsiveness without shrinking too much */
  .page-contact__method-icon {
    min-width: 200px;
    min-height: 200px;
  }

  /* Prevent horizontal scrolling on mobile */
  .page-contact {
    overflow-x: hidden;
  }
}

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

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

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