/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css (#111) */
}

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  text-align: center;
  overflow: hidden; /* Prevent image overflow */
}

.page-contact__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-contact__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  color: #ffffff;
}

.page-contact__main-heading {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFF00; /* Use custom color for main heading */
  line-height: 1.2;
}

.page-contact__sub-heading {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

/* Section Titles and Descriptions */
.page-contact__section-title {
  font-size: 2.5em;
  color: #FFFF00; /* Use custom color for section titles */
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-contact__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

/* Buttons */
.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-contact__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #C30808;
}

.page-contact__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-contact__btn-secondary {
  background-color: transparent;
  color: #017439; /* Use brand main color for text */
  border: 2px solid #017439;
}

.page-contact__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

/* Cards */
.page-contact__contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  padding-bottom: 60px;
}

.page-contact__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-contact__card-icon {
  width: 100%; /* Ensure image fills card width */
  max-width: 200px; /* Max width for icon-like images */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-contact__card-title {
  font-size: 1.5em;
  color: #FFFF00; /* Custom color for card titles */
  margin-bottom: 15px;
}

.page-contact__card-text {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow text to take available space */
}

.page-contact__card-email,
.page-contact__card-phone {
  font-size: 1.1em;
  font-weight: bold;
  color: #017439; /* Use brand main color for contact info */
  margin-bottom: 20px;
}

.page-contact__card-button {
  margin-top: auto; /* Push button to the bottom */
  width: 100%;
}

.page-contact__social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-contact__social-icon {
  display: inline-block;
  padding: 10px 15px;
  background-color: #017439; /* Brand color for social icons */
  color: #ffffff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-contact__social-icon:hover {
  background-color: #005f2e;
}

/* Contact Form Section */
.page-contact__form-section {
  padding: 80px 20px;
  background-color: rgba(0, 0, 0, 0.3); /* Slightly lighter dark background for contrast */
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.05); /* Very light transparent white */
  padding: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #017439; /* Brand color border */
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: #FFFF00; /* Highlight with custom font color on focus */
  box-shadow: 0 0 0 3px rgba(255, 255, 0, 0.3);
}

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

.page-contact__form-submit {
  width: auto; /* Allow button to size naturally */
  padding: 15px 40px;
  margin-top: 20px;
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 80px 20px;
  background-color: rgba(0, 0, 0, 0.5); /* Darker background for contrast */
}

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

.page-contact__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter card for FAQ */
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-contact__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px 25px;
  font-weight: bold;
  font-size: 1.2em;
  color: #FFFF00; /* Custom color for FAQ questions */
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.page-contact__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-contact__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-contact__faq-qtext {
  flex-grow: 1;
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-contact__faq-answer {
  padding: 0 25px 20px 25px;
  color: #f0f0f0;
  font-size: 1em;
  line-height: 1.7;
}

.page-contact__faq-answer p {
  margin-bottom: 10px;
}

.page-contact__faq-answer a {
  color: #017439; /* Brand color for links in answers */
  text-decoration: underline;
}

.page-contact__faq-answer a:hover {
  color: #FFFF00; /* Custom font color on hover */
}

/* Commitment Section */
.page-contact__commitment-section {
  padding: 80px 20px;
  background-color: rgba(0, 0, 0, 0.3);
}

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

.page-contact__commitment-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-contact__commitment-icon {
  width: 100%; /* Ensure image fills item width */
  max-width: 150px; /* Max width for icon-like images */
  height: auto;
  margin-bottom: 20px;
  border-radius: 50%; /* Make commitment icons circular */
  object-fit: cover;
}

.page-contact__commitment-title {
  font-size: 1.5em;
  color: #FFFF00;
  margin-bottom: 15px;
}

.page-contact__commitment-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* Why Contact Section */
.page-contact__why-contact-section {
  padding: 80px 20px;
  background-color: rgba(0, 0, 0, 0.5); /* Darker background */
}

.page-contact__reason-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto;
}

.page-contact__reason-item {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-contact__reason-title {
  font-size: 1.3em;
  color: #017439; /* Brand color for reason titles */
  margin-bottom: 10px;
}

.page-contact__reason-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-contact__reason-text a {
  color: #FFFF00; /* Custom font color for links in reasons */
  text-decoration: underline;
}

.page-contact__reason-text a:hover {
  color: #017439;
}

/* Final CTA Section */
.page-contact__final-cta-section {
  padding: 80px 20px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.3);
}

/* Generic dark section for background consistency */
.page-contact__dark-section {
  background-color: rgba(0, 0, 0, 0.5); /* A consistent dark background for certain sections */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-contact__main-heading {
    font-size: 2.8em;
  }
  .page-contact__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-contact__main-heading {
    font-size: 2.2em;
  }
  .page-contact__sub-heading {
    font-size: 1em;
  }
  .page-contact__section-title {
    font-size: 1.8em;
  }
  .page-contact__section-description {
    font-size: 0.95em;
  }

  .page-contact__hero-section {
    min-height: 450px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .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__contact-cards,
  .page-contact__commitment-points {
    grid-template-columns: 1fr;
  }

  .page-contact__card,
  .page-contact__commitment-item,
  .page-contact__faq-item,
  .page-contact__reason-item,
  .page-contact__contact-form {
    padding: 20px;
  }

  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px;
  }

  /* Mobile image responsiveness */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Mobile container responsiveness */
  .page-contact__hero-section,
  .page-contact__info-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__commitment-section,
  .page-contact__why-contact-section,
  .page-contact__final-cta-section,
  .page-contact__container,
  .page-contact__card,
  .page-contact__commitment-item,
  .page-contact__faq-item,
  .page-contact__reason-item,
  .page-contact__contact-form {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  .page-contact__hero-section {
      padding-left: 0 !important; /* Hero image often needs to span full width */
      padding-right: 0 !important;
  }
  .page-contact__hero-content {
      padding-left: 15px !important;
      padding-right: 15px !important;
  }
}

/* Ensure contrast for links within dark sections */
.page-contact__dark-section a {
  color: #FFFF00; /* Custom font color for links in dark sections */
  text-decoration: underline;
}

.page-contact__dark-section a:hover {
  color: #ffffff;
}