.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--dark-bg-1); /* Assume shared.css sets this, main sections will have specific backgrounds */
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  min-height: 600px;
  overflow: hidden;
  color: #ffffff; /* Light text for dark background */
  background: #017439; /* Primary brand color */
}

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

.page-register__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image slightly for text readability */
}

.page-register__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.page-register__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

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

/* General Section Styling */
.page-register__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-register__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #017439; /* Primary color for titles on light background */
}

.page-register__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #333333;
}

/* Keywords */
.page-register__keyword {
  font-weight: bold;
  color: #017439; /* Highlight keywords with primary color */
}

/* Buttons */
.page-register__btn-primary {
  display: inline-block;
  background: #C30808; /* Custom Register/Login color */
  color: #ffffff; /* Ensure contrast */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-register__btn-primary:hover {
  background-color: #a30606;
}

.page-register__text-link {
  color: #017439;
  text-decoration: underline;
}

.page-register__text-link:hover {
  color: #005f2e;
}

/* Background Colors for sections */
.page-register__dark-bg {
  background: #017439;
  color: #ffffff;
}

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

.page-register__medium-bg {
  background: #f5f5f5;
  color: #333333;
}

.page-register__dark-bg .page-register__section-title,
.page-register__dark-bg .page-register__section-description {
  color: #ffffff;
}

/* Benefits Section */
.page-register__benefits-section .page-register__section-title {
  color: #017439;
}

.page-register__benefits-section .page-register__section-description {
  color: #333333;
}

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

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

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

.page-register__benefit-icon {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
  min-width: 200px;
  min-height: 200px;
}

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

.page-register__benefit-text {
  font-size: 1em;
  color: #555555;
}

/* Process Section */
.page-register__process-section .page-register__section-title {
  color: #ffffff;
}

.page-register__process-section .page-register__section-description {
  color: #ffffff;
}

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

.page-register__step-card {
  background: #f5f5f5; /* Medium background */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  color: #333333;
}

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

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

.page-register__process-image-wrapper {
    margin-top: 40px;
    text-align: center;
}

.page-register__process-image {
    max-width: 800px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    min-height: 200px;
}

/* Bonus Section */
.page-register__bonus-section .page-register__section-title {
  color: #017439;
}

.page-register__bonus-section .page-register__section-description {
  color: #333333;
}

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

.page-register__bonus-item {
  background: #f5f5f5;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  color: #333333;
}

.page-register__bonus-item-title {
  font-size: 1.3em;
  color: #017439;
  margin-bottom: 10px;
}

.page-register__bonus-item-text {
  font-size: 0.95em;
  color: #555555;
}

.page-register__bonus-image-wrapper {
    margin-top: 40px;
    text-align: center;
}

.page-register__bonus-image {
    max-width: 800px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    min-height: 200px;
}

/* Security Section */
.page-register__security-section .page-register__section-title {
  color: #ffffff;
}

.page-register__security-section .page-register__section-description {
  color: #ffffff;
}

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

.page-register__security-card {
  background: #f5f5f5; /* Medium background */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  color: #333333;
}

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

.page-register__security-text {
  font-size: 1em;
  color: #555555;
}

.page-register__security-image-wrapper {
    margin-top: 40px;
    text-align: center;
}

.page-register__security-image {
    max-width: 800px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    min-height: 200px;
}

/* FAQ Section */
.page-register__faq-section .page-register__section-title {
  color: #017439;
}

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

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* For details summary */
}

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

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

.page-register__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #017439;
}

.page-register__faq-item[open] .page-register__faq-toggle {
  content: '−';
}

.page-register__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #555555;
  background-color: #ffffff;
}

/* Final CTA Section */
.page-register__cta-final-section {
  padding: 60px 20px;
  text-align: center;
  color: #ffffff;
  background: #017439;
}

.page-register__cta-final-section .page-register__section-title {
  color: #ffffff;
}

.page-register__cta-final-section .page-register__section-description {
  color: #ffffff;
  margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 2.8em;
  }
  .page-register__section-title {
    font-size: 2em;
  }
  .page-register__benefits-grid,
  .page-register__process-steps,
  .page-register__bonus-steps,
  .page-register__security-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }
  .page-register__hero-title {
    font-size: 2.2em;
  }
  .page-register__hero-description {
    font-size: 1em;
  }
  .page-register__section-title {
    font-size: 1.8em;
  }
  .page-register__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-register__container {
    padding: 30px 15px;
  }

  /* Image responsiveness */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-register__hero-image,
  .page-register__benefit-icon,
  .page-register__process-image,
  .page-register__bonus-image,
  .page-register__security-image {
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important; /* Ensure minimum size */
  }

  /* Card/Container responsiveness */
  .page-register__benefits-section,
  .page-register__process-section,
  .page-register__bonus-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__cta-final-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-register__benefits-grid,
  .page-register__process-steps,
  .page-register__bonus-steps,
  .page-register__security-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-register__benefit-card,
  .page-register__step-card,
  .page-register__bonus-item,
  .page-register__security-card {
    padding: 20px;
  }

  /* 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 {
    display: flex;
    flex-direction: column;
  }

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

/* Ensure content area images are at least 200x200px */
.page-register img:not(.page-register__hero-image) {
  min-width: 200px;
  min-height: 200px;
}

/* Color contrast fixes/defaults */
.page-register__dark-bg {
  color: #ffffff;
}

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

.page-register__medium-bg {
  color: #333333;
}

/* Specific overrides for contrast */
.page-register__dark-bg .page-register__section-title,
.page-register__dark-bg .page-register__section-description,
.page-register__dark-bg .page-register__cta-button {
  color: #ffffff;
}

.page-register__btn-primary {
  background: #C30808; /* Custom Register/Login color */
  color: #ffffff; /* FORCE WHITE TEXT FOR CONTRAST */
}

.page-register__faq-question {
  color: #017439;
}

.page-register__faq-toggle {
  color: #017439;
}