/* style/contact.css */

/* Base styles for the contact page, assuming body has a dark background like #08160F */
.page-contact {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Main text color for dark background */
  background-color: var(--bg-color, #08160F); /* Ensure consistency with body background */
}

/* Section styling */
.page-contact__section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-contact__section-title {
  font-size: 2.5em;
  color: var(--text-main, #F2FFF6);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-contact__text-block {
  font-size: 1.1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 20px;
  text-align: justify;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: var(--bg-color, #08160F);
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-width: 1920px;
  margin-bottom: 30px;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

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

.page-contact__main-title {
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
  line-height: 1.2;
  /* Using clamp for responsive font size, but not too large for H1 */
  font-size: clamp(2em, 4vw, 2.8em); 
}

.page-contact__hero-description {
  font-size: 1.2em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 40px;
  text-align: center;
}

.page-contact__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Responsive button */
  box-sizing: border-box; /* Responsive button */
  white-space: normal; /* Responsive button text */
  word-wrap: break-word; /* Responsive button text */
  text-align: center;
}

.page-contact__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-contact__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-contact__btn-secondary {
  background-color: var(--text-main, #F2FFF6);
  color: var(--primary-color, #11A84E);
  border: 2px solid var(--primary-color, #11A84E);
}

.page-contact__btn-secondary:hover {
  background-color: var(--primary-color, #11A84E);
  color: var(--text-main, #F2FFF6);
}

/* Contact Methods Section */
.page-contact__contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-contact__card {
  background-color: var(--card-bg, #11271B);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-main, #F2FFF6);
}

.page-contact__card-image {
  width: 100%; /* Full width of card */
  max-width: 400px; /* Max width for card image */
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-contact__card-title {
  font-size: 1.8em;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__card-description,
.page-contact__card-text {
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 15px;
  flex-grow: 1; /* Push buttons to bottom */
}

.page-contact__email-link,
.page-contact__phone-link,
.page-contact__social-icon {
  color: var(--gold-color, #F2C14E);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-contact__email-link:hover,
.page-contact__phone-link:hover,
.page-contact__social-icon:hover {
  color: var(--glow-color, #57E38D);
}

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

/* Office Section */
.page-contact__office-section {
  text-align: center;
}

.page-contact__map-container {
  width: 100%;
  max-width: 1000px;
  margin: 40px auto 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-contact__map-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* FAQ Section */
.page-contact__faq-section {
  padding-bottom: 80px;
}

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

.page-contact__faq-item {
  background-color: var(--card-bg, #11271B);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main, #F2FFF6);
  overflow: hidden; /* For details tag transition */
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-main, #F2FFF6);
  background-color: var(--deep-green, #0A4B2C); /* Slightly different background for question */
  border-bottom: 1px solid var(--divider-color, #1E3A2A);
}

.page-contact__faq-question:hover {
  background-color: var(--primary-color, #11A84E);
}

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

/* For details tag, hide default marker */
.page-contact__faq-item summary {
  list-style: none;
}
.page-contact__faq-item summary::-webkit-details-marker {
  display: none;
}

/* Rotate toggle for open state */
.page-contact__faq-item[open] .page-contact__faq-toggle {
  transform: rotate(45deg);
}

.page-contact__faq-answer {
  padding: 20px 30px;
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
  background-color: var(--card-bg, #11271B);
  border-top: none;
}

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

/* Commitment and Tips Sections */
.page-contact__commitment-list,
.page-contact__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-contact__commitment-list li,
.page-contact__tips-list li {
  background-color: var(--card-bg, #11271B);
  border-left: 5px solid var(--primary-color, #11A84E);
  margin-bottom: 15px;
  padding: 15px 25px;
  border-radius: 8px;
  color: var(--text-secondary, #A7D9B8);
  font-size: 1.1em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-contact__commitment-list li strong,
.page-contact__tips-list li strong {
  color: var(--text-main, #F2FFF6);
  display: block;
  margin-bottom: 5px;
}

/* Final CTA Section */
.page-contact__cta-final-section {
  text-align: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-contact__cta-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-contact__cta-group--center {
  margin-top: 30px;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-contact__section-title {
    font-size: 2em;
  }
  .page-contact__main-title {
    font-size: clamp(1.8em, 5vw, 2.5em);
  }
}

@media (max-width: 768px) {
  /* Global mobile adjustments for images, videos, and buttons */
  .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-group,
  .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; /* Ensure no overflow */
  }

  .page-contact__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__main-title {
    font-size: clamp(1.5em, 6vw, 2em);
  }

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

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

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

  .page-contact__contact-cards {
    grid-template-columns: 1fr; /* Single column layout */
  }

  .page-contact__card {
    padding: 25px 20px;
  }

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

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

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

  .page-contact__commitment-list li,
  .page-contact__tips-list li {
    font-size: 1em;
    padding: 12px 20px;
  }
}

@media (max-width: 480px) {
  .page-contact__section-title {
    font-size: 1.8em;
  }
  .page-contact__main-title {
    font-size: clamp(1.3em, 7vw, 1.8em);
  }
  .page-contact__text-block {
    font-size: 0.95em;
  }
  .page-contact__card-title {
    font-size: 1.3em;
  }
}

/* Contrast Fixes (if needed) - these classes would be applied dynamically or as a fallback */
.page-contact__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-contact__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}

/* Ensure content area images are not smaller than 200px */
.page-contact__section img,
.page-contact__card img,
.page-contact__map-image,
.page-contact__cta-image {
  min-width: 200px;
  min-height: 200px;
  /* Max-width/height will be handled by responsive rules */
}

/* Additional color variables based on the provided scheme */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --card-bg: #11271B;
  --bg-color: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;
}