/* style/contact.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm padding-top cho body hoặc section đầu tiên */

.page-contact {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Mặc định chữ trắng vì body có thể là nền tối */
  background-color: var(--black-color); /* Giả định body có nền tối */
}

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

.page-contact__dark-section {
  background-color: #000000; /* Nền đen cho các phần tối */
  color: #ffffff;
  padding: 60px 0;
}

.page-contact__light-bg {
  background-color: #FFFFFF; /* Nền trắng cho các phần sáng */
  color: #333333;
  padding: 60px 0;
}

.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Chỉ một khoảng đệm nhỏ, body đã xử lý header offset */
  padding-bottom: 60px;
}

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

.page-contact__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Làm tối hình ảnh để chữ dễ đọc */
}

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4); /* Nền mờ để tăng độ tương phản */
  border-radius: 8px;
}

.page-contact__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Sử dụng clamp cho kích thước H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

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

.page-contact__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem); /* Sử dụng clamp cho kích thước H2 */
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
}

.page-contact__intro-section .page-contact__text-block {
  font-size: 1rem;
  margin-bottom: 20px;
  text-align: justify;
  color: #333333;
}

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

.page-contact__method-card {
  background-color: #1a1a1a; /* Nền tối hơn cho thẻ */
  border-radius: 10px;
  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;
}

.page-contact__method-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

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

.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Cho phép chữ xuống dòng */
  word-wrap: break-word; /* Ngắt từ khi cần */
  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: #1e87b7;
  border-color: #1e87b7;
}

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

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

.page-contact__form-section .page-contact__description {
  text-align: center;
  color: #333333;
  margin-bottom: 30px;
}

.page-contact__contact-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  box-sizing: border-box;
  color: #333333;
  background-color: #ffffff;
}

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

.page-contact__contact-form .page-contact__btn-primary {
  width: auto;
  margin-top: 10px;
}

.page-contact__faq-section .page-contact__description {
  text-align: center;
  color: #e0e0e0;
  margin-bottom: 30px;
}

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

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

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  background-color: #26A9E0; /* Màu nền câu hỏi */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none; /* Ẩn dấu đầu dòng mặc định của summary */
}

.page-contact__faq-question::-webkit-details-marker {
  display: none; /* Ẩn dấu mũi tên mặc định của summary trên Webkit */
}

.page-contact__faq-qtext {
  flex-grow: 1;
  padding-right: 15px;
}

.page-contact__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-contact__faq-answer {
  padding: 20px;
  font-size: 1rem;
  color: #e0e0e0;
  background-color: #1a1a1a;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.page-contact__commitment-section .page-contact__section-title {
  color: #26A9E0;
}

.page-contact__commitment-section .page-contact__text-block {
  font-size: 1rem;
  margin-bottom: 25px;
  text-align: justify;
  color: #333333;
}

.page-contact__commitment-list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 25px;
  color: #333333;
}

.page-contact__commitment-list li {
  margin-bottom: 10px;
  font-size: 1rem;
}

.page-contact__commitment-list strong {
  color: #26A9E0;
}

.page-contact__cta-section .page-contact__description {
  text-align: center;
  color: #f0f0f0;
  margin-bottom: 30px;
}

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

/* Responsive Styles */
@media (max-width: 992px) {
  .page-contact__hero-content {
    max-width: 90%;
  }
  .page-contact__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-contact__section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
  }
}

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

  .page-contact__dark-section,
  .page-contact__light-bg {
    padding: 40px 0;
  }

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

  .page-contact__hero-content {
    padding: 15px;
  }

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

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

  .page-contact__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 30px;
  }

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

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

  .page-contact__method-icon {
    width: 80px;
    height: 80px;
  }

  .page-contact__method-title {
    font-size: 1.3rem;
  }

  .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: 12px 15px !important; /* Điều chỉnh padding cho di động */
    text-align: center;
  }

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

  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px;
  }

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

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

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

  /* 强制图片适配 */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* 所有包含图片的容器在移动端必须设置 max-width: 100%; width: 100%; box-sizing: border-box; */
  .page-contact__hero-section,
  .page-contact__methods-section,
  .page-contact__method-card,
  .page-contact__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-contact__hero-image-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-contact__hero-image {
    width: 100%; /* Ensure hero image takes full width of its wrapper */
  }

  /* Ensure no overflow on main sections */
  .page-contact__intro-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__commitment-section,
  .page-contact__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-contact__main-title {
    font-size: clamp(1.5rem, 8vw, 2.2rem);
  }
  .page-contact__section-title {
    font-size: clamp(1.3rem, 7vw, 1.8rem);
  }
}