/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
  background-color: #1a1a1a; /* Inherited from shared, ensuring consistency */
  color: #ffffff; /* Default text color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.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-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background-color: rgba(1, 116, 57, 0.85); /* Slightly darker brand green for hero */
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.page-contact__main-title {
  font-size: 3.5em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-contact__intro-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* General Button Styles */
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__btn-link {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Ensure padding is included in width */
  max-width: 100%;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
}

.page-contact__btn-primary {
  background-color: #017439; /* Primary brand color */
  color: #ffffff;
  border: 2px solid #017439;
}

.page-contact__btn-primary:hover {
  background-color: #005a2d;
  border-color: #005a2d;
}

.page-contact__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-contact__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2d;
  border-color: #005a2d;
}

.page-contact__btn-link {
  background-color: transparent;
  color: #017439;
  border: 2px solid #017439;
  padding: 10px 20px;
}

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

/* Methods Section */
.page-contact__methods-section {
  padding: 60px 0;
  background-color: #1a1a1a;
}

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

.page-contact__method-card {
  background-color: rgba(255, 255, 255, 0.08); /* Light transparent background for cards */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%; /* Ensure cards have equal height */
  box-sizing: border-box;
}

.page-contact__card-title {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__card-description {
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow description to take available space */
}

.page-contact__contact-info {
  font-size: 1.1em;
  font-weight: bold;
  color: #ffff00; /* Yellow for contact info */
  margin-bottom: 15px;
}

/* Form Section */
.page-contact__form-section {
  padding: 60px 0;
  background-color: #1a1a1a;
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-contact__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #ffffff;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: #017439;
  box-shadow: 0 0 0 3px rgba(1, 116, 57, 0.5);
}

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

/* FAQ Section */
.page-contact__faq-section {
  padding: 60px 0;
  background-color: #1a1a1a;
}

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

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

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: rgba(1, 116, 57, 0.2); /* Lighter brand green for question background */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 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-question:hover {
  background-color: rgba(1, 116, 57, 0.4);
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #ffffff;
  transition: transform 0.3s ease;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' or similar for open state */
}

.page-contact__faq-answer {
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #f0f0f0;
  font-size: 1em;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.page-contact__faq-link {
  display: inline-block;
  color: #ffff00; /* Yellow for FAQ links */
  text-decoration: underline;
  font-weight: bold;
}

.page-contact__faq-link:hover {
  color: #017439;
}

/* Register CTA Section */
.page-contact__register-cta {
  padding: 60px 0;
  background-color: #017439; /* Solid brand green background */
  text-align: center;
}

.page-contact__register-cta .page-contact__section-title {
  color: #ffffff;
}

.page-contact__register-cta .page-contact__section-description {
  color: #f0f0f0;
  margin-bottom: 30px;
}

/* Images - Global styles, ensuring no small icons and responsiveness */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .page-contact__main-title {
    font-size: 2.8em;
  }
  .page-contact__intro-description {
    font-size: 1.1em;
  }
  .page-contact__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure fixed header offset */
    min-height: 300px;
  }

  .page-contact__main-title {
    font-size: 2.2em;
  }
  .page-contact__intro-description {
    font-size: 1em;
  }
  .page-contact__section-title {
    font-size: 1.8em;
  }
  .page-contact__section-description {
    font-size: 0.95em;
  }

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

  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact__btn-link {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-contact__methods-grid {
    grid-template-columns: 1fr;
  }

  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__register-cta {
    padding: 40px 0;
  }

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

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

  /* Mobile image specific rules */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-contact__container,
  .page-contact__methods-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__register-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important; /* Prevent content overflow */
  }
}

/* Ensure images don't use filter */
.page-contact img {
  filter: none !important; /* Override any potential filter from shared or user agent styles */
}