.page-register {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Matches shared.css body background */
}

.page-register__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter dark background for content blocks */
  color: #ffffff;
}

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

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

.page-register__text-center {
  text-align: center;
}

.page-register__section {
  padding: 60px 0;
}

.page-register__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #FFD700; /* Primary brand color for titles */
}

.page-register__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  overflow: hidden;
}

.page-register__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-register__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-register__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-register__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  margin-top: -80px; /* Overlap with image slightly */
}

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

.page-register__intro-text {
  font-size: 20px;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-register__form-wrapper {
  max-width: 500px;
  margin: 0 auto;
}

.page-register__registration-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-register__form-group {
  text-align: left;
}

.page-register__form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: bold;
  color: #f0f0f0;
}

.page-register__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #FFD700;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 16px;
  box-sizing: border-box;
}

.page-register__form-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.page-register__form-input:focus {
  outline: none;
  border-color: #8B0000;
  box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.5);
}

.page-register__form-actions {
  margin-top: 20px;
}

.page-register__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(90deg, #FFD700, #8B0000);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__cta-button:hover {
  background: linear-gradient(90deg, #8B0000, #FFD700);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-register__login-prompt {
  margin-top: 15px;
  font-size: 16px;
  color: #f0f0f0;
}

.page-register__login-link {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-register__login-link:hover {
  text-decoration: underline;
  color: #8B0000;
}

/* Benefits Section */
.page-register__section--benefits .page-register__section-title,
.page-register__section--promotions .page-register__section-title {
  color: #8B0000;
}

.page-register__section--benefits .page-register__section-description,
.page-register__section--promotions .page-register__section-description {
  color: #555555;
}

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

.page-register__benefit-item {
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-register__benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-register__benefit-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  display: block;
}

.page-register__benefit-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-register__benefit-item.page-register__card {
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-register__benefit-item.page-register__card .page-register__benefit-title {
  color: #8B0000;
}

/* Steps Section */
.page-register__section--steps .page-register__section-title,
.page-register__section--faq .page-register__section-title {
  color: #FFD700;
}

.page-register__section--steps .page-register__section-description,
.page-register__section--faq .page-register__section-description {
  color: #f0f0f0;
}

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

.page-register__step-item {
  background-color: #2a2a2a;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-register__step-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  display: block;
}

.page-register__step-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-register__step-text {
  font-size: 16px;
  line-height: 1.6;
}

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

.page-register__promotion-item {
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-register__promotion-item.page-register__card {
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-register__promotion-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  display: block;
}

.page-register__promotion-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #8B0000;
}

.page-register__promotion-title a {
  color: #8B0000;
  text-decoration: none;
}

.page-register__promotion-title a:hover {
  text-decoration: underline;
}

.page-register__promotion-text {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-register__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: #ffffff;
  color: #8B0000;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  border: 2px solid #8B0000;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn-secondary:hover {
  background: #8B0000;
  color: #ffffff;
  border-color: #FFD700;
}

/* FAQ Section */
.page-register__faq-list {
  margin-top: 40px;
}

.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: #2a2a2a; /* Dark background for FAQ items */
  color: #ffffff;
}

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  color: #f0f0f0;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  background: #3a3a3a; /* Slightly lighter dark background for answer */
  border-radius: 0 0 5px 5px;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #1a1a1a; /* Darker background for question */
  border: 1px solid #FFD700;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-register__faq-question:hover {
  background: #2a2a2a;
  border-color: #8B0000;
}

.page-register__faq-question:active {
  background: #3a3a3a;
}

.page-register__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #FFD700;
}

.page-register__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-register__faq-item.active .page-register__faq-toggle {
  color: #8B0000;
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

/* Bottom CTA */
.page-register__section--cta-bottom {
  padding-bottom: 80px;
}

.page-register__cta-button--large {
  font-size: 22px;
  padding: 18px 50px;
  margin-top: 30px;
}

.page-register__download-app-text {
  margin-top: 25px;
  font-size: 18px;
  color: #f0f0f0;
}

.page-register__download-link {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-register__download-link:hover {
  text-decoration: underline;
  color: #8B0000;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-content {
    margin-top: -60px;
    padding: 30px;
  }
  .page-register__main-title {
    font-size: 40px;
  }
  .page-register__intro-text {
    font-size: 18px;
  }
  .page-register__section-title {
    font-size: 30px;
  }
  .page-register__section-description {
    font-size: 16px;
  }
  .page-register__benefit-title, .page-register__step-title, .page-register__promotion-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-register__hero-content {
    margin-top: -40px;
    padding: 25px;
  }
  .page-register__main-title {
    font-size: 32px;
  }
  .page-register__intro-text {
    font-size: 16px;
  }
  .page-register__section {
    padding: 40px 0;
  }
  .page-register__section-title {
    font-size: 26px;
  }
  .page-register__section-description {
    font-size: 15px;
  }
  .page-register__benefits-grid, .page-register__steps-grid, .page-register__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-register__benefit-item, .page-register__step-item, .page-register__promotion-item {
    padding: 20px;
  }
  .page-register__benefit-title, .page-register__step-title, .page-register__promotion-title {
    font-size: 18px;
  }
  .page-register__cta-button, .page-register__btn-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;
  }
  .page-register__form-actions, .page-register__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-register__cta-button--large {
    font-size: 18px;
    padding: 15px 30px;
  }
  .page-register__faq-question {
    padding: 15px;
  }
  .page-register__faq-question h3 {
    font-size: 16px;
  }
  .page-register__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  .page-register__faq-item.active .page-register__faq-answer {
    padding: 15px !important;
  }
  .page-register img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-register__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-register__hero-image img,
  .page-register__benefit-item img,
  .page-register__step-item img,
  .page-register__promotion-item img {
    min-width: 200px; /* Ensure minimum size is met */
    min- /* Adjust as needed, but keep it > 200px for width or height */
  }
}