/* style/contact.css */

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text on smaller screens */
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  background: linear-gradient(135deg, #26A9E0, #1a7bb5); /* Gradient using brand color */
  overflow: hidden;
}

.page-contact__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 30px; /* Space between image and content */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__hero-content {
  max-width: 800px;
  z-index: 1;
}

.page-contact__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-contact__hero-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #f0f0f0;
  margin-bottom: 30px;
}

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

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

.page-contact__section-description {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: #cccccc; /* Slightly lighter for descriptions */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto 0 auto; /* Center image and add top margin */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Contact Methods Section */
.page-contact__contact-methods {
  padding: 80px 0;
  background-color: #1a1a1a; /* Darker background for contrast */
}

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

.page-contact__method-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark bg */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-contact__method-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

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

.page-contact__method-text {
  font-size: 1rem;
  color: #e0e0e0;
  margin-bottom: 25px;
}

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

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

.page-contact__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-contact__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15rem;
  font-weight: bold;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-contact__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-contact__faq-item summary::-webkit-details-marker {
  display: none;
}

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

.page-contact__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: #ffffff;
}

.page-contact__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: #e0e0e0;
  line-height: 1.7;
  /* These are for JS fallback, details element handles visibility natively */
  transition: max-height 0.3s ease-out;
  max-height: 0;
  overflow: hidden;
}

.page-contact__faq-item[open] .page-contact__faq-answer {
  max-height: 2000px; /* Sufficient height for content */
  transition: max-height 0.5s ease-in;
  padding-top: 10px; /* Add padding for content */
}

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

.page-contact__location-info {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  max-width: 700px;
  margin: 40px auto 40px auto;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-contact__location-info p {
  font-size: 1.1rem;
  color: #e0e0e0;
  margin-bottom: 10px;
}

.page-contact__location-info strong {
  color: #26A9E0;
}

.page-contact__map-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__cta-text {
  font-size: 1.1rem;
  color: #e0e0e0;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 30px;
}

/* Call to Action Section */
.page-contact__cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #26A9E0, #1a7bb5); /* Brand color gradient */
  text-align: center;
}

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

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  box-sizing: border-box; /* Ensure padding/border included in width */
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-contact__btn-primary {
  background-color: #EA7C07; /* Custom color for Login/Primary CTA */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

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

.page-contact__btn-large {
  padding: 16px 35px;
  font-size: 1.2rem;
}

/* Responsive Styles */
@media (min-width: 769px) {
  .page-contact__hero-section {
    flex-direction: row; /* Image and content side-by-side on desktop */
    text-align: left;
    padding: 100px 20px;
    justify-content: space-around;
  }

  .page-contact__hero-content {
    order: 1; /* Content first */
    margin-right: 50px;
  }

  .page-contact__hero-image {
    order: 2; /* Image second */
    margin-bottom: 0;
    max-width: 50%;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Small top padding, body handles header offset */
  }

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

  .page-contact__main-title {
    font-size: 2rem;
  }

  .page-contact__hero-description {
    font-size: 0.95rem;
  }

  .page-contact__section-title {
    font-size: 1.8rem;
  }

  .page-contact__section-description {
    font-size: 0.9rem;
  }

  .page-contact__contact-methods,
  .page-contact__faq-section,
  .page-contact__location-section,
  .page-contact__cta-section {
    padding: 50px 0;
  }

  .page-contact__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  /* Buttons responsive */
  .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 {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
  }

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

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

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

  .page-contact__location-info p {
    font-size: 1rem;
  }
}