:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-btn-bg: #C30808;
  --register-btn-text: #FFFF00;
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --bg-light: #FFFFFF;
  --border-light: #e0e0e0;
}

.page-register {
  font-family: Arial, sans-serif;
  color: var(--text-dark); /* Default text color for light body background */
  background-color: var(--bg-light); /* Explicitly set for clarity */
  line-height: 1.6;
  padding-bottom: 50px; /* Some padding at the bottom */
}

/* Header offset - assuming shared.css handles body padding-top */
.page-register__hero-section {
    padding-top: 10px; /* Small top padding, not --header-offset */
}

.page-register__container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-register__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 50px 0;
  position: relative;
  overflow: hidden;
}

.page-register__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-register__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Slightly dim the background image */
}

.page-register__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.page-register__main-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
  max-width: 100%; /* Ensure H1 doesn't overflow */
}

.page-register__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-register__btn-primary,
.page-register__btn-secondary,
.page-register__submit-button,
.page-register a[class*="button"],
.page-register a[class*="btn"] {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  margin: 0 10px 15px; /* Added margin-bottom for mobile stacking */
  max-width: 100%; /* Ensure buttons don't overflow */
  box-sizing: border-box; /* Include padding in width */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-register__btn-primary {
  background-color: var(--register-btn-bg); /* Custom register color */
  color: var(--register-btn-text); /* Custom register text color */
  border: 2px solid var(--register-btn-bg);
}

.page-register__btn-primary:hover {
  background-color: #a30606; /* Darker red */
  border-color: #a30606;
}

.page-register__btn-secondary {
  background-color: transparent;
  color: var(--register-btn-text); /* Custom register text color */
  border: 2px solid var(--register-btn-text);
}

.page-register__btn-secondary:hover {
  background-color: var(--register-btn-text);
  color: var(--register-btn-bg);
}

.page-register__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
}

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

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

.page-register__registration-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 30px;
  background-color: var(--bg-light);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-register__form-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.page-register__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-light);
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
}

.page-register__form-input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(1, 116, 57, 0.2);
}

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

.page-register__checkbox-input {
  margin-right: 10px;
  margin-top: 4px; /* Align with text */
  flex-shrink: 0;
}

.page-register__checkbox-label {
  font-size: 15px;
  color: var(--text-dark);
}

.page-register__checkbox-label a {
  color: var(--primary-color);
  text-decoration: none;
}

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

.page-register__submit-button {
  width: 100%;
  background-color: var(--register-btn-bg);
  color: var(--register-btn-text);
  border: none;
  padding: 15px 20px;
  border-radius: 5px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-register__submit-button:hover {
  background-color: #a30606;
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 60px 0;
  background-color: var(--bg-light);
}

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

.page-register__benefit-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-register__benefit-card:hover {
  transform: translateY(-5px);
}

.page-register__benefit-icon {
  width: 100%; /* Ensure images take full width of card */
  height: 200px; /* Fixed height for consistency */
  object-fit: cover; /* Cover the area */
  margin-bottom: 20px;
  border-radius: 5px;
  max-width: 100%; /* Responsive image */
  display: block; /* Remove extra space below image */
}

.page-register__benefit-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-register__benefit-description {
  font-size: 15px;
  color: var(--text-dark);
}

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

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

details.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  background: var(--bg-light);
}
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: var(--text-dark);
}
.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: var(--text-dark);
}
details.page-register__faq-item .page-register__faq-answer p {
    margin: 0;
}

/* CTA Section */
.page-register__cta-section {
  padding: 60px 0;
  text-align: center;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-register__cta-section .page-register__section-title {
  color: var(--text-light);
}

.page-register__cta-section .page-register__section-description {
  color: var(--text-light);
  margin-bottom: 30px;
}

.page-register__btn-large {
  padding: 18px 40px;
  font-size: 22px;
}

/* === HOMEPAGE SPECIFIC CSS - REQUIRED BY PROMPT TEMPLATE FOR ALL PAGES === */
/* A. @media (max-width: 1023px) must be output as provided (for homepage game trial reset) */
@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;
  }
}

/* B. @media (min-width: 1024px) must be output as provided (for homepage 3-column layout) */
@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;
  }
}

/* === END HOMEPAGE SPECIFIC CSS === */

/* C. @media (max-width: 768px) must include specific rules for ALL listed classes */
@media (max-width: 768px) {
  .page-register__main-title {
    font-size: 32px;
  }

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

  /* Buttons & button containers */
  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register__submit-button,
  .page-register a[class*="button"],
  .page-register a[class*="btn"] {
    display: block !important; /* Stack buttons vertically */
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 15px !important;
    padding-left: 15px; /* Add padding to match container */
    padding-right: 15px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .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; /* Ensure flex behavior for wrapping if multiple buttons */
    flex-direction: column; /* Default to vertical stacking */
  }
  
  .page-register__section-title {
    font-size: 28px;
  }

  .page-register__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-register__registration-form {
    padding: 20px;
  }

  .page-register__form-label {
    font-size: 15px;
  }

  .page-register__form-input {
    padding: 10px 12px;
    font-size: 15px;
  }

  .page-register__checkbox-label {
    font-size: 14px;
  }

  .page-register__benefits-grid {
    grid-template-columns: 1fr; /* Stack cards on mobile */
  }
  
  .page-register__benefit-icon {
    height: 180px; /* Adjust height for mobile */
  }

  .page-register__benefit-title {
    font-size: 20px;
  }

  /* FAQ Styles for mobile */
  details.page-register__faq-item summary.page-register__faq-question { padding: 15px; }
  .page-register__faq-qtext { font-size: 15px; }
  .page-register__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-register__faq-item .page-register__faq-answer {
    padding: 0 15px 15px;
  }

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