/* style/contact.css */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Matching body background */
}

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

.page-contact__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px; /* Adjust as needed */
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background-color: #26A9E0; /* Brand color for hero */
  color: #ffffff;
  overflow: hidden;
}

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

.page-contact__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
  z-index: -1;
}

.page-contact__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-contact__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

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

.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;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal;
  word-wrap: break-word;
}

.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: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

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

.page-contact__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: inherit;
}

.page-contact__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

.page-contact__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
}

.page-contact__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 60px 0;
}

.page-contact__grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-contact__form-content,
.page-contact__channels-content {
  padding: 20px;
}

.page-contact__contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-contact__form-group {
  display: flex;
  flex-direction: column;
}

.page-contact__form-label {
  margin-bottom: 5px;
  font-weight: bold;
}

.page-contact__form-input,
.page-contact__form-textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
  background-color: #f9f9f9;
  color: #333333;
}

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

.page-contact__form-image-wrapper,
.page-contact__channels-image-wrapper,
.page-contact__faq-image-wrapper {
  text-align: center;
}

.page-contact__form-image,
.page-contact__channels-image,
.page-contact__faq-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-contact__contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 1.1em;
}

.page-contact__icon {
  width: 30px;
  height: 30px;
  margin-right: 15px;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #26A9E0;
  font-size: 1.2em;
  flex-shrink: 0;
}

.page-contact__icon--email::before { content: '✉'; }
.page-contact__icon--phone::before { content: '📞'; }
.page-contact__icon--telegram::before { content: '✈'; }
.page-contact__icon--zalo::before { content: '💬'; }
.page-contact__icon--address::before { content: '📍'; }

.page-contact__contact-label {
  font-weight: bold;
  margin-right: 10px;
}

.page-contact__contact-link {
  color: #ffffff;
  text-decoration: underline;
}

.page-contact__contact-link:hover {
  color: #f0f0f0;
}

.page-contact__contact-text {
  color: #ffffff;
}

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

.page-contact__faq-item {
  background-color: #f9f9f9;
  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: 15px 20px;
  cursor: pointer;
  background-color: #ffffff;
  color: #26A9E0;
  font-weight: bold;
  border-bottom: 1px solid #e0e0e0;
}

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

.page-contact__faq-title {
  margin: 0;
  font-size: 1.2em;
  color: #26A9E0;
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  transition: transform 0.3s ease;
}

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

.page-contact__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #333333;
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 20px;
}

.page-contact__why-contact-section {
  padding: 80px 0;
}

.page-contact__benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.page-contact__benefit-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 8px;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-contact__benefit-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-contact__cta-footer {
  text-align: center;
  margin-top: 40px;
}

.page-contact__cta-text {
  font-size: 1.2em;
  margin-bottom: 20px;
  color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-contact__hero-title {
    font-size: 2.5em;
  }
  .page-contact__section-title {
    font-size: 2em;
  }
  .page-contact__grid-layout {
    grid-template-columns: 1fr;
  }
  .page-contact__channels-content {
    order: -1; /* Move content above image on smaller screens */
  }
}

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

  .page-contact__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header on mobile */
  }

  .page-contact__hero-title {
    font-size: 2em;
  }

  .page-contact__hero-description {
    font-size: 1em;
  }

  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    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;
  }

  /* Mobile image responsive adaptations */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-contact__form-image,
  .page-contact__channels-image,
  .page-contact__faq-image {
    width: 100% !important;
    height: auto !important;
  }

  /* Containers for images */
  .page-contact__form-image-wrapper,
  .page-contact__channels-image-wrapper,
  .page-contact__faq-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* General content sections for mobile */
  .page-contact__section, 
  .page-contact__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__form-section, 
  .page-contact__channels-section, 
  .page-contact__faq-section, 
  .page-contact__why-contact-section {
    padding: 40px 0;
  }

  /* FAQ specific mobile styles */
  .page-contact__faq-question {
    padding: 12px 15px;
  }

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

  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 12px 15px;
  }

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

@media (max-width: 480px) {
  .page-contact__hero-title {
    font-size: 1.8em;
  }
  .page-contact__section-title {
    font-size: 1.5em;
  }
  .page-contact__hero-section {
    padding: 60px 0;
  }
}