/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #ffffff; /* Default body background is white */
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding: 80px 20px;
  min-height: 500px;
  background-color: #017439; /* Use brand primary color for hero background */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  overflow: hidden; /* Prevent content overflow */
}

.page-contact__hero-content {
  max-width: 900px;
  margin-bottom: 40px;
  z-index: 1;
}

.page-contact__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

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

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

.page-contact__btn-primary,
.page-contact__btn-secondary {
  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;
  box-sizing: border-box; /* Crucial for button responsiveness */
  white-space: normal; /* Allow text to wrap */\  word-wrap: break-word; /* Break long words */
  max-width: 100%; /* Ensure button doesn't exceed container */
}

.page-contact__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

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

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

.page-contact__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-contact__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Overlay effect */
  filter: none !important; /* Ensure no CSS filter on images */
}

/* General Section Styling */
.page-contact__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-contact__section-title {
  font-size: 2.2em;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
}

.page-contact__section-description {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-contact__method-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  color: #333333;
}

.page-contact__method-card:hover {
  transform: translateY(-10px);
}

.page-contact__method-icon {
  width: 100%; /* Ensure image fills card width responsively */
  height: auto;
  max-width: 250px; /* Max size for icon-like images */
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
  object-fit: contain; /* Ensure image content is visible */
  filter: none !important; /* Ensure no CSS filter on images */
}

.page-contact__method-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
}

.page-contact__method-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

.page-contact__email-address,
.page-contact__phone-number {
  font-weight: bold;
  color: #017439;
  margin-top: 15px;
}

/* Contact Form Section */
.page-contact__form-section {
  padding: 60px 0;
  background-color: #017439; /* Dark background */
  color: #ffffff;
}

.page-contact__form-section .page-contact__section-title,
.page-contact__form-section .page-contact__section-description {
  color: #ffffff;
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.1);
  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;
  font-size: 1.1em;
  margin-bottom: 8px;
  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.05);
  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.7);
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

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

.page-contact__form-submit-btn {
  width: auto;
  padding: 15px 40px;
  font-size: 1.1em;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  font-weight: bold;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__form-submit-btn:hover {
  background-color: #a00606;
}

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

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

.page-contact__faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  background-color: #ffffff;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #f5f5f5;
  cursor: pointer;
  font-weight: bold;
  color: #017439;
  transition: background-color 0.3s ease;
}

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

.page-contact__faq-question-text {
  margin: 0;
  font-size: 1.1em;
  color: #017439;
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #017439;
  transition: transform 0.3s ease;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  transform: rotate(45deg);
}

.page-contact__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 1000px !important; /* Important for JS functionality */
  padding: 20px;
  padding-top: 0;
}

.page-contact__faq-answer p {
  margin-bottom: 0;
  color: #555555;
}

.page-contact__faq-answer a {
  color: #017439;
  text-decoration: underline;
}

/* CTA Banner Section */
.page-contact__cta-banner {
  padding: 80px 20px;
  background-color: #017439; /* Dark background */
  color: #ffffff;
  text-align: center;
}

.page-contact__banner-title {
  font-size: 2.5em;
  color: #ffffff;
  margin-bottom: 20px;
}

.page-contact__banner-description {
  font-size: 1.2em;
  color: #ffffff;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 2.5em;
  }
  .page-contact__section-title {
    font-size: 2em;
  }
  .page-contact__banner-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile content is not hidden */
  }
  .page-contact__hero-title {
    font-size: 2em;
  }
  .page-contact__hero-description {
    font-size: 1em;
  }
  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact__form-submit-btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-contact__section-title {
    font-size: 1.8em;
  }
  .page-contact__section-description {
    font-size: 0.95em;
  }

  .page-contact__methods-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__cta-banner {
    padding: 40px 0;
  }

  .page-contact__container {
    padding: 0 15px;
    width: 100%; /* Ensure container takes full width */
    box-sizing: border-box;
  }

  .page-contact__method-card {
    padding: 20px;
  }
  .page-contact__method-icon {
    max-width: 100% !important; /* Crucial for mobile responsiveness */
    height: auto !important;
    min-width: unset;
    min-height: unset;
  }

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

  .page-contact__faq-question {
    padding: 15px;
  }
  .page-contact__faq-question-text {
    font-size: 1em;
  }
  .page-contact__faq-answer {
    padding: 0 15px;
  }
  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 15px;
    padding-top: 0;
  }

  /* Image responsiveness */
  .page-contact img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All containers with images */
  .page-contact__hero-image-wrapper,
  .page-contact__method-card,
  .page-contact__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  .page-contact__methods-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__cta-banner {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .page-contact__hero-title {
    font-size: 1.8em;
  }
  .page-contact__section-title {
    font-size: 1.6em;
  }
  .page-contact__banner-title {
    font-size: 1.8em;
  }
}

/* Ensure no CSS filter on images */
.page-contact img {
  filter: none !important;
}

/* Content area image size check (not small icons) */
.page-contact__hero-image,
.page-contact__method-icon {
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

@media (max-width: 768px) {
  .page-contact__hero-image,
  .page-contact__method-icon {
    min-width: unset; /* Reset min-width for mobile */
    min-height: unset; /* Reset min-height for mobile */
  }
}