.page-register {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Text color for dark body background */
  background-color: #121212; /* Inherit from shared.css body background */
  padding-top: 120px; /* Desktop: Ensure content is not hidden by fixed header */
}

.page-register__hero-section {
  background: linear-gradient(135deg, var(--primary-color, #FFD700), var(--secondary-color, #DC143C));
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-register__hero-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-register__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: bold;
}

.page-register__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  opacity: 0.9;
}

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

.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn-primary {
  background: #DC143C; /* Secondary color for strong CTA */
  color: #ffffff;
}

.page-register__btn-primary:hover {
  background: #a30f2d;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-register__btn-secondary {
  background: #ffffff;
  color: #DC143C; /* Secondary color for text */
  border: 2px solid #DC143C;
}

.page-register__btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-register__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  text-align: center;
  color: var(--primary-color, #FFD700); /* Primary color for titles */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  font-weight: bold;
}

.page-register__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 30px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-register__why-join-section,
.page-register__benefits-section,
.page-register__cta-final-section {
  padding: 60px 20px;
  text-align: center;
  color: #ffffff;
}

.page-register__dark-section {
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
}

.page-register__why-join-container,
.page-register__how-to-register-container,
.page-register__benefits-container,
.page-register__faq-container,
.page-register__cta-final-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

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

.page-register__feature-card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent background */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.page-register__feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

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

.page-register__feature-title {
  font-size: 1.5em;
  color: var(--primary-color, #FFD700);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__feature-description {
  font-size: 1em;
  color: #e0e0e0;
  line-height: 1.7;
  flex-grow: 1;
}

.page-register__how-to-register-section {
  padding: 60px 20px;
  background-color: #121212;
  color: #ffffff;
}

.page-register__step-by-step {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-register__step-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-register__step-number {
  flex-shrink: 0;
  width: 45px;
  height: 45px;
  background: var(--primary-color, #FFD700);
  color: #121212;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-register__step-content {
  text-align: left;
}

.page-register__step-title {
  font-size: 1.6em;
  color: var(--primary-color, #FFD700);
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-register__step-content p {
  font-size: 1.05em;
  color: #e0e0e0;
  margin-bottom: 10px;
}

.page-register__step-content ul {
  list-style-type: disc;
  margin-left: 25px;
  padding: 0;
  color: #e0e0e0;
}

.page-register__step-content ul li {
  margin-bottom: 8px;
  font-size: 1em;
}

.page-register__step-content a {
  color: var(--secondary-color, #DC143C);
  text-decoration: none;
  font-weight: bold;
}

.page-register__step-content a:hover {
  text-decoration: underline;
}

.page-register__cta-bottom {
  margin-top: 50px;
  text-align: center;
}

.page-register__benefits-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
  text-align: left;
}

.page-register__benefit-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 15px 25px;
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #f0f0f0;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__benefit-item::before {
  content: '✔';
  color: var(--primary-color, #FFD700);
  font-weight: bold;
  margin-right: 15px;
  font-size: 1.3em;
}

.page-register__benefits-image {
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-top: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

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

/* FAQ容器样式 */
.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 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 25px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.03);
  color: #e0e0e0;
}

/* 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 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0 0 8px 8px;
}

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

.page-register__faq-item.active .page-register__faq-question {
  border-radius: 8px 8px 0 0;
}

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

.page-register__faq-question:active {
  background: rgba(255, 255, 255, 0.18);
}

/* 问题标题样式 */
.page-register__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.25em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: var(--primary-color, #FFD700);
}

/* 切换图标 */
.page-register__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #ffffff;
  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: 32px;
  height: 32px;
}

.page-register__faq-item.active .page-register__faq-toggle {
  color: var(--secondary-color, #DC143C);
  transform: rotate(45deg);
}

.page-register__cta-final-section {
  padding: 80px 20px;
  background: linear-gradient(45deg, #DC143C, #8b0000); /* Darker gradient for final CTA */
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-register__cta-final-title {
  font-size: 3em;
  margin-bottom: 25px;
  color: var(--primary-color, #FFD700);
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
  font-weight: bold;
}

.page-register__cta-final-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.page-register__btn-large {
  padding: 18px 45px;
  font-size: 1.3em;
  background: var(--primary-color, #FFD700);
  color: #121212;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-register__btn-large:hover {
  background: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 2.8em;
  }
  .page-register__section-title {
    font-size: 2.2em;
  }
  .page-register__cta-final-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-register {
    padding-top: 100px !important; /* Mobile: Ensure content is not hidden by fixed header */
    font-size: 16px;
    line-height: 1.6;
  }
  .page-register__hero-section {
    padding: 60px 15px;
  }
  .page-register__hero-title {
    font-size: 2.2em;
  }
  .page-register__hero-description {
    font-size: 1em;
  }
  .page-register__hero-cta {
    flex-direction: column;
    gap: 15px;
  }
  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register__btn-large {
    padding: 12px 25px !important;
    font-size: 1em !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-register__why-join-section,
  .page-register__how-to-register-section,
  .page-register__benefits-section,
  .page-register__faq-section,
  .page-register__cta-final-section {
    padding: 40px 15px;
  }
  .page-register__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-register__text-block {
    font-size: 0.95em;
  }
  .page-register__features-grid {
    grid-template-columns: 1fr;
  }
  .page-register__feature-card {
    padding: 25px;
    border-radius: 8px;
  }
  .page-register__feature-icon {
    width: 80px;
    height: 80px;
  }
  .page-register__feature-title {
    font-size: 1.3em;
  }
  .page-register__step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }
  .page-register__step-number {
    margin-bottom: 15px;
  }
  .page-register__step-title {
    font-size: 1.4em;
  }
  .page-register__step-content ul {
    text-align: left;
    margin-left: 0;
    list-style-position: inside;
  }
  .page-register__benefit-item {
    font-size: 1em;
    padding: 12px 20px;
  }
  .page-register__benefit-item::before {
    margin-right: 10px;
    font-size: 1.1em;
  }
  .page-register__faq-question {
    padding: 15px 20px;
  }
  .page-register__faq-question h3 {
    font-size: 1.1em;
  }
  .page-register__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-register__faq-item.active .page-register__faq-answer {
    padding: 15px 20px !important;
  }
  .page-register__cta-final-title {
    font-size: 2em;
  }
  .page-register__cta-final-description {
    font-size: 1.1em;
  }
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-register__why-join-container,
  .page-register__how-to-register-container,
  .page-register__benefits-container,
  .page-register__faq-container,
  .page-register__cta-final-container {
    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: 1.8em;
  }
  .page-register__section-title {
    font-size: 1.6em;
  }
  .page-register__cta-final-title {
    font-size: 1.8em;
  }
  .page-register__feature-title {
    font-size: 1.2em;
  }
  .page-register__step-title {
    font-size: 1.2em;
  }
}