/* 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-bottom: 50px; /* Ensure space above footer */
}

.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;
  color: #FFB04D; /* Glow */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

/* Hero Section */
.page-register__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 40px;
  background: linear-gradient(180deg, rgba(255,165,58,0.1) 0%, rgba(13,14,18,0) 100%);
  border-bottom: 1px solid #A84F0C; /* Border */
}

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

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

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

.page-register__hero-image-container {
  width: 100%;
  max-width: 1000px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

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

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

.page-register__btn-primary:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #E67800 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255,140,26,0.4);
}

.page-register__btn-submit {
  width: 100%;
  padding: 15px 25px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn-submit:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #E67800 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255,140,26,0.4);
}

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

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

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

.page-register__advantage-card {
  background-color: #17191F; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  border: 1px solid #A84F0C; /* Border */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255,140,26,0.2);
}

.page-register__advantage-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-register__advantage-title {
  font-size: 24px;
  font-weight: 700;
  color: #FFB04D; /* Glow */
  margin-bottom: 10px;
}

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

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

.page-register__registration-form {
  background-color: #17191F; /* Card BG */
  padding: 40px;
  border-radius: 10px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  border: 1px solid #A84F0C; /* Border */
}

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

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

.page-register__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #A84F0C; /* Border */
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #FFF3E6;
  font-size: 16px;
  box-sizing: border-box;
}

.page-register__form-input::placeholder {
  color: rgba(255, 243, 230, 0.6);
}

.page-register__form-group--checkbox {
  display: flex;
  align-items: center;
  margin-top: 25px;
}

.page-register__form-group--checkbox input[type="checkbox"] {
  margin-right: 10px;
  min-width: 18px;
  min-height: 18px;
  accent-color: #FF8C1A;
}

.page-register__form-checkbox-label {
  font-size: 15px;
  color: #FFF3E6;
}

.page-register__terms-link {
  color: #FFB04D;
  text-decoration: none;
}

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

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

.page-register__login-link {
  color: #FFB04D;
  text-decoration: none;
}

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

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

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

.page-register__step-card {
  background-color: #17191F; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  border: 1px solid #A84F0C; /* Border */
}

.page-register__step-number {
  font-size: 48px;
  font-weight: 800;
  color: #FF8C1A;
  margin-bottom: 15px;
  line-height: 1;
}

.page-register__step-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFB04D; /* Glow */
  margin-bottom: 10px;
}

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

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

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

.page-register__security-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  object-fit: cover;
  flex-shrink: 0;
}

.page-register__security-text-block {
  flex-grow: 1;
}

.page-register__security-subtitle {
  font-size: 24px;
  font-weight: 700;
  color: #FFB04D; /* Glow */
  margin-top: 0;
  margin-bottom: 10px;
}

.page-register__security-paragraph {
  font-size: 16px;
  color: #FFF3E6;
  margin-bottom: 20px;
}

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

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

details.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #A84F0C; /* Border */
  overflow: hidden;
  background: #17191F; /* Card BG */
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

details.page-register__faq-item summary.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFB04D; /* Glow */
  font-size: 18px;
  font-weight: 600;
}

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,140,26,0.1);
}

.page-register__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
}

.page-register__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FF8C1A;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-register__faq-item .page-register__faq-answer {
  padding: 0 25px 20px;
  background: #17191F;
  border-radius: 0 0 10px 10px;
  color: #FFF3E6;
  font-size: 16px;
}

.page-register__faq-answer p {
  margin: 0;
}

/* CTA Section */
.page-register__cta-section {
  padding: 60px 0;
  text-align: center;
  background-color: #0D0E12;
  border-top: 1px solid #A84F0C; /* Border */
}

/* Common Responsive Styles */
.page-register img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-register__section,
.page-register__card,
.page-register__container,
.page-register__registration-form,
.page-register__advantages-grid,
.page-register__steps-grid,
.page-register__security-content {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Homepage trial layout (REQUIRED by template, even if not directly used on this page) */
@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;
  }
  /* PC specific styles for other homepage modules (if they were present) */
  /* .page-register__promo-strip { margin-top: 16px; } */
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-register {
    font-size: 15px;
  }

  .page-register__hero-section {
    padding-top: 10px;
    padding-bottom: 20px;
  }

  .page-register__main-title {
    font-size: clamp(24px, 7vw, 36px);
  }

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

  .page-register__btn-primary,
  .page-register__btn-submit,
  .page-register__btn-large {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
    font-size: 18px;
  }

  .page-register__advantages-section,
  .page-register__form-section,
  .page-register__steps-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__cta-section {
    padding: 40px 0;
  }

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

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

  .page-register__advantages-grid,
  .page-register__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-register__advantage-card,
  .page-register__step-card {
    padding: 25px;
  }

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

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

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

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

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

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

  .page-register__login-prompt {
    font-size: 15px;
  }

  .page-register__security-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-register__security-image {
    max-width: 100%;
  }

  .page-register__security-subtitle {
    font-size: 20px;
  }

  details.page-register__faq-item summary.page-register__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }

  .page-register__faq-toggle {
    font-size: 24px;
    width: 24px;
  }

  details.page-register__faq-item .page-register__faq-answer {
    padding: 0 20px 15px;
  }

  /* Ensure all images and containers are responsive */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-register__container,
  .page-register__hero-section,
  .page-register__advantages-section,
  .page-register__form-section,
  .page-register__steps-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__cta-section,
  .page-register__advantage-card,
  .page-register__step-card,
  .page-register__registration-form {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Homepage trial layout (REQUIRED by template, even if not directly used on this page) */
.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;
  pointer-events: none !important;
}
.page-register__reward-modal-close {
  background: #FF8C1A;
  color: #fff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  line-height: 1;
  z-index: 10001;
  border: none;
}
.page-register__reward-modal-close:hover {
  background: #FFA53A;
}