/* style/contact.css */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff;
  background-color: var(--neon-dark-bg, #0d0d0d);
}

/* Ensure body content has proper padding from fixed header */
.page-contact__hero-section {
  padding-top: var(--header-offset, 120px);
}

/* Hero Section */
.page-contact__hero-section {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-contact__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-contact__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: #ffffff;
}

.page-contact__intro-text {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

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

.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;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
  text-align: center;
}

.page-contact__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid transparent;
}

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

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

.page-contact__btn-secondary:hover {
  background-color: #e0e0e0;
  color: #1a7fb3;
  border-color: #1a7fb3;
}

/* Contact Methods Section */
.page-contact__contact-methods {
  padding: 60px 20px;
  text-align: center;
  background-color: #ffffff; /* Light background for this section */
  color: #333333;
}

.page-contact__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #26A9E0;
}

.page-contact__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

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

.page-contact__method-card {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-contact__method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-contact__method-icon {
  width: 100%; /* Ensure image fills card width */
  height: auto;
  max-height: 200px; /* Max height for visual consistency */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
  min-width: 200px;
  min-height: 200px;
  display: block;
}

.page-contact__method-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-contact__method-link {
  display: inline-block;
  color: #EA7C07; /* Login color for links */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-contact__method-link:hover {
  color: #c76706;
  text-decoration: underline;
}

/* FAQ Section */
.page-contact__faq-section {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
}

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

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

.page-contact__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
  color: #ffffff;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: background-color 0.3s ease;
  list-style: none;
}

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

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

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

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

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

/* For details tag, browser handles visibility, but we need to style it */
.page-contact__faq-item[open] .page-contact__faq-answer {
  max-height: 2000px; /* Sufficiently large for content */
  transition: max-height 0.5s ease-in;
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 2000px !important;
  transition: max-height 0.5s ease-in;
}

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

.page-contact__faq-link {
  display: inline-block;
  color: #EA7C07; /* Login color for links */
  text-decoration: none;
  font-weight: bold;
  margin-top: 10px;
  transition: color 0.3s ease;
}

.page-contact__faq-link:hover {
  color: #c76706;
  text-decoration: underline;
}

/* Call to Action Section */
.page-contact__cta-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #ffffff;
  color: #333333;
}

.page-contact__cta-content {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding: 60px 15px;
  }
  .page-contact__main-title {
    font-size: 2.2em;
  }
  .page-contact__intro-text {
    font-size: 1.1em;
  }
  .page-contact__section-title {
    font-size: 1.8em;
  }
  .page-contact__section-description {
    font-size: 1em;
  }
  .page-contact__methods-grid {
    grid-template-columns: 1fr;
  }
  .page-contact__method-card {
    padding: 25px;
  }
  .page-contact__method-title {
    font-size: 1.5em;
  }
  .page-contact__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-contact__faq-answer {
    font-size: 0.95em;
    padding: 15px;
  }
  .page-contact__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
  }

  /* Mobile image and video responsive adaptation */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-contact video,
  .page-contact__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__video-section,
  .page-contact__video-container,
  .page-contact__video-wrapper,
  .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;
    overflow: hidden !important;
  }

  .page-contact__hero-section { 
    padding-top: var(--header-offset, 120px) !important;
  }

  .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;
  }
  .page-contact__hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-contact__faq-list {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-contact__main-title {
    font-size: 1.8em;
  }
  .page-contact__intro-text {
    font-size: 1em;
  }
  .page-contact__section-title {
    font-size: 1.5em;
  }
  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    padding: 10px 15px;
    font-size: 0.9em;
  }
}

/* Ensure color contrast for dark background areas */
.page-contact__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Ensure color contrast for light background areas */
.page-contact__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Card color contrast */
.page-contact__card {
  background-color: #f8f8f8; /* Light background by default for clarity */
  color: #333333;
  border: 1px solid #e0e0e0;
}

/* Card in dark section */
.page-contact__faq-section .page-contact__card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}