/* style/register.css */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Dark body background #0a0a0a, so light text */
  background-color: transparent; /* Body background handled by shared.css */
}

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

.page-register__section {
  padding: 80px 0;
  text-align: center;
}

.page-register__dark-bg {
  background-color: #0d0d0d; /* Slightly lighter than body for contrast */
  color: #ffffff;
}

.page-register__light-bg {
  background-color: #1a1a1a; /* Dark gray for contrast on dark body */
  color: #ffffff;
}

.page-register__section-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #26A9E0; /* Primary brand color */
}

.page-register__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* Hero Section */
.page-register__hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding-top: var(--header-offset, 120px); /* Ensure content is below header */
  background-image: url('[GALLERY:bg_hero:1920x1080:rikvip,register,hero_background,abstract_gaming_lights]');
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
}

.page-register__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: -1;
}

.page-register__hero-content {
  max-width: 700px;
  text-align: center;
  z-index: 1;
  color: #ffffff;
}

.page-register__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFFFF; /* White for main title on dark background */
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-register__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-register__hero-image-wrapper {
  display: none; /* Hide hero image in this layout for simplicity with text, can be enabled for a different layout */
}

.page-register__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Buttons */
.page-register__btn-primary {
  display: inline-block;
  background-color: #EA7C07; /* Login color for primary CTA */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-register__btn-primary:hover {
  background-color: #c76706;
  transform: translateY(-2px);
}

.page-register__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #26A9E0;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #26A9E0;
  cursor: pointer;
}

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

/* Card Styles */
.page-register__card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #ffffff;
  height: 100%; /* Ensure cards in grid have equal height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-register__card img {
  margin-bottom: 20px;
  border-radius: 8px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-register__card h3 {
  color: #26A9E0;
  font-size: 1.8em;
  margin-bottom: 15px;
}

.page-register__card p {
  color: #e0e0e0;
  font-size: 1em;
  flex-grow: 1;
}

/* Why Join Section */
.page-register__why-join .page-register__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-register__feature-icon {
  width: 100%; /* Ensure images are large enough */
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
}

/* Registration Steps */
.page-register__registration-steps .page-register__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.page-register__step-item {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__step-number {
  width: 60px;
  height: 60px;
  background-color: #26A9E0;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-register__step-title {
  font-size: 1.8em;
  color: #FFFFFF;
  margin-bottom: 15px;
}

.page-register__step-text {
  color: #e0e0e0;
  font-size: 1em;
}

.page-register__cta-bottom {
  margin-top: 60px;
}

/* Security Info */
.page-register__security-info .page-register__security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-register__security-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.page-register__security-title {
  color: #26A9E0;
}

.page-register__security-disclaimer {
  margin-top: 40px;
  font-size: 0.95em;
  color: #a0a0a0;
}

/* Game Preview */
.page-register__game-preview .page-register__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-register__game-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.page-register__game-card h3 a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-register__game-card h3 a:hover {
  color: #EA7C07;
}

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

.page-register__promo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* FAQ Section */
.page-register__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
  text-align: left;
}

.page-register__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.page-register__faq-toggle {
  font-size: 1.5em;
  color: #26A9E0;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(45deg);
  color: #EA7C07;
}

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #e0e0e0;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 25px 25px;
}

.page-register__faq-answer p {
  margin: 0;
  font-size: 1em;
}

/* Final CTA */
.page-register__final-cta {
  padding-bottom: 80px;
}

.page-register__final-button {
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 3em;
  }

  .page-register__section-title {
    font-size: 2.2em;
  }
}

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

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

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

  .page-register__hero-section {
    min-height: 60vh;
  }

  .page-register__hero-title {
    font-size: 2.5em;
  }

  .page-register__hero-description {
    font-size: 1.1em;
  }

  .page-register__btn-primary,
  .page-register__btn-secondary {
    padding: 12px 25px;
    font-size: 1.1em;
  }

  .page-register__features-grid,
  .page-register__steps-grid,
  .page-register__security-grid,
  .page-register__game-grid,
  .page-register__promo-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-register__card {
    padding: 25px;
  }

  .page-register__card img,
  .page-register__feature-icon,
  .page-register__security-image,
  .page-register__game-image,
  .page-register__promo-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
  }

  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__hero-section,
  .page-register__why-join,
  .page-register__registration-steps,
  .page-register__security-info,
  .page-register__game-preview,
  .page-register__promotions,
  .page-register__faq-section,
  .page-register__final-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__cta-bottom {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .page-register__cta-button,
  .page-register__btn-primary,
  .page-register__btn-secondary,
  .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-left: 15px;
    padding-right: 15px;
  }

  .page-register__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Adjusted for mobile */
  }

  .page-register__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-register__faq-answer {
    padding: 10px 20px 20px 20px;
  }
}

@media (max-width: 480px) {
  .page-register__hero-title {
    font-size: 2em;
  }

  .page-register__section-title {
    font-size: 1.8em;
  }

  .page-register__hero-description {
    font-size: 1em;
  }
}