/* style/contact.css */

/* --- General Styles for .page-contact --- */
.page-contact {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light body background */
  background-color: var(--custom-background-color, #ffffff); /* Inherit from shared or default to white */
  line-height: 1.6;
  padding-bottom: 40px; /* Add some padding at the bottom for overall page */
}

/* --- Hero Section --- */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  text-align: center;
  padding: 60px 20px; /* General padding for the section */
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #f5f5f5; /* Light background for the hero section */
}

.page-contact__hero-image {
  width: 100%;
  max-width: 1920px; /* Max width for the image */
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 30px; /* Space between image and content */
  border-radius: 8px;
}

.page-contact__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-contact__main-title {
  font-size: clamp(2em, 3.5vw, 3.2em); /* Responsive H1 font size */
  font-weight: 700;
  color: #26A9E0; /* Brand color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-contact__btn-primary {
  background-color: #26A9E0; /* Main brand color */
  color: #FFFFFF; /* White text for contrast */
  border: 2px solid #26A9E0;
}

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

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

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

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

/* --- Section Titles and Descriptions --- */
.page-contact__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 15px;
}

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

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

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

.page-contact__card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between; /* Push button to bottom */
  min-height: 280px; /* Ensure cards have some height for consistent look */
}

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

.page-contact__card-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow text to grow and push button down */
}

.page-contact__card-contact-detail {
  font-size: 1.1em;
  font-weight: 600;
  color: #333333;
  margin-bottom: 20px;
}

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

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  font-size: 1em;
  color: #333333;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #26A9E0;
  outline: none;
}

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

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

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

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

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

.page-contact__faq-item summary::-webkit-details-marker { /* For Webkit browsers */
  display: none;
}

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

.page-contact__faq-qtext {
  flex-grow: 1;
  color: #26A9E0; /* Brand color for questions */
}

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

.page-contact__faq-item[open] .page-contact__faq-toggle {
  content: "−"; /* Change to minus when open */
}

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

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

.page-contact__more-faq {
  text-align: center;
  margin-top: 30px;
  font-size: 1em;
  color: #555555;
}

.page-contact__more-faq a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
}

.page-contact__more-faq a:hover {
  text-decoration: underline;
}

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

.page-contact__location-details {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: center;
}

.page-contact__address {
  font-size: 1.2em;
  font-weight: 600;
  color: #333333;
  margin-bottom: 30px;
}

.page-contact__map-placeholder {
  width: 100%;
  height: auto;
  background-color: #e0e0e0; /* Placeholder background */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

/* --- Final CTA Section --- */
.page-contact__final-cta {
  padding: 80px 0;
  background-color: #26A9E0; /* Brand color background */
  color: #FFFFFF; /* White text for contrast */
  text-align: center;
}

.page-contact__final-cta .page-contact__section-title,
.page-contact__final-cta .page-contact__section-description {
  color: #FFFFFF; /* White text for this section */
}

.page-contact__btn-large {
  padding: 18px 40px;
  font-size: 1.2em;
  margin-top: 30px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .page-contact__main-title {
    font-size: clamp(2em, 4vw, 3em);
  }
  .page-contact__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.2em);
  }
}

@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Images */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Containers & Sections */
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__hero-section,
  .page-contact__info-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__location-section,
  .page-contact__final-cta,
  .page-contact__contact-form,
  .page-contact__map-placeholder {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Hero Section */
  .page-contact__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-contact__hero-image {
    margin-bottom: 20px;
  }

  .page-contact__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-contact__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  /* Buttons */
  .page-contact__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }
  .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__btn-large {
    padding: 15px 25px;
    font-size: 1.1em;
  }

  /* Contact Cards */
  .page-contact__contact-cards {
    grid-template-columns: 1fr; /* Single column */
    gap: 20px;
  }
  .page-contact__card {
    min-height: unset; /* Allow height to adjust */
  }

  /* Form */
  .page-contact__contact-form {
    padding: 20px;
  }

  /* FAQ */
  .page-contact__faq-item summary {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-contact__faq-answer {
    padding: 0 20px 15px;
  }
  .page-contact__faq-toggle {
    font-size: 1.3em;
  }

  /* Location */
  .page-contact__address {
    font-size: 1.1em;
  }
}