/* Base styles for the register page */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: var(--secondary-color, #FFFFFF); /* Inherit from shared or default to white */
}

.page-register__section {
  padding: 40px 0;
  margin-bottom: 20px;
}

.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: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 30px;
}

/* Hero Section */
.page-register__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 40px;
  background: linear-gradient(135deg, #26A9E0, #36C0F0);
  color: #FFFFFF;
}

.page-register__hero-content {
  max-width: 800px;
  margin-bottom: 30px;
}

.page-register__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive H1 font size */
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #FFFFFF;
}

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

.page-register__hero-image-wrapper {
  width: 100%;
  max-width: 1000px;
  margin-top: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  overflow: hidden;
}

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

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn-primary {
  background: #EA7C07; /* Login color for primary action */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

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

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

.page-register__btn-secondary:hover {
  background: #F0F8FF;
  color: #1A7FB5;
  border-color: #1A7FB5;
}

/* Introduction Section */
.page-register__introduction p {
  font-size: 17px;
  margin-bottom: 15px;
  text-align: justify;
}

/* Why Register Section */
.page-register__dark-section {
  background: #26A9E0;
  color: #FFFFFF;
}

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

.page-register__grid-3-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-register__card {
  background: #FFFFFF;
  color: #333333;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.page-register__card-title {
  font-size: 20px;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-register__dark-section .page-register__card {
  background: rgba(255, 255, 255, 0.95);
  color: #333333;
}

.page-register__section-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto 0;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* How to Register Section */
.page-register__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-register__step-item {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  text-align: left;
}

.page-register__step-title {
  font-size: 22px;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 10px;
}

/* Tips Section */
.page-register__tip-list {
  list-style: disc inside;
  padding-left: 20px;
  font-size: 17px;
  color: #FFFFFF;
}

.page-register__tip-list li {
  margin-bottom: 10px;
}

.page-register__tip-list strong {
  color: #FFD700; /* Highlight important text */
}

/* Promotions Section */
.page-register__promotions p {
  font-size: 17px;
  margin-bottom: 20px;
  text-align: justify;
}

.page-register__promotions .page-register__btn-secondary {
  margin-top: 15px;
}

/* FAQ Section */
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;
}

/* Final CTA Section */
.page-register__cta-final {
  padding: 60px 0;
  text-align: center;
}

.page-register__cta-final .page-register__section-title {
  margin-bottom: 20px;
}

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

/* --- FORCED HOMEPAGE TRIAL CSS SNIPPETS (Even though this is 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;
  }
}

/* General Mobile Adaptations */
@media (max-width: 768px) {
  .page-register__section {
    padding: 25px 0;
  }
  .page-register__section-title {
    font-size: 26px;
    margin-bottom: 20px;
  }
  .page-register__hero-section {
    padding-top: 5px;
    padding-bottom: 25px;
  }
  .page-register__main-title {
    font-size: 28px;
  }
  .page-register__hero-description {
    font-size: 16px;
  }
  .page-register__btn-primary,
  .page-register__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
    font-size: 16px;
  }
  .page-register__introduction p,
  .page-register__promotions p {
    font-size: 16px;
  }
  .page-register__grid-3-col {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .page-register__card {
    padding: 20px;
  }
  .page-register__card-title {
    font-size: 18px;
  }
  .page-register__steps-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .page-register__step-title {
    font-size: 20px;
  }
  .page-register__tip-list {
    font-size: 16px;
    padding-left: 15px;
  }
  details.page-register__faq-item summary.page-register__faq-question { padding: 15px; }
  .page-register__faq-qtext { font-size: 15px; }
  .page-register__faq-answer { padding: 0 15px 15px; }

  /* Image and container responsiveness */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-register__container,
  .page-register__hero-image-wrapper,
  .page-register__card,
  .page-register__step-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden;
  }
  /* Forced homepage trial specific rules for 768px - though not directly used on this page */
  .page-register__promo-strip-track { grid-template-columns: repeat(4,1fr); overflow-x:hidden; }
  .page-register__hot-games-grid { grid-template-columns: repeat(2,1fr); }
}

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

/* Forced homepage specific classes for JS */
.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.is-hidden { display: none !important; pointer-events: none !important; }