.page-register__top-spacer {
  height: 120px; /* Default for desktop fixed header */
}

@media (max-width: 768px) {
  .page-register__top-spacer {
    height: 100px; /* Adjusted for mobile fixed header */
  }
}

.page-register {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

.page-register__dark-section {
  background-color: var(--primary-color, #003366);
  color: #ffffff;
  padding: 60px 0;
}

.page-register__hero-section {
  text-align: center;
  padding: 80px 0;
}

.page-register__hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFD700; /* Secondary color for main title */
}

.page-register__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-register__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-register__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box;
}

.page-register__cta-button--primary {
  background: var(--secondary-color, #FFD700);
  color: var(--primary-color, #003366);
}

.page-register__cta-button--primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-register__cta-button--secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-register__cta-button--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-register__cta-button--small {
  padding: 10px 25px;
  font-size: 16px;
}

.page-register__cta-button--large {
  padding: 18px 45px;
  font-size: 20px;
}

.page-register__section-title {
  font-size: 38px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #FFD700; /* Secondary color for section titles */
}

.page-register__section-intro {
  font-size: 18px;
  text-align: center;
  max-width: 900px;
  margin: -20px auto 60px auto;
  color: #f0f0f0;
}

.page-register__benefits-section {
  padding: 60px 0;
  background-color: #0a0a0a;
  color: #ffffff;
}

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

.page-register__benefit-card {
  background-color: var(--primary-color, #003366);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-register__benefit-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-register__card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-register__card-text {
  font-size: 16px;
  color: #f0f0f0;
}

.page-register__how-to-register-section {
  padding: 60px 0;
}

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

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

.page-register__step-number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #FFD700;
  color: var(--primary-color, #003366);
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-register__checklist {
  list-style: none;
  padding: 0;
  margin-top: 15px;
  text-align: left;
  width: 100%;
}

.page-register__checklist li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23FFD700"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 16px;
  color: #f0f0f0;
}

.page-register__note {
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 5px solid #FFD700;
  padding: 20px;
  margin-top: 40px;
  border-radius: 5px;
  color: #f0f0f0;
}

.page-register__note p {
  margin: 0;
  font-size: 16px;
}

.page-register__benefits-after-reg-section {
  padding: 60px 0;
  background-color: #0a0a0a;
  color: #ffffff;
}

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

.page-register__feature-item {
  background-color: var(--primary-color, #003366);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-register__feature-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-register__feature-item p {
  font-size: 16px;
  color: #f0f0f0;
}

.page-register__faq-section {
  padding: 60px 0;
  background-color: #0a0a0a;
  color: #ffffff;
}

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

/* FAQ容器样式 */
.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.08);
}

/* FAQ默认状态 - 答案隐藏 */
.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-register__faq-item.active .page-register__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng !important đảm bảo ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 5px 5px;
}

/* 问题样式 */
.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--primary-color, #003366);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-register__faq-question:hover {
  background: #004488;
  border-color: rgba(255, 255, 255, 0.2);
}

.page-register__faq-question:active {
  background: #002244;
}

/* 问题标题样式 */
.page-register__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
}

/* 切换图标 */
.page-register__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* 防止图标阻止点击事件 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-register__faq-item.active .page-register__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-register__commitment-section {
  padding: 60px 0;
}

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

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

.page-register__cta-bottom-section {
  padding: 80px 0;
  text-align: center;
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-register__cta-bottom-section .page-register__section-title {
  color: #FFD700;
}

.page-register__cta-description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 40px;
  }
  .page-register__section-title {
    font-size: 32px;
  }
  .page-register__hero-description,
  .page-register__section-intro,
  .page-register__card-text,
  .page-register__feature-item p,
  .page-register__note p,
  .page-register__cta-description {
    font-size: 17px;
  }
  .page-register__cta-button {
    padding: 12px 30px;
    font-size: 17px;
  }
  .page-register__cta-button--large {
    padding: 15px 40px;
    font-size: 18px;
  }
  .page-register__faq-question h3 {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-register__top-spacer {
    height: 100px; /* Mobile header height */
  }
  .page-register__container {
    padding: 15px;
  }
  .page-register__hero-section,
  .page-register__benefits-section,
  .page-register__how-to-register-section,
  .page-register__benefits-after-reg-section,
  .page-register__faq-section,
  .page-register__commitment-section,
  .page-register__cta-bottom-section {
    padding: 40px 0;
  }
  .page-register__hero-title {
    font-size: 32px;
  }
  .page-register__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-register__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-register__section-intro {
    font-size: 16px;
    margin-bottom: 40px;
  }
  .page-register__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-register__cta-button,
  .page-register__cta-button--large,
  .page-register__cta-button--small {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 20px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-register__benefits-grid,
  .page-register__steps-grid,
  .page-register__features-grid,
  .page-register__commitment-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-register__benefit-card,
  .page-register__step-card,
  .page-register__feature-item,
  .page-register__commitment-card {
    padding: 25px;
  }

  .page-register__card-title,
  .page-register__feature-title {
    font-size: 20px;
  }

  .page-register__card-text,
  .page-register__feature-item p,
  .page-register__note p {
    font-size: 15px;
  }

  .page-register__faq-question {
    padding: 15px;
  }
  .page-register__faq-question h3 {
    font-size: 16px;
  }
  .page-register__faq-answer {
    padding: 0 15px;
  }
  .page-register__faq-item.active .page-register__faq-answer {
    padding: 15px !important;
  }
  .page-register__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  .page-register__cta-description {
    font-size: 16px;
  }

  /* Image responsive */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-register__container,
  .page-register__benefits-grid,
  .page-register__steps-grid,
  .page-register__features-grid,
  .page-register__commitment-grid,
  .page-register__faq-list {
    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-register__hero-title {
    font-size: 28px;
  }
  .page-register__section-title {
    font-size: 24px;
  }
  .page-register__benefit-icon {
    width: 80px;
    height: 80px;
  }
  .page-register__step-number {
    width: 50px;
    height: 50px;
    font-size: 28px;
  }
}