.page-contact {
  /* body đã padding-top: var(--header-offset); nên không cần thêm ở đây */
  color: #ffffff; /* Body background #1a1a2e (dark), nên dùng chữ trắng */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #1a1a2e; /* Đảm bảo màu nền chính */
}

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

.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding as body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  background-color: #1a1a2e;
  color: #ffffff;
}

.page-contact__hero-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  margin-bottom: 30px;
  border-radius: 8px;
  object-fit: cover;
}

.page-contact__hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-contact__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Use clamp for responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

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

.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: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid transparent;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-contact__btn-primary {
  background-color: #C30808; /* Màu đỏ cho Đăng Ký/Login */
  color: #FFFF00; /* Màu vàng cho chữ */
  border-color: #C30808;
}

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

.page-contact__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border-color: #017439;
}

.page-contact__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

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

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

/* Contact Methods Section */
.page-contact__contact-methods {
  padding: 60px 0;
  background-color: #1a1a2e; /* Dark background from body */
  color: #ffffff;
}

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

.page-contact__method-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white card */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-contact__method-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  /* filter: brightness(1.2); -- Removed as filters are forbidden for color changes */
}

.page-contact__method-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FFFF00; /* Use yellow for titles for contrast */
}

.page-contact__method-text {
  font-size: 1em;
  margin-bottom: 25px;
  flex-grow: 1;
  color: #f0f0f0;
}

/* Contact Form Section */
.page-contact__contact-form-section {
  padding: 60px 0;
  background-color: #017439; /* Brand color for form section */
  color: #ffffff;
}

.page-contact__form {
  max-width: 700px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.15);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.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 15px;
  border: 1px solid #014f29; /* Darker green border */
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.3); /* Darker input background */
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

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

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

.page-contact__form-submit-btn {
  width: auto;
  min-width: 200px;
  margin-top: 20px;
  cursor: pointer;
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 60px 0;
  background-color: #1a1a2e; /* Dark background from body */
  color: #ffffff;
}

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

.page-contact__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter card */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFFF00; /* Yellow for questions */
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none; /* For details/summary */
}

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

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

.page-contact__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  width: 20px;
  text-align: center;
}

.page-contact__faq-item[open] .page-contact__faq-question {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-contact__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  line-height: 1.7;
  color: #f0f0f0;
}

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

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

.page-contact__faq-link {
  color: #FFFF00; /* Yellow for links */
  text-decoration: underline;
}

.page-contact__faq-link:hover {
  color: #ffcc00;
}

/* Why Us Section */
.page-contact__why-us-section {
  padding: 60px 0;
  background-color: #017439; /* Brand color */
  color: #ffffff;
}

.page-contact__why-us-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-contact__why-us-image {
  flex: 1 1 400px;
  max-width: 50%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.page-contact__why-us-text {
  flex: 1 1 400px;
  font-size: 1.1em;
  line-height: 1.7;
}

.page-contact__why-us-text p {
  margin-bottom: 1.5em;
  color: #f0f0f0;
}

.page-contact__why-us-text a {
  margin-top: 20px;
}

/* CTA Section */
.page-contact__cta-section {
  padding: 60px 0;
  text-align: center;
  background-color: #1a1a2e; /* Dark background from body */
  color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-contact__hero-image {
    max-width: 90%;
  }
  .page-contact__why-us-image {
    max-width: 100%;
  }
  .page-contact__why-us-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .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-left: 15px !important;
    padding-right: 15px !important;
    padding-top: 10px !important;
    padding-bottom: 40px !important;
  }

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

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

  .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 !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

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

  .page-contact__method-item {
    padding: 25px;
  }

  .page-contact__form {
    padding: 30px;
  }

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

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

  .page-contact__why-us-content {
    flex-direction: column;
  }

  .page-contact__why-us-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* General image responsiveness for all images within .page-contact */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-contact__section,
  .page-contact__card,
  .page-contact__container, 
  .page-contact__contact-methods, 
  .page-contact__contact-form-section, 
  .page-contact__faq-section, 
  .page-contact__why-us-section, 
  .page-contact__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__hero-section .page-contact__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-contact__hero-section .page-contact__hero-content {
    max-width: 100% !important;
    padding: 0 10px;
  }
  
  .page-contact__hero-section h1 {
    font-size: 2.2em !important;
  }
  
  .page-contact__method-icon {
    width: 80px !important;
    height: 80px !important;
  }
}