/* style/contact.css */

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

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

.page-contact__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for titles */
}

.page-contact__section-description {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0;
  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;
  padding: 10px 20px 60px; /* Small top padding, larger bottom padding */
  background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  overflow: hidden;
}

.page-contact__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

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

.page-contact__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 40px 20px;
  background-color: rgba(0, 0, 0, 0.5); /* Dark overlay for text */
  border-radius: 10px;
}

.page-contact__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-contact__description {
  font-size: 1.2rem;
  color: #f0f0f0;
  margin-bottom: 30px;
}

/* Buttons */
.page-contact__btn-primary, .page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal;
  word-wrap: break-word;
}

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

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

.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-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background */
  color: #ffffff;
}

.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.08); /* Transparent white for dark theme */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
}

.page-contact__channel-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-contact__channel-text {
  font-size: 1rem;
  color: #f0f0f0;
  margin-bottom: 20px;
}

/* Form Section */
.page-contact__form-section {
  padding: 60px 0;
  background-color: #0d0d0d; /* Dark background */
  color: #ffffff;
}

.page-contact__form-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.page-contact__form-image {
  max-width: 45%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  min-width: 300px; /* Ensure image is not too small */
}

.page-contact__contact-form {
  flex: 1;
  min-width: 350px;
  max-width: 500px;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-sizing: border-box;
}

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

.page-contact__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #26A9E0;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 1rem;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: #26A9E0;
  box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.3);
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 60px 0;
  background-color: #121212; /* Body background color */
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact__faq-list {
  max-width: 800px;
  width: 100%;
  margin-top: 40px;
}

.page-contact__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  list-style: none; /* For <details> summary */
}

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

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

.page-contact__faq-answer {
  padding: 0 25px 18px;
  font-size: 1rem;
  color: #f0f0f0;
  max-height: 0; /* Default for div-based FAQ */
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-contact__faq-item[open] .page-contact__faq-answer, /* For <details> */
.page-contact__faq-item.active .page-contact__faq-answer { /* For div-based FAQ */
  max-height: 500px; /* Adjust as needed */
  padding-top: 10px;
}

.page-contact__faq-item.active .page-contact__faq-question .page-contact__faq-toggle {
  content: '−';
}

.page-contact__faq-illustration {
  max-width: 600px;
  width: 100%;
  height: auto;
  margin-top: 40px;
  border-radius: 10px;
  object-fit: cover;
}

/* Commitment Section */
.page-contact__commitment-section {
  padding: 60px 0;
  background-color: #26A9E0; /* Brand color background */
  color: #ffffff;
}

.page-contact__commitment-section .page-contact__container {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.page-contact__commitment-content {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.page-contact__commitment-section .page-contact__section-title {
  color: #ffffff;
  text-align: left;
}

.page-contact__commitment-section .page-contact__section-description {
  color: #f0f0f0;
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-contact__commitment-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  margin-bottom: 30px;
}

.page-contact__commitment-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 1.1rem;
}

.page-contact__commitment-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #ffffff;
  font-weight: bold;
}

.page-contact__commitment-image {
  max-width: 45%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  min-width: 300px;
}

/* Tips Section */
.page-contact__tips-section {
  padding: 60px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-contact__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-contact__tips-list li {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 1.05rem;
  color: #f0f0f0;
}

.page-contact__tips-list li strong {
  color: #26A9E0;
}

.page-contact__final-cta {
  font-size: 1.2rem;
  text-align: center;
  margin-top: 40px;
  font-weight: bold;
  color: #26A9E0;
}

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

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

  .page-contact__description {
    font-size: 1.1rem;
  }

  .page-contact__form-wrapper,
  .page-contact__commitment-section .page-contact__container {
    flex-direction: column;
    gap: 30px;
  }

  .page-contact__form-image,
  .page-contact__commitment-image {
    max-width: 80%;
    min-width: unset;
  }

  .page-contact__contact-form {
    max-width: 100%;
  }
  
  .page-contact__commitment-section .page-contact__section-title,
  .page-contact__commitment-section .page-contact__section-description {
    text-align: center;
  }

  .page-contact__commitment-list {
    padding: 0 20px;
  }
  .page-contact__commitment-list li {
    padding-left: 25px;
  }
}

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

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

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

  .page-contact__description {
    font-size: 1rem;
  }

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

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

  .page-contact__form-image,
  .page-contact__commitment-image {
    max-width: 100%;
    width: 100%;
    height: auto;
  }

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

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

  .page-contact__faq-illustration {
    max-width: 100%;
    width: 100%;
    height: auto;
  }

  /* Mobile specific image, video, and button responsiveness */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-contact video,
  .page-contact__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__video-section,
  .page-contact__video-container,
  .page-contact__video-wrapper,
  .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;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-contact__hero-section {
    padding-left: 0;
    padding-right: 0;
  }

  .page-contact__hero-content {
    border-radius: 0;
  }

  .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;
    margin-bottom: 10px; /* Stack buttons */
  }

  .page-contact__cta-buttons,
  .page-contact__button-group,
  .page-contact__btn-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .page-contact__video-section {
    padding-top: 10px !important;
  }
}