/* style/contact.css */

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

/* Fixed header spacing for desktop */
.page-contact__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  position: relative;
  overflow: hidden;
  background-color: #1a1a1a; /* Dark background for hero section */
  color: #ffffff;
}

.page-contact__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.page-contact__main-title {
  font-size: 3.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for main title */
  text-shadow: 0 0 10px rgba(38, 169, 224, 0.5);
}

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

.page-contact__hero-image-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-contact__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Sections */
.page-contact__methods-section,
.page-contact__faq-section,
.page-contact__cta-section {
  padding: 80px 0;
  background-color: #121212; /* Dark background for sections */
  color: #ffffff;
}

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

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

/* Contact Methods Grid */
.page-contact__methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.page-contact__method-card {
  background: #ffffff; /* Light background for cards */
  color: #333333; /* Dark text for light background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-contact__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #26A9E0; /* Brand color for card titles */
}

.page-contact__card-text {
  font-size: 1em;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  max-width: 100%;
  box-sizing: border-box;
}

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

.page-contact__btn-primary:hover {
  background: #1e87b8;
  border-color: #1e87b8;
  transform: translateY(-2px);
}

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

.page-contact__btn-secondary:hover {
  background: #f0f0f0;
  color: #1e87b8;
  border-color: #1e87b8;
  transform: translateY(-2px);
}

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

.page-contact__social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #26A9E0;
  color: #ffffff; /* Explicitly set for contrast */
  border-radius: 50%;
  font-size: 0.9em; /* Smaller font for short text like 'FB' */
  text-decoration: none;
  transition: background 0.3s ease;
}

.page-contact__social-icon:hover {
  background: #1e87b8;
}

.page-contact__methods-image-wrapper,
.page-contact__faq-image-wrapper {
  text-align: center;
  margin-top: 60px;
}

.page-contact__methods-image,
.page-contact__faq-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-contact__faq-item {
  background: rgba(255, 255, 255, 0.08); /* Slightly lighter background for FAQ items on dark section */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff; /* Light text on dark background */
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05); /* Slightly darker for question header */
  transition: background 0.3s ease;
}

.page-contact__faq-question:hover {
  background: rgba(255, 255, 255, 0.1);
}

.page-contact__faq-title {
  font-size: 1.2em;
  font-weight: bold;
  margin: 0;
  color: #26A9E0; /* Brand color for FAQ titles */
}

.page-contact__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #26A9E0;
  transition: transform 0.3s ease; /* Keep transition for smooth visual change if I decide to rotate */
  display: inline-block; /* Essential for transform to work */
  width: 1em; /* Give it a fixed width to prevent layout shift */
  text-align: center;
}

.page-contact__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: rgba(255, 255, 255, 0.03); /* Lighter background for answer */
  color: #f0f0f0;
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 25px;
}

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

/* CTA Section */
.page-contact__cta-section {
  background: linear-gradient(135deg, #26A9E0, #1e87b8); /* Gradient background for CTA */
  padding: 100px 0;
  text-align: center;
}

.page-contact__cta-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-contact__cta-button {
  margin-top: 40px;
  font-size: 1.2em;
  padding: 15px 40px;
  border-radius: 50px;
  background: #ffffff;
  color: #26A9E0;
  border: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-contact__cta-button:hover {
  background: #f0f0f0;
  color: #1e87b8;
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

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

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-contact__container {
    padding: 0 15px;
  }

  .page-contact__main-title {
    font-size: 2.5em;
  }

  .page-contact__intro-text {
    font-size: 1em;
  }

  .page-contact__section-title {
    font-size: 1.8em;
  }

  .page-contact__section-description {
    font-size: 0.95em;
    margin-bottom: 40px;
  }

  .page-contact__methods-section,
  .page-contact__faq-section,
  .page-contact__cta-section {
    padding: 60px 0;
  }

  .page-contact__methods-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-contact__method-card {
    padding: 25px;
  }

  .page-contact__card-title {
    font-size: 1.3em;
  }

  .page-contact__faq-question {
    padding: 15px 20px;
  }

  .page-contact__faq-title {
    font-size: 1.1em;
  }

  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 10px 20px;
  }

  /* Image responsiveness */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-contact__hero-image-wrapper,
  .page-contact__methods-image-wrapper,
  .page-contact__faq-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Button responsiveness */
  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact__cta-button {
    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__social-links {
    flex-direction: row; /* Keep social icons inline if they fit, otherwise wrap */
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .page-contact__cta-button {
    font-size: 1.1em;
    padding: 12px 30px;
  }
}

/* Ensure content area images are not less than 200px on desktop */
.page-contact__hero-image,
.page-contact__methods-image,
.page-contact__faq-image {
  min-width: 200px;
  min-height: 200px;
}

/* No CSS filters allowed */
.page-contact img {
  filter: none !important;
}

/* Color contrast enforcement - explicit overrides */
.page-contact__light-bg {
  background: #ffffff;
  color: #333333;
}

.page-contact__dark-bg {
  background: #121212; /* Default dark body background */
  color: #ffffff;
}