/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background, #FFFFFF); /* Inherit from shared or default to white */
}

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Increased height for better visual impact */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-contact__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  /* No filter property for color change */
}

.page-contact__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

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

.page-contact__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff; /* Ensure high contrast */
}

.page-contact__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-primary {
  background-color: #017439; /* Brand color */
  color: #ffffff;
  border: 2px solid #017439;
}

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

.page-contact__btn-secondary {
  background-color: #ffffff;
  color: #017439; /* Brand color */
  border: 2px solid #017439;
  margin-left: 15px; /* Spacing for multiple buttons */
}

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

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

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

/* Contact Methods Section */
.page-contact__methods-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background for contrast */
  color: #333333;
}

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

.page-contact__method-card {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 350px; /* Ensure consistent card height */
}

.page-contact__method-icon {
  width: 100%; /* Ensure image fills card width */
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 5px;
  /* No filter property for color change */
}

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

.page-contact__method-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1; /* Allows text to take up available space */
}

.page-contact__contact-info {
  font-size: 1.1em;
  font-weight: bold;
  color: #333333;
  margin-bottom: 15px;
}

.page-contact__email-link,
.page-contact__phone-link {
  color: #017439;
  text-decoration: none;
  font-weight: normal;
}

.page-contact__email-link:hover,
.page-contact__phone-link:hover {
  text-decoration: underline;
}

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

.page-contact__social-list li a {
  color: #017439;
  text-decoration: none;
  margin-bottom: 5px;
  display: block;
}

.page-contact__social-list li a:hover {
  text-decoration: underline;
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 80px 0;
  background-color: #017439; /* Dark brand background */
  color: #ffffff;
}

.page-contact__faq-section .page-contact__section-title {
  color: #ffffff; /* White title on dark background */
}

.page-contact__faq-section .page-contact__section-description {
  color: #f0f0f0; /* Light gray description on dark background */
}

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

.page-contact__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-contact__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  outline: none;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  list-style: none; /* Remove default marker */
}

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

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

.page-contact__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' or similar for open state */
}

.page-contact__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  color: #f0f0f0;
  max-height: 0; /* Hidden by default for JS fallback */
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.page-contact__faq-item[open] .page-contact__faq-answer {
  max-height: 500px; /* Adjust as needed for content, or remove if only relying on <details> native */
  transition: max-height 0.5s ease-in;
}

.page-contact__faq-answer p {
  margin-top: 10px;
  margin-bottom: 0;
  color: #f0f0f0;
}

.page-contact__faq-answer a {
  color: #FFFF00; /* Yellow for links on dark background */
  text-decoration: underline;
}

.page-contact__faq-answer a:hover {
  color: #ffcc00;
}

/* Why Contact Us Section */
.page-contact__why-contact-section {
  padding: 80px 0;
  background-color: #f5f5f5; /* Light gray background */
  color: #333333;
}

.page-contact__benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-contact__benefit-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

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

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

/* Call to Action Section */
.page-contact__cta-section {
  padding: 80px 0;
  background-color: #017439; /* Dark brand background */
  color: #ffffff;
  text-align: center;
}

.page-contact__cta-section .page-contact__section-title {
  color: #ffffff;
}

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

.page-contact__cta-section .page-contact__section-description a {
  color: #FFFF00; /* Yellow for links on dark background */
  text-decoration: underline;
}

.page-contact__cta-section .page-contact__section-description a:hover {
  color: #ffcc00;
}

.page-contact__cta-buttons {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

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

@media (max-width: 768px) {
  .page-contact__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }
  .page-contact__hero-title {
    font-size: 2em;
  }
  .page-contact__hero-description {
    font-size: 1em;
  }
  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    padding: 12px 25px;
    font-size: 0.9em;
    width: 100%; /* Full width buttons */
    margin-left: 0;
  }
  .page-contact__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }
  .page-contact__section-title {
    font-size: 1.8em;
  }
  .page-contact__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-contact__methods-section,
  .page-contact__faq-section,
  .page-contact__why-contact-section,
  .page-contact__cta-section {
    padding: 60px 0;
  }
  .page-contact__method-card {
    min-height: auto; /* Allow height to adjust */
  }
  .page-contact__faq-item summary {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-contact__faq-answer {
    padding: 0 15px 15px 15px;
  }
  .page-contact__container {
    padding: 0 15px; /* Add padding for mobile content */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Mobile image responsiveness */
  .page-contact img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* Mobile video responsiveness (if any, though not in this specific page) */
  .page-contact video,
  .page-contact__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-contact__video-section,
  .page-contact__video-container,
  .page-contact__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  /* Mobile button responsiveness */
  .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-buttons,
  .page-contact__button-group,
  .page-contact__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-contact__hero-section {
    height: 400px;
  }
  .page-contact__hero-title {
    font-size: 1.8em;
  }
  .page-contact__section-title {
    font-size: 1.5em;
  }
}

/* Color contrast enforcement based on body background */
/* Assuming --background is white, so default text is dark.
   For dark sections, ensure white text. */
.page-contact__dark-bg {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}
.page-contact__dark-bg .page-contact__section-title,
.page-contact__dark-bg .page-contact__section-description {
  color: #ffffff;
}

.page-contact__light-bg {
  background-color: #ffffff; /* Auxiliary color / default light background */
  color: #333333;
}
.page-contact__light-bg .page-contact__section-title {
  color: #017439;
}
.page-contact__light-bg .page-contact__section-description {
  color: #555555;
}
/* Specific button colors for register/login */
.page-contact__btn-register {
  background-color: #C30808; /* Custom red for register */
  color: #FFFF00; /* Custom yellow for register font */
  border: 2px solid #C30808;
}
.page-contact__btn-register:hover {
  background-color: #9c0606;
  border-color: #9c0606;
}
.page-contact__btn-login {
  background-color: #C30808; /* Custom red for login */
  color: #FFFF00; /* Custom yellow for login font */
  border: 2px solid #C30808;
}
.page-contact__btn-login:hover {
  background-color: #9c0606;
  border-color: #9c0606;
}