.page-register {
  background-color: #FFFFFF; /* Background color for the page */
  color: #333333; /* Default text color for better contrast on white background */
  font-family: Arial, sans-serif; /* Roboto气质 - using Arial as a common sans-serif */
  padding-bottom: 20px; /* Some padding at the bottom */
}

/* Ensure body padding-top is handled by shared.css */
/* .page-register should not have padding-top: var(--header-offset); */

.page-register__hero-section {
  display: flex;
  flex-direction: column; /* Default to column for mobile first */
  align-items: center;
  text-align: center;
  padding: 10px 20px 40px; /* Small top padding, more bottom padding */
  background-color: #017439; /* Use main brand color for hero background */
  color: #FFFFFF;
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Max width for the image */
  margin-bottom: 20px;
  order: 1; /* Image first */
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
}

.page-register__hero-content {
  max-width: 800px;
  order: 2; /* Content after image */
}

.page-register__main-title {
  font-size: clamp(2rem, 5vw, 3rem); /* H1 font size with clamp, no fixed large value */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #FFFFFF; /* White for contrast on green background */
}

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

.page-register__cta-button {
  display: inline-block;
  background-color: #C30808; /* Register button color */
  color: #FFFF00; /* Register font color */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
  min-height: 44px; /* Touch target size */
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.page-register__cta-button:hover {
  background-color: #a00606; /* Slightly darker red on hover */
}

.page-register__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin: 50px 20px 40px;
  color: #017439; /* Main brand color for section titles */
}

/* Steps Section */
.page-register__steps-section {
  padding: 20px;
  background-color: #f9f9f9; /* Light background for this section */
}

.page-register__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-register__step-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__step-image {
  width: 100%;
  max-width: 400px; /* Ensure image is not too wide */
  height: auto;
  min-height: 200px; /* Min size for content images */
  display: block;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  object-position: center;
}

.page-register__step-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #017439;
}

.page-register__step-description {
  font-size: 1rem;
  line-height: 1.5;
  color: #555555;
}

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

.page-register__cta-button--large {
  padding: 18px 40px;
  font-size: 1.25rem;
  max-width: 400px; /* Limit width for larger button */
  width: 100%; /* Ensure it's full width on smaller screens */
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 50px 20px;
  background-color: #FFFFFF; /* White background */
}

.page-register__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-register__benefit-item {
  background-color: #f0f0f0; /* Light grey card background */
  border-left: 5px solid #017439; /* Green accent border */
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-register__benefit-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #017439;
}

.page-register__benefit-description {
  font-size: 1rem;
  line-height: 1.5;
  color: #555555;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 50px 20px;
  background-color: #f9f9f9; /* Light background */
}

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

.page-register__faq-item {
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  padding: 20px 25px;
}

.page-register__faq-question {
  font-size: 1.15rem;
  font-weight: 600;
  color: #017439;
  cursor: pointer; /* Indicate it's clickable for JS toggle */
  position: relative;
  padding-right: 30px;
}

.page-register__faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.page-register__faq-question.is-active::after {
  content: '-';
  transform: translateY(-50%) rotate(0deg); /* No rotation needed for '-' */
}


.page-register__faq-answer {
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
  margin-top: 15px;
  display: none; /* Hidden by default */
}

.page-register__faq-answer.is-open {
  display: block;
}


/* Media Queries for Responsiveness */
@media (min-width: 769px) {
  .page-register__hero-section {
    flex-direction: row; /* Desktop: image and content side-by-side */
    text-align: left;
    padding: 40px 20px;
    gap: 40px;
    max-width: 1200px; /* Constrain hero width on large screens */
    margin: 0 auto;
  }

  .page-register__hero-image-wrapper {
    width: 50%;
    margin-bottom: 0;
    order: 1; /* Image on left */
  }

  .page-register__hero-content {
    width: 50%;
    order: 2; /* Content on right */
  }

  .page-register__main-title {
    font-size: 3rem; /* Larger H1 on desktop */
  }

  .page-register__cta-button--large {
    max-width: none; /* Remove max-width on desktop */
    width: auto;
  }
}

@media (max-width: 768px) {
  /* Ensure all images within .page-register are responsive */
  .page-register img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  .page-register__hero-section {
    padding: 10px 15px 30px;
  }
  .page-register__section-title {
    margin: 40px 15px 30px;
  }
  .page-register__steps-section,
  .page-register__benefits-section,
  .page-register__faq-section {
    padding: 30px 15px;
  }
  .page-register__cta-button {
    font-size: 1rem;
    padding: 12px 25px;
  }
  .page-register__cta-button--large {
    font-size: 1.1rem;
    padding: 15px 30px;
  }
}

@media (max-width: 549px) {
  .page-register__main-title {
    font-size: 2rem;
  }
  .page-register__hero-description {
    font-size: 1rem;
  }
  .page-register__step-title {
    font-size: 1.2rem;
  }
  .page-register__benefit-title {
    font-size: 1.15rem;
  }
  .page-register__faq-question {
    font-size: 1.05rem;
  }
}

/* Ensure content area images are not too small */
/* This rule applies to any img within .page-register, overriding smaller sizes if present */
.page-register img:not(.shared-header__logo):not(.shared-footer__payment-icon):not(.shared-footer__social-icon) {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover; /* Ensure images fill their space without distortion */
}

/* Overriding min-width/height for responsive behavior within max-width: 100%; height: auto; */
/* This is a crucial rule to prevent images from causing horizontal scroll on mobile */
@media (max-width: 768px) {
  .page-register img {
    max-width: 100%;
    height: auto;
    min-width: unset; /* Allow images to shrink below 200px if necessary to fit screen */
    min-height: unset; /* Allow images to shrink below 200px if necessary to fit screen */
    width: 100%; /* Ensure they take full width of their container */
  }
  .page-register__hero-image {
    min-width: unset;
    min-height: unset;
  }
  .page-register__step-image {
    min-width: unset;
    min-height: unset;
  }
  /* Ensure the main content area does not overflow horizontally */
  .page-register {
    overflow-x: hidden;
  }
}