/* style/contact.css */
.page-contact {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default to white */
}

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  color: #ffffff;
  overflow: hidden;
}

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

.page-contact__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.6);
}

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.page-contact__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive H1 font size */
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
}

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

.page-contact__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

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

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

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

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

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

.page-contact__btn-link {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
  padding: 8px 15px;
  font-size: 0.9em;
}

.page-contact__btn-link:hover {
  background-color: #1a8ad3;
  border-color: #1a8ad3;
}

/* Section Titles & Descriptions */
.page-contact__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-contact__dark-section .page-contact__section-title {
  color: #FFFFFF;
}

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

.page-contact__dark-section .page-contact__section-description {
  color: #f0f0f0;
}

/* Contact Info Section */
.page-contact__info-section {
  padding: 60px 0;
  background-color: #FFFFFF;
  color: #333333;
}

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

.page-contact__card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-contact__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

.page-contact__item-text {
  font-size: 1em;
  margin-bottom: 10px;
  color: #555555;
}

.page-contact__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 50px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

/* Contact Form Section */
.page-contact__form-section {
  padding: 60px 0;
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 40px auto 0 auto;
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  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: 600;
  color: #FFFFFF;
}

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

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

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

.page-contact__contact-form .page-contact__btn-primary {
  width: auto;
  min-width: 150px;
  background-color: #EA7C07; /* Login color for submit button */
  border-color: #EA7C07;
}

.page-contact__contact-form .page-contact__btn-primary:hover {
  background-color: #d66b00;
  border-color: #d66b00;
}

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

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

.page-contact__faq-item {
  background: #FFFFFF;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  background-color: #FFFFFF;
  border-bottom: 1px solid #EEEEEE;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

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

.page-contact__faq-question:hover {
  background-color: #f0f8ff;
}

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

.page-contact__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-contact__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #555555;
  line-height: 1.7;
  /* For details, no specific max-height needed */
}

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

/* Social Section */
.page-contact__social-section {
  padding: 60px 0;
  background-color: #000000;
  color: #FFFFFF;
}

.page-contact__social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-contact__social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #26A9E0;
  color: #FFFFFF;
  font-size: 1.2em;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  overflow: hidden;
  text-indent: -9999px; /* Hide text, rely on aria-label */
  position: relative;
}

.page-contact__social-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
  filter: invert(100%); /* Make icons white */
}

.page-contact__social-icon--facebook::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M22 12c0-5.52-4.48-10-10-10S2 6.48 2 12c0 4.84 3.44 8.87 8 9.8V15H8v-3h2V9.5C10 7.57 11.57 6 13.5 6H16v3h-2c-.55 0-1 .45-1 1v2h3v3h-3v6.95c5.05-.5 9-4.76 9-9.95z"/></svg>');
}
.page-contact__social-icon--twitter::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M22.46 6c-.77.35-1.6.58-2.46.69.88-.53 1.56-1.37 1.88-2.37-.83.5-1.75.85-2.72 1.04C18.41 4.54 17.2 4 15.86 4c-2.35 0-4.27 1.92-4.27 4.29 0 .34.04.67.11.98C8.28 9.07 5.2 7.35 3.1 4.71c-.36.62-.56 1.35-.56 2.13 0 1.49.75 2.81 1.88 3.59-.7-.02-1.37-.21-1.95-.5v.05c0 2.07 1.47 3.8 3.42 4.19-.36.1-.74.15-1.13.15-.28 0-.55-.03-.8-.08.54 1.7 2.11 2.93 3.98 2.97-1.46 1.14-3.3 1.82-5.3 1.82-.35 0-.69-.02-1.03-.06C3.15 20.26 5.38 21 7.78 21c8.01 0 12.39-6.65 12.39-12.42 0-.19-.01-.38-.01-.57.85-.61 1.58-1.37 2.16-2.26z"/></svg>');
}
.page-contact__social-icon--telegram::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4.3 8.2l-2.7 2.2c-.3.2-.5.3-.8.3-.3 0-.6-.1-.8-.3l-1.3-1.1c-.2-.2-.3-.5-.1-.7.2-.2.5-.3.7-.1l1.1 1 2.5-2c.2-.2.5-.2.7 0 .2.2.2.5 0 .7zM12 4.5c-4.14 0-7.5 3.36-7.5 7.5s3.36 7.5 7.5 7.5 7.5-3.36 7.5-7.5-3.36-7.5-7.5-7.5zm.3 1.2c-.3 0-.6.1-.8.3L8.5 8.7c-.2.2-.3.5-.1.7.2.2.5.3.7.1l2.7-2.2c.3-.2.5-.3.8-.3.3 0 .6.1.8.3l1.3 1.1c.2.2.3.5.1.7-.2.2-.5.3-.7.1l-1.1-1-2.5 2c-.2.2-.5.2-.7 0-.2-.2-.2-.5 0-.7z"/></svg>');
}
.page-contact__social-icon--youtube::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M10 15l5.19-3L10 9v6zm11.56-7.8c-.14-.54-.62-.92-1.2-.99C18.73 6 12 6 12 6s-6.73 0-8.36.19c-.58.07-1.06.45-1.2.99C2 8.63 2 12 2 12s0 3.37.19 4.2c.14.54.62.92 1.2.99C5.27 18 12 18 12 18s6.73 0 8.36-.19c.58-.07 1.06-.45 1.2-.99.19-.83.19-4.2.19-4.2s0-3.37-.19-4.2z"/></svg>');
}

.page-contact__social-icon:hover {
  background-color: #1a8ad3;
  transform: translateY(-3px);
}

/* Map Section */
.page-contact__map-section {
  padding: 60px 0;
  background-color: #F8F8F8;
  color: #333333;
}

.page-contact__map-wrapper {
  margin-top: 40px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__map-image {
  width: 100%;
  height: auto;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

/* Color Contrast Classes */
.page-contact__dark-bg {
  color: #ffffff; /* Deep background with light text */
  background: #26A9E0;
}

.page-contact__light-bg {
  color: #333333; /* Light background with dark text */
  background: #ffffff;
}

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

  .page-contact__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-contact__main-title {
    font-size: 2em; /* Smaller H1 for mobile */
  }

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

  .page-contact__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
  }

  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact__btn-link {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

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

  .page-contact__card {
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  .page-contact__image-full-width,
  .page-contact__map-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-contact__form-section,
  .page-contact__info-section,
  .page-contact__faq-section,
  .page-contact__social-section,
  .page-contact__map-section {
    padding: 40px 0;
  }

  .page-contact__contact-form {
    padding: 20px;
  }

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

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

  .page-contact__social-links {
    gap: 15px;
  }
}

/* Ensure all images are responsive */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* All image containers responsive */
.page-contact__hero-image-wrapper,
.page-contact__contact-grid,
.page-contact__map-wrapper,
.page-contact__image-full-width {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}