.page-register {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--neon-dark-bg); /* Inherited from shared.css, likely dark */
}

/* Adjust main content color based on body background */
.page-register.page-content {
  color: #ffffff; /* Text color for main content on dark body background */
}

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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}

.page-register__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6); /* Darken image for text readability */
}

.page-register__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
  border-radius: 8px;
  color: #ffffff;
}

.page-register__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
  line-height: 1.2;
}

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

/* General Section Styling */
.page-register__why-register-section, 
.page-register__promotions-section, 
.page-register__cta-section {
  padding: 60px 0;
  color: #333333; /* Text for light background */
}

.page-register__registration-guide-section, 
.page-register__faq-section {
  padding: 60px 0;
  color: #ffffff; /* Text for dark background */
}

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

.page-register__dark-bg {
  background-color: #26A9E0;
}

.page-register__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em); /* Responsive font size */
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
}

.page-register__why-register-section .page-register__section-title,
.page-register__promotions-section .page-register__section-title,
.page-register__cta-section .page-register__section-title {
  color: #26A9E0;
}

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

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

/* Buttons */
.page-register__btn-primary, .page-register__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-register__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
  margin: 0 10px;
}

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

.page-register__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  margin: 0 10px;
}

.page-register__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1a7fb0;
  border-color: #1a7fb0;
}

.page-register__btn-large {
  padding: 16px 32px;
  font-size: 1.1em;
}

.page-register__btn-final-cta {
  background-color: #EA7C07; /* Login color for final CTA */
  border-color: #EA7C07;
}

.page-register__btn-final-cta:hover {
  background-color: #d16b06;
  border-color: #d16b06;
}

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

.page-register__feature-card {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__feature-icon {
  width: 100%; /* Ensure image fills card width */
  max-width: 250px; /* Max width for consistency */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-register__feature-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
}

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

/* Registration Guide */
.page-register__guide-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 40px;
}

.page-register__step-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #ffffff;
}

.page-register__step-number {
  width: 50px;
  height: 50px;
  background-color: #EA7C07;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 20px;
}

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

.page-register__step-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

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

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

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

.page-register__promo-card {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-register__promo-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
}

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

/* FAQ Section */
.page-register__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.2); /* Darker background for question */
  transition: background-color 0.3s ease;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

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

.page-register__faq-question::-webkit-details-marker, /* Hide default marker for Chrome/Safari */
.page-register__faq-item summary::marker { /* Hide default marker for Firefox */
  display: none;
}

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

.page-register__faq-answer {
  padding: 15px 25px 25px;
  font-size: 0.95em;
  color: #f0f0f0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-register__hero-section {
    min-height: 400px;
    padding: 10px 15px 40px;
  }

  .page-register__hero-content {
    padding: 15px;
  }

  .page-register__main-title {
    font-size: 2em;
  }

  .page-register__hero-description {
    font-size: 0.95em;
  }

  .page-register__section-title {
    font-size: 1.8em;
  }

  .page-register__section-description {
    font-size: 0.9em;
    margin-bottom: 30px;
  }

  .page-register__why-register-section, 
  .page-register__registration-guide-section, 
  .page-register__promotions-section, 
  .page-register__faq-section, 
  .page-register__cta-section {
    padding: 40px 0;
  }

  .page-register__container {
    padding: 0 15px;
  }

  .page-register__features-grid,
  .page-register__promo-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-register__guide-steps {
    gap: 30px;
  }

  .page-register__step-title {
    font-size: 1.4em;
  }

  .page-register__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .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;
    padding: 12px 20px !important;
    font-size: 1em !important;
    margin: 0 !important; /* Remove horizontal margins */
  }

  /* Mobile image responsiveness */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-register__video-section {
    padding-top: 10px !important;
  }
}

@media (min-width: 769px) {
  .page-register__guide-steps {
    grid-template-columns: repeat(3, 1fr); /* 3 columns for desktop */
  }
  .page-register__guide-steps .page-register__step-card:nth-child(2) {
    grid-column: span 1; /* Center the image in 3-column layout */
  }
}