.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #f9f9f9; /* Explicitly set to match body background */
}

/* Custom Colors and Contrast */
.page-register__dark-bg {
  background-color: #08160F; /* Custom Background */
  color: #F2FFF6; /* Custom Text Main */
}

.page-register__dark-bg .page-register__section-title,
.page-register__dark-bg .page-register__hero-description,
.page-register__dark-bg .page-register__main-title,
.page-register__dark-bg .page-register__feature-title,
.page-register__dark-bg .page-register__feature-text,
.page-register__dark-bg .page-register__step-title,
.page-register__dark-bg .page-register__step-text,
.page-register__dark-bg .page-register__benefit-title,
.page-register__dark-bg .page-register__benefit-text,
.page-register__dark-bg .page-register__faq-qtext,
.page-register__dark-bg .page-register__faq-answer p,
.page-register__dark-bg .page-register__description {
  color: #F2FFF6; /* Ensure light text on dark background */
}

.page-register__light-bg {
  background-color: #f9f9f9; /* Default light background */
  color: #333333; /* Default dark text */
}

.page-register__card {
  background-color: #11271B; /* Custom Card BG */
  color: #F2FFF6; /* Custom Text Main for cards */
  border: 1px solid #2E7A4E; /* Custom Border */
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.page-register__card .page-register__feature-title,
.page-register__card .page-register__feature-text,
.page-register__card .page-register__step-title,
.page-register__card .page-register__step-text,
.page-register__card .page-register__benefit-title,
.page-register__card .page-register__benefit-text {
  color: #F2FFF6; /* Ensure light text on dark card background */
}

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

.page-register__section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: clamp(1.8rem, 5vw, 2.5rem); /* H1 font size rule */
  font-weight: bold;
  line-height: 1.2;
  color: #11A84E; /* Main color for titles */
}

.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 60px; /* Adjust padding as image is above text */
  padding-top: 10px; /* Small top padding as body handles --header-offset */
  overflow: hidden;
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit hero image height */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-register__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -60px; /* Pull content up slightly over the image if needed, but avoid overlapping text on image */
  position: relative; /* Ensure text is above any background but not overlapping the hero image itself */
  z-index: 2;
}

.page-register__main-title {
  font-size: clamp(2.5rem, 6vw, 3.5rem); /* H1 font size rule */
  font-weight: bold;
  line-height: 1.1;
  margin-bottom: 20px;
}

.page-register__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.page-register__btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button Color */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}

.page-register__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-register__btn-large {
  font-size: 1.2rem;
  padding: 18px 35px;
}

.page-register__why-register-section,
.page-register__how-to-register-section,
.page-register__benefits-section,
.page-register__faq-section,
.page-register__cta-final-section {
  padding: 80px 0;
}

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

.page-register__feature-card,
.page-register__step-card {
  text-align: center;
}

.page-register__feature-image,
.page-register__step-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 20px;
}

.page-register__feature-title,
.page-register__step-title,
.page-register__benefit-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #57E38D; /* Glow color for sub-titles */
}

.page-register__benefit-item {
  text-align: center;
}

.page-register__benefit-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-register__cta-container {
  text-align: center;
  margin-top: 60px;
}

.page-register__text-center {
  text-align: center;
}

/* 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 #2E7A4E; /* Custom Border */
  border-radius: 8px;
  background-color: #11271B; /* Custom Card BG */
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  color: #F2FFF6; /* Custom Text Main */
  list-style: none; /* Remove default marker for summary */
}

.page-register__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for Webkit browsers */
}

.page-register__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #57E38D; /* Glow color */
}

.page-register__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #A7D9B8; /* Custom Text Secondary */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-register__hero-image-wrapper {
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .page-register__section-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }

  .page-register__main-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

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

  .page-register__hero-section,
  .page-register__why-register-section,
  .page-register__how-to-register-section,
  .page-register__benefits-section,
  .page-register__faq-section,
  .page-register__cta-final-section {
    padding: 40px 0;
  }

  .page-register__container {
    padding: 0 15px; /* Add padding for mobile content */
  }

  .page-register__hero-image-wrapper {
    max-height: 400px;
  }

  .page-register__hero-content {
    padding: 20px 15px;
    margin-top: -40px; /* Adjust if needed */
  }

  .page-register__feature-grid,
  .page-register__steps-grid,
  .page-register__benefits-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-register__feature-image,
  .page-register__step-image {
    height: 200px;
  }

  .page-register__btn-primary,
  .page-register__btn-large {
    width: 100%;
    max-width: 100% !important;
    font-size: 1rem;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  /* Mobile image responsiveness */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers holding images/content */
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__hero-section,
  .page-register__why-register-section,
  .page-register__how-to-register-section,
  .page-register__benefits-section,
  .page-register__faq-section,
  .page-register__cta-final-section,
  .page-register__cta-container,
  .page-register__feature-grid,
  .page-register__steps-grid,
  .page-register__benefits-list,
  .page-register__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
  
  /* Specific override for hero-section padding-top */
  .page-register__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-register__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }

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

/* Ensure no CSS filter on images */
.page-register img {
  filter: none !important;
}

/* Ensure H1 font size rules */
.page-register__hero-section h1 {
  /* clamp already handles desktop/mobile size, no fixed rem/em */
  font-weight: bold;
  line-height: 1.1;
  /* color is inherited from dark-bg, which is #F2FFF6 */
}
.page-register__section-title {
  /* clamp already handles desktop/mobile size, no fixed rem/em */
  font-weight: bold;
  line-height: 1.2;
}