.page-contact {
  color: #333333; /* Dark text for light body background */
}

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

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

.page-contact__hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px; /* Minimum height for hero content */
}

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

.page-contact__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  line-height: 1.5;
  color: #F0F0F0;
}

.page-contact__hero-button {
  display: inline-block;
  background-color: #FCBC45; /* Login color for primary button */
  color: #000000; /* Dark text for light button */
  padding: 15px 30px;
  border-radius: 8px;
  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: #e0a538;
  transform: translateY(-2px);
}

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

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

.page-contact__section-description {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.page-contact__methods-section {
  padding: 60px 0;
  background-color: #F8F8F8;
}

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

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

.page-contact__method-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-contact__method-icon {
  width: 250px; /* Ensure images are not too small */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

.page-contact__method-text {
  font-size: 1em;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 25px;
}

.page-contact__method-button {
  display: inline-block;
  background-color: #000000; /* Primary color for buttons */
  color: #FFFFFF;
  padding: 12px 25px;
  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 {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 40px auto 0;
  background-color: #F8F8F8;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.page-contact__form-label {
  display: block;
  font-size: 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: 6px;
  font-size: 1em;
  color: #333333;
  background-color: #FFFFFF;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-contact__form-submit-button {
  display: block;
  width: 100%;
  background-color: #000000;
  color: #FFFFFF;
  padding: 15px 20px;
  border: none;
  border-radius: 8px;
  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: 768px) {
  .page-contact__hero-title {
    font-size: 2em;
  }

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

  .page-contact__hero-container {
    padding: 60px 15px;
  }

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

  .page-contact__section-description {
    font-size: 0.95em;
  }

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

  .page-contact__method-card {
    padding: 25px;
  }

  .page-contact__method-icon {
    width: 200px; /* Ensure images are not too small */
    height: auto;
  }

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

  .page-contact__form-input,
  .page-contact__form-textarea {
    width: calc(100% - 20px);
  }

  /* Mobile content area image constraint */
  .page-contact img {
    max-width: 100%;
    height: auto;
  }
}

/* Ensure no content area image is smaller than 200px */
.page-contact__hero-image,
.page-contact__method-icon {
  min-width: 200px;
  min-height: 200px;
}

/* Override specific element sizes if they are smaller than 200px. */
/* This is a safeguard against any specific rule that might make them smaller. */
.page-contact__method-icon[width="400"][height="300"] {
  width: 400px;
  height: 300px;
}

.page-contact__hero-image[width="1200"][height="675"] {
  width: 1200px;
  height: 675px;
}