/* style/contact.css */

/* Base styles for the contact page, assuming a dark body background from shared.css */
.page-contact {
  background-color: var(--background-color, #08160F); /* Fallback to a dark green if var not set */
  color: #F2FFF6; /* Main text color, light for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Container for content, ensuring max width and centering */
.page-contact__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  text-align: center;
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-contact__hero-image-wrapper {
    width: 100%;
    position: relative;
    z-index: 0; /* Ensure image is behind text if any absolute positioning is used */
    margin-bottom: 30px; /* Space between image and content block */
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 300px; /* Minimum height for hero image */
}

.page-contact__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative; /* Relative positioning for text block */
    z-index: 1; /* Ensure text is above image if needed */
    color: #F2FFF6; /* Light text for hero content */
}

.page-contact__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: bold;
  color: #F2FFF6; /* Main text color */
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-contact__description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 30px;
}

/* Section titles */
.page-contact__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: bold;
  color: #F2FFF6; /* Main text color */
  text-align: center;
  margin-bottom: 30px;
  padding-top: 40px;
}

/* Text blocks */
.page-contact__text-block {
  font-size: 1.1rem;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 20px;
  text-align: justify;
}

/* Links within text blocks */
.page-contact__text-block a {
    color: #2AD16F; /* A brighter green for links */
    text-decoration: underline;
}
.page-contact__text-block a:hover {
    color: #57E38D; /* Glow color on hover */
}


/* Call to Action Buttons */
.page-contact__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure button doesn't overflow */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__cta-button:hover {
  background: linear-gradient(180deg, #57E38D 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-contact__cta-button--large {
    font-size: 1.3rem;
    padding: 18px 35px;
    margin-bottom: 15px; /* Space between large and secondary button */
}

.page-contact__cta-button--secondary {
    background: transparent;
    border: 2px solid #2AD16F;
    color: #2AD16F;
    margin-left: 15px;
}

.page-contact__cta-button--secondary:hover {
    background: rgba(42, 209, 111, 0.1);
    color: #57E38D;
    border-color: #57E38D;
    transform: translateY(-2px);
}


/* Contact Methods Section */
.page-contact__methods-section {
  background-color: #11271B; /* Card BG color for this section */
  padding: 60px 0;
}

.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: #08160F; /* Background color for individual cards */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border color */
  transition: transform 0.3s ease;
}

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

