/* style/contact.css */

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

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

.page-contact__section {
  padding: 60px 0;
  text-align: center;
}

.page-contact__section:nth-of-type(even) {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for alternating sections */
}

.page-contact__section-title {
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-contact__section-description {
  font-size: 1.1rem;
  margin-bottom: 40px;
  color: #cccccc;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-contact__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-contact__hero-content {
  position: relative;
  z-index: 1;
  color: #ffffff;
  text-align: center;
  max-width: 900px;
  padding: 20px;
}

.page-contact__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.1;
}

.page-contact__intro-text {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
}

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

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

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

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

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

.page-contact__channel-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.page-contact__channel-card:hover {
  transform: translateY(-5px);
}

.page-contact__channel-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

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

.page-contact__card-text {
  font-size: 1rem;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Guide Section */
.page-contact__guide-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-contact__list-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-contact__list-title {
  font-size: 1.3rem;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-contact__list-text {
  font-size: 1rem;
  color: #cccccc;
}

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

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

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2rem;
  color: #ffffff;
  font-weight: bold;
  position: relative;
  user-select: none;
  list-style: none; /* For details summary */
}

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

.page-contact__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: #26A9E0;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
  transform: rotate(45deg); /* Change to 'x' or '-' */
}

.page-contact__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: #cccccc;
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-contact__faq-item[open] .page-contact__faq-answer {
  max-height: 500px; /* Sufficient height for content, adjust if needed */
  padding-top: 10px;
}

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

/* Commitment Section */
.page-contact__commitment-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  max-width: 1000px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-contact__commitment-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

.page-contact__commitment-list {
  flex: 1;
  list-style: none;
  padding: 0;
}

/* Conclusion Section */
.page-contact__conclusion-section .page-contact__btn-primary {
  margin-top: 30px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-contact__hero-content {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .page-contact__section {
    padding: 40px 0;
  }

  .page-contact__main-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .page-contact__intro-text {
    font-size: clamp(1rem, 3vw, 1.1rem);
  }

  .page-contact__channels-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-contact__channel-icon {
    max-width: 200px;
    min-width: 200px; /* Ensure min size */
    min-height: 200px; /* Ensure min size */
  }

  .page-contact__guide-list,
  .page-contact__faq-list {
    margin-top: 20px;
  }

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

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

  .page-contact__commitment-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-contact__commitment-image {
    max-width: 100%;
    min-width: 200px; /* Ensure min size */
    min-height: 200px; /* Ensure min size */
  }

  /* Mobile specific overrides with !important */
  .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,
  .page-contact__channel-card,
  .page-contact__hero-section,
  .page-contact__hero-content,
  .page-contact__commitment-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }

  .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;
  }

  /* If multiple buttons in a group, ensure they wrap */
  .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;
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  .page-contact__hero-section {
    padding-top: 10px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-contact__section-title {
    font-size: 1.5rem;
  }

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

  .page-contact__card-title {
    font-size: 1.3rem;
  }

  .page-contact__list-title {
    font-size: 1.1rem;
  }

  .page-contact__faq-question {
    font-size: 1rem;
  }
}