/* style/register.css */
/* body đã padding-top: var(--header-offset)；trang này cấm viết lại biến đó */

/* Kiểu cơ bản cho trang */
.page-register {
  color: #ffffff; /* Màu chữ mặc định cho nền body tối */
  background-color: transparent; /* Nền nội dung chính phải trong suốt để hiển thị nền body */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-register__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px; /* Thêm padding ngang cho desktop */
  box-sizing: border-box;
}

.page-register__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #26A9E0; /* Sử dụng màu chính của thương hiệu cho tiêu đề */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-register__section-description {
  font-size: 1.1em;
  color: #f0f0f0; /* Màu trắng hơi nhạt hơn cho văn bản mô tả */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Nút */
.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Đảm bảo padding được tính vào width */
}

.page-register__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-register__btn-primary:hover {
  background-color: #1e87c0;
  border-color: #1e87c0;
}

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

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

.page-register__btn-large {
  padding: 18px 40px;
  font-size: 1.2em;
  border-radius: 10px;
}

.page-register__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Cho phép các nút xuống dòng trên màn hình nhỏ hơn */
  width: 100%; /* Đảm bảo container chiếm toàn bộ chiều rộng để xuống dòng */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Phần Hero */
.page-register__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px; /* Khoảng cách dưới nội dung */
  padding-top: 10px; /* Padding nhỏ ở trên, body xử lý offset header */
  box-sizing: border-box;
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Giới hạn chiều cao của wrapper ảnh hero */
  overflow: hidden;
  position: relative;
  margin-bottom: 40px; /* Khoảng cách giữa ảnh và nội dung */
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 300px; /* Chiều cao tối thiểu cho ảnh hero */
}

.page-register__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-register__main-title {
  font-weight: 900;
  color: #ffffff; /* Màu trắng cho tiêu đề chính trên nền tối */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-register__intro-text {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

/* Phần Lợi ích */
.page-register__benefits-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Nền tối hơi sáng hơn cho phần này */
  color: #ffffff;
}

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

.page-register__benefit-card {
  background: rgba(255, 255, 255, 0.08); /* Nền trắng bán trong suốt cho thẻ */
  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;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-register__benefit-icon {
  width: 100%; /* Đảm bảo ảnh responsive trong thẻ */
  height: auto;
  max-width: 150px; /* Chiều rộng tối đa cho icon/ảnh nhỏ */
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  min-height: 100px; /* Chiều cao tối thiểu cho ảnh lợi ích */
}

.page-register__card-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-register__card-text {
  font-size: 1em;
  color: #e0e0e0;
}

/* Phần Bước */
.page-register__steps-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Trùng với nền body */
}

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

.page-register__step-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-register__step-number {
  font-size: 2.5em;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
}

/* Phần Khuyến mãi */
.page-register__promotions-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

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

.page-register__promotion-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
}

.page-register__promotion-image {
  width: 100%;
  height: 200px; /* Chiều cao cố định cho giao diện thẻ nhất quán */
  object-fit: cover;
  display: block;
}

.page-register__promotion-card .page-register__card-title {
  padding: 20px 20px 0;
  text-align: left;
  color: #ffffff; /* Tiêu đề trắng trên thẻ tối */
}

.page-register__promotion-card .page-register__card-text {
  padding: 0 20px 20px;
  text-align: left;
  color: #e0e0e0;
  flex-grow: 1; /* Cho phép văn bản mở rộng và đẩy liên kết xuống dưới cùng */
}

.page-register__card-link {
  display: block;
  padding: 15px 20px;
  background-color: #26A9E0;
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-register__card-link:hover {
  background-color: #1e87c0;
}


/* Phần Bảo mật */
.page-register__security-section {
  padding: 80px 0;
  background-color: #0a0a0a;
}

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

.page-register__feature-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-register__feature-title {
  font-size: 1.3em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-register__feature-text {
  color: #e0e0e0;
}

/* Phần Câu hỏi thường gặp */
.page-register__faq-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-register__faq-list {
  margin-top: 40px;
}

.page-register__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1em;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-register__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-register__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #e0e0e0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding-top 0.4s ease-out;
}

.page-register__faq-item[open] .page-register__faq-answer {
  max-height: 500px; /* Đủ lớn để hiển thị nội dung */
  padding-top: 20px;
}

/* Cho FAQ điều khiển bằng JS (nếu không sử dụng details/summary, hoặc cho trình duyệt cũ hơn) */
.page-register__faq-item.active .page-register__faq-answer {
  max-height: 500px; /* Đủ lớn để hiển thị nội dung */
  padding-top: 20px;
}

/* Phần Kêu gọi hành động cuối cùng */
.page-register__final-cta-section {
  padding: 80px 0;
  background-color: #0a0a0a;
  text-align: center;
}

/* Kiểu ảnh toàn cầu */
.page-register img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Đảm bảo ảnh lấp đầy không gian mà không bị biến dạng */
}

/* Kiểu responsive */
@media (max-width: 1024px) {
  .page-register__section-title {
    font-size: 2em;
  }
  .page-register__main-title {
    font-size: 2.8em; /* Điều chỉnh cho màn hình desktop nhỏ hơn */
  }
}

@media (max-width: 768px) {
  .page-register__container {
    padding: 0 15px; /* Điều chỉnh padding cho di động */
  }

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

  .page-register__main-title {
    font-size: 2.2em; /* Đảm bảo h1 không quá lớn trên di động */
    max-width: 100%; /* Đảm bảo h1 không tràn */
  }

  /* Ảnh responsive */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Tất cả các phần tử chứa ảnh/video/nút phải responsive */
  .page-register__hero-image-wrapper,
  .page-register__benefits-section,
  .page-register__benefits-grid,
  .page-register__benefit-card,
  .page-register__steps-section,
  .page-register__steps-grid,
  .page-register__step-card,
  .page-register__promotions-section,
  .page-register__promotions-grid,
  .page-register__promotion-card,
  .page-register__security-section,
  .page-register__security-features,
  .page-register__feature-item,
  .page-register__faq-section,
  .page-register__faq-item,
  .page-register__final-cta-section,
  .page-register__content-area {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px; /* Thêm padding để tránh nội dung chạm mép */
    padding-right: 15px;
    overflow: hidden !important; /* Ngăn cuộn ngang */
  }

  /* Điều chỉnh padding cụ thể cho phần hero */
  .page-register__hero-section {
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 10px !important; /* body đã xử lý --header-offset */
    padding-bottom: 40px;
  }

  /* Nút responsive */
  .page-register__cta-buttons {
    flex-direction: column; /* Xếp chồng các nút theo chiều dọc trên di động */
    gap: 15px;
  }

  .page-register__btn-primary,
  .page-register__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important; /* Cho phép văn bản xuống dòng */
    word-wrap: break-word !important;
    padding-left: 15px; /* Đảm bảo văn bản nút có padding bên trong */
    padding-right: 15px;
  }

  .page-register__promotion-image {
    height: 180px; /* Điều chỉnh chiều cao ảnh cho thẻ trên di động */
  }

  .page-register__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-register__faq-answer {
    padding: 0 20px 15px;
  }
}

@media (max-width: 480px) {
  .page-register__section-title {
    font-size: 1.5em;
  }
  .page-register__main-title {
    font-size: 1.8em;
  }
  .page-register__hero-section {
    padding-top: 10px !important;
  }
}

/* Đảm bảo không có filter trên ảnh */
.page-register img {
  filter: none !important;
}

/* Kiểu toggle FAQ cho details/summary */
.page-register__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-register__faq-item summary {
  list-style: none;
}