/* style/contact.css */

/* Base styles for the page content, assuming dark body background from shared.css */
.page-contact {
  background-color: var(--background-color, #08160F); /* Fallback to custom background if shared not loaded */
  color: var(--text-main, #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;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden; /* Ensure content doesn't overflow */
  background-color: var(--deep-green, #0A4B2C); /* Use a darker green for hero section background */
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  margin-bottom: 30px; /* Space between image and content */
  filter: none; /* Ensure no CSS filter */
}

.page-contact__hero-content {
  text-align: center;
  max-width: 800px;
  z-index: 1; /* Ensure content is above any potential background elements */
  color: var(--text-main, #F2FFF6);
}

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

.page-contact__description {
  font-size: 1.125rem;
  margin-bottom: 30px;
  color: var(--text-secondary, #A7D9B8);
}

.page-contact__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: var(--text-main, #F2FFF6);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* For mobile responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-contact__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Section Titles and Descriptions */
.page-contact__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-main, #F2FFF6);
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-contact__section-description {
  font-size: 1.1rem;
  color: var(--text-secondary, #A7D9B8);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Contact Methods Section */
.page-contact__contact-methods {
  background-color: var(--background-color, #08160F);
  padding: 60px 0;
}

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

.page-contact__method-card {
  background-color: var(--card-bg, #11271B); /* Card background color */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main, #F2FFF6);
  border: 1px solid var(--divider, #1E3A2A);
}

.page-contact__method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-contact__method-icon {
  width: 100%; /* Ensure large images, not icons */
  height: auto;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
  max-height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: none; /* Ensure no CSS filter */
  border-radius: 8px;
}

.page-contact__method-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-main, #F2FFF6);
}

.page-contact__method-text {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--text-secondary, #A7D9B8);
}

.page-contact__method-link {
  display: inline-block;
  color: var(--glow, #57E38D); /* Use glow color for links */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-contact__method-link:hover {
  color: var(--gold, #F2C14E); /* Gold on hover */
}

/* Contact Form Section */
.page-contact__contact-form-section {
  background-color: var(--background-color, #08160F);
  padding: 60px 0;
}

.page-contact__contact-form {
  background-color: var(--card-bg, #11271B);
  padding: 40px;
  border-radius: 10px;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--divider, #1E3A2A);
}

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

.page-contact__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 5px;
  background-color: var(--deep-green, #0A4B2C); /* Darker input background */
  color: var(--text-main, #F2FFF6);
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: var(--text-secondary, #A7D9B8);
  opacity: 0.7;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: var(--glow, #57E38D);
  outline: none;
}

.page-contact__submit-button {
  width: 100%;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: var(--text-main, #F2FFF6);
  padding: 15px 25px;
  border-radius: 8px;
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* For mobile responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-contact__submit-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-contact__faq-item {
  background-color: var(--card-bg, #11271B);
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--divider, #1E3A2A);
  overflow: hidden;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  color: var(--text-main, #F2FFF6);
}

.page-contact__faq-item:hover {
  background-color: var(--deep-green, #0A4B2C);
  border-color: var(--glow, #57E38D);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-main, #F2FFF6);
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

.page-contact__faq-question::-webkit-details-marker {
  display: none;
}

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

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

.page-contact__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
  line-height: 1.7;
}

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

  .page-contact__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Ensure small top padding */
  }

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

  .page-contact__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem); /* Adjust clamp for smaller screens */
    margin-bottom: 15px;
  }

  .page-contact__description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-contact__cta-button,
  .page-contact__submit-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-contact__method-grid {
    grid-template-columns: 1fr; /* Single column layout for methods */
  }

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

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

  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px;
  }

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

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

  /* Image responsiveness */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All sections/containers for mobile responsiveness */
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__hero-section,
  .page-contact__contact-methods,
  .page-contact__contact-form-section,
  .page-contact__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Ensure hero-section padding-top remains small for mobile */
  .page-contact__hero-section {
    padding-top: 10px !important;
  }

  /* Ensure content area images are not too small */
  .page-contact__method-icon {
    min-width: 200px !important;
    min-height: 200px !important;
    width: auto !important; /* Allow image to scale within limits */
    height: auto !important;
  }

  /* Default styling for paragraphs to ensure visibility on dark background */
  .page-contact p {
    color: var(--text-secondary, #A7D9B8);
  }
}

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

/* Specific button group handling for mobile if needed, though single buttons are handled above */
.page-contact__button-group {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping */
    gap: 10px; /* Space between buttons */
    justify-content: center;
}
@media (max-width: 768px) {
    .page-contact__button-group {
        flex-direction: column; /* Stack buttons vertically on mobile */
        align-items: stretch; /* Stretch to full width */
        padding-left: 15px;
        padding-right: 15px;
    }
}