/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body handles the background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-contact__section-title {
  font-size: clamp(2em, 5vw, 2.8em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for titles */
}

.page-contact__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0; /* Light grey for description on dark background */
}

/* Text colors for contrast management */
.page-contact__text-white {
  color: #ffffff;
}
.page-contact__text-dark {
  color: #333333;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  box-sizing: border-box;
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit image height */
  overflow: hidden;
}

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

.page-contact__hero-content {
  width: 100%;
  max-width: 1200px;
  padding: 40px 20px;
  text-align: center;
  box-sizing: border-box;
  background: rgba(38, 169, 224, 0.9); /* Semi-transparent brand color overlay for text */
  color: #ffffff;
  margin-top: 20px; /* Space between image and content */
  border-radius: 8px;
}

.page-contact__main-title {
  font-size: clamp(2.5em, 6vw, 3.5em);
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #ffffff;
}

.page-contact__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0; /* Light grey for description on dark background */
}

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

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__btn-link,
.page-contact__form-submit-btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* For mobile responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-contact__btn-secondary {
  background: #EA7C07; /* Login/Register color from custom config */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

.page-contact__btn-link {
  background: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  padding: 10px 20px;
  font-size: 1em;
}

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

.page-contact__form-submit-btn {
  width: auto; /* Allow button to size naturally, but respect max-width */
  margin-top: 20px;
}

/* Contact Channels Section */
.page-contact__contact-channels {
  padding: 60px 0;
}

.page-contact__contact-channels .page-contact__container {
  background: #ffffff; /* Light background for this section */
  color: #333333; /* Dark text for light background */
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__contact-channels .page-contact__section-title {
  color: #333333; /* Dark title for light background */
}

.page-contact__contact-channels .page-contact__section-description {
  color: #555555; /* Dark text for light background */
}

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

.page-contact__channel-card {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

.page-contact__channel-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-contact__card-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-contact__card-text {
  font-size: 1em;
  margin-bottom: 15px;
  flex-grow: 1; /* Push button to bottom */
}

.page-contact__phone-number,
.page-contact__email-address,
.page-contact__address-text {
  font-size: 1.1em;
  margin-bottom: 15px;
  color: #555555;
}

/* Contact Form Section */
.page-contact__contact-form-section {
  padding: 60px 0;
  background: #26A9E0; /* Brand color background for this section */
  color: #ffffff;
}

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

.page-contact__contact-form {
  max-width: 700px;
  margin: 40px auto 0;
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for form background */
  padding: 30px;
  border-radius: 8px;
  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: 600;
  font-size: 1.1em;
  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: 6px;
  background: rgba(0, 0, 0, 0.2);
  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 3px rgba(255, 255, 255, 0.3);
}

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

.page-contact__faq-section .page-contact__container {
  background: #ffffff; /* Light background for this section */
  color: #333333; /* Dark text for light background */
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__faq-section .page-contact__section-title {
  color: #333333; /* Dark title for light background */
}

.page-contact__faq-section .page-contact__section-description {
  color: #555555; /* Dark text for light background */
}

.page-contact__faq-list {
  margin-top: 40px;
}

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

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1em;
  color: #26A9E0;
  background: #eaf7fc;
  border-bottom: 1px solid #d0eaf5;
}

.page-contact__faq-item[open] .page-contact__faq-question {
  border-bottom: none;
}

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

.page-contact__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-contact__faq-answer {
  padding: 15px 25px;
  font-size: 1em;
  color: #555555;
  background: #ffffff;
}

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

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

/* Commitment Section */
.page-contact__commitment-section {
  padding: 60px 0;
  background: #1a1a1a; /* Dark background for a strong contrast */
  color: #ffffff;
  text-align: center;
}

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

.page-contact__commitment-section .page-contact__btn-primary {
  margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__hero-content {
    padding: 30px 15px;
  }
  .page-contact__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-contact__description {
    font-size: 1.1em;
  }
  .page-contact__section-title {
    font-size: clamp(1.8em, 4vw, 2.5em);
  }
}

@media (max-width: 768px) {
  .page-contact__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-contact__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important; /* Ensure small top padding */
  }

  .page-contact__hero-content {
    margin-top: 15px;
    padding: 25px 15px;
  }

  .page-contact__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-contact__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact__btn-link,
  .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;
    padding-right: 15px;
  }

  .page-contact__contact-channels,
  .page-contact__contact-form-section,
  .page-contact__faq-section,
  .page-contact__commitment-section {
    padding: 40px 0;
  }

  .page-contact__contact-channels .page-contact__container,
  .page-contact__faq-section .page-contact__container {
    padding: 25px;
  }

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

  .page-contact__contact-form {
    margin-top: 20px;
    padding: 20px;
  }

  .page-contact__form-label {
    font-size: 1em;
  }

  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px 12px;
  }

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

  .page-contact__faq-answer {
    padding: 10px 20px;
  }
  
  /* Image responsiveness */
  .page-contact img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video responsiveness (if any, though none used here) */
  .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;
  }
}

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

/* Color contrast enforcement */
/* Body is dark, so default text is light. Sections with light background need dark text. */
/* .page-contact already sets color: #ffffff */

/* Light background sections */
.page-contact__contact-channels .page-contact__container,
.page-contact__faq-section .page-contact__container {
  background: #ffffff;
  color: #333333;
}
.page-contact__contact-channels .page-contact__section-title,
.page-contact__faq-section .page-contact__section-title {
  color: #26A9E0; /* Brand color for titles in light sections */
}
.page-contact__contact-channels .page-contact__section-description,
.page-contact__faq-section .page-contact__section-description {
  color: #555555;
}
.page-contact__channel-card,
.page-contact__faq-item {
  background: #f9f9f9;
  color: #333333;
}
.page-contact__card-title {
  color: #26A9E0;
}
.page-contact__phone-number,
.page-contact__email-address,
.page-contact__address-text {
  color: #555555;
}
.page-contact__faq-question {
  color: #26A9E0;
  background: #eaf7fc;
}
.page-contact__faq-answer {
  color: #555555;
  background: #ffffff;
}