.page-contact {
  background-color: var(--background); /* #F4F7FB */
  color: var(--text-main); /* #1F2D3D */
  padding-top: 10px; /* Small top padding for the first section */
}

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  overflow: hidden;
  padding-bottom: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-height: 400px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px; /* Space between image and content */
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-contact__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--custom-color-1776249996415); /* #000000 */
  margin-bottom: 20px;
  text-align: center;
  /* No fixed font-size, rely on clamp if needed, otherwise browser default for H1 */
}

.page-contact__description {
  font-size: 1.1em;
  line-height: 1.6;
  color: var(--text-main); /* #1F2D3D */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Info Section */
.page-contact__info-section {
  padding: 60px 0;
  background-color: var(--card-b-g); /* #FFFFFF */
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px var(--border); /* Using border color for subtle shadow */
}

.page-contact__info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-contact__info-card {
  padding: 20px;
}

.page-contact__card-title {
  font-size: 2em;
  font-weight: 600;
  color: var(--custom-color-1776249996415); /* #000000 */
  margin-bottom: 20px;
}

.page-contact__text {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-main); /* #1F2D3D */
  margin-bottom: 20px;
}

.page-contact__contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-contact__contact-item {
  margin-bottom: 10px;
  font-size: 1.05em;
  line-height: 1.5;
}

.page-contact__contact-label {
  font-weight: 600;
  color: var(--custom-color-1776249996415); /* #000000 */
}

.page-contact__contact-value,
.page-contact__contact-link {
  color: var(--text-main); /* #1F2D3D */
  text-decoration: none;
}

.page-contact__contact-link:hover {
  color: var(--main-color); /* #2F6BFF */
  text-decoration: underline;
}

.page-contact__hours-list {
  list-style: none;
  padding-left: 20px;
  margin-top: 5px;
}

.page-contact__hours-item {
  margin-bottom: 5px;
}

.page-contact__image-card {
  text-align: center;
}

.page-contact__info-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

/* Form Section */
.page-contact__form-section {
  padding: 60px 0;
  text-align: center;
}

.page-contact__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: var(--custom-color-1776249996415); /* #000000 */
  margin-bottom: 20px;
}

.page-contact__form-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
  margin-top: 40px;
  background-color: var(--card-b-g); /* #FFFFFF */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--border); /* Using border color for subtle shadow */
}

.page-contact__form {
  text-align: left;
}

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

.page-contact__form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--custom-color-1776249996415); /* #000000 */
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border); /* #D6E2FF */
  border-radius: 8px;
  font-size: 1em;
  color: var(--text-main); /* #1F2D3D */
  background-color: #fcfcfc;
  transition: border-color 0.3s ease;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: var(--main-color); /* #2F6BFF */
  outline: none;
  box-shadow: 0 0 0 3px var(--glow); /* #A5C4FF */
}

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

.page-contact__submit-button {
  display: inline-block;
  padding: 14px 30px;
  background: var(--button); /* linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%) */
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
}

.page-contact__submit-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__form-image-wrapper {
  text-align: center;
}

.page-contact__form-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 60px 0 80px;
  text-align: center;
}

.page-contact__faq-links {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-contact__button {
  display: inline-block;
  padding: 14px 30px;
  background: var(--button); /* linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%) */
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
  min-width: 200px; /* Ensure buttons are not too small */
}

.page-contact__button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__button--secondary {
  background: #E0E8F5; /* A lighter shade for secondary action */
  color: var(--main-color); /* #2F6BFF */
  border: 1px solid var(--main-color);
}

.page-contact__button--secondary:hover {
  background: var(--main-color); /* #2F6BFF */
  color: #FFFFFF;
  border-color: var(--main-color);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-contact__info-grid,
  .page-contact__form-wrapper {
    grid-template-columns: 1fr;
  }
  .page-contact__hero-image-wrapper {
    max-height: 300px;
  }
  .page-contact__hero-image {
    width: auto; /* Allow image to scale down */
    height: 100%;
  }
  .page-contact__form-image-wrapper {
    order: -1; /* Move image above form on mobile */
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-contact__main-title {
    font-size: clamp(2em, 5vw, 2.8em); /* Use clamp for H1 */
  }
  .page-contact__section-title {
    font-size: 1.8em;
  }
  .page-contact__hero-image-wrapper {
    max-height: 250px;
  }
  .page-contact__hero-image,
  .page-contact__info-image,
  .page-contact__form-image {
    max-width: 100%;
    height: auto;
  }
  .page-contact__info-section,
  .page-contact__form-section,
  .page-contact__faq-section {
    padding: 40px 0;
  }
  .page-contact__form-wrapper {
    padding: 20px;
  }
  .page-contact__faq-links {
    flex-direction: column;
    gap: 15px;
  }
  .page-contact__button {
    width: 100%;
    max-width: 300px; /* Constrain button width */
    margin: 0 auto;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .page-contact__container {
    padding: 15px;
  }
  .page-contact__hero-image-wrapper {
    max-height: 200px;
  }
  .page-contact__hero-content {
    padding: 0 10px;
  }
  .page-contact__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-contact__description {
    font-size: 0.95em;
  }
  .page-contact__card-title,
  .page-contact__section-title {
    font-size: 1.5em;
  }
  .page-contact__info-section,
  .page-contact__form-section,
  .page-contact__faq-section {
    padding: 30px 0;
  }
}

/* Ensure content area images are not too small on mobile */
@media (max-width: 768px) {
  .page-contact img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure images are at least 200px wide */
    min-height: 200px; /* Ensure images are at least 200px tall */
    object-fit: contain; /* Adjust object-fit to ensure full image visibility */
  }
}