.page-contact {
  color: #333333; /* Default text color for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-contact__main-heading {
  font-size: 3.2em;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-contact__intro-text {
  font-size: 1.2em;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-contact__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  color: #017439; /* Primary brand color for titles */
}

.page-contact__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Color Contrast Specifics */
.page-contact__dark-section {
  background: #017439; /* Brand primary color */
  color: #ffffff; /* White text for dark background */
}

.page-contact__dark-section .page-contact__section-title {
  color: #FFFFFF; /* White title for dark background */
}

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

/* HERO Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  overflow: hidden;
}

.page-contact__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.page-contact__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-contact__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

/* General Container */
.page-contact__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
}

/* Buttons */
.page-contact__cta-button,
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-primary {
  background: #C30808; /* Register/Login red */
  color: #FFFF00; /* Register/Login font yellow */
  border: 2px solid #C30808;
}

.page-contact__btn-primary:hover {
  background: #a30606;
  border-color: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-contact__btn-secondary {
  background: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-contact__btn-secondary:hover {
  background: #f0f0f0;
  color: #015f2e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-contact__submit-button {
  background: #C30808; /* Register/Login red */
  color: #FFFF00; /* Register/Login font yellow */
  border: none;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  width: auto;
  display: block;
  margin: 30px auto 0 auto;
}

.page-contact__submit-button:hover {
  background: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Card Styles */
.page-contact__card {
  background: #ffffff;
  color: #333333;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure consistent height in flex containers */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-contact__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-contact__card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

/* Info Section */
.page-contact__info-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-contact__detail-item img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
}

.page-contact__detail-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 10px;
}

.page-contact__detail-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-contact__detail-value {
  font-size: 1.1em;
  font-weight: bold;
  color: #C30808; /* Highlight contact values */
}

.page-contact__working-hours-note {
  text-align: center;
  margin-top: 40px;
  font-style: italic;
  color: #666666;
}

/* Contact Form Section */
.page-contact__form-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1em;
  color: #333333;
  background: #f9f9f9;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

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

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

/* Live Chat Section */
.page-contact__live-chat-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-contact__feature-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-contact__feature-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 10px;
}

.page-contact__feature-text {
  font-size: 1em;
  color: #555555;
}

.page-contact__cta-wrapper {
  text-align: center;
  margin-top: 50px;
}

/* FAQ Section */
.page-contact__faq-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-contact__faq-item.active .page-contact__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: #017439;
}

.page-contact__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-contact__faq-question:active {
  background: #eeeeee;
}

.page-contact__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
  pointer-events: none;
}

.page-contact__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  color: #017439;
  transform: rotate(180deg);
}

.page-contact__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.3s ease;
  padding: 0 25px;
  opacity: 0;
  background: #f9f9f9;
  color: #555555;
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 2000px !important; /* Sufficiently large */
  padding: 20px 25px !important;
  opacity: 1;
  border-radius: 0 0 12px 12px;
  border: 1px solid #e0e0e0;
  border-top: none;
}

/* Location Section */
.page-contact__location-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-contact__address-details {
  max-width: 800px;
  margin: 40px auto 0 auto;
  padding: 40px;
}

.page-contact__address-details img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  margin-bottom: 30px;
  border-radius: 8px;
}

.page-contact__address-title {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
}

.page-contact__address-text {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 10px;
}

/* Conclusion Section */
.page-contact__conclusion-section {
  padding-top: 80px;
  padding-bottom: 80px;
  text-align: center;
}

.page-contact__conclusion-section .page-contact__section-description {
  color: #f0f0f0;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__main-heading {
    font-size: 2.8em;
  }
  .page-contact__section-title {
    font-size: 2em;
  }
  .page-contact__contact-details,
  .page-contact__service-features {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-contact__main-heading {
    font-size: 2em;
  }
  .page-contact__intro-text {
    font-size: 1em;
  }
  .page-contact__section-title {
    font-size: 1.8em;
  }
  .page-contact__section-description {
    font-size: 0.95em;
  }
  .page-contact__container {
    padding: 60px 15px;
  }
  .page-contact__contact-details,
  .page-contact__service-features {
    grid-template-columns: 1fr;
  }
  .page-contact__cta-button,
  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact a[class*="button"],
  .page-contact a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-contact__cta-wrapper,
  .page-contact__contact-form {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-contact__submit-button {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-contact__section,
  .page-contact__card,
  .page-contact__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-contact__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-contact__faq-question h3 {
    font-size: 1em;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-contact__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-contact__faq-answer {
    padding: 0 15px;
  }
  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 15px !important;
  }
  .page-contact__contact-form {
    padding: 25px;
  }
  .page-contact__detail-item img,
  .page-contact__feature-item img {
    height: 200px; /* Adjust height for mobile */
  }
  .page-contact__address-details img {
    height: 250px;
  }
  .page-contact__address-details {
    padding: 25px;
  }
}

@media (max-width: 480px) {
  .page-contact__main-heading {
    font-size: 1.8em;
  }
  .page-contact__section-title {
    font-size: 1.6em;
  }
  .page-contact__cta-button,
  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact__submit-button {
    font-size: 16px;
    padding: 12px 25px;
  }
}