/* style/register.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #DC143C; /* Deep Red */
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --bg-dark: #121212;
  --bg-light: #f1f3f5;
  --card-bg-light: #ffffff;
  --border-color: #e0e0e0;
}

.page-register {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-light); /* Default text color for dark body background */
  padding-top: 180px; /* Adjust for fixed header on desktop */
}

@media (max-width: 768px) {
  .page-register {
    padding-top: 140px; /* Adjust for fixed header on mobile */
  }
}

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

.page-register__dark-bg {
  background: var(--bg-dark);
  color: var(--text-color-light);
}

.page-register__light-bg {
  background: var(--bg-light);
  color: var(--text-color-dark);
}

.page-register__heading-primary {
  font-size: 48px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-register__heading-secondary {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 30px;
  padding-top: 40px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-register__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit; /* Inherit color from parent section */
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-register__hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-register__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-register__text-intro {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-color-light);
}

.page-register__text-intro strong {
  color: var(--primary-color);
}

.page-register__cta-button {
  display: inline-block;
  padding: 18px 50px;
  background: linear-gradient(135deg, var(--primary-color), #FFA500);
  color: var(--text-color-dark);
  text-decoration: none;
  border-radius: 8px;
  font-size: 22px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

.page-register__cta-button:hover {
  background: linear-gradient(135deg, #FFA500, var(--primary-color));
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 80px 0;
}

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

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

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

.page-register__benefit-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

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

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

.page-register__benefit-text a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

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

.page-register__cta-wrapper {
  text-align: center;
  margin-top: 60px;
}

.page-register__cta-button--large {
  padding: 20px 60px;
  font-size: 24px;
}

/* Process Section */
.page-register__process-section {
  padding: 80px 0;
}

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

.page-register__step-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  color: var(--text-color-light);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__step-number {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: var(--text-color-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

.page-register__step-text {
  font-size: 16px;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-register__step-text a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

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

.page-register__step-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Games Section */
.page-register__games-section {
  padding: 80px 0;
}

.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: var(--card-bg-light);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: var(--text-color-dark);
  transition: transform 0.3s ease;
}

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

.page-register__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-register__game-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
}

.page-register__game-title a {
  color: var(--secondary-color);
  text-decoration: none;
}

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

.page-register__game-description {
  font-size: 15px;
  color: #555555;
}

/* Security Section */
.page-register__security-section {
  padding: 80px 0;
}

.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: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-color-light);
}

.page-register__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

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

.page-register__feature-text {
  font-size: 16px;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 0;
}

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

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--card-bg-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-color-dark);
}

.page-register__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-register__faq-question:active {
  background: #eeeeee;
}

.page-register__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-color-dark);
}

.page-register__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

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

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #f9f9f9;
  color: #555555;
  font-size: 16px;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
  border: 1px solid var(--border-color);
  border-top: none;
}

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

.page-register__faq-answer a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-register__faq-answer a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__heading-primary {
    font-size: 40px;
  }
  .page-register__heading-secondary {
    font-size: 32px;
  }
  .page-register__text-intro {
    font-size: 18px;
  }
  .page-register__cta-button {
    font-size: 20px;
    padding: 15px 40px;
  }
  .page-register__cta-button--large {
    font-size: 22px;
    padding: 18px 50px;
  }
  .page-register__benefit-title {
    font-size: 22px;
  }
  .page-register__step-title {
    font-size: 24px;
  }
  .page-register__game-title {
    font-size: 20px;
  }
  .page-register__feature-title {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .page-register__heading-primary {
    font-size: 32px;
  }
  .page-register__heading-secondary {
    font-size: 28px;
  }
  .page-register__section-description {
    font-size: 16px;
    margin-bottom: 40px;
  }
  .page-register__text-intro {
    font-size: 16px;
  }
  .page-register__cta-button {
    font-size: 18px;
    padding: 12px 30px;
  }
  .page-register__cta-button--large {
    font-size: 20px;
    padding: 15px 40px;
  }
  .page-register__benefits-grid, .page-register__process-steps, .page-register__games-grid, .page-register__security-features {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-register__hero-section, .page-register__benefits-section, .page-register__process-section, .page-register__games-section, .page-register__security-section, .page-register__faq-section {
    padding: 50px 0;
  }
  .page-register__hero-image {
    margin-bottom: 30px;
  }
  .page-register__benefit-card, .page-register__step-item, .page-register__game-card, .page-register__feature-item {
    padding: 25px;
  }
  .page-register__benefit-icon, .page-register__feature-icon {
    width: 80px;
    height: 80px;
  }
  .page-register__benefit-title, .page-register__feature-title {
    font-size: 20px;
  }
  .page-register__step-number {
    width: 50px;
    height: 50px;
    font-size: 28px;
    margin-bottom: 20px;
  }
  .page-register__step-title {
    font-size: 20px;
  }
  .page-register__game-image {
    height: 180px;
  }
  .page-register__game-title {
    font-size: 18px;
  }
  .page-register__faq-question {
    padding: 15px 20px;
  }
  .page-register__faq-question h3 {
    font-size: 16px;
  }
  .page-register__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
    margin-left: 15px;
  }
  .page-register__faq-item.active .page-register__faq-answer {
    padding: 15px 20px !important;
  }
}

@media (max-width: 480px) {
  .page-register__heading-primary {
    font-size: 28px;
  }
  .page-register__heading-secondary {
    font-size: 24px;
  }
  .page-register__cta-button {
    font-size: 16px;
    padding: 10px 25px;
  }
  .page-register__cta-button--large {
    font-size: 18px;
    padding: 12px 30px;
  }
  .page-register__hero-image {
    border-radius: 8px;
  }
  .page-register__benefit-title, .page-register__feature-title {
    font-size: 18px;
  }
  .page-register__step-title {
    font-size: 18px;
  }
  .page-register__game-title {
    font-size: 16px;
  }
  .page-register__faq-question h3 {
    font-size: 15px;
  }
}