.page-contact {
  padding-top: 10px; /* Small top padding to respect body padding-top from shared.css */
  background-color: #F4F7FB;
  color: #1F2D3D;
}

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

.page-contact__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
  background-color: #F4F7FB;
  padding-bottom: 40px;
}

.page-contact__hero-image {
  width: 100%;
  max-width: 1920px;
  height: auto;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__hero-content {
  padding: 0 20px;
  max-width: 900px;
}

.page-contact__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #1F2D3D;
  margin-bottom: 15px;
  text-align: center;
}

.page-contact__description {
  font-size: 1.1em;
  line-height: 1.6;
  color: #1F2D3D;
  margin-bottom: 30px;
  text-align: center;
}

.page-contact__form-section, .page-contact__info-section {
  padding: 40px 0;
  margin-bottom: 40px;
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-contact__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 15px;
}

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

.page-contact__contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}

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

.page-contact__form-label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #1F2D3D;
}

.page-contact__form-input, .page-contact__form-textarea {
  padding: 12px 15px;
  border: 1px solid #D6E2FF;
  border-radius: 5px;
  font-size: 1em;
  color: #000000;
  background-color: #F4F7FB;
  transition: border-color 0.3s ease;
}

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

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

.page-contact__submit-button {
  padding: 14px 25px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  align-self: center;
  min-width: 200px;
}

.page-contact__submit-button:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  transform: translateY(-2px);
}

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

.page-contact__info-card {
  background-color: #F4F7FB;
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-contact__info-card-title {
  font-size: 1.3em;
  font-weight: 700;
  color: #2F6BFF;
  margin-bottom: 10px;
}

.page-contact__info-card-text {
  font-size: 1em;
  line-height: 1.5;
  color: #1F2D3D;
}

.page-contact__info-link {
  color: #2F6BFF;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-contact__info-link:hover {
  text-decoration: underline;
  color: #6FA3FF;
}

.page-contact__map-container {
  text-align: center;
  margin-top: 40px;
}

.page-contact__map-title {
  font-size: 1.8em;
  font-weight: 700;
  color: #1F2D3D;
  margin-bottom: 20px;
}

.page-contact__map-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block; /* Ensure it's a block element for proper centering */
  margin: 0 auto;
  min-width: 200px; /* Enforce min size for content images */
  min-height: 200px;
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    margin-bottom: 30px;
  }

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

  .page-contact__description {
    font-size: 1em;
  }

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

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

  .page-contact__form-section, .page-contact__info-section {
    padding: 30px 0;
    margin-bottom: 30px;
  }

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

  .page-contact__map-title {
    font-size: 1.5em;
  }

  .page-contact__hero-image, .page-contact__map-image, .page-contact__form-input, .page-contact__form-textarea {
    max-width: 100%;
    height: auto;
  }

  .page-contact__contact-form {
    padding: 0 10px;
  }

  .page-contact__submit-button {
    width: 100%;
    max-width: 300px;
  }

  /* Critical: Prevent content area images from overflowing on mobile */
  .page-contact img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px;
  }
}