/* style/contact.css */

/* Custom Colors */
:root {
  --page-contact-card-bg: #11271B;
  --page-contact-text-main: #F2FFF6;
  --page-contact-text-secondary: #A7D9B8;
  --page-contact-border: #2E7A4E;
  --page-contact-glow: #57E38D;
  --page-contact-gold: #F2C14E;
  --page-contact-divider: #1E3A2A;
  --page-contact-deep-green: #0A4B2C;
  --page-contact-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* Base styles for the contact page */
.page-contact {
  font-family: 'Arial', sans-serif;
  color: var(--page-contact-text-main); /* Light text for dark body background */
  background-color: transparent; /* Body handles actual background color */
}

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

.page-contact__section {
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-contact__dark-section {
  background-color: var(--page-contact-deep-green);
  color: var(--page-contact-text-main);
}

.page-contact__section-title {
  font-size: clamp(28px, 4vw, 48px);
  color: var(--page-contact-text-main);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-contact__section-description {
  font-size: 18px;
  color: var(--page-contact-text-secondary);
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

/* Hero Section */
.page-contact__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.page-contact__hero-image-wrapper {
  width: 100%;
  height: auto;
  position: relative;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px;
}

.page-contact__hero-content {
  position: relative; /* Ensure content is above the image in flow, not overlaying */
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  text-align: center;
  background-color: var(--page-contact-card-bg);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  margin-top: -80px; /* Pull up to overlap slightly for visual effect */
  border: 1px solid var(--page-contact-border);
}

.page-contact__main-title {
  font-size: clamp(36px, 5vw, 56px);
  color: var(--page-contact-text-main);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
}

.page-contact__hero-description {
  font-size: 20px;
  color: var(--page-contact-text-secondary);
  margin-bottom: 30px;
  line-height: 1.7;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-primary {
  background: var(--page-contact-btn-gradient);
  color: var(--page-contact-text-main);
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-contact__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-contact__btn-secondary {
  background-color: transparent;
  color: var(--page-contact-glow);
  border: 2px solid var(--page-contact-glow);
  margin: 10px;
}

.page-contact__btn-secondary:hover {
  background-color: var(--page-contact-glow);
  color: var(--page-contact-deep-green);
  transform: translateY(-3px);
}

/* Contact Methods Section */
.page-contact__contact-methods .page-contact__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-contact__card {
  background-color: var(--page-contact-card-bg);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--page-contact-border);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-contact__card-title {
  font-size: 24px;
  color: var(--page-contact-text-main);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-contact__card-text {
  font-size: 16px;
  color: var(--page-contact-text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-contact__card-info {
  font-size: 18px;
  color: var(--page-contact-glow);
  font-weight: 600;
  margin-bottom: 20px;
}

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

.page-contact__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--page-contact-deep-green);
  color: var(--page-contact-text-main);
  font-size: 0; /* Hide text, use background image or icon font in real scenario */
  border: 1px solid var(--page-contact-border);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-contact__social-icon::before {
  content: '';
  display: block;
  width: 24px;
  height: 24px;
  /* Placeholder for actual social icons */
  background-color: var(--page-contact-glow); /* Example glow */
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" d="M22.46 6C21.69 6.81 20.7 7.42 19.6 7.82C20.5 7.22 21.2 6.22 21.5 5.09C20.6 5.59 19.6 5.99 18.6 6.19C17.8 5.39 16.6 5 15.4 5C13.1 5 11.2 6.9 11.2 9.2C11.2 9.5 11.2 9.8 11.3 10.1C7.7 9.9 4.4 8.2 2.2 5.4C1.8 6.1 1.6 6.9 1.6 7.7C1.6 9.1 2.3 10.4 3.4 11.1C2.8 11.1 2.2 10.9 1.7 10.6C1.7 10.6 1.7 10.6 1.7 10.6C1.7 12.7 3.2 14.4 5.2 14.8C4.9 14.9 4.6 14.9 4.3 14.9C4.1 14.9 3.9 14.9 3.6 14.8C4.2 16.4 5.7 17.5 7.4 17.5C6.1 18.5 4.5 19.1 2.8 19.1C2.5 19.1 2.2 19.1 1.9 19.1C3.6 20.2 5.7 20.9 8 20.9C15.4 20.9 19.7 14.9 19.7 9.7C19.7 9.5 19.7 9.3 19.7 9.1C20.5 8.5 21.2 7.8 21.8 7Z"/></svg>'); /* Generic icon for example */
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" d="M22.46 6C21.69 6.81 20.7 7.42 19.6 7.82C20.5 7.22 21.2 6.22 21.5 5.09C20.6 5.59 19.6 5.99 18.6 6.19C17.8 5.39 16.6 5 15.4 5C13.1 5 11.2 6.9 11.2 9.2C11.2 9.5 11.2 9.8 11.3 10.1C7.7 9.9 4.4 8.2 2.2 5.4C1.8 6.1 1.6 6.9 1.6 7.7C1.6 9.1 2.3 10.4 3.4 11.1C2.8 11.1 2.2 10.9 1.7 10.6C1.7 10.6 1.7 10.6 1.7 10.6C1.7 12.7 3.2 14.4 5.2 14.8C4.9 14.9 4.6 14.9 4.3 14.9C4.1 14.9 3.9 14.9 3.6 14.8C4.2 16.4 5.7 17.5 7.4 17.5C6.1 18.5 4.5 19.1 2.8 19.1C2.5 19.1 2.2 19.1 1.9 19.1C3.6 20.2 5.7 20.9 8 20.9C15.4 20.9 19.7 14.9 19.7 9.7C19.7 9.5 19.7 9.3 19.7 9.1C20.5 8.5 21.2 7.8 21.8 7Z"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.page-contact__social-icon:hover {
  background-color: var(--page-contact-glow);
  transform: translateY(-2px);
}

/* Why Support Section */
.page-contact__why-support .page-contact__container {
  padding-top: 40px;
}

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

.page-contact__feature-item {
  background-color: var(--page-contact-card-bg);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--page-contact-border);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  text-align: left;
}

.page-contact__feature-title {
  font-size: 22px;
  color: var(--page-contact-glow);
  margin-bottom: 10px;
  font-weight: 700;
}

.page-contact__feature-text {
  font-size: 16px;
  color: var(--page-contact-text-secondary);
  line-height: 1.6;
}

/* FAQ Section */
.page-contact__faq-section .page-contact__container {
  padding-top: 40px;
}

.page-contact__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-contact__faq-item {
  background-color: var(--page-contact-card-bg);
  border: 1px solid var(--page-contact-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-contact__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  color: var(--page-contact-text-main);
  transition: background-color 0.3s ease;
}

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

.page-contact__faq-item summary:hover {
  background-color: var(--page-contact-deep-green);
}

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

.page-contact__faq-toggle {
  font-size: 24px;
  margin-left: 15px;
  color: var(--page-contact-glow);
  font-weight: bold;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
  content: '−';
}

.page-contact__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 16px;
  color: var(--page-contact-text-secondary);
  line-height: 1.6;
}

/* Commitment CTA Section */
.page-contact__commitment-cta .page-contact__container {
  padding-top: 40px;
}

.page-contact__commitment-cta .page-contact__btn-primary {
  margin-top: 30px;
}

/* Image Content */
.page-contact__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 40px;
  border-radius: 12px;
  object-fit: cover;
  min-height: 200px; /* Minimum size requirement */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__hero-image {
    max-height: 500px;
  }
  .page-contact__hero-content {
    margin-top: -60px;
  }
  .page-contact__section-title {
    font-size: clamp(24px, 4.5vw, 42px);
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding-top: 10px !important; /* Body handles header offset, small top padding */
    padding-bottom: 40px;
  }
  .page-contact__hero-image {
    max-height: 400px;
  }
  .page-contact__hero-content {
    margin-top: -40px;
    padding: 30px 15px;
  }
  .page-contact__main-title {
    font-size: clamp(30px, 6vw, 48px);
  }
  .page-contact__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-contact__section {
    padding: 40px 0;
  }
  .page-contact__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-contact__methods-grid,
  .page-contact__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-contact__social-icon {
    width: 40px;
    height: 40px;
  }
  .page-contact__card-title {
    font-size: 20px;
  }
  .page-contact__card-text {
    font-size: 15px;
  }
  .page-contact__faq-item summary {
    font-size: 16px;
    padding: 15px 20px;
  }
  .page-contact__faq-answer {
    font-size: 15px;
    padding: 0 20px 15px 20px;
  }

  /* Mobile responsive for images, videos, and buttons */
  .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-image-wrapper,
  .page-contact__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }
  .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;
    margin-right: 0 !important;
  }
  .page-contact__social-links {
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-contact__method-item .page-contact__btn-secondary {
    width: auto !important; /* Allow buttons in grid to size naturally */
    max-width: fit-content !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 480px) {
  .page-contact__hero-content {
    margin-top: -20px;
  }
  .page-contact__main-title {
    font-size: clamp(28px, 7vw, 36px);
  }
  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    font-size: 16px;
    padding: 12px 20px;
  }
  .page-contact__section-title {
    font-size: clamp(22px, 5.5vw, 32px);
  }
}