.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a1a; /* Matches body background for overall dark theme */
}

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

.page-register__section {
  padding: 80px 0;
  text-align: center;
}

.page-register__dark-bg {
  background-color: #1a1a1a;
  color: #ffffff;
}

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

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

.page-register__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: #ffffff;
  line-height: 1.3;
}

.page-register__subtitle {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #017439;
}

.page-register__description,
.page-register__section-description,
.page-register__card-text,
.page-register__step-text,
.page-register p,
.page-register li {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0; /* Lighter white for readability on dark backgrounds */
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0; /* Assumed shared.css handles body padding-top */
  padding-bottom: 80px;
  overflow: hidden;
  background-color: #1a1a1a; /* Ensure consistency */
}

.page-register__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
  padding: 20px;
}

.page-register__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.page-register__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: brightness(0.6); /* Slightly darken image for text contrast */
}

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

.page-register__cta-buttons--bottom {
    margin-top: 60px;
}

.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, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-register__btn-primary {
  background-color: #C30808; /* Custom color for register */
  color: #FFFF00; /* Custom font color for register */
  border: 2px solid #C30808;
}

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

.page-register__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Custom font color for login */
  border: 2px solid #C30808; /* Custom color for login */
}

.page-register__btn-secondary:hover {
  background-color: #C30808;
  color: #ffffff;
}

/* Why Register Section */
.page-register__why-register {
  background-color: #1a1a1a;
  color: #ffffff;
}

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

.page-register__feature-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-register__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

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

.page-register__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #017439; /* Brand green for titles on light cards */
}

/* Registration Guide Section */
.page-register__registration-guide {
  background-color: #017439; /* Brand green background */
  color: #ffffff;
}

.page-register__registration-guide .page-register__section-title,
.page-register__registration-guide .page-register__section-description {
  color: #ffffff;
}

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

.page-register__step-card {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on green background */
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-register__step-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-register__step-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #FFFF00; /* Highlight step titles */
}

.page-register__step-text {
  color: #f0f0f0;
}

/* Security and Privacy Section */
.page-register__security-privacy {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-register__security-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
  text-align: left;
}

.page-register__security-text {
  flex: 1;
  min-width: 300px;
}

.page-register__security-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

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

/* Promotions Section */
.page-register__promotions {
  background-color: #017439;
  color: #ffffff;
}

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

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

.page-register__promo-card {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on green background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-register__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-register__faq {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-register__faq-list {
  max-width: 800px;
  margin: 50px auto 0 auto;
  text-align: left;
}

.page-register__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  color: #FFFF00; /* Highlight FAQ questions */
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default summary marker */
}

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

.page-register__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-register__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  line-height: 1;
}

.page-register__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: #f0f0f0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Final CTA Section */
.page-register__cta-final {
  background-color: #017439;
  color: #ffffff;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-register__main-title {
    font-size: 2.8em;
  }
  .page-register__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-register__hero-section {
    flex-direction: column;
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 60px;
  }
  .page-register__hero-content {
    padding: 15px;
  }
  .page-register__main-title {
    font-size: 2.2em;
  }
  .page-register__section-title {
    font-size: 1.8em;
  }
  .page-register__description,
  .page-register__section-description,
  .page-register__card-text,
  .page-register__step-text,
  .page-register p,
  .page-register li {
    font-size: 1em;
  }
  .page-register__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-register__btn-primary,
  .page-register__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-register__section {
    padding: 60px 0;
  }
  .page-register__features-grid,
  .page-register__steps-grid,
  .page-register__promo-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-register__security-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-register__security-text,
  .page-register__security-image-wrapper {
    min-width: unset;
    width: 100%;
  }
  .page-register__faq-list {
    margin-top: 30px;
  }
  .page-register__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-register__faq-answer {
    padding: 10px 20px 15px;
  }
  /* Mobile responsive image styles */
  .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,
  .page-register__hero-section,
  .page-register__hero-content,
  .page-register__hero-image-wrapper,
  .page-register__features-grid,
  .page-register__feature-card,
  .page-register__registration-guide,
  .page-register__steps-grid,
  .page-register__step-card,
  .page-register__security-privacy,
  .page-register__security-content,
  .page-register__security-text,
  .page-register__security-image-wrapper,
  .page-register__promotions,
  .page-register__promo-grid,
  .page-register__promo-card,
  .page-register__faq,
  .page-register__faq-list,
  .page-register__faq-item,
  .page-register__cta-final {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }
}

@media (max-width: 480px) {
  .page-register__main-title {
    font-size: 1.8em;
  }
  .page-register__section-title {
    font-size: 1.5em;
  }
  .page-register__btn-primary,
  .page-register__btn-secondary {
    padding: 10px 15px;
    font-size: 0.95em;
  }
  .page-register__card-title {
    font-size: 1.3em;
  }
  .page-register__step-title {
    font-size: 1.4em;
  }
  .page-register__faq-question {
    font-size: 1em;
    padding: 12px 15px;
  }
  .page-register__faq-toggle {
    font-size: 1.2em;
  }
  .page-register__faq-answer {
    padding: 8px 15px 12px;
  }
}