.page-register {
  background-color: var(--background, #08160F); /* Fallback to custom background color */
  color: var(--text-main, #F2FFF6); /* Fallback to custom main text color */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px; /* Small top padding, more bottom padding */
  text-align: center;
  overflow: hidden;
  background-color: var(--background, #08160F);
}

.page-register__hero-content-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-register__hero-image-container {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 20px;
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-register__hero-text-block {
  max-width: 800px;
  z-index: 1;
}

.page-register__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Using clamp for H1 font size */
  color: var(--gold, #F2C14E); /* Gold color for title */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-shadow: 0 0 10px var(--glow, #57E38D);
}

.page-register__hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 40px;
}

.page-register__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-register__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

/* General Section Styling */
.page-register__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--text-main, #F2FFF6);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.3;
  padding: 0 15px;
}

.page-register__section-intro {
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 0 15px;
}

.page-register__benefits-section,
.page-register__guide-section,
.page-register__faq-section,
.page-register__policy-section,
.page-register__cta-final-section {
  padding: 80px 0;
  background-color: var(--background, #08160F);
  color: var(--text-main, #F2FFF6);
  overflow: hidden; /* Ensure no overflow */
}

/* Benefits Section */
.page-register__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-register__benefit-card {
  background-color: var(--card-bg, #11271B); /* Card Background */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid var(--border, #2E7A4E); /* Border color */
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

.page-register__benefit-title {
  font-size: 1.5rem;
  color: var(--gold, #F2C14E);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__benefit-text {
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
}

/* Guide Section */
.page-register__guide-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-register__step-card {
  background-color: var(--card-bg, #11271B);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border, #2E7A4E);
  text-align: left;
}

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

.page-register__step-title {
  font-size: 1.6rem;
  color: var(--gold, #F2C14E);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__step-text {
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 10px;
}

.page-register__step-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--text-secondary, #A7D9B8);
}

.page-register__step-list li {
  margin-bottom: 8px;
}

.page-register__step-list strong {
  color: var(--text-main, #F2FFF6);
}

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

/* FAQ Section */
.page-register__faq-list {
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 0 15px;
}

.page-register__faq-item {
  background-color: var(--card-bg, #11271B);
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid var(--border, #2E7A4E);
  overflow: hidden;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
  cursor: pointer;
  background-color: var(--deep-green, #0A4B2C); /* Darker background for summary */
  transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
  background-color: var(--main-color, #11A84E);
}

.page-register__faq-item[open] .page-register__faq-question {
  background-color: var(--main-color, #11A84E);
}

.page-register__faq-qtext {
  flex-grow: 1;
}

.page-register__faq-toggle {
  font-size: 1.5rem;
  margin-left: 10px;
  color: var(--gold, #F2C14E);
}

.page-register__faq-answer {
  padding: 15px 20px 20px;
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
  border-top: 1px solid var(--divider, #1E3A2A);
}

.page-register__faq-image-container {
  text-align: center;
  margin-top: 40px;
  padding: 0 15px;
}

.page-register__faq-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Policy Section */
.page-register__policy-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 15px;
}

.page-register__policy-card {
  background-color: var(--card-bg, #11271B);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border, #2E7A4E);
}

.page-register__policy-subtitle {
  font-size: 1.5rem;
  color: var(--gold, #F2C14E);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__policy-text {
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
}

.page-register__policy-link {
  color: var(--main-color, #11A84E);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-register__policy-link:hover {
  color: var(--glow, #57E38D);
}

.page-register__policy-image-container {
  text-align: center;
  padding: 0 15px;
}

.page-register__policy-image {
  width: 100%;
  height: auto;
  max-width: 1200px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Final CTA Section */
.page-register__cta-final-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--deep-green, #0A4B2C); /* Use deep green for final CTA */
}

.page-register__cta-buttons-final {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
  padding: 0 15px;
}

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

.page-register__cta-button--secondary {
  background: var(--card-bg, #11271B);
  color: var(--main-color, #11A84E);
  border: 2px solid var(--main-color, #11A84E);
}

.page-register__cta-button--secondary:hover {
  background: var(--main-color, #11A84E);
  color: #ffffff;
}

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

.page-register__cta-image {
  width: 100%;
  height: auto;
  max-width: 1000px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: clamp(2.2rem, 5vw, 3rem);
  }
  .page-register__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .page-register__hero-section,
  .page-register__benefits-section,
  .page-register__guide-section,
  .page-register__faq-section,
  .page-register__policy-section,
  .page-register__cta-final-section {
    padding: 40px 0;
  }

  .page-register__hero-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-register__hero-description {
    font-size: 1rem;
  }
  .page-register__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .page-register__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
  .page-register__section-intro {
    font-size: 0.95rem;
  }

  .page-register__benefits-grid,
  .page-register__policy-content {
    grid-template-columns: 1fr;
  }

  .page-register__benefit-card,
  .page-register__step-card,
  .page-register__policy-card,
  .page-register__faq-item {
    padding: 20px;
  }

  .page-register__benefit-image {
    max-width: 100%; /* Override max-width for smaller screens if needed */
  }

  .page-register__benefit-title,
  .page-register__step-title,
  .page-register__policy-subtitle {
    font-size: 1.3rem;
  }

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

  .page-register__cta-buttons-final {
    flex-direction: column;
    align-items: center;
  }

  .page-register__cta-button,
  .page-register__cta-button--large,
  .page-register__cta-button--secondary {
    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;
  }

  /* All images and their containers for mobile */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-register__hero-image-container,
  .page-register__benefits-section,
  .page-register__guide-section,
  .page-register__faq-image-container,
  .page-register__policy-image-container,
  .page-register__cta-image-container,
  .page-register__cta-buttons-final,
  .page-register__hero-content-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__hero-section {
      padding-top: 10px !important; /* body already handles --header-offset */
  }
}

/* Ensure contrast for text-main and text-secondary on background */
.page-register p,
.page-register li,
.page-register__benefit-text,
.page-register__step-text,
.page-register__policy-text,
.page-register__hero-description,
.page-register__section-intro {
  color: var(--text-secondary, #A7D9B8);
}

.page-register h1,
.page-register h2,
.page-register h3,
.page-register__faq-question,
.page-register__step-list strong {
  color: var(--text-main, #F2FFF6);
}

/* Specific overrides for gold/green titles */
.page-register__hero-title,
.page-register__benefit-title,
.page-register__step-title,
.page-register__policy-subtitle {
  color: var(--gold, #F2C14E);
}

.page-register__cta-button {
  color: #ffffff; /* Button text is always white */
}

.page-register__cta-button--secondary {
  color: var(--main-color, #11A84E); /* Secondary button text is main color */
}

.page-register__cta-button--secondary:hover {
  color: #ffffff; /* Secondary button text becomes white on hover */
}

/* For details summary marker */
.page-register__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-register__faq-item summary {
  list-style: none;
}