/* style/contact.css */

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #017439; /* Primary brand color for dark section */
  color: #FFFFFF; /* White text for dark background */
  text-align: center;
  overflow: hidden; /* Ensure content doesn't spill */
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Limit image width */
  margin-bottom: 30px; /* Space between image and text */
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__hero-content {
  max-width: 900px;
  width: 100%;
}

.page-contact__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #FFFFFF;
}

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

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

/* General button styles */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Crucial for responsive buttons */
  max-width: 100%; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-contact__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #C30808;
}

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

.page-contact__btn-secondary {
  background-color: #FFFFFF;
  color: #017439; /* Primary brand color */
  border: 2px solid #017439;
}

.page-contact__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2d;
  border-color: #005a2d;
}

/* Container for main content sections */
.page-contact__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section titles and descriptions */
.page-contact__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #017439; /* Primary brand color */
}

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

/* Contact Methods Section */
.page-contact__methods-section {
  padding: 80px 0;
  background-color: #FFFFFF; /* Light background */
}

.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: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333; /* Dark text for light background */
}

.page-contact__method-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-contact__method-icon {
  width: 100%;
  max-width: 150px; /* Make sure icon is not too large, but min 200px rule applies for source image */
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__method-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #017439;
}

.page-contact__method-text {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #666666;
}

.page-contact__method-link {
  display: inline-block;
  color: #C30808; /* Link color matching primary button */
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid #C30808;
  padding-bottom: 3px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-contact__method-link:hover {
  color: #a00606;
  border-color: #a00606;
}

.page-contact__commitment-text {
  font-size: 1rem;
  text-align: center;
  margin-top: 60px;
  color: #666666;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Contact Form Section */
.page-contact__form-section {
  padding: 80px 0;
  background-color: #017439; /* Dark background */
  color: #FFFFFF; /* White text */
}

.page-contact__form-section .page-contact__section-title {
  color: #FFFFFF;
}

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

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white background */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-contact__form-group {
  margin-bottom: 25px;
}

.page-contact__form-label {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: 600;
  color: #FFFFFF;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #C30808; /* Highlight focus with accent color */
  background-color: rgba(255, 255, 255, 0.1);
  outline: none;
}

.page-contact__form-textarea {
  resize: vertical;
  min-height: 120px;
}

.page-contact__form-submit-btn {
  width: 100%;
  margin-top: 20px;
  padding: 18px;
  font-size: 1.2rem;
}

.page-contact__form-note {
  font-size: 0.95rem;
  text-align: center;
  margin-top: 40px;
  color: #f0f0f0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 80px 0;
  background-color: #FFFFFF; /* Light background */
}

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

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

.page-contact__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
}

.page-contact__faq-item {
  background-color: #f9f9f9;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  color: #333333; /* Dark text for light background */
}

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

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  background-color: #e8f5e9; /* Lighter shade of primary */
  color: #017439;
  border-bottom: 1px solid #d4edda;
  transition: background-color 0.3s ease;
}

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

.page-contact__faq-item.active .page-contact__faq-question {
  border-bottom: 1px solid transparent; /* No border when active */
}

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

.page-contact__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: #017439;
}

.page-contact__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: #555555;
  max-height: 0; /* Hidden by default */
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding-top 0.3s ease-out;
}

.page-contact__faq-item[open] .page-contact__faq-answer,
.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 2000px; /* Sufficiently large to show content */
  padding-top: 15px;
}

.page-contact__faq-cta-text {
  text-align: center;
  margin-top: 50px;
  font-size: 1.1rem;
  color: #555555;
}

.page-contact__text-link {
  color: #C30808;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid #C30808;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-contact__text-link:hover {
  color: #a00606;
  border-color: #a00606;
}

/* CTA Banner Section */
.page-contact__cta-banner {
  padding: 80px 20px;
  background-color: #017439; /* Dark background */
  color: #FFFFFF; /* White text */
  text-align: center;
}

.page-contact__cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-contact__cta-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-contact__cta-text-wrapper {
  max-width: 700px;
}

.page-contact__cta-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-contact__cta-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* General card styles for contrast */
.page-contact__card {
  background: #f9f9f9; /* Light background for cards */
  color: #333333; /* Dark text for cards */
  border: 1px solid #e0e0e0;
}

/* Dark background sections for contrast */
.page-contact__dark-section {
  background: #017439;
  color: #FFFFFF;
}

/* Light background sections for contrast */
.page-contact__light-bg {
  background: #FFFFFF;
  color: #333333;
}


/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-contact__hero-section {
    padding: 40px 15px;
    padding-top: 10px;
  }

  .page-contact__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

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

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

  .page-contact__methods-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .page-contact__contact-form {
    padding: 30px;
  }

  .page-contact__faq-question {
    font-size: 1.1rem;
    padding: 18px 20px;
  }

  .page-contact__faq-answer {
    padding: 0 20px 18px 20px;
  }
}

@media (max-width: 768px) {
  /* Ensure main content containers are responsive */
  .page-contact__container,
  .page-contact__hero-content,
  .page-contact__contact-form,
  .page-contact__faq-list,
  .page-contact__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-contact__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important; /* body handles --header-offset, this is decorative */
  }

  .page-contact__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-contact__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem); /* Smaller H1 for mobile */
    margin-bottom: 10px;
  }

  .page-contact__description {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .page-contact__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

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

  .page-contact__methods-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__cta-banner {
    padding: 40px 0;
  }

  .page-contact__section-title {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
    margin-bottom: 15px;
  }

  .page-contact__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-contact__methods-grid {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }

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

  .page-contact__method-title {
    font-size: 1.3rem;
  }

  .page-contact__contact-form {
    padding: 25px;
  }

  .page-contact__form-label {
    font-size: 1rem;
  }

  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 12px;
    font-size: 0.95rem;
  }

  .page-contact__form-submit-btn {
    padding: 15px;
    font-size: 1.1rem;
  }

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

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

  .page-contact__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.9rem;
  }

  .page-contact__faq-toggle {
    font-size: 1.5rem;
  }

  .page-contact__cta-content {
    gap: 30px;
  }

  .page-contact__cta-title {
    font-size: clamp(1.8rem, 6.5vw, 2.5rem);
  }

  .page-contact__cta-description {
    font-size: 1rem;
  }

  /* Images responsive on mobile */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Content area images minimum size check */
  /* This rule explicitly prevents smaller sizes for content images */
  .page-contact__methods-section img,
  .page-contact__cta-banner img {
    min-width: 200px !important;
    min-height: 200px !important;
  }
  
  /* Video responsive on mobile - (Not used in this page, but as per general instruction) */
  .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 !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }
  .page-contact__video-section {
    padding-top: 10px !important;
  }
}

/* Contrast Fixes - Ensure text is always readable */
.page-contact__dark-bg {
  color: #FFFFFF;
}

.page-contact__light-bg {
  color: #333333;
}

/* Ensure all links within content areas have sufficient contrast */
.page-contact a {
  color: #017439; /* Default link color, may be overridden by specific classes */
}
.page-contact a:hover {
  color: #005a2d;
}
.page-contact__dark-section a {
  color: #FFFF00; /* Yellow for links on dark background, matching custom font color */
}
.page-contact__dark-section a:hover {
  color: #FFFFFF;
}