/* style/contact.css */
/* body đã padding-top: var(--header-offset)；trang này cấm viết lại biến đó */
.page-contact {
  background-color: var(--page-bg, #08160F); /* Mặc định là màu nền được cung cấp */
  color: #F2FFF6; /* Màu chữ chính */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

.page-contact__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Khoảng đệm trên nhỏ theo hướng dẫn */
  background-color: #08160F;
  color: #F2FFF6;
  overflow: hidden;
  max-width: 100%; /* Đảm bảo không tràn */
  box-sizing: border-box;
}

.page-contact__hero-image {
  width: 100%; /* Chiếm toàn bộ chiều rộng của phần tử cha */
  max-width: 1200px; /* Chiều rộng tối đa cho màn hình lớn */
  height: auto;
  object-fit: cover;
  margin-bottom: 30px; /* Khoảng cách giữa ảnh và văn bản */
  border-radius: 10px;
}

.page-contact__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background-color: rgba(17, 39, 27, 0.7); /* Màu nền thẻ với độ trong suốt để dễ đọc */
  border-radius: 10px;
}

.page-contact__hero-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Sử dụng clamp cho kích thước font H1 */
  font-weight: bold;
  margin-bottom: 20px;
  color: #F2FFF6; /* Màu chữ chính */
  line-height: 1.2;
}

.page-contact__hero-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Màu chữ phụ */
  margin-bottom: 30px;
}

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

.page-contact__section-title {
  font-size: 2.5em;
  color: #F2FFF6;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

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

.page-contact__method-card {
  background-color: #11271B; /* Màu nền thẻ */
  border: 1px solid #2E7A4E; /* Màu viền */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  color: #F2FFF6;
}

.page-contact__method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(87, 227, 141, 0.2); /* Màu sáng với bóng */
}

.page-contact__method-card h3 {
  color: #F2C14E; /* Màu vàng cho tiêu đề phụ */
  font-size: 1.5em;
  margin-bottom: 15px;
}

.page-contact__method-card p,
.page-contact__method-card a {
  color: #A7D9B8; /* Màu chữ phụ */
  font-size: 1em;
  margin-bottom: 10px;
  text-decoration: none;
}

.page-contact__method-card a:hover {
  color: #57E38D; /* Màu sáng khi di chuột */
  text-decoration: underline;
}

.page-contact__btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Màu nút */
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%; /* Để đáp ứng trên di động */
  white-space: normal; /* Để văn bản nút xuống dòng trên di động */
  word-wrap: break-word; /* Để văn bản nút xuống dòng trên di động */
}

.page-contact__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-contact__form-container {
  background-color: #11271B; /* Màu nền thẻ */
  border: 1px solid #2E7A4E; /* Màu viền */
  border-radius: 10px;
  padding: 40px;
  max-width: 700px;
  margin: 0 auto;
  color: #F2FFF6;
}

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

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

.page-contact__form-group input[type="text"],
.page-contact__form-group input[type="email"],
.page-contact__form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #2E7A4E; /* Màu viền */
  border-radius: 5px;
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6;
  font-size: 1em;
  box-sizing: border-box;
}

.page-contact__form-group input::placeholder,
.page-contact__form-group textarea::placeholder {
  color: #A7D9B8; /* Màu chữ phụ */
}

.page-contact__form-group textarea {
  min-height: 120px;
  resize: vertical;
}

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

.page-contact__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #0A4B2C; /* Deep Green */
  border-radius: 50%;
  color: #F2FFF6;
  text-decoration: none;
  font-size: 1.5em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-contact__social-link:hover {
  background-color: #57E38D; /* Glow color */
  color: #11271B; /* Card BG cho độ tương phản */
}

.page-contact__faq-item {
  background-color: #11271B; /* Màu nền thẻ */
  border: 1px solid #2E7A4E; /* Màu viền */
  border-radius: 8px;
  margin-bottom: 15px;
  color: #F2FFF6;
}

.page-contact__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #F2C14E; /* Màu vàng */
  list-style: none; /* Xóa dấu đầu dòng mặc định */
  outline: none;
}

.page-contact__faq-item summary::-webkit-details-marker {
  display: none; /* Xóa dấu đầu dòng mặc định cho trình duyệt webkit */
}

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

.page-contact__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D; /* Màu sáng */
}

.page-contact__faq-answer {
  padding: 0 25px 20px;
  color: #A7D9B8; /* Màu chữ phụ */
  font-size: 1em;
}

.page-contact__cta-section {
  text-align: center;
  padding: 80px 20px;
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6;
}

.page-contact__cta-section h2 {
  font-size: 2.2em;
  color: #F2FFF6;
  margin-bottom: 20px;
}

.page-contact__cta-section p {
  font-size: 1.1em;
  color: #A7D9B8;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Để đáp ứng trên di động */
}

/* Hình ảnh */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-contact__section-image {
  margin-top: 60px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Phản hồi trên di động */
@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }

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

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

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

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

  .page-contact__section {
    padding: 40px 15px;
  }

  .page-contact__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

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

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

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

  .page-contact__form-container {
    padding: 30px 20px;
  }

  .page-contact__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }

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

  .page-contact__cta-section {
    padding: 60px 15px;
  }

  .page-contact__cta-section h2 {
    font-size: 1.8em;
  }

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

  .page-contact__btn-primary,
  .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;
  }

  /* Hình ảnh đáp ứng cho di động */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__form-container,
  .page-contact__methods-grid,
  .page-contact__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-contact__video-section {
    padding-top: 10px !important; /* body đã đảm nhiệm --header-offset, cấm sử dụng var(--header-offset) tại đây */
  }
}