/* Base styles for register page */
.page-register {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light body background */
  background-color: #F4F7FB; /* Body background color from shared.css */
  line-height: 1.6;
}

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

.page-register__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0 40px;
  background: linear-gradient(180deg, #6FA3FF 0%, #2F6BFF 100%);
  color: #ffffff;
}

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

.page-register__main-title {
  font-size: 3.2em;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-register__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  opacity: 0.9;
}

.page-register__cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.page-register__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-register__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(47, 107, 255, 0.4);
}

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

.page-register__btn-secondary:hover {
  background: #f0f8ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(47, 107, 255, 0.2);
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-width: 900px;
  margin-top: 20px;
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  display: block;
}

.page-register__why-us-section,
.page-register__guide-section,
.page-register__notes-section,
.page-register__faq-section,
.page-register__final-cta-section {
  padding: 60px 0;
  background-color: #F4F7FB;
}

.page-register__why-us-section {
  padding-top: 40px;
}

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

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

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

.page-register__feature-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #D6E2FF;
}

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

.page-register__feature-icon {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-register__feature-description {
  font-size: 1em;
  color: #333333;
}

.page-register__guide-section {
  background-color: #ffffff;
}

.page-register__steps-wrapper {
  display: flex;
  gap: 50px;
  align-items: center;
  flex-wrap: wrap;
}

.page-register__guide-image {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block;
}

.page-register__steps-list {
  flex: 1;
  min-width: 300px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-register__step-item {
  background: #F4F7FB;
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  border-left: 5px solid #2F6BFF;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-register__step-item:last-child {
  margin-bottom: 0;
}

.page-register__step-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #1F2D3D;
  margin-top: 0;
  margin-bottom: 10px;
}

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

.page-register__note-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #D6E2FF;
}

.page-register__note-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #2F6BFF;
  margin-top: 0;
  margin-bottom: 15px;
}

/* FAQ Section */
details.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #D6E2FF;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
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: #1F2D3D;
}
.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: #333333;
}

.page-register__final-cta-section {
  text-align: center;
  padding-bottom: 80px;
}

.page-register__final-cta-image {
  width: 100%;
  max-width: 700px;
  height: auto;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  display: block;
}

.page-register__btn-large {
  padding: 18px 40px;
  font-size: 1.25em;
  margin-top: 20px;
}

/* Image and button responsive base styles */
.page-register img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-register__section,
.page-register__card,
.page-register__container,
.page-register__cta-buttons,
.page-register__button-group,
.page-register__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Media Queries */
@media (max-width: 1023px) {
  /* This section is primarily for homepage game trial, included as per strict instruction */
  .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) {
  /* This section is primarily for homepage game trial, included as per strict instruction */
  .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;
  }
}

@media (max-width: 768px) {
  .page-register__main-title {
    font-size: 2.2em;
  }
  .page-register__hero-description {
    font-size: 1em;
  }
  .page-register__cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-register__btn-primary,
  .page-register__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-register__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-register__section-description {
    font-size: 1em;
    margin: -10px auto 30px;
  }
  .page-register__features-grid {
    grid-template-columns: 1fr;
  }
  .page-register__guide-image {
    max-width: 100%;
    margin-bottom: 30px;
  }
  .page-register__steps-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  .page-register__guide-image,
  .page-register__steps-list {
    min-width: unset;
    max-width: 100%;
  }
  .page-register__notes-list {
    grid-template-columns: 1fr;
  }
  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 and container responsiveness for mobile */
  .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;
  }
  .page-register__cta-buttons,
  .page-register__button-group,
  .page-register__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-register__cta-buttons {
    display: flex;
    flex-direction: column; 
  }
  /* Homepage specific elements (promo strip, hot games, winner ticker) are not expected on a register page but included here for strict compliance with general mobile rules if they were present */
  .page-register__promo-strip-track { /* Placeholder for promo strip if it existed */
    grid-template-columns: 1fr !important;
    overflow-x: hidden !important;
  }
  .page-register__hot-games-grid { /* Placeholder for hot games if it existed */
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .page-register__winner-ticker { /* Placeholder for winner ticker if it existed */
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 999 !important;
  }
  .page-register__hero-section { padding-bottom: 20px; }
}

/* Ensure proper contrast for light background */
.page-register {
  color: #333333; /* Must use dark text for light body background */
}

.page-register__dark-section {
  background: #2F6BFF;
  color: #ffffff; /* Forced white text */
}

.page-register__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff; /* Button text always white */
  border: 2px solid transparent;
}

.page-register__btn-secondary {
  background: #ffffff;
  color: #2F6BFF; /* Use brand color for contrast */
  border: 2px solid #2F6BFF;
}

.page-register__faq-item {
  border: 1px solid #D6E2FF;
}

.page-register__step-item {
  border-left-color: #2F6BFF;
}

.page-register__note-item {
  border: 1px solid #D6E2FF;
}

.page-register__hero-jackpot-claim {
  background: #c62828 !important;
  color: #fff !important;
}

/* Placeholder for homepage-specific elements, included due to strict CSS output requirements in 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;}
.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; }
.page-register__reward-modal-close { cursor: pointer; }