/* style/contact.css */

/* Base styles for the page, ensuring light text on dark body background */
.page-contact {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-contact__section {
  padding: 60px 0;
  text-align: center;
}

.page-contact__section-title {
  color: #26A9E0; /* Brand color for titles */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-contact__section-description {
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0; /* Slightly lighter white for descriptions */
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above, content below */
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 30px;
}

.page-contact__hero-image {
  width: 100%;
  height: auto; /* Maintain aspect ratio */
  display: block;
  object-fit: cover;
}

.page-contact__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
}

.page-contact__main-title {
  color: #ffffff;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.page-contact__description {
  color: #f0f0f0;
  margin-bottom: 30px;
  font-size: 1.1em;
}

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

.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__btn-link {
  display: inline-block;
  padding: 12px 25px;
  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; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
}

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

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

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

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

.page-contact__btn-link {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
  padding: 8px 15px;
  font-size: 0.9em;
}

.page-contact__btn-link:hover {
  background-color: #1f8ec4;
  border-color: #1f8ec4;
}

/* Contact Methods Section */
.page-contact__contact-methods {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
}

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

.page-contact__method-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%; /* Ensure cards have equal height */
  box-sizing: border-box;
}

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

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

.page-contact__method-text {
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1; /* Push button to bottom */
}

/* FAQ Section */
.page-contact__faq-section {
  background-color: #0a0a0a; /* Same as body for seamless look */
  text-align: left;
}

.page-contact__faq-section .page-contact__section-description {
  text-align: center;
}

.page-contact__faq-list {
  margin-top: 40px;
}

.page-contact__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: #ffffff;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #ffffff;
  list-style: none; /* For details/summary */
}

.page-contact__faq-question::-webkit-details-marker {
  display: none;
}

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

.page-contact__faq-answer {
  padding: 0 20px 20px 20px;
  color: #f0f0f0;
  font-size: 0.95em;
}

/* CTA Section */
.page-contact__cta-section {
  background-color: #26A9E0; /* Brand primary color for CTA */
  color: #ffffff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

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

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

.page-contact__cta-section .page-contact__description {
  color: #ffffff;
  margin-bottom: 40px;
}

.page-contact__cta-image {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 500px; /* Example size */
  height: auto;
  opacity: 0.2; /* Subtle background image */
  z-index: 0;
  display: block;
  object-fit: cover;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-contact__hero-image-wrapper {
    max-height: 400px;
  }

  .page-contact__cta-image {
    width: 400px;
  }
}

@media (max-width: 768px) {
  .page-contact__section {
    padding: 40px 0;
  }

  .page-contact__hero-image-wrapper {
    max-height: 300px;
  }

  .page-contact__main-title {
    font-size: 2em; /* Adjust for mobile, but avoid fixed large values */
  }

  .page-contact__description {
    font-size: 1em;
  }

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

  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact__btn-link {
    width: 100% !important; /* Force full width for buttons */
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Image responsive rules */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Container responsive rules */
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__cta-buttons,
  .page-contact__methods-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-contact__hero-section {
    padding-top: 10px !important;
  }

  .page-contact__cta-image {
    position: static;
    width: 100%;
    max-width: 300px;
    margin-top: 30px;
    opacity: 0.1;
  }
  .page-contact__method-icon {
    max-width: 150px; /* Smaller max-width for mobile icons in cards */
  }
}

@media (max-width: 480px) {
  .page-contact__main-title {
    font-size: 1.8em;
  }
  .page-contact__method-card {
    padding: 20px;
  }
  .page-contact__faq-question {
    font-size: 1em;
    padding: 15px;
  }
  .page-contact__faq-answer {
    padding: 0 15px 15px 15px;
  }
}