/* style/register.css */

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

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

.page-register__main-title,
.page-register__section-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
  color: #ffffff; /* Light text for dark sections */
}

.page-register__hero-description,
.page-register__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-register__hero-section,
.page-register__benefits-section,
.page-register__games-preview,
.page-register__cta-section {
  background-color: #1a1a1a; /* Dark background */
  color: #ffffff;
  padding: 80px 0;
}

.page-register__form-section,
.page-register__how-to-section,
.page-register__faq-section {
  background-color: #ffffff; /* Light background */
  color: #333333;
  padding: 80px 0;
}

.page-register__form-section .page-register__section-title,
.page-register__form-section .page-register__section-description,
.page-register__how-to-section .page-register__section-title,
.page-register__how-to-section .page-register__section-description,
.page-register__faq-section .page-register__section-title,
.page-register__faq-section .page-register__section-description {
  color: #333333; /* Dark text for light sections */
}

.page-register__btn-primary,
.page-register__btn-secondary,
.page-register__btn-submit {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-register__btn-primary {
  background-color: #C30808; /* Red for primary action */
  color: #FFFF00; /* Yellow text for primary button */
  border: 2px solid #C30808;
}

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

.page-register__btn-secondary {
  background-color: transparent;
  color: #017439; /* Brand green for secondary button text */
  border: 2px solid #017439;
}

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

.page-register__btn-submit {
  background-color: #C30808; /* Red for submit button */
  color: #FFFF00; /* Yellow text for submit button */
  border: none;
  width: 100%;
  padding: 18px 30px;
  font-size: 1.1em;
}

.page-register__btn-submit:hover {
  background-color: #9c0606;
}

.page-register__text-link {
  color: #017439; /* Brand green for text links */
  text-decoration: none;
  font-weight: bold;
}

.page-register__text-link:hover {
  text-decoration: underline;
}

/* Hero Section */
.page-register__hero-section {
  padding-top: var(--header-offset, 120px);
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:bg_hero:1920x1080:jun88_v2,register_background,dynamic_lines]');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-register__hero-section .page-register__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.page-register__hero-content {
  flex: 1;
  max-width: 600px;
  text-align: left;
}

.page-register__hero-content .page-register__main-title {
  text-align: left;
  font-size: 3.5em;
  line-height: 1.2;
}

.page-register__hero-content .page-register__hero-description {
  text-align: left;
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-register__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-register__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-register__hero-content .page-register__btn-primary,
.page-register__hero-content .page-register__btn-secondary {
  margin-right: 15px;
  min-width: 180px;
}

/* Registration Form Section */
.page-register__registration-form {
  background-color: #f8f8f8; /* Light background for the form itself */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  margin: 40px auto 20px auto;
  color: #333333; /* Dark text for form labels */
}

.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 #ddd;
  border-radius: 6px;
  font-size: 1em;
  box-sizing: border-box;
  background-color: #ffffff;
  color: #333333;
}

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

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

.page-register__checkbox-group input {
  margin-right: 10px;
}

.page-register__checkbox-label {
  font-size: 0.95em;
  color: #333333;
}

.page-register__login-prompt {
  text-align: center;
  margin-top: 20px;
  font-size: 1em;
  color: #333333;
}

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

.page-register__benefit-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter dark background */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

.page-register__benefit-icon {
  width: 100%;
  height: auto;
  max-width: 200px;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

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

/* How-to Section */
.page-register__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-register__step-card {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  color: #333333;
}

.page-register__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #017439; /* Brand green */
  margin-bottom: 15px;
}

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

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

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

.page-register__game-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-register__game-title {
  font-size: 1.4em;
  padding: 15px;
  margin: 0;
  color: #FFFFFF;
}

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

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

.page-register__faq-item {
  background-color: #f8f8f8;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #333333;
  background-color: #f0f0f0;
  transition: background-color 0.3s ease;
}

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

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

.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: #555555;
}

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

.page-register__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
  color: #555555;
}

/* CTA Section */
.page-register__cta-section {
  text-align: center;
  padding: 100px 0;
  background-image: linear-gradient(rgba(1, 116, 57, 0.8), rgba(1, 116, 57, 0.8)), url('[GALLERY:bg_cta:1920x1080:jun88_v2,cta_background,winning_celebration]');
  background-size: cover;
  background-position: center;
}

.page-register__cta-section .page-register__section-title {
  font-size: 3em;
  margin-bottom: 25px;
}

.page-register__cta-section .page-register__section-description {
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1.2em;
}

.page-register__btn-large {
  padding: 20px 40px;
  font-size: 1.3em;
  border-radius: 10px;
}

/* Global CTA buttons in sections */
.page-register__cta-buttons {
  text-align: center;
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-section .page-register__container {
    flex-direction: column;
    text-align: center;
  }

  .page-register__hero-content {
    text-align: center;
    max-width: 100%;
  }

  .page-register__hero-content .page-register__main-title {
    text-align: center;
    font-size: 3em;
  }

  .page-register__hero-content .page-register__hero-description {
    text-align: center;
  }

  .page-register__hero-image-wrapper {
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .page-register__main-title,
  .page-register__section-title {
    font-size: 2em;
  }

  .page-register__hero-content .page-register__main-title {
    font-size: 2.5em;
  }

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

  .page-register__hero-section,
  .page-register__form-section,
  .page-register__benefits-section,
  .page-register__how-to-section,
  .page-register__games-preview,
  .page-register__faq-section,
  .page-register__cta-section {
    padding: 60px 0;
  }

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

  /* Images, Videos, Buttons Responsive */
  .page-register img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-register video,
  .page-register__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__video-section,
  .page-register__video-container,
  .page-register__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-register__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-register__cta-button,
  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register a[class*="button"],
  .page-register a[class*="btn"],
  .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-left: 15px;
    padding-right: 15px;
  }

  .page-register__cta-buttons,
  .page-register__button-group,
  .page-register__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important;
    gap: 15px !important;
  }

  .page-register__registration-form {
    padding: 30px 20px;
  }

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

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

  .page-register__faq-item.active .page-register__faq-answer {
    padding: 15px 20px;
  }
  
  .page-register__hero-content .page-register__btn-primary,
  .page-register__hero-content .page-register__btn-secondary {
    margin-right: 0;
    margin-bottom: 15px;
  }
}

@media (max-width: 480px) {
  .page-register__hero-content .page-register__main-title {
    font-size: 2em;
  }

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

  .page-register__btn-large {
    font-size: 1.1em;
    padding: 15px 25px;
  }
}