/* General styles for the register page */
.page-register {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light background */
  background: #FFFFFF; /* Page background as per custom color */
  line-height: 1.6;
  padding-bottom: 40px; /* Ensure space above footer */
}

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

.page-register__hero-section {
  display: flex;
  flex-direction: column; /* Default to column for mobile first */
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Minimal top padding */
  padding-bottom: 40px;
  background-color: #f0f8ff; /* Light background for hero */
  position: relative;
  overflow: hidden;
}

.page-register__hero-content {
  max-width: 800px;
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}

.page-register__main-title {
  font-size: 3em;
  font-weight: 700;
  color: #017439; /* Brand color */
  margin-bottom: 15px;
  line-height: 1.2;
}

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

.page-register__hero-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

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

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

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

.page-register__registration-form {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  max-width: 600px;
  margin: 0 auto;
}

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

.page-register__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.page-register__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
}

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

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

.page-register__checkbox-input {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.page-register__checkbox-label {
  font-size: 0.95em;
  color: #555;
  line-height: 1.4;
}

.page-register__text-link {
  color: #017439; /* Brand color for links */
  text-decoration: none;
  font-weight: 600;
}

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

.page-register__text-link--login {
  color: #C30808; /* Custom login link color */
}

.page-register__submit-button,
.page-register__cta-button {
  display: block;
  width: 100%;
  padding: 15px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-register__btn-secondary {
  background: #017439; /* Brand color for secondary button */
  color: #FFFFFF;
  border: 2px solid #017439;
}

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

.page-register__login-prompt {
  text-align: center;
  margin-top: 25px;
  font-size: 1em;
  color: #555;
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 60px 0;
  background-color: #e8f5e9; /* Light green background */
}

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

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

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

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

.page-register__benefit-text {
  font-size: 0.95em;
  color: #666;
  line-height: 1.5;
}

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

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

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: #333;
}
.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: #555;
}

/* CTA Bottom Section */
.page-register__cta-bottom-section {
  padding: 60px 0;
  text-align: center;
  background: #017439; /* Brand color background */
  color: #FFFFFF;
}

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

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

.page-register__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-register__cta-buttons .page-register__cta-button {
  width: auto; /* Override 100% width from general button style */
  min-width: 220px;
  max-width: 300px;
}

/* Reward Modal (from homepage JS, keeping consistent styling) */
.page-register__reward-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.page-register__reward-modal[hidden] {
  opacity: 0;
  pointer-events: none;
  display: none; /* Ensure it's truly hidden */
}
.page-register__reward-modal-content {
  background: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  max-width: 450px;
  position: relative;
  transform: translateY(0);
  transition: transform 0.3s ease;
}
body.page-register--reward-open .page-register__reward-modal-content {
  transform: translateY(0);
}
.page-register__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  color: #aaa;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
}
.page-register__reward-modal-close:hover {
  color: #666;
}
.page-register__reward-modal-title {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: 700;
}
.page-register__reward-modal-text {
  font-size: 1.1em;
  color: #555;
  margin-bottom: 30px;
}
.page-register__reward-modal-button {
  display: inline-block;
  padding: 12px 30px;
  background: #C30808;
  color: #FFFF00;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}
.page-register__reward-modal-button:hover {
  background: #a30606;
}

/* --- Homepage specific CSS rules (MUST BE INCLUDED as per prompt) --- */
@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__promo-strip {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
  }
  .page-register__promo-card {
    display: flex;
    flex-direction: row; /* Left image, right text */
    align-items: center;
  }
  .page-register__hot-games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
  }
  .page-register__hot-games-card-name,
  .page-register__hot-games-card-rtp,
  .page-register__hot-games-card-desc {
    display: block; /* Show on desktop */
    text-align: center;
  }
}

/* --- Mobile specific CSS rules for register page and homepage placeholders --- */
@media (max-width: 768px) {
  .page-register__main-title {
    font-size: 2.2em;
  }

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

  .page-register__hero-section {
    padding: 10px 0 20px;
  }

  .page-register__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin-top: 20px;
  }

  .page-register__form-section,
  .page-register__benefits-section,
  .page-register__faq-section,
  .page-register__cta-bottom-section {
    padding: 30px 0;
  }

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

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

  .page-register__form-input,
  .page-register__submit-button,
  .page-register__cta-button {
    padding: 12px 15px;
    font-size: 1em;
  }

  .page-register__form-checkbox {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-register__checkbox-input {
    margin-bottom: 10px;
  }

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

  .page-register__benefit-icon {
    max-width: 180px;
  }

  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__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-register__cta-buttons .page-register__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Ensure all images and containers are responsive */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__registration-form,
  .page-register__benefit-card,
  .page-register__faq-list,
  .page-register__reward-modal-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Homepage specific 768px rules as requested */
  .page-register__promo-strip-track {
    grid-template-columns: repeat(2, 1fr) !important; /* Adjusted for mobile */
    overflow-x: hidden !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
  }
  .page-register__promo-card {
    flex-direction: column !important; /* Stack image and text */
    text-align: center;
  }
  .page-register__hot-games-grid {
    grid-template-columns: repeat(2,1fr) !important;
    gap: 15px !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
  }
  .page-register__hot-games-card-name,
  .page-register__hot-games-card-rtp,
  .page-register__hot-games-card-desc {
    display: none !important; /* Hide on mobile */
  }
  .page-register__brand-intro { /* Placeholder for brand intro on mobile */
    padding: 30px 15px !important;
    text-align: center;
  }
  .page-register__winner-ticker { /* Placeholder for winner ticker */
    position: fixed !important;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 10px 15px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    box-sizing: border-box;
  }
  body {
    padding-bottom: 50px; /* Example height of ticker, assuming shared.css doesn't override */
  }
}