.page-contact {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: var(--background-color, #121212);
}

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

.page-contact__dark-section {
  background-color: #017439;
  color: #ffffff;
}

.page-contact__hero-section {
  padding: 80px 20px;
  text-align: center;
  padding-top: var(--header-offset, 120px);
  background-image: url('[GALLERY:hero_contact:1920x1080:ta28 game bai,contact us,customer support,green theme]');
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  background-color: rgba(1, 116, 57, 0.8);
}

.page-contact__main-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #FFFF00; /* Register and Login font color */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-contact__intro-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-contact__btn-primary:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

.page-contact__section-title {
  font-size: 2.5em;
  color: #FFFF00; /* Register and Login font color for titles */
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

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

.page-contact__video-section {
  background-color: var(--background-color, #121212);
  padding: 60px 0;
  text-align: center;
}

.page-contact__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  cursor: pointer;
}

.page-contact__video-cta {
  margin-top: 20px;
}

.page-contact__methods-section {
  background-color: #FFFFFF; /* White background for this section */
  padding: 60px 0;
  color: #333333; /* Dark text for white background */
}

.page-contact__methods-section .page-contact__section-title,
.page-contact__methods-section .page-contact__section-description {
  color: #017439; /* Brand primary color for titles on white background */
}

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

.page-contact__card {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-contact__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

.page-contact__card-title {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
}

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

.page-contact__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #017439;
  border: 2px solid #017439;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.page-contact__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-contact__form-section {
  padding: 60px 0;
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 40px auto 0 auto;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

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

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

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

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

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

.page-contact__form-submit-btn {
  width: 100%;
  padding: 15px;
  font-size: 1.1em;
  border-radius: 8px;
}

.page-contact__faq-section {
  background-color: var(--background-color, #121212);
  padding: 60px 0;
  color: #f0f0f0;
}

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

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

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #ffffff;
  background-color: rgba(1, 116, 57, 0.8);
  transition: background-color 0.3s ease;
}

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

.page-contact__faq-heading {
  margin: 0;
  color: #ffffff;
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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: #e0e0e0;
}

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

.page-contact__faq-answer p {
  margin-bottom: 10px;
  color: #e0e0e0;
}

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

.page-contact__faq-answer a {
  color: #FFFF00; /* Link color */
  text-decoration: none;
}

.page-contact__faq-answer a:hover {
  text-decoration: underline;
}

.page-contact__location-section {
  background-color: #FFFFFF; /* White background */
  padding: 60px 0;
  color: #333333;
}

.page-contact__location-section .page-contact__section-title,
.page-contact__location-section .page-contact__section-description {
  color: #017439;
}

.page-contact__location-details {
  max-width: 800px;
  margin: 40px auto;
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.page-contact__location-details p {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: #555555;
}

.page-contact__location-details a {
  color: #017439;
  text-decoration: none;
}

.page-contact__location-details a:hover {
  text-decoration: underline;
}

.page-contact__map-wrapper {
  max-width: 800px;
  margin: 30px auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

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

.page-contact__social-section {
  padding: 60px 0;
}

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

.page-contact__social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #ffffff;
  color: #017439;
  font-size: 1.2em;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-indent: -9999px;
  position: relative;
}

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

.page-contact__social-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="M12 0C5.373 0 0 5.373 0 12c0 6.016 4.38 11.008 10.125 11.854V15.438H7.078v-3.438h3.047V9.414c0-3.008 1.838-4.646 4.512-4.646 1.314 0 2.443.098 2.775.142v3.057h-1.808c-1.42 0-1.697.674-1.697 1.66V12h3.406l-.547 3.438h-2.859v8.416C19.62 23.008 24 18.016 24 12c0-6.627-5.373-12-12-12z"/></svg>');
}
.page-contact__social-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="M24 4.557c-.883.392-1.832.656-2.828.775 1.017-.609 1.798-1.574 2.165-2.724-.951.564-2.005.974-3.127 1.195-.89-.944-2.162-1.535-3.593-1.535-2.719 0-4.926 2.207-4.926 4.926 0 .386.044.762.122 1.127-4.1-.205-7.738-2.175-10.178-5.167-.424.729-.668 1.579-.668 2.486 0 1.708.869 3.216 2.19 4.098-.807-.026-1.566-.248-2.228-.616v.061c0 2.385 1.699 4.376 3.946 4.827-.412.114-.846.174-1.29.174-.316 0-.626-.03-.928-.086.631 1.956 2.445 3.379 4.604 3.419-1.684 1.321-3.809 2.115-6.102 2.115-.398 0-.79-.023-1.175-.069 2.188 1.394 4.768 2.214 7.547 2.214 9.057 0 14.01-7.502 14.01-14.01 0-.213-.005-.426-.014-.637.96-.695 1.797-1.562 2.457-2.549z"/></svg>');
}
.page-contact__social-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 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0zm6.07 8.53l-2.43 11.45c-.17.81-.66 1.01-1.32.64l-3.76-2.79-1.8-1.75-4.82-3.03c-.76-.47-.78-.77.16-1.14l10.98-4.27c.7-.27 1.36.19.9.9z"/></svg>');
}
.page-contact__social-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="M21.581 6.184a3.179 3.179 0 0 0-2.244-2.244C17.65 3.5 12 3.5 12 3.5s-5.65 0-7.337.44a3.179 3.179 0 0 0-2.244 2.244C.419 7.85.419 12 .419 12s0 4.15.419 5.816a3.179 3.179 0 0 0 2.244 2.244c1.687.44 7.337.44 7.337.44s5.65 0 7.337-.44a3.179 3.179 0 0 0 2.244-2.244c.419-1.666.419-5.816.419-5.816s0-4.15-.419-5.816zM9.52 16.43V7.57l6.54 4.43-6.54 4.43z"/></svg>');
}

.page-contact__social-icon:hover {
  background-color: #017439;
  color: #ffffff;
  transform: translateY(-3px) scale(1.05);
}

.page-contact__social-icon:hover::before {
  filter: invert(0);
}

.page-contact__social-image {
  max-width: 800px;
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-contact__main-title {
    font-size: 2.5em;
  }
  .page-contact__section-title {
    font-size: 2em;
  }
}

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

  .page-contact__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-contact__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-contact__intro-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-contact__section-title {
    font-size: 1.8em;
    padding-top: 30px;
  }

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

  .page-contact__container {
    padding: 0 15px;
  }

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

  .page-contact__card {
    padding: 20px;
  }

  .page-contact__form-section .page-contact__contact-form {
    padding: 30px 20px;
    margin: 30px auto 0 auto;
  }

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

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

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

  .page-contact__location-details {
    padding: 20px;
  }

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

  /* Force responsive images and videos */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-contact__card-image,
  .page-contact__map-image,
  .page-contact__social-image {
    min-width: unset;
    min-height: unset;
  }

  .page-contact__video-wrapper,
  .page-contact__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

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

  .page-contact__video-wrapper {
    padding-bottom: 56.25% !important; /* Ensure aspect ratio is maintained */
    margin-left: auto;
    margin-right: auto;
  }

  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact a[class*="button"],
  .page-contact a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !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;
  }

  .page-contact__cta-buttons {
    flex-direction: column !important;
  }

  /* Ensure content sections don't cause overflow */
  .page-contact__methods-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__location-section,
  .page-contact__social-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
}