.page-contact {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--page-contact-bg, #FFFFFF); /* Default to white */
  color: #333333; /* Default text color */
  font-family: Arial, sans-serif;
}

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

/* Hero Section */
.page-contact__hero-section {
  text-align: center;
  margin-bottom: 40px;
}

.page-contact__hero-image-wrapper {
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 8px;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/5; /* Matches 1920x600 ratio */
  object-fit: cover;
  object-position: center;
}

.page-contact__hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-contact__title {
  font-size: clamp(1.8rem, 4.5vw, 2.5rem); /* Adjusted for h1 on internal page */
  color: var(--primary-color, #26A9E0);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.page-contact__description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555555;
  max-width: 800px;
  margin: 0 auto;
}

/* Section Titles & Descriptions */
.page-contact__section {
  margin-bottom: 60px;
  text-align: center;
}

.page-contact__section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--primary-color, #26A9E0);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-contact__section-description {
  font-size: 1rem;
  color: #666666;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Contact Form */
.page-contact__form {
  background-color: var(--secondary-color, #FFFFFF);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

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

.page-contact__label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333333;
}

.page-contact__input,
.page-contact__textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  font-size: 1rem;
  box-sizing: border-box;
  background-color: #f8f8f8;
  color: #333333;
}

.page-contact__input:focus,
.page-contact__textarea:focus {
  border-color: var(--primary-color, #26A9E0);
  outline: none;
  box-shadow: 0 0 0 2px rgba(38, 169, 224, 0.2);
}

.page-contact__textarea {
  resize: vertical;
}

.page-contact__submit-button {
  background-color: #EA7C07; /* Login color for action button */
  color: #FFFFFF;
  padding: 14px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: auto; /* Allow button to size naturally */
  display: block; /* Make it a block element to center with margin auto */
  margin: 0 auto; /* Center the button */
}

.page-contact__submit-button:hover {
  background-color: #d86c00;
}

.page-contact__form-message {
  margin-top: 20px;
  font-size: 1rem;
  font-weight: 600;
}

/* Contact Info Section */
.page-contact__info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-contact__info-block {
  background-color: var(--secondary-color, #FFFFFF);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__info-title {
  font-size: 1.3rem;
  color: var(--primary-color, #26A9E0);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-contact__info-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 10px;
}

.page-contact__button {
  display: inline-block;
  background-color: var(--primary-color, #26A9E0);
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  margin-top: 15px;
}

.page-contact__button:hover {
  background-color: #1e87c0;
}

.page-contact__social-prompt {
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: 600;
  color: #333333;
}

.page-contact__social-links {
  display: flex;
  gap: 15px;
  justify-content: center; /* Center social links */
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-contact__social-text-link {
  color: var(--primary-color, #26A9E0);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 8px 12px;
  border: 1px solid var(--primary-color, #26A9E0);
  border-radius: 5px;
  transition: all 0.3s ease;
}

.page-contact__social-text-link:hover {
  background-color: var(--primary-color, #26A9E0);
  color: #FFFFFF;
}

/* Map Section */
.page-contact__map-placeholder {
  width: 100%;
  height: auto;
  background-color: #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 30px;
}

.page-contact__map-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

/* Responsive adjustments */
@media (max-width: 849px) {
  .page-contact__hero-image {
    aspect-ratio: 16/9; /* Taller on smaller screens */
  }

  .page-contact__title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
  }

  .page-contact__section-title {
    font-size: clamp(1.3rem, 4.5vw, 1.8rem);
  }
}

@media (max-width: 768px) {
  .page-contact__container {
    padding: 15px;
  }

  .page-contact__input,
  .page-contact__textarea {
    padding: 10px 12px;
  }

  .page-contact__submit-button {
    font-size: 1rem;
    padding: 12px 20px;
  }

  /* Ensure content images are responsive and don't overflow */
  .page-contact__hero-image,
  .page-contact__map-image {
    max-width: 100%;
    height: auto;
  }

  .page-contact__info-grid {
    grid-template-columns: 1fr; /* Stack info blocks vertically */
  }

  .page-contact__social-links {
    justify-content: center;
  }
}

/* Ensure images in content area are not too small */
/* This rule applies to any img within .page-contact that is not a shared component */
.page-contact img:not(.shared-header img):not(.shared-footer img) {
  min-width: 200px; /* Enforce minimum width */
  min-height: 200px; /* Enforce minimum height */
  max-width: 100%;
  height: auto;
}