/* style/register.css */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #FFFFFF; /* Default body background */
}

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

.page-register__hero-section {
  background-color: #f5f5f5;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-width: 800px;
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

.page-register__hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-register__main-title {
  font-size: clamp(2em, 5vw, 2.8em); /* Use clamp for H1 */
  font-weight: 700;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-register__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

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

.page-register__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color */
  border: 2px solid #C30808;
}

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

.page-register__btn-secondary {
  background-color: #FFFFFF;
  color: #C30808; /* Custom color for register/login */
  border: 2px solid #C30808;
}

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

.page-register__btn-link {
  background: none;
  color: #017439;
  border: 2px solid transparent;
  padding: 8px 15px;
  font-size: 0.9em;
}

.page-register__btn-link:hover {
  text-decoration: underline;
  color: #005a2d;
}

.page-register__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #017439;
  margin-bottom: 25px;
  text-align: center;
}

.page-register__section-intro {
  font-size: 1.05em;
  color: #555555;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
}

.page-register__dark-section {
  background-color: #017439;
  color: #ffffff;
  padding: 60px 0;
}

.page-register__dark-section .page-register__section-title,
.page-register__dark-section .page-register__section-intro {
  color: #ffffff;
}

.page-register__light-bg {
  background-color: #f9f9f9;
  padding: 60px 0;
}

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

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

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

.page-register__dark-section .page-register__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-register__feature-card:hover {
  transform: translateY(-5px);
}

.page-register__feature-image {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-register__feature-title {
  font-size: 1.5em;
  font-weight: 600;
  color: #017439;
  margin-bottom: 15px;
}

.page-register__dark-section .page-register__feature-title {
  color: #FFFF00;
}

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

.page-register__dark-section .page-register__feature-description {
  color: #f0f0f0;
}

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

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

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

.page-register__step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #017439;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4em;
  font-weight: bold;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-register__step-image {
  width: 100%;
  height: auto;
  max-width: 280px;
  margin-top: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-register__step-description {
  font-size: 0.9em;
  color: #555555;
  margin-bottom: 20px;
}

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

.page-register__benefits-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0;
  max-width: 800px;
}

.page-register__benefits-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  font-size: 1.05em;
  color: #333333;
  line-height: 1.5;
}

.page-register__benefit-icon {
  font-size: 1.8em;
  color: #017439;
  margin-right: 15px;
  flex-shrink: 0;
  width: 35px;
  text-align: center;
}

.page-register__cta-full-width {
  text-align: center;
  margin-top: 40px;
}

.page-register__faq-section {
  padding: 60px 0;
  background-color: #f0f0f0;
}

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

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;
  color: #333333;
}
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;
}
.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__cta-bottom {
  padding: 60px 0;
  text-align: center;
}

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

.page-register__cta-bottom .page-register__cta-description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__copyright-section {
  padding: 20px 0;
  text-align: center;
  background-color: #eeeeee;
  font-size: 0.9em;
  color: #666666;
}

.page-register__copyright-text {
  margin: 0;
}

/* --- General Image & Button Responsive Rules --- */
.page-register img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-register__section,
.page-register__card,
.page-register__container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- Homepage Trial CSS (Required to be included as-is) --- */
@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;
  }
}

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

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

  .page-register__hero-section {
    padding-top: 5px;
    padding-bottom: 20px;
  }

  .page-register__main-title {
    font-size: clamp(1.8em, 8vw, 2.2em);
    margin-bottom: 15px;
  }

  .page-register__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register__btn-link {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

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

  .page-register__section-intro {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-register__why-join-section,
  .page-register__how-to-section,
  .page-register__benefits-section,
  .page-register__faq-section,
  .page-register__cta-bottom {
    padding: 40px 0;
  }

  .page-register__features-grid,
  .page-register__steps-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-register__feature-card,
  .page-register__step-card {
    padding: 25px;
  }

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

  .page-register__benefits-list {
    margin-top: 30px;
  }

  .page-register__benefits-list li {
    font-size: 1em;
  }

  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; }

  .page-register__promo-strip-track {
    grid-template-columns: repeat(2, 1fr) !important; /* Example for promo strip if it existed */
    overflow-x: hidden !important;
  }
  .page-register__hot-games-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }
  .page-register__hot-games-grid img {
    width: 100% !important;
    height: auto !important;
  }
  .page-register__hot-games-name,
  .page-register__hot-games-rtp,
  .page-register__hot-games-desc {
    display: none !important; /* Hide details for hot games if they existed */
  }

  /* General mobile image adaptation */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !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;
  }

  /* Ticker (if present) */
  .page-register__winner-ticker {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    padding: 8px 0 !important;
  }
  .page-register.page-content {
    padding-bottom: 50px; /* Adjust body padding for fixed ticker */
  }
}

/* Placeholder for game trial overlay and reward modal styles, required by prompt */
.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;
  visibility: hidden;
}
.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;
  background-color: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.page-register__reward-modal:not([hidden]) {
    opacity: 1;
    visibility: visible;
}
.page-register__reward-modal-content {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  position: relative;
}
.page-register__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}
.page-register__reward-modal-title {
  color: #017439;
  font-size: 1.8em;
  margin-bottom: 15px;
}
.page-register__reward-modal-text {
  color: #555;
  margin-bottom: 25px;
}