.page-register {
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherited from shared.css, set explicitly for clarity */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

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

.page-register__section-description {
  font-size: 18px;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__btn-primary {
  display: inline-block;
  background-color: #FFD700;
  color: #121212;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}

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

.page-register__form-link {
  color: #FFD700;
  text-decoration: none;
}

.page-register__form-link:hover {
  text-decoration: underline;
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  padding: 120px 0 80px 0; /* Adjust padding-top based on header offset */
  background: url('[GALLERY:hero:register,j88vip2,welcome_bonus,dynamic]') no-repeat center center/cover;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  margin-top: 0; /* shared handles body padding */
}

.page-register__hero-content {
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
}

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

.page-register__hero-description {
  font-size: 22px;
  color: #f0f0f0;
  margin-bottom: 40px;
}

/* Form Section */
.page-register__form-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

.page-register__registration-form {
  background-color: #222222;
  padding: 40px;
  border-radius: 12px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.page-register__form-group {
  margin-bottom: 25px;
}

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

.page-register__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #444444;
  border-radius: 6px;
  background-color: #333333;
  color: #ffffff;
  font-size: 16px;
  box-sizing: border-box;
}

.page-register__form-input::placeholder {
  color: #aaaaaa;
}

.page-register__form-input:focus {
  border-color: #FFD700;
  outline: none;
}

.page-register__form-checkbox {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.page-register__checkbox-input {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  accent-color: #FFD700; /* Highlight checkbox with brand color */
}

.page-register__checkbox-label {
  font-size: 15px;
  color: #f0f0f0;
}

.page-register__form-submit-btn {
  width: 100%;
  padding: 15px;
  font-size: 20px;
  border-radius: 8px;
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 80px 0;
  background-color: #121212;
}

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

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

.page-register__benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-register__benefit-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5)); /* Subtle glow for icons */
}

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

.page-register__benefit-text {
  font-size: 16px;
  color: #cccccc;
  line-height: 1.6;
}

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

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

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #333333;
  border-bottom: 1px solid #444444;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  position: relative;
}

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

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

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

.page-register__faq-item.active .page-register__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg);
}

.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 25px;
  opacity: 0;
  background-color: #2a2a2a;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

.page-register__faq-answer p {
  margin: 0;
  color: #cccccc;
  font-size: 16px;
  line-height: 1.7;
}

/* CTA Section */
.page-register__cta-section {
  padding: 80px 0;
  background-color: #8B0000;
  text-align: center;
}

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

.page-register__cta-section .page-register__section-description {
  color: #f0f0f0;
  margin-bottom: 50px;
}

.page-register__cta-button {
  padding: 18px 40px;
  font-size: 22px;
}

/* General Image styles for responsiveness */
.page-register img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

  .page-register__hero-description {
    font-size: 20px;
  }

  .page-register__section-title {
    font-size: 32px;
  }

  .page-register__section-description {
    font-size: 16px;
  }

  .page-register__form-section {
    padding: 60px 0;
  }

  .page-register__registration-form {
    padding: 30px;
  }

  .page-register__benefits-section {
    padding: 60px 0;
  }

  .page-register__benefit-title {
    font-size: 22px;
  }

  .page-register__faq-section {
    padding: 60px 0;
  }

  .page-register__faq-question h3 {
    font-size: 17px;
  }

  .page-register__faq-toggle {
    font-size: 26px;
    width: 30px;
    height: 30px;
  }

  .page-register__faq-answer p {
    font-size: 15px;
  }

  .page-register__cta-section {
    padding: 60px 0;
  }

  .page-register__cta-button {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }

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

  /* HERO Section */
  .page-register__hero-section {
    padding: var(--header-offset, 80px) 0 60px 0; /* Fallback for header offset */
    min-height: 400px;
  }

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

  .page-register__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-register__hero-description {
    font-size: 18px;
    margin-bottom: 30px;
  }

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

  .page-register__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

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

  /* Form Section */
  .page-register__form-section {
    padding: 40px 0;
  }

  .page-register__registration-form {
    padding: 25px;
  }

  .page-register__form-group {
    margin-bottom: 20px;
  }

  .page-register__form-label {
    font-size: 15px;
  }

  .page-register__form-input {
    padding: 10px 12px;
    font-size: 15px;
  }

  .page-register__checkbox-label {
    font-size: 14px;
  }

  .page-register__form-submit-btn {
    padding: 12px;
    font-size: 18px;
  }

  /* Benefits Section */
  .page-register__benefits-section {
    padding: 40px 0;
  }

  .page-register__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-register__benefit-card {
    padding: 25px;
  }

  .page-register__benefit-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
  }

  .page-register__benefit-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .page-register__benefit-text {
    font-size: 15px;
  }

  /* FAQ Section */
  .page-register__faq-section {
    padding: 40px 0;
  }

  .page-register__faq-item {
    margin-bottom: 10px;
  }

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

  .page-register__faq-question h3 {
    font-size: 16px;
  }

  .page-register__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
    margin-left: 15px;
  }

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

  .page-register__faq-item.active .page-register__faq-answer {
    padding: 15px 20px !important;
  }

  .page-register__faq-answer p {
    font-size: 14px;
  }

  /* CTA Section */
  .page-register__cta-section {
    padding: 40px 0;
  }

  .page-register__cta-button {
    padding: 15px 30px;
    font-size: 18px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Universal mobile image adaptation */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Container adaptation */
  .page-register__section, /* General section class if used */
  .page-register__card, /* General card class if used */
  .page-register__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}