/* 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 background */
  background-color: var(--background-color, #FFFFFF); /* Default to white if var not set */
}

/* Ensure no double padding-top from shared header */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above content */
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  overflow: hidden; /* Prevent content overflow */
}

.page-contact__dark-section {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff; /* White text for dark background */
}

.page-contact__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-contact__medium-bg {
  background-color: #f5f5f5; /* Light grey for contrast with white and blue */
  color: #333333;
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain image width */
  margin-bottom: 30px; /* Space between image and text */
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-height: 200px; /* Minimum image size */
}

.page-contact__hero-content {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.page-contact__main-title {
  font-size: clamp(2em, 4vw, 2.8em); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: inherit; /* Inherit from section, ensures contrast */
}

.page-contact__description {
  font-size: 1.1em;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 30px auto;
  color: inherit; /* Inherit from section, ensures contrast */
}

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

.page-contact__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em); /* Responsive font size */
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: inherit;
}

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

/* Contact Info Section */
.page-contact__contact-info-section {
  padding: 80px 0;
}

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

.page-contact__info-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

.page-contact__info-card .page-contact__card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0; /* Brand color for titles */
}

.page-contact__info-card .page-contact__card-text {
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Form Section */
.page-contact__form-section {
  padding: 80px 0;
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: #ffffff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  color: #333333;
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
  color: #333333;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: #888888;
}

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

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__faq-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent; /* Default transparent border */
  box-sizing: border-box;
}

.page-contact__btn-primary {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  border-color: #26A9E0;
}

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

.page-contact__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0; /* Brand primary color */
  border-color: #26A9E0;
}

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

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

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

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

.page-contact__faq-item summary {
  list-style: none; /* Remove default marker */
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1em;
  color: #333333;
  transition: background-color 0.3s ease;
}

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

.page-contact__faq-item summary:hover {
  background-color: #f0f0f0;
}

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

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

.page-contact__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 0.95em;
  line-height: 1.6;
  color: #555555;
}

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

.page-contact__faq-link {
  color: #26A9E0;
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
}

.page-contact__faq-link:hover {
  color: #1e87b7;
  text-decoration: none;
}

/* Social Section */
.page-contact__social-section {
  padding: 80px 0;
}

.page-contact__social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-contact__social-text-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  transition: transform 0.3s ease;
  padding: 10px 15px; /* Add some padding to make them clickable */
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1); /* Subtle background */
}

.page-contact__social-text-link:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.2);
}
.page-contact__social-text-link span {
  font-size: 1.1em;
}

/* Location Section */
.page-contact__location-section {
  padding: 80px 0;
}

.page-contact__map-wrapper {
  width: 100%;
  max-width: 1000px;
  margin: 40px auto 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-height: 200px; /* Minimum map image size */
}

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


/* Responsive Styles */
@media (max-width: 1024px) {
  .page-contact__hero-section {
    padding: 40px 15px;
    padding-top: 10px;
  }
  .page-contact__container {
    padding: 30px 15px;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important; /* Ensure small top padding */
  }

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

  .page-contact__description {
    font-size: 1em;
  }

  .page-contact__section-title {
    font-size: clamp(1.6em, 6vw, 2.2em);
  }

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

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

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

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

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

  .page-contact__social-links {
    gap: 20px;
  }

  /* --- Mobile specific overrides with !important --- */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__hero-image-wrapper,
  .page-contact__map-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  /* Video (if any, though none explicitly here, keeping for robustness) */
  .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;
    padding-top: 10px !important; /* Small top padding for video section */
  }

  /* Buttons */
  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact a[class*="button"],
  .page-contact a[class*="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; /* Add padding to button content */
    padding-right: 15px; /* Add padding to button content */
  }
  
  .page-contact__cta-buttons,
  .page-contact__button-group,
  .page-contact__btn-container,
  .page-contact__form-section .page-contact__contact-form {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important; /* For multiple buttons */
    gap: 10px; /* Spacing between wrapped buttons */
    overflow: hidden !important;
  }
  .page-contact__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
  }
}

@media (max-width: 480px) {
  .page-contact__hero-section {
    padding: 20px 10px;
    padding-top: 10px !important;
  }
  .page-contact__container {
    padding: 20px 10px;
  }
  .page-contact__main-title {
    font-size: clamp(1.6em, 8vw, 2em);
  }
  .page-contact__section-title {
    font-size: clamp(1.4em, 7vw, 1.8em);
  }
  .page-contact__info-card {
    padding: 20px;
  }
  .page-contact__contact-form {
    padding: 20px;
  }
}