/* style/register.css */

/* Base styles for the page */
.page-register {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  line-height: 1.6;
  background-color: #1a1a1a; /* Ensure consistency with body background */
}

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

.page-register__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Primary brand color */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  padding: 100px 0;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  text-align: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
  overflow: hidden;
}

.page-register__main-title {
  font-size: 3.5em;
  color: #FFD700; /* Primary brand color */
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 900;
}

.page-register__subtitle {
  font-size: 1.4em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
}

.page-register__btn-primary {
  background-color: #FFD700; /* Primary brand color */
  color: #1a1a1a; /* Dark text for contrast */
  border: 2px solid #FFD700;
  margin: 10px;
}

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

.page-register__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Primary brand color */
  border: 2px solid #FFD700;
  margin: 10px;
}

.page-register__btn-secondary:hover {
  background-color: #FFD700;
  color: #1a1a1a;
}

.page-register__btn-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 300px; /* Constrain width for centered buttons */
  margin-bottom: 20px;
}

.page-register__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Why rr88 Section */
.page-register__why-rr88-section {
  background-color: #2a2a2a;
  padding: 80px 0;
  color: #f0f0f0;
}

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

.page-register__feature-item {
  background-color: #3a3a3a;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.page-register__feature-item:hover {
  transform: translateY(-10px);
}

.page-register__feature-icon {
  width: 150px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
  object-fit: cover;
}

.page-register__feature-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-register__feature-text {
  font-size: 1em;
  color: #cccccc;
}

/* Steps Section */
.page-register__steps-section {
  background-color: #1a1a1a;
  padding: 80px 0;
  color: #ffffff;
}

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

.page-register__step-item {
  background-color: #2a2a2a;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-register__step-number {
  font-size: 3em;
  color: #8B0000; /* Secondary brand color */
  font-weight: bold;
  margin-bottom: 15px;
}

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

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

/* Verification Section */
.page-register__verification-section {
  background-color: #2a2a2a;
  padding: 80px 0;
  color: #f0f0f0;
}

.page-register__verification-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
}

.page-register__verification-image {
  max-width: 500px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-register__verification-text {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.page-register__verification-text p {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #cccccc;
}

.page-register__verification-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #cccccc;
}

.page-register__verification-list li {
  margin-bottom: 10px;
  font-size: 1em;
}

/* Deposit Bonus Section */
.page-register__deposit-bonus-section {
  background-color: #1a1a1a;
  padding: 80px 0;
  color: #ffffff;
}

.page-register__bonus-content {
  display: flex;
  flex-wrap: wrap-reverse; /* Image on right on desktop, text on top on mobile */
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
}

.page-register__bonus-image {
  max-width: 500px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-register__bonus-text {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.page-register__bonus-text p {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #cccccc;
}

/* Explore Games Section */
.page-register__explore-games-section {
  background-color: #2a2a2a;
  padding: 80px 0;
  color: #f0f0f0;
}

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

.page-register__game-card {
  background-color: #3a3a3a;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #f0f0f0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-register__game-card:hover {
  transform: translateY(-10px);
}

.page-register__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
}

.page-register__game-title {
  font-size: 1.4em;
  color: #FFD700;
  margin: 20px 20px 10px 20px;
  font-weight: bold;
}

.page-register__game-text {
  font-size: 0.95em;
  color: #cccccc;
  padding: 0 20px 20px 20px;
}

/* Safety Section */
.page-register__safety-section {
  background-color: #1a1a1a;
  padding: 80px 0;
  color: #ffffff;
}

.page-register__safety-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
}

.page-register__safety-image {
  max-width: 500px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-register__safety-text {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.page-register__safety-text p {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #cccccc;
}

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

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

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFD700;
  cursor: pointer;
  background-color: #4a4a4a;
  transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
  background-color: #5a5a5a;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

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

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

.page-register__faq-answer p {
  margin-bottom: 10px;
  font-size: 1em;
}

/* CTA Section */
.page-register__cta-section {
  background-color: #1a1a1a;
  padding: 80px 0;
  text-align: center;
  color: #ffffff;
}

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

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

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

  .page-register__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

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

  .page-register__subtitle {
    font-size: 1.1em;
  }

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

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

  .page-register__btn-primary,
  .page-register__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    margin: 10px 0;
  }
  
  .page-register__btn-center {
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-register__features-grid,
  .page-register__steps-grid,
  .page-register__games-grid {
    grid-template-columns: 1fr;
  }

  .page-register__verification-content,
  .page-register__bonus-content,
  .page-register__safety-content {
    flex-direction: column;
  }

  .page-register__verification-image,
  .page-register__bonus-image,
  .page-register__safety-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-register__game-image {
    height: 180px; /* Adjust height for smaller screens */
  }

  .page-register__faq-question {
    font-size: 1.1em;
  }

  /* Ensure all content containers prevent overflow */
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__hero-section,
  .page-register__why-rr88-section,
  .page-register__steps-section,
  .page-register__verification-section,
  .page-register__deposit-bonus-section,
  .page-register__explore-games-section,
  .page-register__safety-section,
  .page-register__faq-section,
  .page-register__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

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

/* Color contrast safety */
.page-register__dark-bg {
  color: #ffffff;
}

.page-register__light-bg {
  color: #f0f0f0;
}

.page-register p,
.page-register li {
  color: #cccccc;
}

/* Ensure specific elements have sufficient contrast */
.page-register__game-card .page-register__game-title,
.page-register__feature-item .page-register__feature-title {
  color: #FFD700; /* Primary brand color */
}

.page-register__game-card:hover .page-register__game-title {
  color: #e6c200; /* Slightly darker gold on hover */
}

.page-register__faq-question {
  color: #FFD700;
}

.page-register a {
  color: #FFD700;
  text-decoration: none;
}

.page-register a:hover {
  text-decoration: underline;
  color: #e6c200;
}