.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--dark-bg-1); /* Inherited from shared.css, assumed dark */
}

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

/* --- Hero Section --- */
.page-register__hero-section {
  position: relative;
  padding: 120px 0 60px; /* Adjust for fixed header */
  text-align: center;
  background-color: #017439; /* Brand primary color for hero */
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-register__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-register__description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- General Section Styling --- */
.page-register__section-title {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherits from section background */
}

.page-register__subtitle {
  font-size: 1.6em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: inherit;
}

.page-register__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Dark Background Section --- */
.page-register__dark-section {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  padding: 60px 0;
}

/* --- Light Background Section --- */
.page-register__light-bg {
  background-color: #ffffff; /* Custom background color */
  color: #333333; /* Dark text for light background */
  padding: 60px 0;
}

.page-register__light-bg .page-register__section-title,
.page-register__light-bg .page-register__subtitle,
.page-register__light-bg .page-register__card-title {
  color: #333333;
}

.page-register__light-bg .page-register__card-text,
.page-register__light-bg .page-register__list-item-text {
  color: #555555;
}

/* --- Buttons --- */
.page-register__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Custom 'Đăng ký' color */
  color: #ffffff; /* High contrast text for button */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}

.page-register__btn-primary:hover {
  background-color: #a00606;
}

.page-register__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #017439; /* Brand primary color for text */
  border: 2px solid #017439;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.page-register__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

/* --- Why Section Grid --- */
.page-register__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-register__feature-card {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  color: #333333;
}

.page-register__feature-card:hover {
  transform: translateY(-5px);
}

.page-register__feature-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: 1.4em;
  margin-bottom: 15px;
  color: #017439; /* Brand primary color for titles */
}

.page-register__card-text {
  font-size: 0.95em;
  color: #555555;
}

/* --- Steps Section --- */
.page-register__steps-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
}

.page-register__step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-register__step-number {
  width: 50px;
  height: 50px;
  background-color: #C30808; /* Custom 'Đăng ký' color */
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-register__step-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-register__step-description {
  font-size: 1.05em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-register__step-description a {
  color: #FFFF00; /* Custom font color for register/login link */
  text-decoration: underline;
}

.page-register__step-description a:hover {
  color: #ffd700;
}

.page-register__step-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  display: block;
}

/* --- Requirements Section --- */
.page-register__requirements-list,
.page-register__issues-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__requirements-list li,
.page-register__issues-list li {
  background-color: #f9f9f9;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-register__list-item-title {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #017439;
}

.page-register__list-item-text {
  font-size: 1em;
  color: #555555;
}

.page-register__issues-list strong {
  color: #017439;
}

/* --- Promotions Section --- */
.page-register__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-register__promo-card {
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  color: #333333;
}

.page-register__promo-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

/* --- FAQ Section --- */
.page-register__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: bold;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

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

.page-register__faq-title {
  margin: 0;
  font-size: 1em;
  flex-grow: 1;
  color: #ffffff;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
  transition: transform 0.3s ease;
  color: #FFFF00; /* Custom font color for register/login font */
}

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(45deg);
}

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 1000px !important; /* Sufficiently large for content */
  padding: 15px 25px;
}

.page-register__faq-answer p {
  margin-bottom: 10px;
}

/* --- Contact CTA Section --- */
.page-register__contact-cta-section {
  text-align: center;
}

/* --- Final CTA Section --- */
.page-register__final-cta-section {
  text-align: center;
}

.page-register__final-cta-section .page-register__text-block a {
  color: #FFFF00; /* Custom font color for register/login link */
  text-decoration: underline;
}

.page-register__final-cta-section .page-register__text-block a:hover {
  color: #ffd700;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-register__main-title {
    font-size: 2.4em;
  }
  .page-register__section-title {
    font-size: 1.8em;
  }
}

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

  .page-register__container {
    padding: 0 15px;
  }

  .page-register__hero-section {
    padding: 100px 0 40px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is below fixed header on mobile */
  }

  .page-register__main-title {
    font-size: 2em;
  }

  .page-register__description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-register__section-title {
    font-size: 1.6em;
    margin-bottom: 30px;
  }

  .page-register__subtitle {
    font-size: 1.4em;
  }

  .page-register__grid-layout,
  .page-register__promo-grid {
    grid-template-columns: 1fr;
  }

  .page-register__feature-card,
  .page-register__promo-card,
  .page-register__step-item,
  .page-register__requirements-list li,
  .page-register__issues-list li {
    padding: 20px;
  }

  .page-register__btn-primary,
  .page-register__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-register__steps-wrapper a.page-register__btn-secondary {
    margin-top: 15px;
  }

  .page-register__steps-wrapper {
    gap: 30px;
  }

  .page-register__faq-question {
    padding: 15px 20px;
    font-size: 1.05em;
  }

  .page-register__faq-answer {
    padding: 0 20px;
  }

  .page-register__faq-item.active .page-register__faq-answer {
    padding: 15px 20px;
  }

  /* Mobile image responsive adaptation */
  .page-register img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__hero-section,
  .page-register__why-section,
  .page-register__steps-section,
  .page-register__requirements-section,
  .page-register__verification-deposit-section,
  .page-register__promotions-section,
  .page-register__faq-section,
  .page-register__contact-cta-section,
  .page-register__final-cta-section,
  .page-register__promo-grid,
  .page-register__grid-layout,
  .page-register__faq-list,
  .page-register__steps-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-register__main-title {
    font-size: 1.8em;
  }
  .page-register__section-title {
    font-size: 1.4em;
  }
  .page-register__step-number {
    width: 40px;
    height: 40px;
    font-size: 1.5em;
  }
  .page-register__step-title {
    font-size: 1.3em;
  }
  .page-register__faq-question {
    font-size: 1em;
  }
}