/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Main content will have sections with specific backgrounds */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  min-height: 500px;
  text-align: center;
  overflow: hidden;
  background-color: #1a1a1a; /* Dark background for hero, slightly lighter than body */
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

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

.page-contact__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-contact__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-contact__hero-cta-button {
  display: inline-block;
  background-color: #26A9E0; /* Brand color for button */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  box-sizing: border-box; /* For mobile button responsiveness */
}

.page-contact__hero-cta-button:hover {
  background-color: #1e87b8; /* Darker shade on hover */
}

/* Contact Methods Section */
.page-contact__methods-section {
  background-color: #1a1a1a; /* Dark background */
  padding: 80px 0;
}

.page-contact__methods-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-contact__methods-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #f0f0f0;
}

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

.page-contact__method-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-contact__method-text {
  font-size: 1em;
  color: #e0e0e0;
  margin-bottom: 20px;
  flex-grow: 1; /* Allows text to take up available space */
}

.page-contact__email-address,
.page-contact__phone-number {
  font-weight: bold;
  color: #26A9E0; /* Highlight contact info */
  display: block;
  margin-top: 10px;
}

.page-contact__method-button {
  display: inline-block;
  background-color: #26A9E0;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: 20px;
  box-sizing: border-box; /* For mobile button responsiveness */
}

.page-contact__method-button:hover {
  background-color: #1e87b8;
}

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

.page-contact__faq-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-contact__faq-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #f0f0f0;
}

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

.page-contact__faq-item {
  background-color: rgba(255, 255, 255, 0.05); /* Lighter transparent white for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08); /* Slightly darker for question header */
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker for details/summary */
}

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

.page-contact__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

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

.page-contact__faq-item[open] .page-contact__faq-toggle {
  content: "\2212"; /* Change content for open state via JS */
}

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

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

/* Why Choose Us Section */
.page-contact__why-us-section {
  background-color: #1a1a1a;
  padding: 80px 0;
}

.page-contact__why-us-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.page-contact__why-us-text-content {
  display: flex;
  flex-direction: column;
}

.page-contact__why-us-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-contact__why-us-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-contact__why-us-cta-button {
  display: inline-block;
  background-color: #26A9E0;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  align-self: flex-start; /* Align button to start */
  box-sizing: border-box; /* For mobile button responsiveness */
}

.page-contact__why-us-cta-button:hover {
  background-color: #1e87b8;
}

.page-contact__why-us-image-wrapper {
  text-align: center;
}

.page-contact__why-us-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  display: block; /* Ensures max-width works correctly */
  margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-contact__hero-title {
    font-size: 2.5em;
  }

  .page-contact__hero-description {
    font-size: 1.1em;
  }

  .page-contact__methods-title,
  .page-contact__faq-title,
  .page-contact__why-us-title {
    font-size: 2em;
  }

  .page-contact__why-us-content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .page-contact__why-us-text-content {
    order: 2; /* Image first on smaller screens */
  }

  .page-contact__why-us-image-wrapper {
    order: 1;
  }

  .page-contact__why-us-cta-button {
    align-self: center; /* Center button on single column layout */
  }
}

@media (max-width: 768px) {
  /* Mobile image responsiveness */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Hero section specific padding for mobile */
  .page-contact__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Fixed header offset */
    padding-left: 15px !important;
    padding-right: 15px !important;
    min-height: 350px;
  }

  .page-contact__hero-title {
    font-size: 2em;
  }

  .page-contact__hero-description {
    font-size: 1em;
  }

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

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

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

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

  /* Mobile button responsiveness */
  .page-contact__hero-cta-button,
  .page-contact__method-button,
  .page-contact__why-us-cta-button,
  .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;
    text-align: center; /* Center button text */
  }

  /* Button containers */
  .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; /* Allow buttons to wrap */
    gap: 10px; /* Space between wrapped buttons */
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  .page-contact__why-us-cta-button {
    align-self: stretch; /* Make button full width */
  }
}

@media (max-width: 480px) {
  .page-contact__hero-title {
    font-size: 1.8em;
  }
  .page-contact__methods-title,
  .page-contact__faq-title,
  .page-contact__why-us-title {
    font-size: 1.8em;
  }
}