.page-register {
  background-color: var(--dark-bg); /* Body background is dark, but main content sections can have their own light/dark backgrounds */
  color: #ffffff; /* Default text color for dark sections */
  font-family: 'Arial', sans-serif;
}

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

.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px;
  background-color: #017439; /* Use brand color for hero background */
  color: #ffffff;
  padding: 80px 20px;
  overflow: hidden;
  box-sizing: border-box;
}

.page-register__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
  z-index: 1;
}

.page-register__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-register__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

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

.page-register__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.6;
  color: #ffffff;
}

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

.page-register__btn-primary,
.page-register__btn-secondary {
  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;
  border: 2px solid transparent;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn-primary {
  background-color: #C30808; /* Custom color for register/login buttons */
  color: #FFFFFF; /* Ensures WCAG AA contrast with #C30808 */
  border-color: #C30808;
}

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

.page-register__btn-secondary {
  background-color: #ffffff;
  color: #017439; /* Use brand color for text on white background */
  border-color: #ffffff;
}

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

.page-register__section-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.3;
}

.page-register__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
}

/* Why Join Section */
.page-register__why-join-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Using a darker background for this section */
  color: #ffffff;
}

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

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

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

.page-register__feature-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

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

.page-register__feature-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #FFFF00; /* Using custom yellow for titles in dark sections */
}

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

/* Steps Section */
.page-register__steps-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background for steps */
  color: #333333;
}

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

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

.page-register__step-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-register__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #017439;
  color: #ffffff;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

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

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

/* Form Section */
.page-register__form-section {
  padding: 80px 0;
  background-color: #FFFFFF; /* Custom background color for form section */
  color: #333333;
}

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

.page-register__form-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  margin-top: 40px;
}

.page-register__form-image {
  flex: 1 1 400px;
  max-width: 500px;
  border-radius: 10px;
  object-fit: contain;
  display: block;
}

.page-register__registration-form {
  flex: 1 1 400px;
  background-color: #f9f9f9;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-register__form-group {
  margin-bottom: 20px;
}

.page-register__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333333;
}

.page-register__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
}

.page-register__form-input::placeholder {
  color: #aaaaaa;
}

.page-register__checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.page-register__form-checkbox {
  margin-right: 10px;
  width: 18px;
  height: 18px;
}

.page-register__form-link {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

.page-register__form-link:hover {
  text-decoration: underline;
}

.page-register__form-submit-btn {
  width: 100%;
  padding: 15px;
  font-size: 1.2em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background-color: #C30808; /* Custom color for register/login buttons */
  color: #FFFFFF; /* Ensures WCAG AA contrast with #C30808 */
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-register__form-submit-btn:hover {
  background-color: #a00606;
}

/* Promotions Section */
.page-register__promotions-section {
  padding: 80px 0;
  background-color: #017439; /* Main brand color for promotions */
  color: #ffffff;
}

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

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

.page-register__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__promo-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.2);
}

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

.page-register__promo-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: #FFFF00; /* Custom yellow for titles in dark sections */
}

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

.page-register__promo-cta {
  margin-top: 50px;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

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

.page-register__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__faq-item {
  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: 18px 25px;
  background-color: #f5f5f5;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  transition: background-color 0.3s ease;
}

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

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

.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: 0;
  line-height: 1.6;
}

.page-register__faq-image {
  width: 100%;
  height: auto;
  max-width: 400px;
  margin: 50px auto 0 auto;
  display: block;
  border-radius: 8px;
}

/* Join CTA Section */
.page-register__join-cta-section {
  padding: 80px 20px;
  background-color: #0d0d0d; /* Dark background */
  color: #ffffff;
  text-align: center;
}

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

.page-register__join-cta-section .page-register__btn-primary {
  margin-top: 40px;
}

/* General Content Styling */
.page-register p,
.page-register li {
  color: #f0f0f0; /* Default for dark sections */
}

.page-register__light-bg p,
.page-register__light-bg li {
  color: #333333; /* Default for light sections */
}

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

@media (max-width: 768px) {
  .page-register__hero-section {
    min-height: 500px;
    padding: 60px 15px;
  }
  .page-register__hero-title {
    font-size: 2.5em;
  }
  .page-register__hero-description {
    font-size: 1.1em;
  }
  .page-register__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-register__btn-primary,
  .page-register__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-register__why-join-section,
  .page-register__steps-section,
  .page-register__form-section,
  .page-register__promotions-section,
  .page-register__faq-section,
  .page-register__join-cta-section {
    padding: 60px 0;
  }

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

  .page-register__form-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .page-register__form-image {
    max-width: 100%;
    width: 100%;
    height: auto;
  }

  .page-register__registration-form {
    padding: 30px;
    width: 100%;
    max-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 adaptation */
  .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__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
  }
}

@media (max-width: 480px) {
  .page-register__hero-title {
    font-size: 2em;
  }
  .page-register__section-title {
    font-size: 1.5em;
  }
  .page-register__hero-cta-buttons {
    flex-direction: column;
  }
}