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

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

.page-register__section {
  padding: 60px 0;
}

.page-register__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #017439;
}

/* Hero Section */
.page-register__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background-color: #017439;
  color: #ffffff;
}

.page-register__hero-section .page-register__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-register__hero-content {
  text-align: center;
  max-width: 800px;
}

.page-register__main-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFFF00;
}

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

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

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

.page-register__btn-primary {
  background-color: #C30808; /* Register/Login button color */
  color: #ffffff; /* Ensuring contrast on #C30808 background */
  border: 2px solid #C30808;
}

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

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

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

.page-register__btn-text {
  background-color: transparent;
  color: #017439;
  border: none;
  padding: 0;
  text-decoration: underline;
  font-weight: 600;
}

.page-register__btn-text:hover {
  color: #005f2e;
}

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

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

/* Benefits Section */
.page-register__benefits-section {
  background-color: #ffffff;
  color: #333333;
}

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

.page-register__benefit-card {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  border: 1px solid #e0e0e0;
}

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

.page-register__benefit-description {
  font-size: 15px;
  color: #555555;
}

/* How-To-Register Section */
.page-register__how-to-register-section {
  background-color: #017439;
  color: #ffffff;
}

.page-register__how-to-register-section .page-register__section-title {
  color: #ffffff;
}

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

.page-register__step-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-register__step-title {
  font-size: 24px;
  font-weight: 700;
  color: #FFFF00;
  margin-bottom: 15px;
}

.page-register__step-description {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 20px;
}

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

/* Security Section */
.page-register__security-section {
  background-color: #f5f5f5;
  color: #333333;
}

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

.page-register__security-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-register__security-text {
  flex: 1;
  max-width: 50%;
}

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

/* FAQ Section */
.page-register__faq-section {
  background-color: #017439;
  color: #ffffff;
}

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

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

details.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}
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: rgba(255, 255, 255, 0.2);
}
.page-register__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #ffffff;
}
.page-register__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFFF00;
  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: rgba(0, 0, 0, 0.1);
  border-radius: 0 0 5px 5px;
  color: #f0f0f0;
}

/* Bottom CTA Section */
.page-register__cta-bottom-section {
  background-color: #ffffff;
  color: #333333;
  text-align: center;
}

.page-register__cta-bottom-content {
  max-width: 800px;
}

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

/* Responsive Styles */
@media (max-width: 1023px) {
  .page-register__hero-section .page-register__container {
    flex-direction: column;
  }
  .page-register__hero-image-wrapper, .page-register__security-image, .page-register__security-text {
    max-width: 100%;
  }
  .page-register__security-content {
    flex-direction: column;
  }
  .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__hero-section .page-register__container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    gap: 50px;
    padding-top: 40px;
  }
  .page-register__hero-content {
    text-align: left;
    max-width: 50%;
  }
  .page-register__hero-image-wrapper {
    margin-top: 0;
    max-width: 50%;
  }
  .page-register__cta-buttons {
    justify-content: flex-start;
  }
  .page-register__security-content {
    flex-direction: row;
  }
  /* No specific homepage game trial layout for this register page, so these are general overrides */
  .page-register__home-hero { /* This class would typically be on homepage only */
    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__section {
    padding: 40px 0;
  }
  .page-register__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-register__main-title {
    font-size: 28px;
  }
  .page-register__hero-description,
  .page-register__cta-bottom-description {
    font-size: 16px;
  }
  .page-register__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register__btn-text {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-register__benefits-grid,
  .page-register__steps-wrapper {
    grid-template-columns: 1fr;
  }
  .page-register__security-content {
    flex-direction: column;
    gap: 20px;
  }
  .page-register__security-image,
  .page-register__security-text {
    max-width: 100%;
  }
  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 responsive styles */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-register__container,
  .page-register__section,
  .page-register__hero-section,
  .page-register__benefits-section,
  .page-register__how-to-register-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__cta-bottom-section,
  .page-register__benefit-card,
  .page-register__step-card,
  .page-register__security-content,
  .page-register__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Ensuring no horizontal scroll for elements */
  .page-register {
    overflow-x: hidden;
  }

  /* Homepage specific media queries (if they were present) */
  .page-register__promo-strip-track { /* Placeholder, assuming this would be on homepage */
    grid-template-columns: repeat(2, 1fr) !important; /* Example for 2 columns on mobile */
    overflow-x: hidden !important;
    gap: 15px !important;
  }
  .page-register__hot-games-grid { /* Placeholder, assuming this would be on homepage */
    grid-template-columns: repeat(2, 1fr) !important;
    overflow-x: hidden !important;
    gap: 15px !important;
  }
  .page-register__brand-intro { /* Placeholder for brand section on homepage */
    display: block !important;
    padding: 20px 15px !important;
  }
  .page-register__winner-ticker { /* Placeholder for winner ticker on homepage */
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 999 !important;
  }
  body { /* Adjust body padding for fixed ticker */
    padding-bottom: 50px !important; /* Example padding for ticker height */
  }
}

/* Fixed reward modal styles */
.page-register__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.page-register__reward-modal[aria-hidden='false'] {
  opacity: 1;
  visibility: visible;
}
.page-register__reward-modal-content {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  position: relative;
  max-width: 90%;
  width: 500px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.page-register__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}
.page-register__reward-modal-title {
  font-size: 28px;
  color: #017439;
  margin-bottom: 20px;
}
.page-register__reward-modal-text {
  font-size: 16px;
  color: #555;
  margin-bottom: 25px;
}
.page-register__reward-modal .page-register__btn-primary {
  width: auto; /* Override 100% mobile button width for modal */
  padding: 10px 20px;
}