/* style/contact.css */

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  overflow: hidden;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px);
  text-align: center;
  color: #ffffff; /* Text color for dark background */
  background-color: #26A9E0; /* Brand primary color for hero background */
}

.page-contact__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3;
}

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
}

.page-contact__main-title {
  font-size: 3em;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

/* Buttons */
.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;
  cursor: pointer;
  margin: 10px;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  box-sizing: border-box; /* Include padding in width */
  text-align: center;
}

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

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

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

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

/* General Container & Sections */
.page-contact__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.page-contact__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand primary color */
}

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

/* Light Background Sections */
.page-contact__light-bg {
  background-color: #FFFFFF;
  color: #333333;
  padding: 60px 0;
}

/* Dark Background Sections */
.page-contact__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 60px 0;
}

.page-contact__dark-bg .page-contact__section-title,
.page-contact__dark-bg .page-contact__section-description {
  color: #ffffff;
}

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

.page-contact__card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  color: #333333; /* Default text color for light card background */
}

.page-contact__card:hover {
  transform: translateY(-5px);
}

.page-contact__card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #26A9E0; /* Brand primary color */
}

.page-contact__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure image behaves as a block element */
  margin-left: auto;
  margin-right: auto;
}

.page-contact__card-text {
  font-size: 1em;
  margin-bottom: 15px;
  line-height: 1.6;
}

.page-contact__card-text strong {
    color: #000000; /* Ensure strong text is visible */
}

.page-contact__card a {
  color: #26A9E0;
  text-decoration: none;
}

.page-contact__card a:hover {
  text-decoration: underline;
}

/* Why Contact Section */
.page-contact__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-contact__feature-item {
  text-align: left;
  padding: 30px;
}

.page-contact__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-contact__feature-text {
  font-size: 1em;
  line-height: 1.6;
}

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

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

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  background-color: #e0f2f7; /* Lighter shade of brand color */
  border-bottom: 1px solid #d0e8ee;
}

.page-contact__faq-item[open] .page-contact__faq-question {
  border-bottom: none;
}

.page-contact__faq-question:hover {
  background-color: #d0e8ee;
}

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

.page-contact__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  background-color: #ffffff;
}

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

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

/* Call to Action Section */
.page-contact__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #f0faff; /* Very light blue */
}

.page-contact__cta-container {
  max-width: 900px;
}

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

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

@media (max-width: 768px) {
  .page-contact__hero-section {
    min-height: 400px;
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure offset is applied */
  }

  .page-contact__main-title {
    font-size: 2em;
  }
  .page-contact__hero-description {
    font-size: 1em;
  }
  .page-contact__section-title {
    font-size: 1.8em;
  }
  .page-contact__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-contact__container {
    padding: 15px;
  }

  .page-contact__contact-methods,
  .page-contact__features,
  .page-contact__legal-details {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-contact__card,
  .page-contact__feature-item {
    padding: 20px;
  }

  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    margin: 5px 0;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

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

  /* Images responsive */
  .page-contact img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-contact__card-image {
    max-width: 100% !important;
    width: auto !important; /* Allow auto width for card images to maintain aspect ratio within max-width */
    height: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .page-contact__hero-image {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Ensure containers containing images/videos/buttons are responsive */
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure no CSS filter on images */
.page-contact img {
  filter: none !important;
}

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