.page-register {
  color: #ffffff; /* Default text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-register__hero-section {
  position: relative;
  width: 100%;
  height: 100vh; /* Full viewport height for hero */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #FFFFFF;
  padding-top: var(--header-offset, 120px); /* Ensures content is below header */
}

.page-register__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-register__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

.page-register__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

.page-register__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFF00; /* Custom color for register/login font */
}

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

.page-register__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #017439; /* Brand primary color */
}

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

.page-register__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Custom color for register button */
  color: #FFFF00; /* Custom color for register/login font */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.page-register__btn-primary:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-register__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #017439; /* Brand primary color */
  border: 2px solid #017439;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

.page-register__btn-secondary:hover {
  background-color: #017439;
  color: #FFFFFF;
  transform: translateY(-2px);
}

.page-register__btn-large {
  padding: 18px 40px;
  font-size: 1.3em;
}

/* Why Register Section */
.page-register__why-register-section {
  padding: 80px 0;
  background-color: #1a1a2e; /* Inherits from body, ensuring dark background */
  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-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-register__feature-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-register__feature-icon {
  width: 100%;
  max-width: 250px; /* Ensure images are not too small */
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
}

.page-register__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FFFF00; /* Custom color for register/login font */
}

.page-register__feature-text {
  font-size: 1em;
  color: #e0e0e0;
}

/* Steps Section */
.page-register__steps-section {
  padding: 80px 0;
  background-color: #FFFFFF; /* Light background for contrast */
  color: #333333;
}

.page-register__steps-section .page-register__section-title {
  color: #017439; /* Brand primary color */
}

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

.page-register__step-item {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.page-register__step-item:last-of-type {
  margin-bottom: 0;
}

.page-register__step-item--reverse {
  flex-direction: row-reverse;
}

.page-register__step-content {
  flex: 1;
}

.page-register__step-title {
  font-size: 2em;
  margin-bottom: 20px;
  color: #017439; /* Brand primary color */
}

.page-register__step-text {
  font-size: 1.1em;
  line-height: 1.7;
  color: #555555;
}

.page-register__step-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

/* Issues Section */
.page-register__issues-section {
  padding: 80px 0;
  background-color: #1a1a2e;
  color: #ffffff;
}

.page-register__issues-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-register__issue-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
}

.page-register__issue-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #FFFF00; /* Custom color for register/login font */
}

.page-register__issue-text {
  font-size: 1em;
  color: #e0e0e0;
}

/* Important Notes Section */
.page-register__important-notes-section {
  padding: 80px 0;
  background-color: #FFFFFF;
  color: #333333;
}

.page-register__important-notes-section .page-register__section-title {
  color: #017439;
}

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

.page-register__notes-list {
  list-style: disc;
  padding-left: 25px;
  max-width: 900px;
  margin: 50px auto 0 auto;
  font-size: 1.1em;
  line-height: 1.8;
}

.page-register__note-item {
  margin-bottom: 15px;
  color: #555555;
}

.page-register__note-item a {
  color: #017439;
  text-decoration: underline;
}

.page-register__note-item a:hover {
  color: #004d2a;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 0;
  background-color: #1a1a2e;
  color: #ffffff;
}

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

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFFF00; /* Custom color for register/login font */
  transition: background-color 0.3s ease;
}

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

.page-register__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
}

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #e0e0e0;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 3em;
  }

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

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

  .page-register__step-item {
    flex-direction: column;
    text-align: center;
  }

  .page-register__step-item--reverse {
    flex-direction: column;
  }

  .page-register__step-image {
    max-width: 80%;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    height: auto;
    min-height: 70vh;
    padding: 60px 0;
  }

  .page-register__hero-title {
    font-size: 2.2em;
  }

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

  .page-register__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-register__section-description {
    font-size: 0.95em;
    margin-bottom: 40px;
  }

  .page-register__btn-primary, .page-register__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
  }

  .page-register__btn-large {
    padding: 15px 30px !important;
    font-size: 1.1em !important;
  }

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

  .page-register__feature-item {
    padding: 20px;
  }

  .page-register__feature-title {
    font-size: 1.3em;
  }

  .page-register__step-item {
    gap: 20px;
    margin-bottom: 40px;
  }

  .page-register__step-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

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

  .page-register__issues-list, .page-register__notes-list {
    margin-top: 30px;
  }

  .page-register__issue-item {
    padding: 20px;
  }

  .page-register__issue-title {
    font-size: 1.2em;
  }

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

  .page-register__faq-answer {
    padding: 15px 20px;
  }

  /* Mobile image and container 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,
  .page-register__hero-section,
  .page-register__why-register-section,
  .page-register__steps-section,
  .page-register__issues-section,
  .page-register__important-notes-section,
  .page-register__faq-section,
  .page-register__features-grid,
  .page-register__issues-list,
  .page-register__notes-list,
  .page-register__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-register__hero-section {
    padding-top: var(--header-offset, 120px) !important; 
  }
}

@media (max-width: 480px) {
  .page-register__hero-title {
    font-size: 1.8em;
  }

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

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

  .page-register__faq-question {
    font-size: 1em;
  }
}