/* Base styles for the register page */
.page-register {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Text Main */
  background-color: #F5F7FA; /* Background */
  line-height: 1.6;
}

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

.page-register__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #E53935; /* Primary color */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-register__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 40px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #F5F7FA;
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px;
}

.page-register__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 30px 15px;
  background-color: rgba(255, 255, 255, 0.9);
  margin-top: -80px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__main-title {
  font-weight: 700;
  color: #E53935;
  margin-bottom: 15px;
  line-height: 1.2;
  /* No fixed font-size for H1, use clamp if absolutely needed */
}

.page-register__hero-description {
  font-size: 18px;
  color: #333333;
  margin-bottom: 30px;
}

.page-register__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
}

.page-register__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-register__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
  margin-left: 15px;
}

.page-register__btn-secondary:hover {
  background: #E53935;
  color: #ffffff;
}

.page-register__form-section {
  padding: 60px 0;
  background-color: #F5F7FA;
}

.page-register__form-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  background-color: #FFFFFF; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  padding: 40px;
  border: 1px solid #E0E0E0; /* Border */
}

.page-register__form-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.page-register__registration-form {
  flex: 1;
  max-width: 50%;
}

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

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

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

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

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

.page-register__terms-checkbox input {
  margin-right: 10px;
  width: 18px;
  height: 18px;
}

.page-register__text-link {
  color: #E53935;
  text-decoration: none;
  font-weight: 600;
}

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

.page-register__submit-button {
  width: 100%;
  padding: 15px 20px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__submit-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-register__login-prompt {
  text-align: center;
  margin-top: 30px;
  font-size: 16px;
  color: #333333;
}

.page-register__benefits-section {
  padding: 60px 0;
  background-color: #E53935; /* Primary brand color for dark section */
  color: #ffffff; /* Light text for dark background */
}

.page-register__benefits-section .page-register__section-title {
  color: #ffffff;
}

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

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

.page-register__benefit-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-register__benefit-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  display: block;
}

.page-register__benefit-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-register__benefit-text {
  font-size: 16px;
  color: #f0f0f0;
}

.page-register__benefits-section .page-register__cta-bottom {
  text-align: center;
  margin-top: 50px;
}

.page-register__benefits-section .page-register__btn-secondary {
  background: #FF5A4F; /* Using auxiliary color for contrast */
  color: #ffffff;
  border: none;
}

.page-register__benefits-section .page-register__btn-secondary:hover {
  background: #E53935;
}

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

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

details.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #E0E0E0; /* Border */
  overflow: hidden;
  background: #FFFFFF; /* Card BG */
}
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: #333333;
}

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

.page-register__cta-card {
  background-color: #FFFFFF; /* Card BG */
  border-radius: 10px;
  padding: 50px 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid #E0E0E0; /* Border */
}

.page-register__cta-title {
  font-size: 30px;
  font-weight: 700;
  color: #E53935;
  margin-bottom: 20px;
}

.page-register__cta-description {
  font-size: 18px;
  color: #333333;
  margin-bottom: 30px;
}

.page-register__cta-image {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 30px;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1023px) {
  .page-register__hero-section {
    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;
  }

  .page-register__form-wrapper {
    flex-direction: column;
  }

  .page-register__form-image,
  .page-register__registration-form {
    max-width: 100%;
  }

  .page-register__hero-content {
    margin-top: -40px;
    padding: 20px 15px;
  }
}

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

@media (max-width: 768px) {
  .page-register__hero-image {
    max-height: 300px;
  }

  .page-register__hero-content {
    margin-top: -20px;
  }

  .page-register__main-title {
    font-size: 28px;
  }

  .page-register__hero-description {
    font-size: 16px;
  }

  .page-register__cta-button {
    padding: 12px 20px;
    font-size: 16px;
    width: 100% !important;
    margin-left: 0 !important;
    margin-bottom: 10px;
  }

  .page-register__btn-secondary {
    margin-left: 0 !important;
  }

  .page-register__section-title {
    font-size: 28px;
  }

  .page-register__section-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-register__form-wrapper {
    padding: 20px;
  }

  .page-register__form-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-register__registration-form {
    max-width: 100% !important;
    width: 100% !important;
  }

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

  .page-register__benefit-card {
    padding: 20px;
  }

  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-card {
    padding: 30px 15px;
  }

  .page-register__cta-title {
    font-size: 24px;
  }

  .page-register__cta-description {
    font-size: 16px;
  }

  .page-register__cta-image {
    max-height: 200px;
  }

  /* General image and container rules for mobile */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__form-wrapper,
  .page-register__cta-card {
    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;
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
  }
}

/* Ensure images don't have filters */
.page-register img {
  filter: none !important;
}

/* No special CSS for .page-register__home-hero, as it's not an index page. */
/* The provided CSS snippets for home page trial layout are included above as per instructions, 
   but they won't apply to this 'register' page unless class names match. */
.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;}