.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: var(--secondary-color); /* Assuming light background from shared.css */
}

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

/* --- Hero Section --- */
.page-contact__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 40px;
  background-color: #FFFFFF; /* Ensure a clean background for the hero */
}

.page-contact__hero-section .page-contact__container {
  display: flex;
  flex-direction: column; /* Image first, then content */
  align-items: center;
  gap: 30px;
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Max width for hero image */
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-contact__hero-content {
  text-align: center;
  max-width: 800px;
}

.page-contact__main-title {
  font-size: clamp(2em, 4vw, 2.8em); /* Responsive H1 font size */
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-contact__description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
}

.page-contact__cta-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width for wrapping */
  max-width: 600px; /* Limit overall width of CTA group */
  margin: 0 auto;
}

.page-contact__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Important for mobile responsiveness */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  text-align: center;
}

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

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

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

.page-contact__btn--secondary:hover {
  background-color: #f0f8ff;
  color: #1a8cc7;
}

/* --- General Section Styling --- */
.page-contact__section {
  padding: 60px 0;
  background-color: #f9f9f9; /* Light background for sections */
}

.page-contact__section:nth-of-type(even) {
  background-color: #FFFFFF; /* Alternate background for readability */
}

.page-contact__section-title {
  font-size: 2.2em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact__section-description {
  font-size: 1.05em;
  color: #555555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* --- Contact Form Section --- */
.page-contact__contact-form-section .page-contact__form-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.page-contact__form-illustration,
.page-contact__form {
  flex: 1;
  min-width: 300px;
}

.page-contact__form-illustration {
  max-width: 500px;
}

.page-contact__form-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.page-contact__form {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-size: 1em;
  box-sizing: border-box;
}

.page-contact__form-textarea {
  resize: vertical;
}

.page-contact__btn--submit {
  width: 100%;
  background-color: #EA7C07; /* Login color for submit button */
  color: #FFFFFF;
  border: none;
  padding: 15px;
  font-size: 1.1em;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-contact__btn--submit:hover {
  background-color: #d16b05;
}

/* --- Support 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: #FFFFFF;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact__channel-icon {
  width: 100%;
  max-width: 120px; /* Adjusted icon size to be larger than 200px requirement for content images */
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-contact__channel-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-contact__channel-text {
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1; /* Pushes button to bottom */
}

.page-contact__btn--outline {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  padding: 10px 20px;
}

.page-contact__btn--outline:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
}

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

.page-contact__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

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

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

.page-contact__faq-item[open] .page-contact__faq-question {
  background-color: #e6e6e6;
  color: #26A9E0;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
  transform: rotate(45deg);
}

.page-contact__faq-qtext {
  flex-grow: 1;
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  transition: transform 0.3s ease;
  margin-left: 15px;
}

.page-contact__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #555555;
  border-top: 1px solid #e0e0e0;
}

/* --- Final CTA Section --- */
.page-contact__final-cta-section .page-contact__container {
  background-color: #26A9E0; /* Brand color as background */
  color: #FFFFFF; /* White text for contrast */
  padding: 50px 20px;
  border-radius: 8px;
  text-align: center;
}

.page-contact__final-cta-section .page-contact__section-title,
.page-contact__final-cta-section .page-contact__section-description {
  color: #FFFFFF; /* Ensure white text */
}

.page-contact__final-cta-section .page-contact__section-title {
  margin-bottom: 15px;
}

.page-contact__final-cta-section .page-contact__section-description {
  margin-bottom: 30px;
}

/* --- Mobile Responsiveness (max-width: 768px) --- */
@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }

  /* 1. Top Section (Hero) */
  .page-contact__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles --header-offset */
    padding-bottom: 30px;
  }

  .page-contact__hero-section .page-contact__container {
    flex-direction: column; /* Stack image and content */
    gap: 20px;
  }

  .page-contact__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em); /* Adjust H1 for smaller screens */
    line-height: 1.3;
  }

  .page-contact__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-contact__cta-group {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__btn {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px; /* Adjust padding for smaller buttons */
  }

  /* 2. Single Column Content Container */
  .page-contact__section {
    padding: 40px 0;
  }

  .page-contact__container {
    padding: 0 15px !important; /* Ensure content padding */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-contact__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-contact__contact-form-section .page-contact__form-wrapper {
    flex-direction: column; /* Stack form and illustration */
    gap: 30px;
  }

  .page-contact__form-illustration,
  .page-contact__form {
    min-width: unset;
    width: 100%;
  }

  .page-contact__form {
    padding: 20px;
  }

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

  /* 4. Buttons and Button Containers */
  .page-contact__channels-grid {
    grid-template-columns: 1fr; /* Stack channel cards */
    gap: 20px;
  }

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

  .page-contact__btn--submit {
    padding: 12px;
    font-size: 1em;
  }

  /* 5. FAQ Section */
  .page-contact__faq-list {
    margin-top: 30px;
  }

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

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

  .page-contact__final-cta-section .page-contact__container {
    padding: 40px 15px;
  }
}