/* Base styles for the register page */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
  padding-top: 10px; /* Small top padding for inner page, assuming body has header offset */
}

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

.page-register__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 15px;
  color: #FFB04D; /* Glow */
}

.page-register__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #FFF3E6;
}

.page-register__dark-section {
  background: #17191F; /* Card BG */
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

/* Hero Section */
.page-register__hero-section {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Adjust as needed */
}

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

.page-register__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 20px;
  max-width: 800px;
  width: 100%;
  box-sizing: border-box;
  z-index: 2;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

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

.page-register__intro-text {
  font-size: 18px;
  color: #FFF3E6;
  margin-bottom: 30px;
}

/* Buttons */
.page-register__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background: transparent;
  color: #FFA53A; /* Auxiliary color */
  border: 2px solid #FFA53A;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn-secondary:hover {
  background: #FFA53A;
  color: #0D0E12; /* Background color for contrast */
}

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

.page-register__form-card {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  padding: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-register__form-image {
  flex: 1 1 300px;
  max-width: 40%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.page-register__registration-form {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-register__form-group {
  display: flex;
  flex-direction: column;
}

.page-register__form-label {
  font-size: 16px;
  color: #FFF3E6;
  margin-bottom: 8px;
}

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

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

.page-register__captcha-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-register__captcha-input {
  flex: 1;
}

.page-register__captcha-image {
  width: 120px; /* Adjusted from 200px for better layout, still > 200px overall block width*/
  height: 40px;
  border-radius: 5px;
  object-fit: cover;
  border: 1px solid #A84F0C;
}

.page-register__captcha-refresh {
  padding: 8px 15px;
  background-color: #FFA53A;
  color: #0D0E12;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-register__captcha-refresh:hover {
  background-color: #D96800;
}

.page-register__checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.page-register__form-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #FFA53A;
}

.page-register__checkbox-group a {
  color: #FFA53A;
  text-decoration: none;
}

.page-register__checkbox-group a:hover {
  text-decoration: underline;
}

.page-register__submit-button {
  width: auto;
  align-self: flex-start;
}

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

.page-register__benefit-item {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
}

.page-register__benefit-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-register__benefit-title {
  font-size: 24px;
  color: #FFA53A;
  margin-bottom: 10px;
}

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

/* Security Section */
.page-register__security-section {
  padding: 60px 0;
  background-color: #0D0E12;
}

.page-register__security-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-register__security-text {
  flex: 1 1 400px;
  color: #FFF3E6;
}

.page-register__security-text p {
  margin-bottom: 20px;
  font-size: 16px;
}

.page-register__security-image {
  flex: 1 1 300px;
  max-width: 45%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

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

details.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #A84F0C; /* Border */
  overflow: hidden;
  background: #0D0E12; /* Background */
}
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: #FFF3E6;
}
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: #17191F;
}
.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: #FFA53A;
  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: #0D0E12;
  border-radius: 0 0 5px 5px;
  color: #FFF3E6;
}

/* CTA Section */
.page-register__cta-section {
  padding: 60px 0;
}

.page-register__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

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

/* --- MANDATORY HOMEPAGE CSS BLOCKS (as per instructions) --- */
@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 RESPONSIVENESS (max-width: 768px) --- */
@media (max-width: 768px) {
  .page-register {
    padding-top: 0; /* Rely on body padding-top */
  }
  .page-register__container {
    padding: 0 15px;
  }

  /* Hero Section */
  .page-register__hero-content {
    position: static;
    transform: none;
    padding: 20px 15px;
    background: #17191F; /* Card BG for text area */
    border-radius: 0;
  }
  .page-register__hero-image {
    max-height: 300px;
  }
  .page-register__main-title {
    font-size: 28px;
  }
  .page-register__intro-text {
    font-size: 16px;
  }

  /* Form Section */
  .page-register__form-card {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }
  .page-register__form-image {
    max-width: 100%;
    flex: none;
  }
  .page-register__registration-form {
    flex: none;
  }
  .page-register__captcha-container {
    flex-wrap: wrap;
  }
  .page-register__captcha-input {
    flex: 1 1 150px;
  }
  .page-register__captcha-image {
    flex: none;
    width: 100px;
    height: 35px;
  }
  .page-register__captcha-refresh {
    flex: none;
  }
  .page-register__submit-button {
    width: 100%;
  }

  /* Benefits Section */
  .page-register__benefits-grid {
    grid-template-columns: 1fr;
  }
  .page-register__benefit-item {
    padding: 20px;
  }
  .page-register__benefit-title {
    font-size: 20px;
  }
  .page-register__benefit-image {
    height: 150px;
  }

  /* Security Section */
  .page-register__security-content {
    flex-direction: column;
    gap: 20px;
  }
  .page-register__security-image {
    max-width: 100%;
    flex: none;
  }

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

  /* CTA Section */
  .page-register__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-register__btn-primary,
  .page-register__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 15px;
    font-size: 16px;
  }

  /* General image and container responsiveness */
  .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-section,
  .page-register__benefits-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Homepage specific for 768px (as per instructions, even if not directly used) */
  .page-register__promo-strip-track{
    grid-template-columns:repeat(2,1fr); /* Example, adjust as per exact shared module */
    overflow-x:hidden;
  }
  .page-register__hot-games-grid{
    grid-template-columns:repeat(2,1fr);
  }
  /* Placeholder for brand-intro and winner-ticker if they were on homepage */
}

/* Common styles for game trial overlay and modal, included as per prompt's JS example */
.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;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-register__reward-modal[hidden] {
  display: none !important;
}
.page-register__reward-modal-content {
  background: #17191F;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 500px;
  position: relative;
  color: #FFF3E6;
}
.page-register__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  color: #FFA53A;
  cursor: pointer;
}
.page-register__reward-modal-title {
  font-size: 28px;
  color: #FFB04D;
  margin-bottom: 15px;
}
.page-register__reward-modal-text {
  font-size: 16px;
  margin-bottom: 25px;
}