/* style/contact.css */

/* Base styles for the page-contact scope */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background color */
}

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

/* Section titles */
.page-contact__section-title {
  font-size: 2.5em; /* Using em for relative sizing */
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

/* Dark background sections for contrast */
.page-contact__dark-bg {
  background-color: #2F6BFF; /* Primary color */
  color: #ffffff; /* White text for dark background */
  padding: 60px 0;
}

.page-contact__dark-bg .page-contact__section-title,
.page-contact__dark-bg .page-contact__hero-description {
  color: #ffffff;
}

/* Light background sections */
.page-contact__light-bg {
  background-color: #F4F7FB; /* Background color */
  color: #1F2D3D; /* Text Main */
  padding: 60px 0;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  text-align: center;
  padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
  overflow: hidden; /* Ensure no image overflow */
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit image height to prevent excessive size on desktop */
  overflow: hidden;
  margin-bottom: 20px;
}

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

.page-contact__hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  z-index: 1;
}

.page-contact__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
}

.page-contact__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Buttons */
.page-contact__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%;
  max-width: 400px; /* Limit width for button group */
  margin: 0 auto;
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  width: 100%; /* Default to full width for better mobile stacking */
  max-width: 200px; /* Max width for desktop */
}

.page-contact__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
  color: #ffffff;
  border: none;
}

.page-contact__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-contact__btn-secondary {
  background: #ffffff; /* Card BG */
  color: #2F6BFF; /* Primary color */
  border: 2px solid #2F6BFF; /* Primary color border */
}

.page-contact__btn-secondary:hover {
  background: #2F6BFF;
  color: #ffffff;
}

/* Contact Methods Section */
.page-contact__methods-section {
  text-align: center;
}

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

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

.page-contact__method-card {
  background-color: #ffffff; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: left;
  transition: transform 0.3s ease;
  border: 1px solid #D6E2FF; /* Border */
}

.page-contact__method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__method-title {
  font-size: 1.5em;
  color: #2F6BFF; /* Primary color */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__method-description {
  font-size: 1em;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 20px;
}

/* FAQ Section */
.page-contact__faq-section {
  text-align: center;
}

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

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

.page-contact__faq-item {
  background-color: #ffffff; /* Card BG */
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #D6E2FF; /* Border */
  overflow: hidden;
}

.page-contact__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.1em;
  color: #1F2D3D; /* Text Main */
  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: #F4F7FB; /* Background */
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-contact__faq-qtext {
  flex-grow: 1;
  color: #2F6BFF; /* Primary color for question text */
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #2F6BFF; /* Primary color */
}

.page-contact__faq-answer {
  padding: 0 30px 20px 30px;
  font-size: 1em;
  color: #1F2D3D; /* Text Main */
}

/* Company Info Section */
.page-contact__info-section {
  text-align: center;
}

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

.page-contact__info-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
  color: #1F2D3D; /* Text Main */
}

.page-contact__info-content p {
  margin-bottom: 20px;
}

.page-contact__info-subtitle {
  font-size: 1.8em;
  color: #2F6BFF; /* Primary color */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

/* Final CTA Section */
.page-contact__cta-section {
  text-align: center;
}

.page-contact__cta-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

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

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

@media (max-width: 768px) {
  .page-contact__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

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

  .page-contact__hero-section {
    padding: 10px 0 40px 0; /* Small top padding, body handles header offset */
    min-height: 400px;
  }

  /* Images responsive */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Image/Video/Button containers responsive */
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__hero-image-wrapper,
  .page-contact__methods-image,
  .page-contact__faq-image,
  .page-contact__info-image,
  .page-contact__cta-image,
  .page-contact__methods-section,
  .page-contact__faq-section,
  .page-contact__info-section,
  .page-contact__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons responsive */
  .page-contact__cta-buttons,
  .page-contact__button-group {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 15px; /* Add padding to the button group itself */
  }

  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

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

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

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

  .page-contact__faq-answer {
    padding: 0 20px 15px 20px;
  }
  
  .page-contact__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}