:root {
  --primary-color: #007bff; /* Deep tech blue */
  --secondary-color: #ffc107; /* Bright golden/orange */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #121212;
  --bg-light-card: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  --border-color: rgba(255, 255, 255, 0.2);
  --shadow-color: rgba(0, 0, 0, 0.4);
}

/* Base styles for the register page content */
.page-register {
  background-color: var(--bg-dark); /* Ensure background matches body for consistency */
  color: var(--text-light); /* Light text for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: 120px; /* Desktop: Adjust based on shared header height */
  overflow-x: hidden; /* Prevent horizontal scroll due to content overflow */
}

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

.page-register__section-title {
  font-size: 36px;
  color: var(--secondary-color); /* Highlight titles with secondary color */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-register__section-description {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-register__hero-section {
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-register__main-title {
  font-size: 48px;
  color: var(--text-light);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 3px 6px var(--shadow-color);
}

.page-register__description {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__hero-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  margin-top: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px var(--shadow-color);
  object-fit: cover;
  display: block; /* Ensure it behaves as a block element for margin auto */
  margin-left: auto;
  margin-right: auto;
}

/* CTA Buttons */
.page-register__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-register__cta-buttons--centered {
  justify-content: center;
}

.page-register__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px var(--shadow-color);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure button fits container */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-register__cta-button:hover {
  background: #0056b3; /* Darker shade of primary */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--shadow-color);
}

.page-register__cta-button--secondary {
  background: var(--secondary-color);
  color: var(--text-dark); /* Dark text on secondary color for contrast */
}

.page-register__cta-button--secondary:hover {
  background: #e0a800; /* Darker shade of secondary */
}

/* Guide Section */
.page-register__guide-section {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
}

.page-register__steps-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page-register__step-item {
  background: var(--bg-light-card);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px var(--shadow-color);
  border: 1px solid var(--border-color);
}

.page-register__step-title {
  font-size: 28px;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-register__step-text {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 15px;
}

.page-register__step-list-details {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.8);
}

.page-register__step-list-details li {
  margin-bottom: 8px;
}

.page-register__step-list-details strong {
  color: var(--text-light);
}

.page-register__step-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  margin-top: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px var(--shadow-color);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 60px 0;
}

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

.page-register__benefit-item {
  background: var(--bg-light-card);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px var(--shadow-color);
  border: 1px solid var(--border-color);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__benefit-image {
  max-width: 200px; /* Allow scaling down from larger source, but ensure it's not tiny */
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3)); /* Visual effect, not color change */
  display: block; /* Ensure it behaves as a block element for margin auto */
  margin-left: auto;
  margin-right: auto;
}

.page-register__benefit-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-register__benefit-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
}

/* Security Section */
.page-register__security-section {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.05);
}

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

.page-register__security-item {
  background: var(--bg-light-card);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px var(--shadow-color);
  border: 1px solid var(--border-color);
}

.page-register__security-title {
  font-size: 24px;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-register__security-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
}

/* FAQ Section */
.page-register__faq-section {
  padding: 60px 0;
}

.page-register__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

/* FAQ容器样式 */
.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* 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;
  padding: 0 15px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.03); /* Lighter background for answer */
  color: rgba(255, 255, 255, 0.7);
}

/* 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 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.08); /* Slightly more opaque when active */
  border-radius: 0 0 5px 5px;
}

/* 问题样式 */
.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--bg-light-card);
  border: 1px solid var(--border-color);
  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: rgba(255, 255, 255, 0.15); /* Slightly lighter on hover */
  border-color: var(--primary-color);
}

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

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

/* 切换图标 */
.page-register__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  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: var(--primary-color);
  transform: rotate(45deg); /* Rotate for minus sign effect */
}


/* Brand Section */
.page-register__brand-section {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.05);
}