/* style/register.css */
.page-register {
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Assuming body background is black from shared.css */
}

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

.page-register__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjusted for visual impact */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px);
  background-color: #1A2B4C; /* Fallback background */
}

.page-register__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.6); /* Darken image for text readability */
}

.page-register__hero-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  padding: 20px;
}

.page-register__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-register__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.page-register__btn-primary {
  display: inline-block;
  background-color: #FFD700;
  color: #1A2B4C;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

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

.page-register__section-title {
  font-size: 2.8em;
  text-align: center;
  margin-bottom: 20px;
  color: #1A2B4C; /* Default for light background sections */
}

.page-register__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
  color: #333333; /* Default for light background sections */
}

/* Section backgrounds */
.page-register__dark-bg {
  background-color: #1A2B4C;
  color: #ffffff;
  padding: 80px 0;
}

.page-register__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 80px 0;
}

.page-register__text-light {
  color: #ffffff;
}

/* Benefits Section */
.page-register__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

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

.page-register__benefit-item:hover {
  transform: translateY(-5px);
}

.page-register__benefit-icon {
  width: 100%;
  height: auto;
  max-width: 200px;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-register__benefit-title {
  font-size: 1.5em;
  color: #1A2B4C;
  margin-bottom: 15px;
}

.page-register__benefit-text {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

/* Guide Section */
.page-register__guide-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 50px;
}

.page-register__guide-steps {
  flex: 1;
  min-width: 300px;
}

.page-register__step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.page-register__step-number {
  background-color: #FFD700;
  color: #1A2B4C;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
  flex-shrink: 0;
  margin-right: 20px;
}

.page-register__step-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-top: 0;
  margin-bottom: 5px;
}

.page-register__step-text {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-register__guide-image-wrapper {
  flex: 1;
  min-width: 400px;
  text-align: center;
}

.page-register__guide-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

/* Promotions Section */
.page-register__promotion-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

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

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

.page-register__promotion-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-register__promotion-title {
  font-size: 1.4em;
  color: #1A2B4C;
  margin-bottom: 10px;
}

.page-register__promotion-text {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
}

.page-register__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #1A2B4C;
  padding: 10px 20px;
  border: 2px solid #1A2B4C;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

/* Security Section */
.page-register__security-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 50px;
}

.page-register__security-image-wrapper {
  flex: 1;
  min-width: 400px;
  text-align: center;
}

.page-register__security-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-register__security-list {
  flex: 1;
  min-width: 300px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-register__security-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 5px solid #FFD700;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 5px;
}

.page-register__security-item-title {
  font-size: 1.3em;
  color: #FFD700;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-register__security-item-text {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-register__security-item-text a {
  color: #FFD700;
  text-decoration: underline;
}

.page-register__security-item-text a:hover {
  color: #e6c200;
}

/* FAQ Section */
.page-register__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-register__faq-item {
  background-color: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #1A2B4C;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s ease;
}

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

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

.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: #555555;
  background-color: #f8f8f8;
}

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

.page-register__faq-answer p {
  margin-top: 0;
  margin-bottom: 15px;
  line-height: 1.6;
}

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

.page-register__cta-final-button {
  margin-top: 30px;
}

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

  .page-register__section-title {
    font-size: 2.2em;
  }

  .page-register__guide-content,
  .page-register__security-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-register__guide-image-wrapper,
  .page-register__security-image-wrapper {
    min-width: unset;
  }

  .page-register__guide-image,
  .page-register__security-image {
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
  }

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

  .page-register__hero-description {
    font-size: 1em;
  }

  .page-register__btn-primary,
  .page-register__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-register__section-title {
    font-size: 1.8em;
  }

  .page-register__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-register__benefits-grid,
  .page-register__promotion-cards {
    grid-template-columns: 1fr;
  }

  .page-register__benefit-item,
  .page-register__promotion-card {
    padding: 20px;
  }

  .page-register__benefit-icon {
    max-width: 150px;
  }

  .page-register__guide-steps {
    min-width: unset;
    width: 100%;
  }

  .page-register__guide-image-wrapper,
  .page-register__security-image-wrapper {
    width: 100%;
  }
  
  .page-register__guide-image,
  .page-register__security-image {
    max-width: 100% !important; /* Force responsive image */
    height: auto !important;
  }

  .page-register__step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .page-register__step-number {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .page-register__step-title {
    font-size: 1.3em;
  }

  .page-register__security-list {
    min-width: unset;
    width: 100%;
  }

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

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

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

  /* Mobile specific image, video, button adaptations */
  .page-register img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__guide-image-wrapper,
  .page-register__security-image-wrapper,
  .page-register__promotion-card,
  .page-register__benefit-item,
  .page-register__faq-item,
  .page-register__hero-overlay .page-register__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register a[class*="button"],
  .page-register a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    /* padding-left: 15px; */ /* Removed as button itself should not have fixed horizontal padding if it's 100% width */
    /* 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;
    flex-wrap: wrap !important; /* Allow buttons to wrap */
    gap: 10px; /* Space between wrapped buttons */
    display: flex; /* Ensure flex behavior */
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  .page-register__cta-bottom .page-register__btn-primary,
  .page-register__cta-promotions .page-register__btn-primary,
  .page-register__cta-final-section .page-register__btn-primary {
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
}