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

/* Quy tắc màu: body background #0a0a0a (dark), text color #ffffff cho các khu vực tối, #f0f0f0 cho văn bản phụ, #26A9E0 cho tiêu đề và liên kết chính. */

.page-register {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Màu văn bản mặc định cho nền body tối */
  background-color: #0a0a0a; /* Đảm bảo nhất quán với nền body */
}

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

/* Phần Hero */
.page-register__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Padding trên nhỏ, body xử lý offset header */
  padding-bottom: 60px;
  text-align: center;
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-width: 100%; /* Đảm bảo wrapper hình ảnh chiếm toàn bộ chiều rộng */
  margin-bottom: 30px; /* Khoảng cách giữa hình ảnh và nội dung */
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  min-width: 200px; /* Kích thước hình ảnh tối thiểu */
  min-height: 200px;
}

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

.page-register__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem); /* Kích thước font phản hồi */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #26A9E0; /* Màu thương hiệu cho tiêu đề chính */
}

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

/* Nút */
.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-register__btn-primary {
  background-color: #26A9E0; /* Màu thương hiệu chính */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

.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: 16px 40px;
  font-size: 1.1rem;
}

.page-register__btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* Các phần */
.page-register__why-join-section,
.page-register__promotions-section,
.page-register__faq-section {
  padding: 60px 0;
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-register__guide-section,
.page-register__security-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Nền tối hơi sáng hơn để tạo độ tương phản */
  color: #f0f0f0;
}

.page-register__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0; /* Màu thương hiệu */
}

.page-register__text-block {
  font-size: 1.05rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

.page-register__text-block a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-register__text-block a:hover {
  color: #1e87b8;
}

.page-register__highlight {
  color: #26A9E0;
  font-weight: bold;
}

/* Lưới tính năng */
.page-register__features-grid,
.page-register__steps-grid,
.page-register__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-register__feature-card,
.page-register__step-card,
.page-register__promo-card {
  background-color: rgba(255, 255, 255, 0.08); /* Màu trắng bán trong suốt trên nền tối */
  padding: 30px;
  border-radius: 12px;
  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-register__feature-icon,
.page-register__promo-image {
  width: 100%; /* Đảm bảo hình ảnh phản hồi trong thẻ */
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Kích thước hình ảnh tối thiểu */
  min-width: 200px;
}

.page-register__feature-title,
.page-register__step-title,
.page-register__promo-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-register__feature-text,
.page-register__step-text,
.page-register__promo-description {
  font-size: 1rem;
  color: #f0f0f0;
  flex-grow: 1; /* Làm cho khối văn bản lấp đầy không gian có sẵn */
}

/* Đặc trưng của lưới bước */
.page-register__step-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #EA7C07; /* Màu đăng nhập cho số bước */
  margin-bottom: 15px;
  background-color: rgba(234, 124, 7, 0.1);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-register__step-list {
  text-align: left;
  margin-top: 15px;
  padding-left: 20px;
  color: #f0f0f0;
}

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

.page-register__note-text {
  font-size: 0.95rem;
  text-align: center;
  margin-top: 40px;
  color: #aaaaaa;
}

/* Đặc trưng của phần Bảo mật */
.page-register__security-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-register__security-text {
  flex: 1;
  min-width: 300px;
  color: #f0f0f0;
}

.page-register__sub-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-top: 25px;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-register__paragraph {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-register__security-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-register__security-image {
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 12px;
  object-fit: cover;
  min-height: 200px; /* Kích thước hình ảnh tối thiểu */
  min-width: 200px;
}

/* Phần Câu hỏi thường gặp */
.page-register__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  color: #26A9E0;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
  list-style: none; /* Cho thẻ <summary> */
}

.page-register__faq-question::-webkit-details-marker {
  display: none; /* Ẩn dấu mặc định cho <summary> */
}

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

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

.page-register__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  width: 24px;
  text-align: center;
}

.page-register__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  color: #f0f0f0;
}

.page-register__faq-answer p {
  margin-top: 15px;
}

/* Phần CTA */
.page-register__cta-section {
  padding: 60px 0;
  text-align: center;
  background-color: #0a0a0a;
  color: #ffffff;
}

.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 */
}

/* Phong cách phản hồi */
@media (max-width: 1024px) {
  .page-register__hero-content {
    max-width: 700px;
  }
}

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

  .page-register__container,
  .page-register__hero-content,
  .page-register__why-join-section .page-register__container,
  .page-register__guide-section .page-register__container,
  .page-register__promotions-section .page-register__container,
  .page-register__security-section .page-register__container,
  .page-register__faq-section .page-register__container,
  .page-register__cta-section .page-register__container,
  .page-register__features-grid,
  .page-register__steps-grid,
  .page-register__promo-grid,
  .page-register__security-content,
  .page-register__faq-list,
  .page-register__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important; /* Đảm bảo không có thanh cuộn ngang */
  }

  .page-register__hero-section,
  .page-register__why-join-section,
  .page-register__guide-section,
  .page-register__promotions-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__cta-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-register__hero-section {
    padding-top: 10px !important; /* body đã xử lý --header-offset */
    padding-bottom: 40px !important;
  }

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

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

  .page-register__sub-title {
    font-size: 1.4rem;
  }

  .page-register__hero-image,
  .page-register__feature-icon,
  .page-register__promo-image,
  .page-register__security-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Đảm bảo kích thước tối thiểu được tuân thủ */
    min-height: 200px !important;
  }

  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register a[class*="button"],
  .page-register 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 !important;
    padding-right: 15px !important;
  }

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

  .page-register__security-content {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page-register__hero-section {
    padding-bottom: 30px !important;
  }
  .page-register__main-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
  }
  .page-register__section-title {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }
  .page-register__btn-large {
    padding: 14px 30px;
    font-size: 1rem;
  }
}