/* style/register.css */
.page-register {
  color: #333333; /* Default text color for light body background */
  background-color: #f0f2f5;
}

.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body already handles header offset */
  background-color: #26A9E0;
  color: #ffffff;
  overflow: hidden;
}

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

.page-register__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Slightly transparent to allow text readability */
}

.page-register__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.page-register__hero-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 20px;
}

.page-register__hero-description {
  font-size: 1.1em;
  line-height: 1.6;
  color: #ffffff;
  margin-bottom: 30px;
}

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

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

.page-register__registration-form,
.page-register__why-join,
.page-register__game-highlights,
.page-register__faq-section,
.page-register__cta-final {
  padding: 80px 20px;
}

.page-register__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-register__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-register__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-register__light-bg .page-register__section-title {
  color: #26A9E0;
}

.page-register__dark-bg .page-register__section-title {
  color: #ffffff;
}

.page-register__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
}

.page-register__light-bg .page-register__section-description {
  color: #555555;
}

.page-register__dark-bg .page-register__section-description {
  color: #e0e0e0;
}

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

.page-register__step-item {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__step-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

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

.page-register__step-title {
  font-size: 1.5em;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-register__step-text {
  font-size: 1em;
  line-height: 1.6;
  color: #666666;
}

.page-register__form-action {
  text-align: center;
}

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

.page-register__benefit-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-register__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

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

.page-register__card-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-register__card-text {
  font-size: 0.95em;
  line-height: 1.6;
  color: #666666;
  margin-bottom: 20px;
}

.page-register__card-link {
  color: #EA7C07;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.page-register__card-link:hover {
  color: #d16b06;
  text-decoration: underline;
}

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

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: 600;
  color: #26A9E0;
  background-color: #eaf6ff;
  border-bottom: 1px solid #d0e8ff;
  list-style: none; /* For <details> summary */
}

.page-register__faq-question::-webkit-details-marker {
  display: none; /* For <details> summary */
}

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

.page-register__faq-toggle {
  font-size: 1.5em;
  font-weight: 500;
  margin-left: 15px;
}

.page-register__faq-answer {
  padding: 15px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  background-color: #ffffff;
}

.page-register__cta-final {
  background-color: #26A9E0;
  color: #ffffff;
  text-align: center;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-register__cta-final .page-register__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-register__cta-content {
  flex: 1;
}

.page-register__cta-final .page-register__section-title {
  color: #ffffff;
  text-align: left;
}

.page-register__cta-final .page-register__section-description {
  color: #e0e0e0;
  text-align: left;
  margin-left: 0;
}

.page-register__cta-image-wrapper {
  flex: 1;
  max-width: 50%;
}

.page-register__cta-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 2.5em;
  }
  .page-register__section-title {
    font-size: 2em;
  }
  .page-register__form-steps,
  .page-register__benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-register__cta-final .page-register__container {
    flex-direction: column;
    text-align: center;
  }
  .page-register__cta-final .page-register__section-title,
  .page-register__cta-final .page-register__section-description {
    text-align: center;
  }
  .page-register__cta-image-wrapper {
    max-width: 80%;
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .page-register__hero-section,
  .page-register__registration-form,
  .page-register__why-join,
  .page-register__faq-section,
  .page-register__cta-final {
    padding: 40px 15px;
  }

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

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

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

  .page-register__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

  .page-register__hero-image-wrapper,
  .page-register__cta-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Buttons responsive */
  .page-register__btn-primary,
  .page-register__hero-cta,
  .page-register__cta-button,
  .page-register__card-link {
    max-width: 100% !important;
    width: 100% !important; /* Ensure full width on mobile */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    text-align: center;
  }

  .page-register__form-action {
    display: flex;
    justify-content: center;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .page-register__container {
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-register__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}

@media (max-width: 480px) {
  .page-register__hero-title {
    font-size: 1.8em;
  }
  .page-register__section-title {
    font-size: 1.5em;
  }
  .page-register__btn-primary {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-register__form-steps,
  .page-register__benefits-grid {
    grid-template-columns: 1fr;
  }
  .page-register__step-item,
  .page-register__benefit-card {
    padding: 20px;
  }
}