/* style/register.css */

/* --- General Page Styles (BEM) --- */
.page-register {
  color: #f0f0f0; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #121212; /* Ensure consistency with body background if not inheriting */
}

.page-register__section-title {
  font-size: 3em;
  color: #FFD700; /* Gold color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-register__section-description {
  font-size: 1.1em;
  color: #cccccc;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* --- Hero Section (BEM) --- */
.page-register__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  overflow: hidden; /* Prevent image overflow */
}

.page-register__hero-container {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  width: 100%;
  text-align: center;
  color: #ffffff;
}

.page-register__main-title {
  font-size: 3.8em;
  color: #FFD700; /* Gold for main title */
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.page-register__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-register__cta-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%; /* Ensure button fits container */
  box-sizing: border-box;
}

.page-register__cta-button--primary {
  background: #FFD700; /* Gold primary button */
  color: #8B0000; /* Dark red text for contrast */
}

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

.page-register__cta-button--secondary {
  background: #8B0000; /* Dark red secondary button */
  color: #FFD700; /* Gold text for contrast */
  border: 2px solid #FFD700;
}

.page-register__cta-button--secondary:hover {
  background: #7a0000;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-register__cta-button--small {
  padding: 10px 25px;
  font-size: 1em;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-register__hero-image-wrapper {
  margin-top: 40px;
  width: 100%;
  max-width: 1200px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* --- Benefits Section (BEM) --- */
.page-register__benefits-section {
  padding: 80px 20px;
  background-color: #1a1a1a; /* Dark background for this section */
  color: #f0f0f0;
}

.page-register__dark-section {
  background-color: #1a1a1a;
  color: #f0f0f0;
}

.page-register__benefits-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-register__benefit-item {
  background-color: #2a2a2a;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-register__benefit-icon {
  width: 100%; /* Occupy full width of card */
  height: auto;
  max-height: 200px; /* Constrain height */
  object-fit: contain; /* Ensure image is fully visible */
  margin-bottom: 20px;
  border-radius: 8px;
  display: block; /* Ensure it behaves as a block element for margin */
  margin-left: auto;
  margin-right: auto;
}

.page-register__benefit-title {
  font-size: 1.8em;
  color: #FFD700; /* Gold for benefit titles */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__benefit-text {
  font-size: 1em;
  color: #cccccc;
}

/* --- Guide Section (BEM) --- */
.page-register__guide-section {
  padding: 80px 20px;
  background-color: #121212;
  color: #f0f0f0;
}

.page-register__guide-container {
  max-width: 1000px;
  margin: 0 auto;
}

.page-register__guide-steps {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.page-register__step-item {
  background-color: #2a2a2a;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-register__step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #FFD700; /* Gold number background */
  color: #8B0000; /* Dark red number text */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-register__step-title {
  font-size: 2.2em;
  color: #FFD700; /* Gold for step titles */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__step-text {
  font-size: 1.1em;
  color: #cccccc;
  margin-bottom: 25px;
}

.page-register__step-list {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
  text-align: left;
  width: 100%;
  max-width: 500px;
  color: #f0f0f0;
}

.page-register__step-list li {
  background-color: #3a3a3a;
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 1em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-register__step-list strong {
  color: #FFD700;
}

.page-register__step-image {
  width: 100%;
  max-width: 600px; /* Constrain image width */
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* --- Security Section (BEM) --- */
.page-register__security-section {
  padding: 80px 20px;
  background-color: #1a1a1a;
  color: #f0f0f0;
}

.page-register__security-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-register__security-item {
  background-color: #2a2a2a;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__security-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-register__security-icon {
  width: 100%;
  max-width: 300px; /* Constrain icon width */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-register__security-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__security-text {
  font-size: 1em;
  color: #cccccc;
}

/* --- Promotions Section (BEM) --- */
.page-register__promotions-section {
  padding: 80px 20px;
  background-color: #121212;
  color: #f0f0f0;
}

.page-register__promotions-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-register__promotion-card {
  background-color: #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-register__promotion-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-register__promotion-title {
  font-size: 1.8em;
  color: #FFD700;
  padding: 20px 15px 10px;
  font-weight: bold;
}

.page-register__promotion-text {
  font-size: 1em;
  color: #cccccc;
  padding: 0 15px 20px;
  flex-grow: 1; /* Push button to bottom */
}

.page-register__promotion-card .page-register__cta-button--small {
  margin: 0 15px 20px;
  align-self: center;
  width: calc(100% - 30px);
}

.page-register__promotions-cta {
  text-align: center;
}

/* --- FAQ Section (BEM) --- */
.page-register__faq-section {
  padding: 80px 20px;
  background-color: #1a1a1a;
  color: #f0f0f0;
}

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

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

/* FAQ容器样式 */
.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 10px; /* Slightly larger radius */
  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 20px; /* Adjusted padding */
  opacity: 0;
  color: #cccccc;
  background-color: #2a2a2a; /* Darker background for answer */
}

/* FAQ展开状态 - 🚨 使用!important và đủ lớn max-height để đảm bảo có thể mở rộng */
.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; /* Adjusted padding */
  opacity: 1;
  background-color: #2a2a2a;
  border-radius: 0 0 10px 10px;
}

/* Question styles */
.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px; /* Adjusted padding */
  background-color: #3a3a3a; /* Darker background for question */
  border: 1px solid #4a4a4a; /* Darker border */
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-register__faq-question:hover {
  background-color: #4a4a4a;
  border-color: #FFD700; /* Gold border on hover */
}

.page-register__faq-question:active {
  background-color: #5a5a5a;
}

/* Question title styles */
.page-register__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.25em; /* Slightly larger font */
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 tag from blocking click events */
  color: #FFD700; /* Gold for FAQ questions */
}

/* Toggle icon */
.page-register__faq-toggle {
  font-size: 28px; /* Slightly larger icon */
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click events */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; /* Slightly larger */
  height: 32px; /* Slightly larger */
}

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