/* style/register.css */

/* Base styles and body background */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: #000000; /* Body background from shared.css */
}

.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: #ffffff;
  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;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  min-height: 70vh;
  padding-top: var(--header-offset, 120px);
  overflow: hidden;
}

.page-register__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.page-register__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-register__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-register__hero-title {
  font-size: 3.5em;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

.page-register__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.page-register__btn-primary,
.page-register__btn-register,
.page-register__btn-submit {
  background-color: #C30808; /* Custom Register/Login button color */
  color: #FFFF00; /* Custom Register/Login font color */
  border: 2px solid #C30808;
}

.page-register__btn-primary:hover,
.page-register__btn-register:hover,
.page-register__btn-submit:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-register__btn-secondary,
.page-register__btn-login {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-register__btn-secondary:hover,
.page-register__btn-login:hover {
  background-color: #FFFFFF;
  color: #017439;
  border-color: #FFFFFF;
}

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

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

/* Sections */
.page-register__benefits-section,
.page-register__how-to-register-section,
.page-register__form-section,
.page-register__games-section,
.page-register__faq-section,
.page-register__cta-final-section {
  padding: 60px 0;
}

.page-register__dark-bg {
  background-color: #017439; /* Primary color as background */
  color: #ffffff;
}

.page-register__light-bg {
  background-color: #f5f5f5; /* Light background for contrast */
  color: #333333;
}

.page-register__light-bg .page-register__section-title,
.page-register__light-bg .page-register__section-description,
.page-register__light-bg .page-register__card-title,
.page-register__light-bg .page-register__card-text,
.page-register__light-bg .page-register__form-label,
.page-register__light-bg .page-register__form-input::placeholder,
.page-register__light-bg .page-register__faq-title,
.page-register__light-bg .page-register__faq-answer p {
  color: #333333;
}

.page-register__light-bg .page-register__text-link {
  color: #017439;
}

.page-register__light-bg .page-register__text-link:hover {
  color: #C30808;
}

/* Benefits Section */
.page-register__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-register__benefit-card {
  background-color: #ffffff; /* Card background for light section */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-register__benefit-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-register__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__card-text {
  font-size: 1em;
  line-height: 1.6;
}

/* How-To Register Section */
.page-register__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-register__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-register__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: #C30808;
  color: #FFFF00;
  border-radius: 50%;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-register__step-title {
  font-size: 1.4em;
  color: #ffffff;
  margin-bottom: 10px;
}

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

.page-register__cta-center {
  text-align: center;
}

/* Registration Form Section */
.page-register__registration-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: #ffffff; /* Form background for light section */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.page-register__form-group {
  margin-bottom: 20px;
}

.page-register__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333333;
}

.page-register__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
  box-sizing: border-box;
  color: #333333;
  background-color: #f8f8f8;
}

.page-register__form-input::placeholder {
  color: #999999;
}

.page-register__checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

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

.page-register__btn-submit {
  width: 100%;
  padding: 15px;
  font-size: 1.2em;
}

/* Games Section */
.page-register__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-register__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-register__game-card .page-register__card-title a {
  color: #ffffff;
  text-decoration: none;
}

.page-register__game-card .page-register__card-title a:hover {
  color: #FFFF00;
  text-decoration: underline;
}

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

/* FAQ Section */
.page-register__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-register__faq-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.page-register__faq-question {
  background-color: #ffffff;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.page-register__faq-title {
  font-size: 1.1em;
  font-weight: bold;
  color: #333333;
  margin: 0;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #017439;
  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;
  background-color: #fcfcfc;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.page-register__faq-answer p {
  margin: 0;
  line-height: 1.6;
  color: #333333;
}

/* Final CTA Section */
.page-register__cta-final-section {
  text-align: center;
  padding: 80px 20px;
}

.page-register__cta-final-section .page-register__btn-primary {
  margin-right: 15px;
}

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

@media (max-width: 768px) {
  .page-register__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-register__hero-title {
    font-size: 2.2em;
  }
  .page-register__hero-description {
    font-size: 1.1em;
  }
  .page-register__section-title {
    font-size: 1.8em;
  }
  .page-register__section-description {
    font-size: 1em;
  }
  .page-register__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register__btn-register,
  .page-register__btn-login,
  .page-register__btn-submit {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-register__container,
  .page-register__benefits-section,
  .page-register__how-to-register-section,
  .page-register__form-section,
  .page-register__games-section,
  .page-register__faq-section,
  .page-register__cta-final-section {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  .page-register__form-label {
    font-size: 0.95em;
  }

  .page-register__form-input {
    padding: 10px 12px;
  }

  .page-register__faq-question {
    padding: 12px 15px;
  }

  .page-register__faq-title {
    font-size: 1em;
  }

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

  .page-register__faq-item.active .page-register__faq-answer {
    padding: 12px 15px;
  }

  .page-register__cta-final-section .page-register__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
}

@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: 0.95em;
  }
}