/* style/contact.css */

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

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensures 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;
  opacity: 0.2; /* Slightly dim the background image for readability */
}

.page-contact__hero-title {
  font-size: 3.2em;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-contact__hero-description {
  font-size: 1.1em;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-contact__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  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;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-primary {
  background-color: #C30808; /* Login/Register color */
  color: #FFFF00; /* Login/Register font color */
  border: 2px solid #C30808;
}

.page-contact__btn-primary:hover {
  background-color: #e02a2a;
  color: #ffffff;
}

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

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

/* Section common styles */
.page-contact__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
}

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

/* Dark background sections (e.g., methods, support process, FAQ) */
.page-contact__dark-section {
  background-color: #1a1a1a; /* Slightly lighter than body for contrast */
  color: #ffffff;
  padding: 80px 0;
}

.page-contact__dark-section .page-contact__section-title {
  color: #ffffff;
}
.page-contact__dark-section .page-contact__section-description {
  color: #f0f0f0;
}

/* Light background sections (e.g., when-to-contact, commitment) */
.page-contact__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 80px 0;
}

.page-contact__light-bg .page-contact__section-title {
  color: #017439;
}
.page-contact__light-bg .page-contact__section-description {
  color: #555555;
}
.page-contact__light-bg p,
.page-contact__light-bg li,
.page-contact__light-bg a {
  color: #333333;
}
.page-contact__light-bg .page-contact__link {
    color: #017439;
    text-decoration: underline;
}
.page-contact__light-bg .page-contact__link:hover {
    color: #005a2e;
}


/* Contact Methods Section */
.page-contact__methods-section {
  text-align: center;
}

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

.page-contact__method-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact__method-card:hover {
  transform: translateY(-10px);
}

.page-contact__method-image {
  width: 100%; /* Ensure images take full width of card */
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

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

.page-contact__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-contact__contact-info {
  font-size: 1.1em;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-contact__contact-info .page-contact__link {
  color: #FFFF00;
  text-decoration: none;
}

.page-contact__contact-info .page-contact__link:hover {
  text-decoration: underline;
}

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

.page-contact__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #017439;
  color: #ffffff;
  font-size: 1.2em;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.page-contact__social-icon:hover {
  background-color: #005a2e;
}

.page-contact__additional-info {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}
.page-contact__additional-info .page-contact__method-title {
    text-align: center;
    margin-top: 30px;
}
.page-contact__additional-info .page-contact__contact-info,
.page-contact__additional-info .page-contact__method-text {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}


/* When to Contact Section */
.page-contact__when-to-contact {
  text-align: center;
}

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

.page-contact__issue-card {
  background-color: #f8f8f8;
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-contact__issue-text {
  font-size: 0.95em;
  color: #555555;
}

/* Support Process Section */
.page-contact__support-process {
  text-align: center;
}

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

.page-contact__step-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #017439;
  color: #ffffff;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
}

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

.page-contact__step-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-contact__cta-bottom {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-contact__cta-text {
    font-size: 1.2em;
    color: #ffffff;
    margin-bottom: 25px;
}

/* Commitment Section */
.page-contact__commitment-section {
  text-align: center;
}

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

.page-contact__commitment-item {
  background-color: #f8f8f8;
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

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

.page-contact__commitment-text {
  font-size: 0.95em;
  color: #555555;
}

/* FAQ Section */
.page-contact__faq-section {
  text-align: center;
}

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

.page-contact__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: bold;
  color: #ffffff;
  background-color: #017439;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none; /* For details/summary */
}
.page-contact__faq-question::-webkit-details-marker {
  display: none; /* For details/summary */
}

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

.page-contact__faq-item[open] .page-contact__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

.page-contact__faq-answer {
  padding: 15px 25px;
  font-size: 1em;
  color: #f0f0f0;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-contact__faq-answer p {
  margin: 0;
}

/* Links within content */
.page-contact__link {
  color: #FFFF00;
  text-decoration: underline;
}

.page-contact__link:hover {
  text-decoration: none;
}

/* 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 {
    padding: 60px 20px;
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }

  .page-contact__hero-title {
    font-size: 2.2em;
  }

  .page-contact__hero-description {
    font-size: 1em;
  }

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

  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-contact__dark-section,
  .page-contact__light-bg {
    padding: 60px 0;
  }

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

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

  .page-contact__method-grid,
  .page-contact__issue-grid,
  .page-contact__process-steps,
  .page-contact__commitment-list {
    grid-template-columns: 1fr;
  }

  .page-contact__method-card,
  .page-contact__issue-card,
  .page-contact__step-item,
  .page-contact__commitment-item {
    padding: 20px;
  }

  .page-contact__method-image {
    height: auto; /* Allow height to adjust naturally on mobile */
  }

  /* Ensure all images are responsive on mobile */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/videos */
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__method-card,
  .page-contact__issue-card,
  .page-contact__step-item,
  .page-contact__commitment-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Video specific mobile responsive */
  .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;
  }

  /* Button specific mobile responsive */
  .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;
  }
  .page-contact__cta-buttons {
    flex-direction: column;
  }

  .page-contact__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-contact__faq-answer {
    padding: 10px 20px;
    font-size: 0.95em;
  }
}

/* Text colors for different backgrounds */
.page-contact__dark-bg .page-contact__text-block,
.page-contact__dark-section .page-contact__text-block {
  color: #ffffff; /* Deep dark background, use white text */
}

.page-contact__light-bg .page-contact__text-block {
  color: #333333; /* Light background, use dark text */
}

/* Specific contrast adjustments if needed (e.g., brand color on dark bg) */
.page-contact__btn-primary {
  background: #C30808; /* Register/Login red */
  color: #FFFF00; /* Yellow text for contrast */
}

.page-contact__btn-secondary {
  background: transparent;
  color: #ffffff; /* White text on dark section */
  border: 2px solid #017439; /* Brand green border */
}

/* Ensure links in dark sections have good contrast */
.page-contact__dark-section .page-contact__link {
    color: #FFFF00; /* Yellow for links on dark background */
    text-decoration: underline;
}
.page-contact__dark-section .page-contact__link:hover {
    color: #ffffff;
}