/* style/contact.css */

/* Base styles for the page */
.page-contact {
  background-color: #08160F; /* Custom background color */
  color: #F2FFF6; /* Main text color */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 40px; /* Add some padding at the bottom */
}

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

/* Section styling */
.page-contact__section-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size for titles */
  color: #F2FFF6; /* Main text color */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  letter-spacing: 1px;
}

.page-contact__section-text {
  font-size: 16px;
  color: #A7D9B8; /* Secondary text color */
  text-align: center;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Card styling */
.page-contact__card {
  background-color: #11271B; /* Card background color */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid #2E7A4E; /* Border color */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__social-btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  max-width: 100%; /* Ensure button doesn't overflow */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  text-align: center;
}

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

.page-contact__btn-primary:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.page-contact__btn-secondary {
  background-color: transparent;
  color: #2AD16F; /* Green color for secondary button text */
  border: 2px solid #2AD16F; /* Green border */
}

.page-contact__btn-secondary:hover {
  transform: translateY(-2px);
  background-color: rgba(42, 209, 111, 0.1); /* Slight background on hover */
}

.page-contact__text-link {
  color: #2AD16F; /* Link color */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-contact__text-link:hover {
  color: #57E38D; /* Glow color on hover */
}


/* Hero Section */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  box-sizing: border-box;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1; /* Place behind content */
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-contact__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 80px 20px 40px 20px; /* Padding for content over image */
  box-sizing: border-box;
}

.page-contact__hero-title {
  font-size: clamp(32px, 5vw, 64px); /* Responsive font size */
  color: #F2FFF6; /* Main text color */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-contact__hero-description {
  font-size: clamp(16px, 2vw, 20px);
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 30px;
}

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

/* Channels Section */
.page-contact__channels-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-contact__channel-icon {
  width: 250px; /* Larger icon size */
  height: 250px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-contact__channel-title {
  font-size: 24px;
  color: #F2FFF6; /* Main text color */
  margin-bottom: 15px;
}

.page-contact__channel-description {
  font-size: 15px;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 25px;
  flex-grow: 1; /* Make description take available space */
}

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

.page-contact__social-btn {
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6;
  border: 1px solid #2E7A4E;
  padding: 10px 20px;
  border-radius: 5px;
}

.page-contact__social-btn:hover {
  background-color: #1E3A2A; /* Divider color for hover */
}

.page-contact__full-width-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  margin-top: 40px;
  margin-bottom: 40px;
  object-fit: cover;
}

/* Contact Form Section */
.page-contact__form-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-contact__contact-form {
  background-color: #11271B; /* Card background color */
  padding: 40px;
  border-radius: 12px;
  max-width: 700px;
  margin: 40px auto;
  border: 1px solid #2E7A4E; /* Border color */
}

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

.page-contact__form-label {
  display: block;
  font-size: 16px;
  color: #F2FFF6; /* Main text color */
  margin-bottom: 8px;
  font-weight: bold;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  background-color: #08160F; /* Main background color */
  color: #F2FFF6; /* Main text color */
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: #A7D9B8; /* Secondary text color */
  opacity: 0.7;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #2AD16F; /* Green color on focus */
  outline: none;
  box-shadow: 0 0 0 3px rgba(42, 209, 111, 0.3);
}

.page-contact__form-textarea {
  resize: vertical;
  min-height: 120px;
}

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

.page-contact__faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}

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

.page-contact__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
  color: #F2FFF6; /* Main text color */
  list-style: none; /* Remove default marker */
  outline: none;
  transition: background-color 0.3s ease;
}

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

.page-contact__faq-item summary:hover {
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-contact__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: #2AD16F; /* Green color for toggle icon */
}

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

.page-contact__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 16px;
  color: #A7D9B8; /* Secondary text color */
}

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

.page-contact__faq-answer p:last-child {
  margin-bottom: 0;
}

/* Commitment Section */
.page-contact__commitment-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-contact__commitment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-contact__commitment-item {
  padding: 35px;
}

.page-contact__commitment-heading {
  font-size: 22px;
  color: #F2FFF6; /* Main text color */
  margin-bottom: 15px;
}

.page-contact__commitment-text {
  font-size: 15px;
  color: #A7D9B8; /* Secondary text color */
}

/* Call to Action Section */
.page-contact__cta-section {
  padding-top: 60px;
  padding-bottom: 60px;
  text-align: center;
}

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

/* Images */
.page-contact__form-image,
.page-contact__faq-image,
.page-contact__cta-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  margin-top: 40px;
  object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-contact__hero-content {
    padding: 60px 20px 30px 20px;
  }
  .page-contact__hero-title {
    font-size: clamp(28px, 4.5vw, 56px);
  }
  .page-contact__hero-description {
    font-size: clamp(15px, 1.8vw, 18px);
  }
}

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

  .page-contact__container {
    padding: 0 15px; /* Mobile padding */
  }

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

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

  .page-contact__hero-content {
    padding: 40px 15px 20px 15px;
  }

  .page-contact__hero-title {
    font-size: 32px;
  }

  .page-contact__hero-description {
    font-size: 16px;
  }

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

  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact__social-btn,
  .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;
  }

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

  .page-contact__channel-icon {
    width: 200px; /* Adjust for smaller screens */
    height: 200px;
  }

  .page-contact__form-input,
  .page-contact__form-textarea {
    font-size: 15px;
  }

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

  .page-contact__faq-item summary {
    font-size: 16px;
    padding: 15px 20px;
  }

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

  .page-contact__commitment-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Images responsiveness for mobile */
  .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__intro-section,
  .page-contact__channels-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__commitment-section,
  .page-contact__cta-section,
  .page-contact__contact-form,
  .page-contact__commitment-grid,
  .page-contact__channels-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* No additional padding-left/right here to avoid double padding if container already has it */
  }

  /* Specific padding for sections if needed, to override container's 0 padding */
  .page-contact__hero-section,
  .page-contact__intro-section,
  .page-contact__channels-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__commitment-section,
  .page-contact__cta-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-contact__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  
  /* Buttons container mobile adaptation */
  .page-contact__hero-cta-buttons,
  .page-contact__cta-buttons,
  .page-contact__social-links {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }
}