/* style/contact.css */

/* --- Base Styles --- */
.page-contact {
  background-color: #08160F; /* Custom background color */
  color: #F2FFF6; /* Main text color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: 0; /* body already has padding-top from shared.css */
}

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

.page-contact__section-title {
  font-size: clamp(2.2rem, 4vw, 3rem); /* H1 font-size rule applied to H2s */
  color: #F2FFF6; /* Main text color */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-contact__section-intro,
.page-contact__description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Secondary text color */
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-contact__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  max-height: 500px; /* Limit height for aesthetic */
}

.page-contact__hero-content {
  position: relative; /* Not absolute, to ensure "image above text" */
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  background: rgba(8, 22, 15, 0.8); /* Slightly transparent background for text readability */
  border-radius: 10px;
  margin-top: -80px; /* Bring content slightly over the image for visual flow */
  z-index: 1; /* Ensure text is above any subtle image background */
}

.page-contact__main-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem); /* H1 font-size rule */
  color: #F2FFF6;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.1;
}

/* --- CTA Buttons --- */
.page-contact__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}

.page-contact__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
  color: #F2FFF6; /* Ensure light text on dark button */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-contact__btn-secondary {
  background: transparent;
  color: #F2FFF6; /* Main text color */
  border: 2px solid #2E7A4E; /* Custom border color */
}

.page-contact__btn-secondary:hover {
  background: rgba(46, 122, 78, 0.2); /* Slight background on hover */
  transform: translateY(-2px);
}

.page-contact__btn-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* --- Contact Info Section --- */
.page-contact__info-section {
  padding: 80px 0;
  background-color: #08160F;
}

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

.page-contact__card {
  background-color: #11271B; /* Custom card background color */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  border: 1px solid #2E7A4E; /* Custom border color */
}

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

.page-contact__card-icon {
  width: 250px; /* Enforce minimum size >= 200px */
  height: 200px; /* Enforce minimum size >= 200px */
  margin: 0 auto 20px auto; /* Center image */
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(87, 227, 141, 0.5)); /* Glow color */
  display: block; /* Ensure it's a block element for centering */
}

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

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

.page-contact__card-link {
  color: #57E38D; /* Glow color for links */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-contact__card-link:hover {
  color: #F2C14E; /* Gold color on hover */
}

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

.page-contact__contact-form {
  max-width: 700px;
  margin: 40px auto 0 auto;
  background-color: #11271B; /* Card background */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px 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;
  border-radius: 5px;
  background-color: #08160F; /* Background color */
  color: #F2FFF6;
  box-sizing: border-box;
  font-size: 1rem;
}

.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: #57E38D; /* Glow color on focus */
  box-shadow: 0 0 8px rgba(87, 227, 141, 0.5);
}

.page-contact__contact-form .page-contact__cta-button {
  width: auto; /* Reset width for form button */
  margin-top: 20px;
}

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

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

.page-contact__faq-item {
  background-color: #11271B;
  border: 1px solid #2E7A4E;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  color: #F2FFF6;
  background-color: #11271B;
  user-select: none;
  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 {
  list-style: none;
}

.page-contact__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: #57E38D;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-contact__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: #A7D9B8;
  border-top: 1px solid #1E3A2A; /* Divider color */
  margin-top: 10px;
  padding-top: 20px;
}

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

.page-contact__faq-image {
  display: block;
  margin: 50px auto 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* --- Social Media Section --- */
.page-contact__social-section {
  padding: 80px 0;
  background-color: #0A4B2C;
}

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

.page-contact__social-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #F2FFF6;
  font-weight: bold;
  transition: transform 0.3s ease, color 0.3s ease;
}

.page-contact__social-icon:hover {
  transform: translateY(-5px);
  color: #F2C14E; /* Gold on hover */
}

.page-contact__social-icon img {
  width: 200px; /* Enforce minimum size >= 200px */
  height: 200px; /* Enforce minimum size >= 200px */
  margin-bottom: 10px;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(87, 227, 141, 0.3); /* Glow */
  object-fit: cover; /* Ensure image fills the circle */
}

/* --- Bottom CTA Section --- */
.page-contact__cta-bottom-section {
  padding: 80px 0;
  background-color: #08160F;
  text-align: center;
}

/* --- Responsive Styles --- */
@media (max-width: 768px) {
  .page-contact__container {
    padding: 0 15px; /* Add padding for mobile containers */
  }

  .page-contact__hero-section {
    padding: 40px 0;
    padding-top: 10px !important; /* body already has --header-offset */
  }

  .page-contact__hero-content {
    margin-top: -40px; /* Adjust for smaller screens */
    padding: 30px 15px;
  }

  .page-contact__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem); /* Adjust H1 size for mobile */
  }

  .page-contact__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem); /* Adjust H2 size for mobile */
  }

  .page-contact__description,
  .page-contact__section-intro,
  .page-contact p,
  .page-contact li {
    font-size: 1rem;
    line-height: 1.5;
  }

  .page-contact__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px !important; /* Adjust padding for mobile buttons */
  }

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

  .page-contact__card {
    padding: 25px;
  }

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

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

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

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

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

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

  /* All containers with images/buttons must have max-width: 100% */
  .page-contact__hero-section,
  .page-contact__info-section,
  .page-contact__contact-methods,
  .page-contact__card,
  .page-contact__form-section,
  .page-contact__contact-form,
  .page-contact__faq-section,
  .page-contact__faq-list,
  .page-contact__faq-item,
  .page-contact__social-section,
  .page-contact__social-links,
  .page-contact__social-icon,
  .page-contact__cta-bottom-section,
  .page-contact__btn-group,
  .page-contact__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* Add horizontal padding to main sections if they don't have it */
    padding-left: 15px;
    padding-right: 15px;
  }
}