/* style/contact.css */

/* Base styles for the page content */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: transparent; /* Inherit from body or shared.css */
}

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

.page-contact__section-title {
  font-size: 2.5em;
  color: #26A9E0; /* Brand primary color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-contact__highlight {
  color: #26A9E0; /* Highlight brand name */
  font-weight: bold;
}

.page-contact__keyword {
  color: #EA7C07; /* Use a distinct color for keywords for visual interest, ensuring contrast */
  font-weight: normal;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%; /* For mobile responsiveness */
  box-sizing: border-box; /* For mobile responsiveness */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
}

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

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

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

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

/* Images */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* HERO Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px;
  padding-top: var(--header-offset, 120px); /* Adjust based on shared.css body padding */
  padding-bottom: 80px;
  overflow: hidden;
  background-color: #121212; /* Explicit dark background */
}

.page-contact__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.3; /* Subtle background */
}

.page-contact__hero-section .page-contact__container {
  position: relative;
  z-index: 1;
  color: #ffffff;
}

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

.page-contact__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* Contact Info Section */
.page-contact__info-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  color: #ffffff;
}

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

.page-contact__method-card {
  background-color: #2a2a2a; /* Darker card background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-contact__method-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-contact__method-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__method-description {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1; /* Push button to bottom */
}

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

.page-contact__form-container {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-contact__form-content {
  flex: 1;
}

.page-contact__form-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-contact__form-image {
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Ensure image is not too small */
  min-height: 200px;
}

.page-contact__contact-form {
  margin-top: 30px;
  text-align: left;
}

.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;
  border: 1px solid #333;
  border-radius: 5px;
  background-color: #2a2a2a;
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-contact__contact-form .page-contact__btn-primary {
  width: auto;
  padding: 15px 30px;
  font-size: 1.1em;
  margin-top: 10px;
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

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

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

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #2a2a2a;
  transition: background-color 0.3s ease;
}

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

.page-contact__faq-title {
  font-size: 1.2em;
  color: #26A9E0;
  margin: 0;
  font-weight: bold;
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #ffffff;
  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: #f0f0f0;
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 25px;
}

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

.page-contact__faq-image {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 300px; /* Example size for decorative image */
  height: auto;
  opacity: 0.1;
  z-index: 0;
  border-radius: 0; /* No specific radius for background image */
  min-width: 200px; /* Ensure it's not too small */
  min-height: 200px;
}

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

.page-contact__location-container {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-contact__location-content {
  flex: 1;
  text-align: left;
}

.page-contact__address {
  font-style: normal;
  margin-top: 20px;
  line-height: 1.8;
  color: #f0f0f0;
}

.page-contact__map-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-contact__location-map {
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Ensure image is not too small */
  min-height: 200px;
}

/* CTA Section */
.page-contact__cta-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-contact__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.2;
}

.page-contact__cta-container {
  position: relative;
  z-index: 1;
}

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

/* --- Responsive Styles (Mobile First then Desktop Overrides) --- */

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .page-contact {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-contact__container {
    padding: 0 15px !important;
  }

  .page-contact__section-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-contact__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  /* HERO Section */
  .page-contact__hero-section {
    padding-top: var(--header-offset, 80px) !important; /* Smaller offset for mobile, ensure it doesn't double */
    padding-bottom: 40px;
    min-height: 400px;
  }

  .page-contact__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-contact__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
  }

  /* Contact Info Section */
  .page-contact__info-section {
    padding: 40px 0;
  }

  .page-contact__contact-methods {
    grid-template-columns: 1fr; /* Stack cards vertically */
    gap: 20px;
    margin-top: 30px;
  }

  .page-contact__method-card {
    padding: 20px;
  }

  .page-contact__method-image {
    height: 180px;
  }

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

  .page-contact__form-container {
    flex-direction: column; /* Stack form and image vertically */
    gap: 30px;
  }

  .page-contact__form-image-wrapper {
    order: -1; /* Image above form on mobile */
  }

  .page-contact__form-image {
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-contact__contact-form .page-contact__btn-primary {
    width: 100% !important; /* Full width button */
    padding: 12px 20px !important;
  }

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

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

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

  .page-contact__faq-title {
    font-size: 1.1em;
  }

  .page-contact__faq-toggle {
    font-size: 1.2em;
  }

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

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

  .page-contact__faq-image {
    width: 150px;
    right: -20px;
    bottom: -20px;
    min-width: 150px !important;
    min-height: 150px !important;
  }

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

  .page-contact__location-container {
    flex-direction: column; /* Stack content and map vertically */
    gap: 30px;
  }

  .page-contact__location-map {
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  /* CTA Section */
  .page-contact__cta-section {
    padding: 40px 0;
  }

  .page-contact__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    margin-top: 30px;
  }

  .page-contact__cta-buttons .page-contact__btn-primary,
  .page-contact__cta-buttons .page-contact__btn-secondary {
    width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Universal Image and Container Mobile Rules */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important; /* Enforce min size for content images */
    min-height: 200px !important;
  }

  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__form-container,
  .page-contact__location-container,
  .page-contact__cta-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Button specific mobile rules */
  .page-contact__cta-button,
  .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;
    padding-right: 15px;
  }

  .page-contact__cta-buttons,
  .page-contact__button-group,
  .page-contact__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-contact__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}