/* --- Homepage Game Trial Boilerplate CSS (Mandatory Inclusion per instruction, despite being a register page) --- */
@media (max-width: 1023px) {
  .page-register__home-hero {
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-register__hero-brand,
  .page-register__hero-jackpot {
    display: none !important;
  }
  .page-register__game-trial {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    margin: 0 auto;
    padding: 0 0 12px !important;
    box-sizing: border-box;
  }
  .page-register__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-register__game-trial-topbar,
  .page-register__game-trial-bottombar {
    display: none !important;
  }
  .page-register__game-trial-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 768;
    flex: none !important;
    min-height: 240px;
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-register__game-trial-frame {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100%;
    border: none;
    z-index: 1;
    overflow: hidden;
  }
  .page-register__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-register__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  .page-register__home-hero {
    display: grid;
    grid-template-columns: 26% 48% 26%;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px 24px;
    box-sizing: border-box;
  }
  .page-register__hero-brand,
  .page-register__hero-jackpot,
  .page-register__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-register__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-register__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-register__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-register__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-register__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
}

.page-register__game-trial-overlay {
  z-index: 5;
  pointer-events: auto;
}
.page-register__game-trial-overlay.is-hidden {
  display: none !important;
  pointer-events: none !important;
}
.page-register__game-trial-start {
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
}
.page-register__game-trial-shell {
  border: 1px solid rgba(212, 175, 55, .45);
  border-radius: 10px;
  overflow: hidden;
}
.page-register__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
}
.page-register__reward-modal-close {
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  color: #fff;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- END Homepage Game Trial Boilerplate CSS --- */

/* Register Page Specific CSS */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background: var(--secondary-color, #FFFFFF); /* Body background from shared */
  padding-top: 10px; /* Small top padding, body handles header offset */
}

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

.page-register__section-title {
  font-size: 32px;
  font-weight: bold;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

.page-register__hero-section {
  background: linear-gradient(135deg, #017439, #028e46);
  padding: 60px 0;
  color: #FFFFFF;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-register__hero-section .page-register__container {
  display: flex;
  align-items: center;
  gap: 30px;
}

.page-register__hero-content {
  flex: 1;
  text-align: left;
}

.page-register__main-title {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFFF00; /* Register font color */
}

.page-register__lead-text {
  font-size: 18px;
  margin-bottom: 30px;
  color: #FFFFFF;
}

.page-register__hero-image {
  flex: 0 0 50%;
  max-width: 50%;
}

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

.page-register__btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn--primary {
  background-color: #C30808; /* Register color */
  color: #FFFF00; /* Register font color */
  border: none;
  margin-right: 15px;
}

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

.page-register__btn--secondary {
  background-color: #FFFFFF;
  color: #017439;
  border: 2px solid #017439;
}

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

.page-register__why-section {
  padding: 80px 0;
  background: #017439; /* Dark background */
  color: #FFFFFF;
}

.page-register__why-section .page-register__section-title {
  color: #FFFFFF;
}

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

.page-register__feature-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-register__feature-item img {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
}

.page-register__feature-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFFF00; /* Adjusted for dark background */
}

.page-register__feature-item p {
  font-size: 15px;
  color: #f0f0f0;
}

.page-register__guide-section {
  padding: 80px 0;
  background: #FFFFFF;
}

.page-register__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-register__step-item {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-register__step-number {
  width: 60px;
  height: 60px;
  background-color: #017439;
  color: #FFFFFF;
  font-size: 30px;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.page-register__step-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #017439;
}

.page-register__step-item p {
  font-size: 15px;
  color: #555555;
}

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

.page-register__tips-section {
  padding: 80px 0;
  background: #f5f5f5;
}

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

.page-register__tip-item {
  background: #FFFFFF;
  border-left: 5px solid #017439;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.page-register__tip-title {
  font-size: 20px;
  font-weight: 600;
  color: #017439;
  margin-bottom: 10px;
}

.page-register__tip-item p {
  font-size: 15px;
  color: #555555;
}

/* FAQ Styles */
details.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-register__faq-item summary.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-register__faq-item summary.page-register__faq-question::-webkit-details-marker {
  display: none;
}
details.page-register__faq-item summary.page-register__faq-question:hover {
  background: #f5f5f5;
}
.page-register__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-register__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-register__faq-item .page-register__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

.page-register__faq-section {
  padding: 80px 0;
  background: #FFFFFF;
}

.page-register__cta-final-section {
  padding: 60px 0;
  background: #017439;
  color: #FFFFFF;
  text-align: center;
}

.page-register__cta-final-section .page-register__section-title {
  color: #FFFFFF;
  margin-bottom: 20px;
}

.page-register__cta-final-section p {
  font-size: 18px;
  margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-section .page-register__container {
    flex-direction: column;
    text-align: center;
  }

  .page-register__hero-content {
    text-align: center;
  }

  .page-register__hero-image {
    max-width: 80%;
    margin-top: 30px;
  }
}

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

  .page-register__container {
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-register__main-title {
    font-size: clamp(24px, 6vw, 36px);
  }

  .page-register__lead-text {
    font-size: 16px;
  }

  .page-register__hero-image {
    max-width: 100%;
  }

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

  .page-register__feature-title,
  .page-register__step-title,
  .page-register__tip-title {
    font-size: 18px;
  }

  .page-register__btn {
    padding: 12px 20px;
    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__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  details.page-register__faq-item summary.page-register__faq-question {
    padding: 15px;
  }
  .page-register__faq-qtext {
    font-size: 15px;
  }
  details.page-register__faq-item .page-register__faq-answer {
    padding: 0 15px 15px;
  }
  
  /* General image responsive rule for mobile */
  .page-register img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers for images/content */
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__hero-section,
  .page-register__why-section,
  .page-register__guide-section,
  .page-register__tips-section,
  .page-register__faq-section,
  .page-register__cta-final-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}