/* style/contact.css */

/* --- Base Styles & Layout --- */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for the page */
  background-color: var(--background); /* Overall page background */
}

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

.page-contact__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main);
  line-height: 1.2;
}

.page-contact__text-block {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  color: var(--text-secondary);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Hero Section --- */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small decorative top padding */
  padding-bottom: 60px;
  color: var(--text-main); /* Light text on dark background */
  background-color: var(--deep-green); /* Dark background for hero */
}

.page-contact__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Subtle background effect */
  z-index: 0;
}

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

.page-contact__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-main); /* Ensure light color on dark background */
  line-height: 1.2;
}

.page-contact__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

/* --- Buttons --- */
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact a[class*="button"],
.page-contact a[class*="btn"] {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  box-sizing: border-box;
}

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

.page-contact__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__btn-secondary {
  background-color: transparent;
  color: var(--text-main); /* Light text on dark background */
  border: 2px solid var(--border);
  margin-left: 20px;
}

.page-contact__btn-secondary:hover {
  background-color: var(--border);
  color: #ffffff;
}

/* --- Why Contact Section --- */
.page-contact__why-contact-section {
  padding: 80px 0;
  background-color: var(--background); /* Light background for contrast */
  color: var(--text-main);
}

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

.page-contact__feature-item {
  background-color: var(--card-bg); /* Darker card background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: var(--text-secondary);
}

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

.page-contact__feature-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-main); /* Ensure contrast */
}

.page-contact__feature-text {
  font-size: 1em;
  color: var(--text-secondary);
}

/* --- Channels Section --- */
.page-contact__channels-section {
  padding: 80px 0;
  background-color: var(--deep-green); /* Dark background */
  color: var(--text-main); /* Light text */
}

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

.page-contact__channel-card {
  background-color: var(--card-bg); /* Dark card background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact__channel-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-contact__channel-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-main);
}

.page-contact__channel-description {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1; /* Make sure description takes available space */
}

.page-contact__contact-info {
  font-size: 1em;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.page-contact__link-text {
  color: var(--glow); /* Highlight links */
  text-decoration: none;
}

.page-contact__link-text:hover {
  text-decoration: underline;
}

/* --- Office Section --- */
.page-contact__office-section {
  padding: 80px 0;
  background-color: var(--background);
  color: var(--text-main);
}

.page-contact__office-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
}

.page-contact__office-address,
.page-contact__office-map {
  flex: 1;
  min-width: 300px;
}

.page-contact__address-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-main);
}

.page-contact__address-text {
  font-size: 1.1em;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.page-contact__map-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* --- Form Section --- */
.page-contact__form-section {
  padding: 80px 0;
  background-color: var(--deep-green);
  color: var(--text-main);
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 50px auto 0;
  background-color: var(--card-bg);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.page-contact__form-label {
  display: block;
  font-size: 1.1em;
  margin-bottom: 8px;
  color: var(--text-main);
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 1em;
  background-color: #08160F; /* Slightly darker than card bg */
  color: var(--text-main);
  box-sizing: border-box;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: var(--glow);
  box-shadow: 0 0 0 3px rgba(87, 227, 141, 0.3);
}

.page-contact__form-textarea {
  resize: vertical;
}

.page-contact__form-note {
  text-align: center;
  margin-top: 30px;
  font-size: 0.95em;
  color: var(--text-secondary);
}

/* --- FAQ Section --- */
.page-contact__faq-section {
  padding: 80px 0;
  background-color: var(--background);
  color: var(--text-main);
}

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

.page-contact__faq-item {
  background-color: var(--card-bg);
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--text-main);
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--divider);
  transition: background-color 0.3s ease;
}

.page-contact__faq-item[open] .page-contact__faq-question {
  background-color: #11271B; /* Slightly darker when open */
  border-bottom: 1px solid var(--glow);
}

.page-contact__faq-question:hover {
  background-color: #11271B;
}

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

.page-contact__faq-toggle {
  font-size: 1.5em;
  margin-left: 20px;
  color: var(--glow);
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
  content: '−'; /* Change to minus when open */
}

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


.page-contact__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--text-secondary);
  background-color: var(--card-bg);
}

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

/* --- Commitment Section --- */
.page-contact__commitment-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--deep-green);
  color: var(--text-main);
}

.page-contact__commitment-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 50px auto 40px;
  text-align: left;
}

.page-contact__commitment-list li {
  font-size: 1.1em;
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  color: var(--text-secondary);
}

.page-contact__commitment-list li::before {
  content: '✓';
  color: var(--glow);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.page-contact__commitment-list li strong {
  color: var(--text-main);
}

.page-contact__cta-button {
  margin-top: 30px;
}


/* --- Color Palette Overrides (Contrast Enforcement) --- */
.page-contact__dark-section {
  background-color: var(--deep-green); /* Example dark background */
  color: var(--text-main); /* Light text on dark background */
}

.page-contact__light-bg {
  background-color: var(--background); /* Example light background */
  color: var(--text-main); /* Dark text on light background */
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-contact__section-title {
    font-size: 2em;
  }
  .page-contact__hero-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-contact__container {
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

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

  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact a[class*="button"],
  .page-contact a[class*="btn"] {
    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;
    margin-left: 0 !important; /* Remove margin for single column layout */
    margin-bottom: 15px; /* Add space between stacked buttons */
  }
  
  .page-contact__hero-content .page-contact__btn-primary {
    margin-bottom: 0; /* No extra margin if only one button */
  }

  .page-contact__why-contact-section,
  .page-contact__channels-section,
  .page-contact__office-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__commitment-section {
    padding: 40px 0;
  }

  .page-contact__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-contact__text-block {
    font-size: 1em;
  }

  .page-contact__grid-features,
  .page-contact__channels-grid {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }

  .page-contact__office-details {
    flex-direction: column;
    margin-top: 30px;
  }

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

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

  .page-contact__faq-list {
    margin-top: 30px;
  }

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

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

  .page-contact__commitment-list {
    margin-top: 30px;
  }

  .page-contact__commitment-list li {
    font-size: 1em;
    padding-left: 25px;
  }

  /* Image responsiveness */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers for images, buttons, videos */
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__video-section,
  .page-contact__video-container,
  .page-contact__video-wrapper,
  .page-contact__cta-buttons,
  .page-contact__button-group,
  .page-contact__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  /* Specific padding for content containers to prevent overflow */
  .page-contact__why-contact-section .page-contact__container,
  .page-contact__channels-section .page-contact__container,
  .page-contact__office-section .page-contact__container,
  .page-contact__form-section .page-contact__container,
  .page-contact__faq-section .page-contact__container,
  .page-contact__commitment-section .page-contact__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Flex wrap for multiple buttons */
  .page-contact__hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  .page-contact__btn-secondary {
    margin-left: 0 !important;
  }
}

@media (max-width: 480px) {
  .page-contact__main-title {
    font-size: clamp(1.8em, 9vw, 2.2em);
  }
  .page-contact__section-title {
    font-size: 1.6em;
  }
  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
  }
}