/* style/contact.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-contact {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background #0a0a0a */
  background-color: transparent; /* Body background handled by shared.css */
}

/* Fixed header offset for the main content or first section */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Desktop and mobile offset */
  padding-bottom: 60px;
  overflow: hidden; /* Ensure content doesn't spill */
}

.page-contact__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.page-contact__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 0;
}

.page-contact__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-contact__hero-title {
  font-size: 3.5em;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-contact__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

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

/* General section styling */
.page-contact__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box; /* Include padding in width calculation */
}

.page-contact__section-title {
  font-size: 2.5em;
  color: #017439; /* Brand color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact__section-intro {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0; /* Light text for dark sections */
}

.page-contact__paragraph {
  margin-bottom: 20px;
  color: #f0f0f0;
}

/* Specific section backgrounds */
.page-contact__dark-bg {
  background-color: rgba(1, 116, 57, 0.1); /* Slightly transparent brand green */
  color: #ffffff;
  padding: 60px 0;
}

.page-contact__contact-info-section .page-contact__section-title,
.page-contact__why-choose-us-section .page-contact__section-title,
.page-contact__conclusion-section .page-contact__section-title {
  color: #ffffff; /* White titles on dark sections */
}

.page-contact__contact-info-section .page-contact__section-intro,
.page-contact__why-choose-us-section .page-contact__section-intro,
.page-contact__conclusion-section .page-contact__section-intro {
  color: #f0f0f0; /* Lighter text on dark sections */
}

/* Grid for channels and issues */
.page-contact__channels-grid,
.page-contact__issues-grid,
.page-contact__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-contact__channel-card,
.page-contact__issue-card,
.page-contact__feature-card {
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #ffffff;
}

.page-contact__card-title {
  font-size: 1.5em;
  color: #017439; /* Brand green for card titles */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__channel-card .page-contact__card-title,
.page-contact__feature-card .page-contact__card-title {
  color: #ffffff; /* White card titles on darker cards */
}

.page-contact__card-text {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1; /* Make text take available space */
}

.page-contact__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-contact__email-address,
.page-contact__phone-number {
  font-weight: bold;
  color: #FFFF00; /* Yellow for contact details, as per Login/Register text color */
  margin-bottom: 10px;
}

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

.page-contact__social-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #017439;
  color: #ffffff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-contact__social-btn:hover {
  background-color: #005f2e;
}

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

.page-contact__btn-primary {
  background-color: #C30808; /* Red for primary action */
  color: #FFFF00; /* Yellow text for primary button */
  border: 2px solid transparent;
}

.page-contact__btn-primary:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-contact__btn-secondary {
  background-color: transparent;
  color: #017439; /* Brand green for secondary text */
  border: 2px solid #017439;
}

.page-contact__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-contact__btn-link {
  background-color: transparent;
  color: #017439; /* Brand green for link buttons */
  border: 1px solid #017439;
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-contact__btn-link:hover {
  background-color: #017439;
  color: #ffffff;
}

.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* A slightly lighter dark background for FAQ */
  color: #ffffff;
}

.page-contact__faq-section .page-contact__section-title {
  color: #ffffff;
}

.page-contact__faq-section .page-contact__section-intro {
  color: #f0f0f0;
}

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

.page-contact__faq-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: rgba(1, 116, 57, 0.2); /* Brand green tint for summary */
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker for details/summary */
}

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

.page-contact__faq-question:hover {
  background-color: rgba(1, 116, 57, 0.3);
}

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

.page-contact__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #FFFF00; /* Yellow for the toggle icon */
}

.page-contact__faq-answer {
  padding: 0 25px 18px 25px;
  font-size: 1em;
  color: #f0f0f0;
  text-align: left;
}

.page-contact__copyright-info {
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  color: #cccccc;
  background-color: #0a0a0a; /* Match body background */
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 3em;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    min-height: 400px;
    padding-bottom: 40px;
  }

  .page-contact__hero-title {
    font-size: 2.2em;
  }

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

  .page-contact__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact__btn-link,
  .page-contact__social-btn {
    width: 100% !important; /* Force full width on mobile */
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__container {
    padding: 30px 15px;
  }

  .page-contact__section-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-contact__section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-contact__channels-grid,
  .page-contact__issues-grid,
  .page-contact__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-contact__card-title {
    font-size: 1.3em;
  }

  .page-contact__card-image {
    height: 180px;
  }

  .page-contact__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

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

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

  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__hero-section,
  .page-contact__contact-info-section,
  .page-contact__common-issues-section,
  .page-contact__why-choose-us-section,
  .page-contact__faq-section,
  .page-contact__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Special handling for hero section padding-top on mobile if shared doesn't provide it */
  .page-contact__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}