/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
  background-color: #08160F; /* Background color from custom scheme */
  color: #F2FFF6; /* Main text color for dark background */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  font-size: 1rem;
}

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

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

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding */
  background-color: #08160F;
  overflow: hidden; /* Ensure no image overflow */
}

.page-contact__hero-image {
  width: 100%;
  max-width: 1920px; /* Max width of hero image */
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 30px; /* Space between image and text */
}

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

.page-contact__main-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem); /* H1 font-size clamp */
  color: #F2FFF6;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-contact__description {
  font-size: 1.2rem;
  color: #A7D9B8;
  margin-bottom: 30px;
}

/* CTA Button - General */
.page-contact__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  text-align: center;
}

.page-contact__cta-button:hover {
  transform: translateY(-2px);
}

/* Primary Button Style */
.page-contact__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Text Main */
  border: none;
}

.page-contact__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

/* Secondary Button Style */
.page-contact__btn-secondary {
  background: transparent;
  color: #2AD16F; /* Green from button gradient */
  border: 2px solid #2AD16F;
}

.page-contact__btn-secondary:hover {
  background: #2AD16F;
  color: #F2FFF6;
}

.page-contact__cta-button--small {
  font-size: 1rem;
  padding: 10px 20px;
}

/* Channels Section */
.page-contact__channels-section {
  padding: 80px 0;
  background-color: #08160F; /* Background color from custom scheme */
}

.page-contact__dark-section {
  background-color: #11271B; /* Card BG from custom scheme for sections */
  color: #F2FFF6; /* Main text color */
}

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

.page-contact__channel-card {
  background-color: #11271B; /* Card BG from custom scheme */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #2E7A4E; /* Border color from custom scheme */
}

.page-contact__channel-icon {
  width: 100%; /* Ensure images are responsive */
  max-width: 250px;
  height: auto;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-contact__card-title {
  font-size: 1.5rem;
  color: #F2FFF6; /* Main text color */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__card-text {
  font-size: 1rem;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 25px;
  flex-grow: 1; /* Push button to bottom */
}

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

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

.page-contact__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6;
}

.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; /* Prevent text selection */
  list-style: none; /* For details/summary */
}

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

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

.page-contact__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D; /* Glow color for toggle */
}

.page-contact__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: #A7D9B8;
  max-height: 0; /* Default hidden state for JS toggle */
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-contact__faq-item[open] .page-contact__faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding-top: 10px;
}

/* Why Choose Section */
.page-contact__why-choose-section {
  padding: 80px 0;
  background-color: #08160F; /* Background color */
}

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

.page-contact__feature-card {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border color */
}

.page-contact__feature-icon {
  width: 100%;
  max-width: 300px; /* Adjust as needed */
  height: auto;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
  margin-bottom: 20px;
  border-radius: 8px;
}

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

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


/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__hero-image {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 768px) {
  .page-contact__container {
    padding: 0 15px; /* Mobile padding */
  }

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

  .page-contact__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-contact__description {
    font-size: 1rem;
  }

  .page-contact__section-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .page-contact__section-description {
    font-size: 0.95rem;
  }

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

  /* Ensure containers holding images/content adapt */
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__hero-section,
  .page-contact__channels-section,
  .page-contact__faq-section,
  .page-contact__why-choose-section,
  .page-contact__cta-bottom-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-contact__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-contact__hero-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Buttons */
  .page-contact__cta-button,
  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__channel-grid,
  .page-contact__feature-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
  }

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

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

/* Ensure content area images are never smaller than 200px (desktop) */
.page-contact__channel-icon,
.page-contact__feature-icon {
    min-width: 200px;
    min-height: 200px;
}

/* Text colors for contrast. Body is dark, so text is light. */
.page-contact p,
.page-contact li,
.page-contact__card-text {
  color: #A7D9B8; /* Secondary text color on dark backgrounds */
}

.page-contact h1, .page-contact h2, .page-contact h3,
.page-contact__main-title,
.page-contact__section-title,
.page-contact__card-title,
.page-contact__faq-qtext {
  color: #F2FFF6; /* Main text color on dark backgrounds */
}

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