/* style/contact.css */
/* 
 * Body background color comes from shared.css (var(--background-color)).
 * Custom colors for this page are:
 * Background: #08160F (Dark)
 * Card BG: #11271B (Darker Green)
 * Text Main: #F2FFF6 (Light)
 * Text Secondary: #A7D9B8 (Light Green)
 * Buttons: linear-gradient(180deg, #2AD16F 0%, #13994A 100%)
 * Border: #2E7A4E
 */

.page-contact {
  background-color: var(--background-color, #08160F); /* Fallback to custom background if shared not loaded */
  color: #F2FFF6; /* Main text color for dark 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;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #0A4B2C; /* Deep Green from custom colors for hero section */
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-contact__hero-image-wrapper {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-contact__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover the entire wrapper */
  opacity: 0.3; /* Make it a subtle background */
  display: block;
}

.page-contact__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: #F2FFF6; /* Light text for hero content */
  padding: 20px;
  background: rgba(17, 39, 27, 0.7); /* Card BG with transparency for readability */
  border-radius: 10px;
}

.page-contact__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
  font-weight: 700;
  margin-bottom: 20px;
  color: #F2FFF6;
  line-height: 1.2;
}

.page-contact__hero-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Secondary text color */
}

/* Section Titles & Descriptions */
.page-contact__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: 600;
  color: #F2FFF6;
  text-align: center;
  margin-bottom: 15px;
  padding-top: 40px;
}

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

/* Contact Info Section */
.page-contact__contact-info-section {
  padding: 60px 0;
  background-color: #08160F; /* Dark background */
}

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

.page-contact__info-card {
  background-color: #11271B; /* Card BG color */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}

.page-contact__card-title {
  font-size: 1.5em;
  color: #F2FFF6;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-contact__card-text {
  color: #A7D9B8;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-contact__contact-detail {
  color: #F2FFF6;
  font-weight: 500;
  margin-bottom: 20px;
  font-size: 1.1em;
}

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

.page-contact__social-icon {
  display: inline-block;
  width: 40px; /* Display size, not image placeholder size */
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

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

.page-contact__social-icon img {
   /* Display size of the icon within the circle */
  
  object-fit: contain;
  max-width: 100%; /* Responsive image */
  height: auto; /* Responsive image */
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent; /* Default transparent border */
  box-sizing: border-box;
  max-width: 100%; /* Responsive button */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  text-align: center;
}

.page-contact__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
  color: #F2FFF6; /* Light text for primary button */
}

.page-contact__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-contact__btn-secondary {
  background-color: transparent;
  color: #2AD16F; /* Green text for secondary button */
  border-color: #2AD16F; /* Green border for secondary button */
}

.page-contact__btn-secondary:hover {
  background-color: #2AD16F;
  color: #F2FFF6;
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.2);
}

/* Contact Form Section */
.page-contact__form-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green background */
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 40px auto 0 auto;
  background-color: #11271B; /* Card BG color */
  border: 1px solid #2E7A4E;
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.page-contact__form-label {
  display: block;
  margin-bottom: 10px;
  color: #F2FFF6;
  font-weight: 500;
  font-size: 1.05em;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #2E7A4E;
  border-radius: 8px;
  background-color: #08160F; /* Background color */
  color: #F2FFF6;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: #A7D9B8;
  opacity: 0.7;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #2AD16F;
  outline: none;
}

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

.page-contact__form-submit-btn {
  width: auto; /* Allow button to size to content */
  margin-top: 15px;
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 60px 0;
  background-color: #08160F; /* Dark background */
}

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

.page-contact__faq-item {
  background-color: #11271B; /* Card BG color */
  border: 1px solid #2E7A4E;
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
  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 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #F2FFF6;
  cursor: pointer;
  background-color: #11271B;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-contact__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome */
}

.page-contact__faq-question:hover {
  background-color: #1a3a2a; /* Slightly lighter on hover */
}

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

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

.page-contact__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #A7D9B8;
  line-height: 1.7;
}

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

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

.page-contact__faq-answer a {
  color: #2AD16F;
  text-decoration: underline;
}

/* Global image styles for responsiveness */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-contact__container {
    padding: 0 15px; /* Add padding for mobile containers */
  }

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

  .page-contact__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em); /* Adjust H1 for smaller screens */
  }

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

  .page-contact__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
    padding-top: 30px;
  }

  .page-contact__section-description {
    margin-bottom: 30px;
  }

  .page-contact__info-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }

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

  .page-contact__form-section {
    padding: 40px 0;
  }

  .page-contact__contact-form {
    padding: 25px;
    margin: 30px 15px 0 15px; /* Adjust margin for mobile */
  }

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

  .page-contact__form-submit-btn {
    width: 100%; /* Full width button on mobile */
  }

  .page-contact__faq-section {
    padding: 40px 0;
  }

  .page-contact__faq-list {
    margin: 30px 15px 0 15px; /* Adjust margin for mobile */
  }

  .page-contact__faq-question {
    padding: 18px 20px;
    font-size: 1.05em;
  }

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

  /* Mobile image responsiveness (mandatory) */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-contact__hero-image {
    object-fit: cover !important; /* Ensure hero image covers */
  }
  
  /* Mobile container responsiveness (mandatory) */
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__info-card,
  .page-contact__contact-form,
  .page-contact__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left and padding-right are handled by .page-contact__container */
  }

  /* Mobile button responsiveness (mandatory) */
  .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 !important; /* Add padding to buttons */
    padding-right: 15px !important;
  }
  
  /* If multiple buttons in a group, allow wrap */
  .page-contact__social-links {
    flex-wrap: wrap;
    gap: 10px;
  }
  .page-contact__social-icon {
    width: 50px;
    height: 50px;
  }
  .page-contact__social-icon img {
    
    
  }
}