/* style/contact.css */

.page-contact {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light body background */
  line-height: 1.6;
}

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  text-align: center;
  padding-top: 10px; /* Small top padding, relying on body padding-top for header offset */
  padding-bottom: 50px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.page-contact__hero-content {
  padding: 40px 20px;
  max-width: 800px;
  margin-top: -100px; /* Pull content up over the bottom part of the image, but not on top of it */
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.95); /* Slightly transparent white background for readability */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transform: translateY(-50px); /* Adjust to make it visually appealing */
}

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

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

/* Section Titles and Descriptions */
.page-contact__section-title {
  font-size: 2.2em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

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

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  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;
  max-width: 100%; /* Ensure buttons are responsive */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
}

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

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

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

.page-contact__btn-secondary:hover {
  background: #e0f2f7;
  color: #1e87c2;
  border-color: #1e87c2;
}

.page-contact__large-button {
  font-size: 1.2em;
  padding: 15px 30px;
}

/* Channels Section */
.page-contact__channels-section {
  padding: 60px 0;
  background: #f8f8f8;
}

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

.page-contact__channel-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

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

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

.page-contact__channel-text {
  font-size: 1em;
  color: #555555;
  flex-grow: 1;
  margin-bottom: 20px;
}

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

.page-contact__faq-section .page-contact__section-title,
.page-contact__faq-section .page-contact__section-description {
  color: #ffffff;
}

.page-contact__faq-list {
  margin-top: 40px;
}

.page-contact__faq-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  cursor: pointer;
}

.page-contact__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: 600;
  color: #ffffff;
  list-style: none;
  cursor: pointer;
}

.page-contact__faq-item summary::-webkit-details-marker {
  display: none;
}

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

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

.page-contact__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #ffffff;
}

.page-contact__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  color: #f0f0f0;
}

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

.page-contact__support-links {
  text-align: center;
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

/* Feedback Section */
.page-contact__feedback-section {
  padding: 60px 0;
  background: #f8f8f8;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.page-contact__feedback-form {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  background: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  margin-right: 30px;
}

.page-contact__feedback-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}

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

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

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

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: #aaaaaa;
}

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

.page-contact__submit-button {
  width: auto;
  padding: 12px 30px;
}

/* Commitment Section */
.page-contact__commitment-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #26A9E0, #1e87c2);
  color: #ffffff;
  text-align: center;
}

.page-contact__commitment-section .page-contact__section-title,
.page-contact__commitment-section .page-contact__section-description {
  color: #ffffff;
}

.page-contact__commitment-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
}

.page-contact__commitment-item {
  background: rgba(255, 255, 255, 0.15);
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: 500;
  display: flex;
  align-items: center;
  text-align: left;
}

.page-contact__commitment-item::before {
  content: '✔';
  color: #FFFFFF;
  font-weight: bold;
  margin-right: 10px;
}

/* General image responsiveness */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-contact__section,
.page-contact__card,
.page-contact__container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* Prevent content overflow */
}

/* Dark/Light Backgrounds for contrast */
.page-contact__dark-section {
  color: #ffffff;
}

.page-contact__light-bg {
  color: #333333;
}

/* Media Queries for Responsiveness */

/* Tablet and Mobile */
@media (max-width: 1024px) {
  .page-contact__hero-content {
    margin-top: -80px;
    transform: translateY(-30px);
    padding: 30px 15px;
  }

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

  .page-contact__section-title {
    font-size: 1.8em;
  }

  .page-contact__channels-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-contact__feedback-form {
    margin-right: 0;
    margin-bottom: 30px;
  }

  .page-contact__feedback-image {
    order: -1; /* Image above form on smaller screens */
  }
}

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

  /* Hero Section */
  .page-contact__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-contact__hero-image {
    max-height: 400px !important;
    object-fit: contain !important; /* Ensure image is fully visible, not cropped */
    aspect-ratio: unset !important; /* Remove aspect ratio if set */
  }

  .page-contact__hero-content {
    margin-top: -50px;
    transform: translateY(-20px);
    padding: 25px 15px;
    width: calc(100% - 30px); /* Account for padding */
  }

  .page-contact__main-title {
    font-size: clamp(1.5em, 5vw, 2.2em);
  }

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

  .page-contact__section-title {
    font-size: 1.6em;
  }

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

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

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

  .page-contact__channel-icon {
    max-width: 200px;
  }

  /* FAQ Section */
  .page-contact__faq-item summary {
    padding: 15px;
    font-size: 1em;
  }

  .page-contact__faq-answer {
    padding: 0 15px 15px 15px;
    font-size: 0.95em;
  }

  .page-contact__support-links {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .page-contact__support-links .page-contact__btn-primary,
  .page-contact__support-links .page-contact__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Feedback Section */
  .page-contact__feedback-section {
    flex-direction: column;
    padding: 30px 0;
  }

  .page-contact__feedback-form {
    width: calc(100% - 30px) !important;
    margin-bottom: 20px;
    padding: 25px;
  }

  .page-contact__feedback-image {
    width: calc(100% - 30px) !important;
    max-width: 100% !important;
    margin-top: 20px; /* Add space between form and image */
  }

  /* Commitment Section */
  .page-contact__commitment-list {
    padding: 0 15px;
  }

  .page-contact__commitment-item {
    font-size: 1em;
    padding: 12px 15px;
  }

  .page-contact__commitment-item::before {
    margin-right: 8px;
  }

  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .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;
    flex-direction: column; /* Ensure buttons stack vertically */
  }

  /* Universal image and container sizing for mobile */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !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;
  }
}