/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: var(--background-color, #FFFFFF); /* Ensure body background is light */
}

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

/* Section titles */
.page-contact__section-title {
  font-size: clamp(28px, 3.5vw, 48px); 
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #017439; /* Brand primary color */
}

.page-contact__section-title--light {
  color: #FFFFFF; /* White text for dark backgrounds */
}

/* Section intro paragraphs */
.page-contact__section-intro {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #555555;
}

.page-contact__section-intro--light {
  color: #f0f0f0; /* Light text for dark backgrounds */
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-contact__btn-primary {
  background-color: #017439; /* Brand primary color */
  color: #FFFFFF;
  border: 2px solid #017439;
}

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

.page-contact__btn-secondary {
  background-color: #FFFFFF;
  color: #017439; /* Brand primary color */
  border: 2px solid #017439;
}

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  padding: 60px 0;
  background-color: #f8f8f8; /* Light background for hero section */
  padding-top: 10px; /* Small top padding as per rule */
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 12px;
}

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

.page-contact__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-contact__main-title {
  font-size: clamp(32px, 4.5vw, 56px); /* Use clamp for H1 as per rule */
  font-weight: 800;
  margin-bottom: 20px;
  color: #017439; /* Brand primary color */
  line-height: 1.2;
}

.page-contact__description {
  font-size: 20px;
  margin-bottom: 30px;
  color: #555555;
  line-height: 1.5;
}

/* Contact Info Section */
.page-contact__info-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

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

.page-contact__method-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 250px; /* Ensure cards have some height */
}

.page-contact__card-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #017439;
}

.page-contact__card-text,
.page-contact__card-email,
.page-contact__card-phone {
  font-size: 17px;
  color: #555555;
  margin-bottom: 15px;
}

.page-contact__method-card .page-contact__btn-secondary {
  margin-top: auto; /* Push button to the bottom */
  width: auto; /* Allow button to size naturally */
}

/* Contact Form Section */
.page-contact__form-section {
  padding: 80px 0;
  background-color: #017439; /* Brand primary color as dark background */
  color: #FFFFFF; /* Light text for dark background */
}

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

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

.page-contact__form-label {
  display: block;
  font-size: 17px;
  margin-bottom: 10px;
  font-weight: 600;
  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: 8px;
  background-color: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  font-size: 16px;
  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 3px rgba(255, 255, 255, 0.3);
}

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

.page-contact__form-submit-btn {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 8px;
  background-color: #C30808; /* Custom color for register/login type actions */
  color: #FFFF00; /* Custom color for register/login font */
  border: 2px solid #C30808;
  transition: all 0.3s ease;
}

.page-contact__form-submit-btn:hover {
  background-color: #a00606;
  border-color: #a00606;
  color: #FFFFFF; /* Change to white on hover for better contrast */
}

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

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

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

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: #017439;
  cursor: pointer;
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* Remove default marker for details summary */
}

.page-contact__faq-item[open] > .page-contact__faq-question {
  border-bottom: 1px solid #d0d0d0;
  background-color: #e5e5e5;
}

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

.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  margin-left: 15px;
  color: #017439;
}

.page-contact__faq-answer {
  padding: 20px 25px;
  font-size: 16px;
  color: #555555;
}

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

.page-contact__faq-link {
  color: #017439;
  text-decoration: underline;
  font-weight: 600;
}

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

/* CTA Section */
.page-contact__cta-section {
  padding: 80px 0;
  background-color: #017439; /* Brand primary color as dark background */
  color: #FFFFFF;
  text-align: center;
}

.page-contact__cta-content {
  max-width: 900px;
  margin: 0 auto;
}

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

/* Responsive Styles */
@media (max-width: 992px) {
  .page-contact__contact-methods {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-contact__container {
    padding: 0 15px;
  }

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

  .page-contact__main-title {
    font-size: 30px;
  }

  .page-contact__description {
    font-size: 16px;
  }

  .page-contact__section-title {
    font-size: 26px;
  }

  .page-contact__section-intro {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-contact__info-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__cta-section {
    padding: 50px 0;
  }

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

  .page-contact__form-submit-btn {
    font-size: 16px;
    padding: 12px;
  }

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

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

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

  /* Mobile image responsiveness */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-contact__hero-image-wrapper,
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__contact-form,
  .page-contact__faq-list,
  .page-contact__faq-item,
  .page-contact__cta-content,
  .page-contact__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Mobile button responsiveness */
  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact a[class*="button"],
  .page-contact a[class*="btn"],
  .page-contact__form-submit-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; /* Ensure padding inside button */
    padding-right: 15px; /* Ensure padding inside button */
  }

  /* Additional mobile specific padding for sections if needed */
  .page-contact__info-section .page-contact__container,
  .page-contact__form-section .page-contact__container,
  .page-contact__faq-section .page-contact__container,
  .page-contact__cta-section .page-contact__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-contact__main-title {
    font-size: 28px;
  }

  .page-contact__section-title {
    font-size: 24px;
  }

  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    padding: 10px 20px;
  }
}

/* Ensure no filter is used on images */
.page-contact img {
  filter: none;
}