.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherited from shared, ensuring contrast */
}

.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;
}

.page-register__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

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

.page-register__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #ffffff; /* Ensure contrast on dark background */
}

.page-register__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0; /* Lighter text for readability on dark backgrounds */
}

/* Hero Section */
.page-register__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  text-align: center;
  background-color: #017439; /* Brand primary color */
  position: relative;
  overflow: hidden;
}

.page-register__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-bottom: 40px;
}

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

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

.page-register__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.15;
  overflow: hidden;
}

.page-register__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(50%);
}

/* Buttons */
.page-register__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Custom color for register */
  color: #FFFF00; /* Custom font color for register */
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

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

.page-register__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #FFFFFF;
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #FFFFFF;
  margin-left: 20px;
}

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

.page-register__btn-large {
  padding: 18px 45px;
  font-size: 1.4em;
}

/* Advantages Section */
.page-register__advantages .page-register__section-title,
.page-register__advantages .page-register__section-description {
  color: #ffffff;
}

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

.page-register__advantage-card {
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  background-color: #ffffff;
  color: #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.page-register__advantage-icon {
  width: 120px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-register__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #017439;
}

.page-register__advantage-card p {
  color: #555555;
}

/* How-To Register Section */
.page-register__how-to-register .page-register__section-title,
.page-register__how-to-register .page-register__section-description {
  color: #ffffff;
}

.page-register__video-wrapper {
  max-width: 800px;
  margin: 40px auto;
  background-color: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-register__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

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

.page-register__step-card {
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  background-color: #ffffff;
  color: #333333;
  position: relative;
  padding-top: 60px;
}

.page-register__step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #017439;
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  border: 4px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-register__step-card .page-register__card-title {
  color: #017439;
}

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

.page-register__important-note {
  background-color: #ffffff;
  color: #333333;
  margin-top: 50px;
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-register__important-note .page-register__card-title {
  color: #C30808;
  margin-bottom: 20px;
}

.page-register__important-note ul {
  list-style: disc;
  margin-left: 25px;
  color: #555555;
}

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

.page-register__cta-buttons {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Promotions Section */
.page-register__promotions .page-register__section-title,
.page-register__promotions .page-register__section-description {
  color: #ffffff;
}

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

.page-register__promo-card {
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  background-color: #ffffff;
  color: #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-register__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.page-register__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-register__promo-card .page-register__card-title {
  color: #017439;
}

.page-register__promo-card p {
  color: #555555;
  flex-grow: 1;
}

.page-register__card-link {
  display: inline-block;
  margin-top: 20px;
  color: #C30808;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-register__card-link:hover {
  color: #e02020;
  text-decoration: underline;
}

.page-register__promo-note {
  margin-top: 30px;
  font-size: 0.9em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-register__faq .page-register__section-title,
.page-register__faq .page-register__section-description {
  color: #ffffff;
}

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

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

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

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

.page-register__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #017439;
  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: #ffffff;
}

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

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

/* Tips Section */
.page-register__tips .page-register__section-title,
.page-register__tips .page-register__section-description {
  color: #ffffff;
}

.page-register__tips-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto;
  text-align: left;
}

.page-register__tips-list li {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  font-size: 1.1em;
  color: #f0f0f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-register__tips-list li strong {
  color: #FFFF00;
}

.page-register__cta-bottom {
  margin-top: 60px;
  padding: 40px;
  background-color: #017439;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.page-register__cta-bottom .page-register__cta-title {
  font-size: 2em;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.page-register__cta-bottom p {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

@media (max-width: 768px) {
  .page-register__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 60px;
  }
  .page-register__hero-title {
    font-size: 2.2em;
  }
  .page-register__hero-description {
    font-size: 1em;
  }
  .page-register__section {
    padding: 40px 0;
  }
  .page-register__section-title {
    font-size: 1.8em;
  }
  .page-register__section-description {
    font-size: 1em;
  }
  .page-register__advantage-grid,
  .page-register__steps-grid,
  .page-register__promo-grid {
    grid-template-columns: 1fr;
  }
  .page-register__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-register__btn-secondary {
    margin-left: 0;
  }

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

  /* Mobile video responsiveness */
  .page-register video,
  .page-register__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-register__video-section,
  .page-register__video-container,
  .page-register__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-register__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  /* Mobile button responsiveness */
  .page-register__cta-button,
  .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;
    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;
    gap: 10px;
  }
  .page-register__cta-buttons {
    flex-direction: column;
  }

  .page-register__container,
  .page-register__hero-content,
  .page-register__advantage-card,
  .page-register__step-card,
  .page-register__important-note,
  .page-register__promo-card,
  .page-register__faq-item,
  .page-register__tips-list li,
  .page-register__cta-bottom {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  .page-register__faq-question,
  .page-register__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-register__faq-answer {
    padding: 0 15px;
  }
  .page-register__faq-item.active .page-register__faq-answer {
    padding: 15px 15px 20px;
  }
  .page-register__hero-image-wrapper {
    display: none; /* Hide background image on mobile for better performance/focus */
  }
}

@media (max-width: 480px) {
  .page-register__hero-title {
    font-size: 1.8em;
  }
  .page-register__section-title {
    font-size: 1.5em;
  }
  .page-register__btn-primary,
  .page-register__btn-secondary {
    font-size: 1em;
    padding: 12px 25px;
  }
  .page-register__step-number {
    width: 40px;
    height: 40px;
    font-size: 1.5em;
  }
  .page-register__card-title {
    font-size: 1.3em;
  }
  .page-register__faq-question {
    font-size: 1em;
  }
  .page-register__cta-bottom .page-register__cta-title {
    font-size: 1.5em;
  }
  .page-register__cta-bottom p {
    font-size: 1em;
  }
}