.page-contact {
  background-color: #FFFFFF;
  color: #333333;
}

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

.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding as per instruction */
  padding-bottom: 40px;
  background-color: #017439; /* Use primary color as background for consistency */
  color: #FFFFFF;
  overflow: hidden;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  max-height: 600px; /* Limit height for hero image */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-contact__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
}

.page-contact__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFFF00; /* Yellow for main title as per register/login font color for emphasis */
  margin-bottom: 15px;
  font-size: clamp(2em, 4vw, 3.5em);
}

.page-contact__hero-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
}

.page-contact__hero-button {
  display: inline-block;
  background-color: #C30808; /* Red for CTA buttons */
  color: #FFFF00; /* Yellow text for CTA */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-contact__hero-button:hover {
  background-color: #a00606;
}

.page-contact__info-section {
  padding: 60px 0;
  background-color: #FFFFFF;
  color: #333333;
  text-align: center;
}

.page-contact__info-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  color: #017439;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-contact__info-text {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__contact-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.page-contact__detail-item {
  flex: 1 1 calc(33% - 60px);
  min-width: 280px;
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.page-contact__detail-heading {
  font-size: 1.3em;
  color: #017439;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-contact__detail-content {
  font-size: 1em;
  line-height: 1.5;
  color: #555555;
}

.page-contact__form-section {
  padding: 60px 0;
  background-color: #f0f0f0;
}

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

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

.page-contact__form-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

.page-contact__form-wrapper {
  background-color: #FFFFFF;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-contact__form-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  color: #017439;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-contact__form-description {
  font-size: 1.05em;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 30px;
}

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

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

.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;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #017439;
  outline: none;
  box-shadow: 0 0 0 2px rgba(1, 116, 57, 0.2);
}

.page-contact__submit-button {
  display: block;
  width: 100%;
  background-color: #C30808; /* Red for submit button */
  color: #FFFF00; /* Yellow text for submit */
  padding: 15px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

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

.page-contact__faq-section {
  padding: 60px 0;
  background-color: #FFFFFF;
  color: #333333;
}

.page-contact__faq-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  color: #017439;
  margin-bottom: 40px;
  text-align: center;
  font-weight: 600;
}

.page-contact__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-contact__faq-item {
  background-color: #f8f8f8;
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-contact__faq-question {
  font-size: 1.2em;
  color: #333333;
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
  font-weight: 600;
}

.page-contact__faq-question::after {
  content: '+';
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

.page-contact__faq-question.active::after {
  content: '-';
  transform: rotate(0deg);
}

.page-contact__faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background-color: #FFFFFF;
}

.page-contact__faq-answer p {
  padding: 20px 0;
  line-height: 1.6;
  color: #555555;
}

.page-contact__cta-section {
  background-color: #017439;
  color: #FFFFFF;
  padding: 60px 0;
  text-align: center;
}

.page-contact__cta-title {
  font-size: clamp(2em, 4vw, 3em);
  color: #FFFF00; /* Yellow for CTA title */
  margin-bottom: 20px;
  font-weight: 700;
}

.page-contact__cta-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid transparent;
  margin: 0 10px;
  cursor: pointer;
}

.page-contact__cta-button--register {
  background-color: #C30808;
  color: #FFFF00;
}

.page-contact__cta-button--register:hover {
  background-color: #a00606;
  color: #FFFF00;
}

.page-contact__cta-button--login {
  background-color: #FFFF00;
  color: #017439;
  border-color: #FFFF00;
}

.page-contact__cta-button--login:hover {
  background-color: #e0e000;
  color: #017439;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-contact__form-grid {
    grid-template-columns: 1fr;
  }
  .page-contact__form-image-wrapper {
    order: -1; /* Image appears above form on smaller screens */
  }
  .page-contact__detail-item {
    flex: 1 1 calc(50% - 30px);
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding-bottom: 30px;
  }
  .page-contact__hero-image,
  .page-contact__form-image {
    max-width: 100%;
    height: auto;
  }
  .page-contact__info-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__cta-section {
    padding: 40px 0;
  }
  .page-contact__main-title {
    font-size: clamp(2em, 7vw, 3em);
  }
  .page-contact__info-title,
  .page-contact__form-title,
  .page-contact__faq-title,
  .page-contact__cta-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-contact__detail-item {
    flex: 1 1 100%;
    min-width: unset;
  }
  .page-contact__cta-button {
    margin: 10px 0;
    width: calc(100% - 20px);
  }
}

@media (max-width: 480px) {
  .page-contact__hero-button,
  .page-contact__submit-button,
  .page-contact__cta-button {
    font-size: 1em;
    padding: 12px 20px;
  }
  .page-contact__faq-question {
    font-size: 1.1em;
  }
}

/* Ensure all images within .page-contact are responsive and meet min-size */
.page-contact img {
  max-width: 100%;
  height: auto;
  min-width: 200px; /* Global minimum for content images */
  min-height: 200px; /* Global minimum for content images */
  object-fit: cover;
}

/* Specific override for images within content areas to ensure minimum display size */
.page-contact__info-section img,
.page-contact__form-section img,
.page-contact__faq-section img,
.page-contact__cta-section img {
  min-width: 200px;
  min-height: 200px;
}

@media (max-width: 768px) {
  .page-contact img {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-contact__contact-form img {
    max-width: 100% !important;
    height: auto !important;
  }
}