/* style/contact.css */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

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

.page-contact__hero-section {
  position: relative;
  padding: 80px 0 60px; /* Adjusted padding */
  text-align: center;
  color: #ffffff;
  background-color: #017439; /* Brand color as background */
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-contact__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFFF00; /* Register/Login font color for emphasis */
  font-weight: bold;
}

.page-contact__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.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;
  white-space: normal; /* Allow button text to wrap */
  word-wrap: break-word; /* Ensure long words break */
  text-align: center;
  box-sizing: border-box;
}

.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: #E00A0A;
  border-color: #E00A0A;
}

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

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

.page-contact__section-title {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 20px;
  color: #017439; /* Darker color for light background */
}

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

/* Contact Info Section */
.page-contact__info-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text for light background */
}

.page-contact__text-contrast-fix {
  color: #333333 !important;
}

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

.page-contact__method-item {
  background-color: #f5f5f5;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

/* Contact Form Section */
.page-contact__form-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Body background color */
  color: #ffffff; /* Light text for dark background */
}

.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.08); /* Slightly lighter background for form */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px 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 {
  border-color: #017439;
  outline: none;
}

.page-contact__submit-button {
  width: auto;
  margin-top: 20px;
  cursor: pointer;
}

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

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

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

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

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

.page-contact__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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 25px;
  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; /* Sufficiently large to show content */
  padding: 15px 25px 20px;
}

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

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

/* Location Section */
.page-contact__location-section {
  padding: 80px 0;
  background-color: #0a0a0a;
  color: #ffffff;
}

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

.page-contact__location-details {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.1em;
}

.page-contact__address-text,
.page-contact__working-hours {
  margin-bottom: 10px;
}

.page-contact__map-placeholder {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.page-contact__map-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Final CTA Section */
.page-contact__final-cta-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-contact__hero-title {
    font-size: 2.2em;
  }
  .page-contact__section-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding: 60px 0 40px; /* Adjust padding for mobile */
    padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header on mobile */
  }
  .page-contact__hero-title {
    font-size: 1.8em;
  }
  .page-contact__hero-description {
    font-size: 1em;
  }
  .page-contact__section-title {
    font-size: 1.6em;
  }
  .page-contact__section-description {
    font-size: 1em;
  }
  .page-contact__contact-methods {
    grid-template-columns: 1fr;
  }
  .page-contact__cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-contact__form-section, .page-contact__info-section, .page-contact__faq-section, .page-contact__location-section, .page-contact__final-cta-section {
    padding: 40px 0;
  }
  .page-contact__contact-form {
    padding: 25px;
  }

  /* Image responsive rules */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video responsive rules (if any videos were added) */
  .page-contact video,
  .page-contact__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-contact__video-section,
  .page-contact__video-container,
  .page-contact__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* General container padding for mobile */
  .page-contact__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Specific container overrides for mobile to prevent overflow */
  .page-contact__section,
  .page-contact__card,
  .page-contact__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

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