/* style/register.css */
.page-register {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Dark background, so light text */
  background-color: #0A1931; /* Primary brand color */
  line-height: 1.6;
}

.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;
  position: relative;
  overflow: hidden;
}

.page-register__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 700px;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-register__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.6);
}

.page-register__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
}

.page-register__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Accent color for title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-register__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.5;
}

.page-register__section-title {
  font-size: 2.8em;
  margin-bottom: 25px;
  color: #FFD700; /* Accent color for section titles */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-register__section-intro {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #f0f0f0;
}

.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn-primary {
  background-color: #FFD700; /* Gold accent color */
  color: #0A1931; /* Dark text for contrast */
  border: 2px solid #FFD700;
}

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

.page-register__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
  margin-left: 20px;
}

.page-register__btn-secondary:hover {
  background-color: #FFD700;
  color: #0A1931;
  transform: translateY(-2px);
}

.page-register__text-link {
  color: #FFD700;
  text-decoration: underline;
}

.page-register__text-link:hover {
  color: #e6c200;
}

.page-register__highlight {
  color: #FFD700;
  font-weight: bold;
}

/* Why Join Section */
.page-register__why-join {
  background-color: #0A1931;
}

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

.page-register__feature-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

.page-register__feature-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* How To Register Section */
.page-register__how-to-register {
  background-color: #1a2a43;
}

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

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

.page-register__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 15px;
}

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

.page-register__step-description {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-register__step-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  display: block;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

.page-register__form-placeholder {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 25px;
  border-radius: 8px;
  margin-top: 20px;
}

.page-register__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  margin-bottom: 15px;
  border: 1px solid #FFD700;
  border-radius: 5px;
  background-color: #0A1931;
  color: #ffffff;
  font-size: 1em;
}

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

.page-register__checkbox-label {
  display: flex;
  align-items: center;
  font-size: 0.95em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-register__form-checkbox {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  accent-color: #FFD700;
}

.page-register__form-submit {
  width: 100%;
  margin-top: 20px;
}

/* Promotions Section */
.page-register__promotions {
  background-color: #0A1931;
}

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

.page-register__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: #ffffff;
  text-align: left;
}

.page-register__promo-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

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

.page-register__promo-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-register__cta-container {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* Other Games Section */
.page-register__other-games {
  background-color: #1a2a43;
}

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

.page-register__game-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: #ffffff;
  text-align: center;
}

.page-register__game-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

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

.page-register__game-description {
  font-size: 0.9em;
  color: #f0f0f0;
}

/* Support Section */
.page-register__support {
  background-color: #0A1931;
}

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

.page-register__support-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

.page-register__support-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-register__faq {
  background-color: #1a2a43;
}

.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);
  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 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFD700;
  cursor: pointer;
  background-color: #0A1931;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-register__faq-question:hover {
  background-color: #1c2e4a;
}

.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 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
  font-size: 1em;
}

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

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

/* Final CTA Section */
.page-register__final-cta {
  background-color: #0A1931;
  padding: 100px 0;
}

.page-register__final-cta .page-register__section-title {
  font-size: 3em;
}

.page-register__final-cta .page-register__section-intro {
  font-size: 1.2em;
  margin-bottom: 40px;
}

/* Responsive Styles */
@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__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-register__hero-title {
    font-size: 2.2em;
  }
  .page-register__hero-description {
    font-size: 1.1em;
  }
  .page-register__section {
    padding: 60px 0;
  }
  .page-register__section-title {
    font-size: 1.8em;
  }
  .page-register__section-intro {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-register__btn-primary,
  .page-register__btn-secondary {
    width: 100% !important;
    margin-left: 0 !important;
    margin-bottom: 15px;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-register__cta-container {
    flex-direction: column;
    gap: 15px;
  }

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

  .page-register__feature-icon,
  .page-register__step-image,
  .page-register__promo-image,
  .page-register__game-image,
  .page-register__support-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-register__section,
  .page-register__card,
  .page-register__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-register__final-cta .page-register__section-title {
    font-size: 2em;
  }
  .page-register__final-cta .page-register__section-intro {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-register__hero-title {
    font-size: 1.8em;
  }
  .page-register__section-title {
    font-size: 1.5em;
  }
  .page-register__hero-description {
    font-size: 1em;
  }
  .page-register__btn-primary,
  .page-register__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
  }
  .page-register__feature-title,
  .page-register__step-title,
  .page-register__promo-title,
  .page-register__game-title,
  .page-register__support-title {
    font-size: 1.4em;
  }
  .page-register__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-register__faq-answer {
    padding: 10px 20px;
  }
}