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

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

.page-register__section {
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-register__dark-section {
  background-color: #4A00B7; /* Brand primary color */
  color: #ffffff;
}

.page-register__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-register__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: inherit; /* Inherit from section, ensures contrast */
  font-weight: bold;
}

.page-register__sub-title {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: inherit;
}

.page-register__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  line-height: 1.8;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

.page-register__text-block {
  text-align: left;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-register__text-block p {
  margin-bottom: 15px;
  color: inherit;
}

.page-register__text-block strong {
  color: #FFD700; /* Highlight important keywords */
}

.page-register__text-link {
  color: #FFD700; /* Auxiliary color for links */
  text-decoration: underline;
}

.page-register__text-link:hover {
  color: #ffd700cc;
}

/* Buttons */
.page-register__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: 20px;
  cursor: pointer;
}

.page-register__btn-primary {
  background-color: #FFD700; /* Auxiliary color for primary action */
  color: #4A00B7; /* Dark text for light background */
  border: 2px solid #FFD700;
}

.page-register__btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

/* Hero Section */
.page-register__hero-section {
  display: flex;
  align-items: center;
  padding-top: var(--header-offset, 120px); /* Ensure spacing from fixed header */
  min-height: 600px; /* Minimum height for hero */
}

.page-register__hero-content {
  flex: 1;
  text-align: left;
  padding-right: 40px;
}

.page-register__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-register__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.page-register__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Intro Section specific */
.page-register__intro-section .page-register__text-block {
  text-align: left;
}

.page-register__list {
  list-style-type: disc;
  text-align: left;
  max-width: 900px;
  margin: 20px auto 40px auto;
  padding-left: 20px;
  color: inherit;
}

.page-register__list li {
  margin-bottom: 10px;
}

/* Guide Section */
.page-register__guide-section {
  color: #333333;
}

.page-register__guide-section .page-register__section-title,
.page-register__guide-section .page-register__section-description {
  color: #333333;
}

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

.page-register__step-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-register__step-icon {
  background-color: #4A00B7;
  color: #ffffff;
  width: 50px;
  height: 50px;
  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.5em;
  margin-bottom: 15px;
  color: #4A00B7;
}

.page-register__step-item p {
  color: #555555;
}

.page-register__step-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
}

/* Requirements Section */
.page-register__requirements-section .page-register__section-title,
.page-register__requirements-section .page-register__section-description {
  color: #ffffff;
}

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

.page-register__card {
  background-color: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-register__card-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #4A00B7;
}

.page-register__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
}

/* Promotions Section */
.page-register__promotions-section {
  background-color: var(--dark-bg-1);
  color: #ffffff;
}

.page-register__promotions-section .page-register__section-title,
.page-register__promotions-section .page-register__section-description {
  color: #ffffff;
}

.page-register__promotions-section .page-register__card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards on dark background */
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-register__promotions-section .page-register__card-title {
  color: #FFD700;
}

.page-register__promotions-section .page-register__text-link {
  color: #FFD700;
}

/* Security Section */
.page-register__security-section .page-register__section-title,
.page-register__security-section .page-register__section-description {
  color: #ffffff;
}

.page-register__security-section .page-register__card {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-register__security-section .page-register__card-title {
  color: #FFD700;
}

.page-register__security-section .page-register__text-link {
  color: #FFD700;
}

/* FAQ Section */
.page-register__faq-section {
  color: #333333;
}

.page-register__faq-section .page-register__section-title,
.page-register__faq-section .page-register__section-description {
  color: #333333;
}

.page-register__faq-list {
  max-width: 800px;
  margin: 40px auto 20px auto;
  text-align: left;
}

.page-register__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #4A00B7;
  background-color: #f0f0f0;
  transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
  background-color: #e6e6e6;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #4A00B7;
  transition: transform 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(45deg); /* Plus sign rotates to form an X or minus */
}

.page-register__faq-answer {
  max-height: 0; /* Initial state */
  overflow: hidden;
  padding: 0 20px; /* Initial state */
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #ffffff;
  color: #555555;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 20px;
}

.page-register__faq-answer p {
  margin: 0;
}

.page-register__support-cta {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__support-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 20px;
}

.page-register__support-cta p {
  font-size: 1.1em;
  color: #333333;
}

/* Final CTA Section */
.page-register__cta-final {
  padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-content {
    padding-right: 20px;
  }
  .page-register__main-title {
    font-size: 3em;
  }
  .page-register__hero-description {
    font-size: 1.2em;
  }
  .page-register__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    flex-direction: column;
    text-align: center;
    padding-top: var(--header-offset, 120px) !important;
    min-height: auto;
  }
  .page-register__hero-content {
    padding-right: 0;
    padding-bottom: 30px;
  }
  .page-register__main-title {
    font-size: 2.5em;
    margin-bottom: 15px;
  }
  .page-register__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-register__section {
    padding: 40px 0;
  }
  .page-register__section-title {
    font-size: 1.8em;
  }
  .page-register__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-register__text-block {
    margin-bottom: 30px;
    padding: 0 15px;
  }
  .page-register__list {
    margin: 20px auto 30px auto;
    padding-left: 15px;
  }
  .page-register__steps-grid,
  .page-register__grid-half {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }
  .page-register__step-item,
  .page-register__card {
    padding: 20px;
  }
  .page-register__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-register__cta-buttons,
  .page-register__button-group,
  .page-register__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-register__section,
  .page-register__card,
  .page-register__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-register__faq-list {
    padding: 0 15px;
  }
  .page-register__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-register__faq-answer {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-register__main-title {
    font-size: 2em;
  }
  .page-register__section-title {
    font-size: 1.6em;
  }
  .page-register__step-title,
  .page-register__card-title {
    font-size: 1.3em;
  }
  .page-register__cta-button {
    font-size: 1em;
    padding: 12px 25px;
  }
}