/* style/register.css */

/* Base Styles */
.page-register {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--dark-bg); /* Inherit 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;
  margin-bottom: 20px;
  text-align: center;
  color: inherit; /* Inherit from section, or specific for light/dark */
}

.page-register__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

.page-register__link {
  color: #017439;
  text-decoration: underline;
}

.page-register__link:hover {
  text-decoration: none;
}

/* Hero Section */
.page-register__hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: left;
  background-size: cover;
  background-position: center;
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
}

.page-register__hero-section .page-register__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-register__hero-content {
  flex: 1;
  min-width: 300px;
}

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

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

.page-register__cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-register__btn-primary,
.page-register__btn-secondary,
.page-register__submit-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn-primary,
.page-register__submit-button {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #ffffff; /* White text for contrast */
  border: 2px solid #C30808;
}

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

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

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

.page-register__hero-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

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

/* Form Section */
.page-register__form-section {
  padding: 60px 20px;
  background-color: #ffffff;
  color: #333333;
}

.page-register__registration-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.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;
}

.page-register__captcha-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
}

.page-register__captcha-input {
  flex: 1;
}

.page-register__captcha-image {
  border-radius: 4px;
  border: 1px solid #ccc;
  max-width: 150px; /* Ensure captcha image size */
  height: 50px;
}

.page-register__terms-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.page-register__checkbox {
  margin-top: 5px;
}

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

.page-register__checkbox-label .page-register__link {
  color: #017439;
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 60px 20px;
  text-align: center;
  background-color: var(--dark-bg);
  color: #ffffff;
}

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

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

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

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

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

/* Game Showcase Section */
.page-register__game-showcase-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #f5f5f5;
  color: #333333;
}

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

.page-register__game-card {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
}

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

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

.page-register__game-title a {
  color: #017439;
  text-decoration: none;
}

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

.page-register__game-text {
  font-size: 0.95em;
  color: #555;
}

/* Video Section */
.page-register__video-section {
  padding: 60px 20px;
  text-align: center;
  background-color: var(--dark-bg);
  color: #ffffff;
}

.page-register__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  margin: 0 auto;
}

.page-register__video-wrapper a {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page-register__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 60px 20px;
  background-color: #ffffff;
  color: #333333;
}

.page-register__faq-list {
  max-width: 800px;
  margin: 0 auto;
  margin-top: 40px;
}

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

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

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

.page-register__faq-title {
  font-size: 1.2em;
  margin: 0;
  flex-grow: 1;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  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: #555;
}

.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;
  padding-bottom: 10px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-register__main-title {
    font-size: 3em;
  }
  .page-register__hero-section .page-register__container {
    flex-direction: column;
    text-align: center;
  }
  .page-register__hero-image-wrapper {
    order: -1; /* Image above text on smaller screens */
    margin-bottom: 30px;
  }
  .page-register__cta-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure space below fixed header on mobile */
  }
  .page-register__container {
    padding: 0 15px;
  }
  .page-register__main-title {
    font-size: 2.2em;
  }
  .page-register__hero-description,
  .page-register__section-description {
    font-size: 1em;
  }
  .page-register__section-title {
    font-size: 2em;
  }

  /* Image Responsive */
  .page-register img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-register__hero-image-wrapper,
  .page-register__captcha-wrapper,
  .page-register__benefits-grid,
  .page-register__game-grid,
  .page-register__video-wrapper,
  .page-register__form-section,
  .page-register__benefits-section,
  .page-register__game-showcase-section,
  .page-register__video-section,
  .page-register__faq-section,
  .page-register__cta-final-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-register__registration-form {
    padding: 20px;
  }
  .page-register__captcha-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
  .page-register__captcha-input {
    width: 100%;
  }
  .page-register__captcha-image {
    width: 100%;
    max-width: 150px;
    margin: 0 auto;
  }

  /* Button Responsive */
  .page-register__cta-buttons,
  .page-register__button-group,
  .page-register__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register__submit-button,
  .page-register a[class*="button"],
  .page-register a[class*="btn"] {
    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;
  }

  /* FAQ Responsive */
  .page-register__faq-question {
    padding: 15px 20px;
  }
  .page-register__faq-answer {
    padding: 0 20px;
  }
  .page-register__faq-item.active .page-register__faq-answer {
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .page-register__main-title {
    font-size: 1.8em;
  }
  .page-register__section-title {
    font-size: 1.8em;
  }
  .page-register__hero-section,
  .page-register__form-section,
  .page-register__benefits-section,
  .page-register__game-showcase-section,
  .page-register__video-section,
  .page-register__faq-section,
  .page-register__cta-final-section {
    padding: 40px 10px;
  }
  .page-register__container {
    padding: 0 10px;
  }
  .page-register__registration-form {
    padding: 15px;
  }
}