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

.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  overflow: hidden;
}

.page-contact__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-contact__hero-section img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  width: 90%;
  max-width: 800px;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 30px;
  border-radius: 10px;
  color: #ffffff;
}

.page-contact__hero-content h1 {
  font-size: 3.2em;
  margin-bottom: 15px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.page-contact__hero-content p {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #26A9E0; /* Primary color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: none;
}

.page-contact__cta-button:hover {
  background: #1e87c0; /* Slightly darker primary color */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-contact__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

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

.page-contact__form-section {
  background-color: #ffffff;
  padding: 60px 0;
  border-bottom: 1px solid #eeeeee;
}

.page-contact__contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
  padding: 30px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

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

.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 15px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-contact__submit-button {
  display: block;
  width: 100%;
  padding: 15px;
  background: #EA7C07; /* Login color */
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__submit-button:hover {
  background: #d46f06; /* Slightly darker login color */
  transform: translateY(-2px);
}

.page-contact__info-section {
  padding: 60px 0;
  text-align: center;
}

.page-contact__dark-section {
  background-color: #26A9E0; /* Primary color as background */
  color: #ffffff;
}

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

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

.page-contact__info-card {
  background-color: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-contact__info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-contact__info-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
  filter: none; /* Ensure no CSS filter changes image color */
}

.page-contact__info-card h3 {
  font-size: 1.5em;
  color: #26A9E0; /* Primary color */
  margin-bottom: 10px;
}

.page-contact__info-card p {
  margin-bottom: 20px;
  color: #555555;
}

.page-contact__info-link {
  display: inline-block;
  background: #EA7C07; /* Login color */
  color: #ffffff;
  padding: 10px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  max-width: 100%; /* Ensure link responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__info-link:hover {
  background: #d46f06; /* Slightly darker login color */
}

.page-contact__faq-section {
  background-color: #f0f0f0;
  padding: 60px 0;
}

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

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

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-contact__faq-question:hover {
  background: #f9f9f9;
  border-color: #d0d0d0;
}

.page-contact__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.4;
  color: #333333;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-contact__faq-toggle {
  font-size: 2em;
  font-weight: bold;
  line-height: 1;
  color: #26A9E0; /* Primary color */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-contact__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #fefefe;
  color: #555555;
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 25px !important;
  opacity: 1;
  border-top: 1px solid #e0e0e0;
  border-radius: 0 0 8px 8px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  color: #EA7C07; /* Login color for active toggle */
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-contact__social-section {
  padding: 60px 0;
  background-color: #ffffff;
  text-align: center;
  border-top: 1px solid #eeeeee;
}

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

.page-contact__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #cccccc;
  color: #ffffff;
  font-size: 1.5em;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  overflow: hidden;
  text-indent: -9999px; /* Hide text, use aria-label for accessibility */
}

.page-contact__social-icon--facebook {
  background-color: #3b5998;
}
.page-contact__social-icon--twitter {
  background-color: #1da1f2;
}
.page-contact__social-icon--telegram {
  background-color: #0088cc;
}
.page-contact__social-icon--youtube {
  background-color: #ff0000;
}

.page-contact__social-icon:hover {
  transform: translateY(-5px) scale(1.05);
}

/* Icons for social media links (using pseudo-elements for simplicity) */
.page-contact__social-icon--facebook::before {
  content: '\f09a'; /* FontAwesome Facebook icon */
  font-family: 'Font Awesome 5 Brands';
  text-indent: 0;
}
.page-contact__social-icon--twitter::before {
  content: '\f099'; /* FontAwesome Twitter icon */
  font-family: 'Font Awesome 5 Brands';
  text-indent: 0;
}
.page-contact__social-icon--telegram::before {
  content: '\f2c6'; /* FontAwesome Telegram icon */
  font-family: 'Font Awesome 5 Brands';
  text-indent: 0;
}
.page-contact__social-icon--youtube::before {
  content: '\f167'; /* FontAwesome YouTube icon */
  font-family: 'Font Awesome 5 Brands';
  text-indent: 0;
}

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

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-contact__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__hero-content {
    width: 95%;
    padding: 20px;
  }

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

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

  .page-contact__cta-button {
    padding: 12px 30px;
    font-size: 1em;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

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

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

  .page-contact__submit-button {
    padding: 12px;
    font-size: 1em;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

  .page-contact__info-link {
    padding: 10px 20px;
    font-size: 0.9em;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-contact__faq-question h3 {
    font-size: 1em;
  }

  .page-contact__faq-toggle {
    font-size: 1.8em;
    width: 25px;
    height: 25px;
  }

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

  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 15px 20px !important;
  }

  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__hero-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-contact__social-links {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-contact__social-icon {
    width: 45px;
    height: 45px;
    font-size: 1.3em;
  }
}

/* FontAwesome for social icons - make sure to link FontAwesome in shared.css or header */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');