:root {
  --main-color: #113B7A;
  --accent-color: #1D5FD1;
  --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --card-bg: #10233F;
  --text-main: #F3F8FF;
  --text-secondary: #AFC4E8;
  --border-color: #244D84;
  --glow-color: #4FA8FF;
  --gold: #F2C14E;
  --divider: #1B3357;
  --deep-navy: #08162B; /* This is the body background color */
}

/* General page styling */
.page-register {
  color: var(--text-main); /* Light text on dark body background */
  background-color: transparent; /* Body background is handled by shared.css var(--deep-navy) */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-register__section-title {
  font-size: clamp(28px, 4vw, 42px); /* Responsive font size for H2 */
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

/* Hero Section */
.page-register__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles header offset */
  background: var(--card-bg); /* Using card background for hero section for consistency */
  border-bottom: 1px solid var(--divider);
}

.page-register__hero-content {
  max-width: 900px;
  margin-bottom: 40px;
}

.page-register__main-title {
  font-size: clamp(32px, 5vw, 56px); /* Responsive font size for H1 */
  color: var(--gold); /* Using gold for main title for emphasis */
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

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

.page-register__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  overflow: hidden; /* Ensure image doesn't overflow */
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

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

/* CTA Button */
.page-register__cta-button {
  display: inline-block;
  background: var(--button-gradient);
  color: var(--text-main); /* Ensure button text is light */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-register__cta-button--centered {
  margin-top: 40px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  max-width: fit-content;
}

.page-register__cta-button--final {
  margin-top: 40px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  max-width: fit-content;
  font-size: 20px;
  padding: 18px 35px;
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 80px 0;
  background-color: var(--deep-navy); /* Dark background for this section */
}

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

.page-register__benefit-card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

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

.page-register__benefit-icon {
  width: 100%; /* Ensure images are responsive */
  height: auto;
  max-width: 150px; /* Keep icons visually distinct but not too small */
  margin: 0 auto 20px auto;
  display: block;
}

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

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

/* Guide Section */
.page-register__guide-section {
  padding: 80px 0;
  background-color: var(--deep-navy);
}

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

.page-register__step-item {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-register__step-title {
  font-size: 22px;
  color: var(--text-main);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__step-description {
  font-size: 16px;
  color: var(--text-secondary);
}

.page-register__guide-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 800px;
  margin: 60px auto 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Security Section */
.page-register__security-section {
  padding: 80px 0;
  background-color: var(--deep-navy);
}

.page-register__security-intro {
  font-size: 18px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-register__feature-item {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-register__feature-title {
  font-size: 22px;
  color: var(--text-main);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__feature-description {
  font-size: 16px;
  color: var(--text-secondary);
}

.page-register__security-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 800px;
  margin: 60px auto 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Games Section */
.page-register__games-section {
  padding: 80px 0;
  background-color: var(--deep-navy);
}

.page-register__games-intro {
  font-size: 18px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__game-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-register__game-item {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-register__game-title {
  font-size: 22px;
  color: var(--text-main);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__game-description {
  font-size: 16px;
  color: var(--text-secondary);
}

.page-register__game-description a {
  color: var(--accent-color); /* Use accent color for links */
  text-decoration: none;
  font-weight: bold;
}

.page-register__game-description a:hover {
  text-decoration: underline;
}

.page-register__games-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 800px;
  margin: 60px auto 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Promotions Section */
.page-register__promotions-section {
  padding: 80px 0;
  background-color: var(--deep-navy);
}

.page-register__promotions-intro {
  font-size: 18px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__promotion-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-register__promotion-item {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-register__promotion-title {
  font-size: 22px;
  color: var(--text-main);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__promotion-description {
  font-size: 16px;
  color: var(--text-secondary);
}

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 0;
  background-color: var(--deep-navy);
}

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

.page-register__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  color: var(--text-main);
  list-style: none; /* Remove default marker */
}

.page-register__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for webkit browsers */
}

.page-register__faq-toggle {
  font-size: 24px;
  line-height: 1;
  color: var(--accent-color);
  margin-left: 15px;
}

.page-register__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 16px;
  color: var(--text-secondary);
}

/* Final CTA Section */
.page-register__cta-final {
  padding: 80px 0;
  background-color: var(--card-bg); /* Use a slightly different background for final CTA */
  text-align: center;
  border-top: 1px solid var(--divider);
}

.page-register__cta-description {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Ensure contrast for all text elements */
.page-register p,
.page-register li,
.page-register__benefit-description,
.page-register__step-description,
.page-register__feature-description,
.page-register__game-description,
.page-register__promotion-description,
.page-register__faq-answer {
  color: var(--text-secondary); /* Ensure secondary text is used for body content */
}

.page-register__main-title,
.page-register__section-title,
.page-register__benefit-title,
.page-register__step-title,
.page-register__feature-title,
.page-register__game-title,
.page-register__promotion-title,
.page-register__faq-item summary {
  color: var(--text-main); /* Main text for titles */
}

.page-register__main-title {
  color: var(--gold); /* Specific gold for H1 as per content */
}

.page-register__cta-button {
  color: var(--text-main); /* White/light text on button gradient */
}

/* Links in content */
.page-register__game-description a {
  color: var(--accent-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-register__container {
    padding: 0 15px;
  }

  .page-register__section-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 30px;
  }

  .page-register__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-register__main-title {
    font-size: clamp(28px, 7vw, 48px);
    margin-bottom: 15px;
  }

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

  .page-register__cta-button,
  .page-register a[class*="button"],
  .page-register a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
  }

  .page-register__cta-button--centered,
  .page-register__cta-button--final {
    margin-top: 25px;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Images responsive */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-register__hero-image-wrapper,
  .page-register__guide-image,
  .page-register__security-image,
  .page-register__games-image,
  .page-register__benefits-grid,
  .page-register__guide-steps,
  .page-register__security-features,
  .page-register__game-list,
  .page-register__promotion-list,
  .page-register__faq-list,
  .page-register__cta-final {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow for sections/containers */
  }

  .page-register__benefits-section,
  .page-register__guide-section,
  .page-register__security-section,
  .page-register__games-section,
  .page-register__promotions-section,
  .page-register__faq-section,
  .page-register__cta-final {
    padding: 40px 0;
  }

  .page-register__benefits-grid,
  .page-register__guide-steps,
  .page-register__security-features,
  .page-register__game-list,
  .page-register__promotion-list {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-register__benefit-card,
  .page-register__step-item,
  .page-register__feature-item,
  .page-register__game-item,
  .page-register__promotion-item {
    padding: 20px;
  }

  .page-register__benefit-title,
  .page-register__step-title,
  .page-register__feature-title,
  .page-register__game-title,
  .page-register__promotion-title {
    font-size: 20px;
  }

  .page-register__faq-list {
    margin-top: 30px;
  }

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

  .page-register__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 15px;
  }
}