.page-contact__method-icon {
  width: 200px; /* Adjusted to meet minimum size requirement */
  height: 200px; /* Adjusted to meet minimum size requirement */
  margin-bottom: 20px;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-contact__card-description {
  color: #A7D9B8;
  font-size: 1rem;
  margin-bottom: 20px;
}

.page-contact__email-address,
.page-contact__phone-number {
    color: #2AD16F;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.page-contact__card-button {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.95rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__card-button:hover {
  background: linear-gradient(180deg, #57E38D 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

/* Contact Form Section */
.page-contact__form-section {
    padding: 60px 0;
}

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

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

.page-contact__form-label {
  display: block;
  margin-bottom: 8px;
  color: #F2FFF6;
  font-weight: bold;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #2E7A4E;
  background-color: #0A4B2C; /* Deep Green for input background */
  color: #F2FFF6;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
}

.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 {
  outline: none;
  border-color: #2AD16F;
  box-shadow: 0 0 0 3px rgba(42, 209, 111, 0.3);
}

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

.page-contact__submit-button {
  width: 100%;
  padding: 15px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__submit-button:hover {
  background: linear-gradient(180deg, #57E38D 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

/* Social Media Section */
.page-contact__social-section {
    padding: 60px 0;
    background-color: #08160F; /* Main background color */
}

.page-contact__social-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-contact__social-icon {
  display: block;
  width: 200px; /* Adjusted to meet minimum size requirement */
  height: 200px; /* Adjusted to meet minimum size requirement */
  transition: transform 0.2s ease;
  border-radius: 50%; /* Make them circular */
  overflow: hidden; /* Hide overflow for circular icons */
  margin: 0 auto; /* Center individual icons */
}

.page-contact__social-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Ensure icon fits within circle */
}

.page-contact__social-icon:hover {
  transform: scale(1.1);
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 60px 0;
    background-color: #11271B; /* Card BG color */
}

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

.page-contact__faq-item {
  background-color: #08160F; /* Background for FAQ item */
  border: 1px solid #2E7A4E;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  color: #F2FFF6;
  background-color: #0A4B2C; /* Deep Green for question background */
  user-select: none;
  position: relative;
  list-style: none; /* For details/summary */
}

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


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

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

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

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

.page-contact__faq-answer a:hover {
    color: #57E38D;
}

.page-contact__faq-button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.95rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__faq-button:hover {
    background: linear-gradient(180deg, #57E38D 0%, #2AD16F 100%);
    transform: translateY(-2px);
}

/* CTA Section at bottom */
.page-contact__cta-section {
    padding: 60px 0;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-contact__hero-content {
    padding: 0 15px;
  }
  .page-contact__container {
    padding: 30px 15px;
  }
  .page-contact__method-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-contact__main-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  .page-contact__section-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-contact__description,
  .page-contact__text-block {
    font-size: 1rem;
  }
  .page-contact__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-contact__cta-button {
    font-size: 1rem;
    padding: 12px 25px;
    margin-bottom: 10px; /* Ensure spacing for stacked buttons */
  }
  .page-contact__cta-button--large {
    font-size: 1.1rem;
    padding: 15px 30px;
    width: 100%; /* Full width for large CTA on mobile */
    margin-left: 0;
    margin-right: 0;
  }
  .page-contact__cta-button--secondary {
      width: 100%; /* Full width for secondary CTA on mobile */
      margin-left: 0;
      margin-top: 10px; /* Space between primary and secondary */
  }

  .page-contact__method-grid {
    grid-template-columns: 1fr; /* Stack cards on mobile */
  }
  .page-contact__contact-form {
    padding: 20px;
  }
  .page-contact__social-links {
    gap: 15px;
  }
  .page-contact__social-icon {
    width: 200px !important;
    height: 200px !important;
  }
  .page-contact__faq-question {
    font-size: 1.1rem;
    padding: 15px 20px;
  }
  .page-contact__faq-answer {
    padding: 10px 20px 20px 20px;
  }

  /* Force responsive for all images and containers */
  .page-contact img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__method-card,
  .page-contact__contact-form,
  .page-contact__faq-list,
  .page-contact__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Remove padding from container if it's already added to its children */
  .page-contact__container {
      padding-left: 0 !important;
      padding-right: 0 !important;
  }
  /* Adjust padding for sections to account for container padding */
  .page-contact__intro-section > .page-contact__container,
  .page-contact__methods-section > .page-contact__container,
  .page-contact__form-section > .page-contact__container,
  .page-contact__social-section > .page-contact__container,
  .page-contact__faq-section > .page-contact__container,
  .page-contact__cta-section > .page-contact__container {
      padding-left: 15px !important;
      padding-right: 15px !important;
  }

  .page-contact__hero-section {
      padding-left: 15px !important;
      padding-right: 15px !important;
      box-sizing: border-box !important;
  }
  .page-contact__hero-image-wrapper {
      padding: 0 !important;
  }
  .page-contact__hero-image {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
  }

  /* Button specific mobile styles */
  .page-contact__cta-button,
  .page-contact__card-button,
  .page-contact__submit-button,
  .page-contact__faq-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-contact__cta-section .page-contact__cta-button {
      margin-left: 0 !important;
      margin-right: 0 !important;
  }
}

/* Ensure no filter is used on images */
.page-contact img {
  filter: none !important;
}

/* Content area image size limits (already handled by specific classes, but as a general fallback) */
.page-contact__intro-section img,
.page-contact__methods-section img,
.page-contact__form-section img,
.page-contact__social-section img,
.page-contact__faq-section img,
.page-contact__cta-section img {
  min-width: 200px;
  min-height: 200px;
}