.page-contact {
  color: #333333; /* Dark text for light body background */
  background-color: var(--secondary-color); /* Assumed light background from shared.css */
}

.page-contact__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  padding-bottom: 60px;
  background-color: #000000; /* Dark background for hero content */
  color: #ffffff;
  text-align: center;
}

.page-contact__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3;
}

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

.page-contact__hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px; /* Ensure hero section has a minimum height */
}

.page-contact__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-contact__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-contact__hero-button {
  display: inline-block;
  background-color: #FCBC45; /* Login button color for CTA */
  color: #000000;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-contact__hero-button:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
}

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

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

.page-contact__methods-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #000000;
}

.page-contact__methods-intro {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 50px;
  line-height: 1.6;
  color: #555555;
}

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

.page-contact__method-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-contact__method-icon {
  width: 250px; /* Enforce minimum 200px for content images */
  height: 167px; /* Maintain aspect ratio for 600x400 source */
  object-fit: contain;
  margin-bottom: 25px;
  border-radius: 8px;
  filter: none; /* Ensure no filter changes image color */
}

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

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

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

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

.page-contact__form-section {
  padding: 80px 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 20px rgba(0, 0, 0, 0.1);
}

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

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

.page-contact__contact-form {
  display: grid;
  gap: 20px;
}

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

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

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

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #FCBC45;
  outline: none;
  box-shadow: 0 0 0 3px rgba(252, 188, 69, 0.2);
}

.page-contact__form-submit-button {
  background-color: #000000;
  color: #ffffff;
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-contact__form-submit-button:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 3em;
  }
  .page-contact__hero-description {
    font-size: 1.1em;
  }
  .page-contact__methods-title {
    font-size: 2.5em;
  }
  .page-contact__form-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding-bottom: 40px;
  }
  .page-contact__hero-title {
    font-size: 2.5em;
  }
  .page-contact__hero-description {
    font-size: 1em;
  }
  .page-contact__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-contact__methods-section {
    padding: 60px 20px;
  }
  .page-contact__methods-title {
    font-size: 2em;
  }
  .page-contact__methods-grid {
    grid-template-columns: 1fr;
  }
  .page-contact__form-section {
    padding: 60px 20px;
  }
  .page-contact__form-title {
    font-size: 2em;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px 12px;
  }
  /* Mobile content area images must not overflow */
  .page-contact__hero-image,
  .page-contact__method-icon {
    max-width: 100%;
    height: auto;
    filter: none; /* Ensure no filter changes image color */
  }
  .page-contact__method-icon {
    width: 250px; /* Still enforce minimum size for card icons if possible within max-width */
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-contact__hero-title {
    font-size: 2em;
  }
  .page-contact__hero-description {
    font-size: 0.9em;
  }
  .page-contact__methods-section {
    padding: 40px 15px;
  }
  .page-contact__form-section {
    padding: 40px 15px;
  }
  .page-contact__form-container {
    padding: 30px;
  }
}