/* style/register.css */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--background-color, #121212); /* Inherit from shared */
}

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

.page-register__hero-section {
  padding: 120px 0 80px 0;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  background: linear-gradient(135deg, #017439, #004d2e);
  color: #ffffff;
  text-align: left;
  position: relative;
  overflow: hidden;
}

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

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

.page-register__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFF00;
}

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

.page-register__form {
  background: rgba(0, 0, 0, 0.5);
  padding: 30px;
  border-radius: 10px;
  max-width: 450px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

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

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

.page-register__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #017439;
  border-radius: 5px;
  background-color: #1a1a1a;
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-register__captcha-group {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 15px;
}

.page-register__captcha-input {
  flex: 1;
  min-width: 150px;
}

.page-register__captcha-image {
  border-radius: 5px;
  border: 1px solid #017439;
  width: 120px; /* Adjust for better fit */
  height: 45px; /* Adjust for better fit */
  display: block;
}

.page-register__form-checkbox {
  margin-bottom: 25px;
  text-align: left;
  display: flex;
  align-items: center;
}

.page-register__checkbox {
  margin-right: 10px;
  min-width: 18px;
  min-height: 18px;
}

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

.page-register__text-link {
  color: #FFFF00;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

.page-register__btn-primary,
.page-register__btn-secondary,
.page-register__btn-tertiary,
.page-register__btn-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
}

.page-register__btn-primary {
  background-color: #017439; /* Brand green */
  color: #FFFF00; /* Yellow for contrast */
  border: 2px solid #017439;
}

.page-register__btn-primary:hover {
  background-color: #005f3a;
  border-color: #005f3a;
}

.page-register__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Yellow for contrast */
  border: 2px solid #FFFF00;
}

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

.page-register__btn-tertiary {
  background-color: #C30808; /* Red for specific actions */
  color: #FFFFFF; /* White for contrast */
  border: 2px solid #C30808;
}

.page-register__btn-tertiary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-register__btn-link {
  background-color: transparent;
  color: #017439;
  border: 2px solid transparent;
  text-decoration: underline;
  padding: 8px 15px;
}

.page-register__btn-link:hover {
  color: #004d2e;
}

.page-register__btn-large {
  min-width: 200px;
  padding: 15px 30px;
  font-size: 1.1em;
}

.page-register__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #FFFF00; /* Yellow for titles on dark background */
}

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

.page-register__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
}

.page-register__light-bg .page-register__section-title,
.page-register__light-bg .page-register__benefit-title,
.page-register__light-bg .page-register__category-title,
.page-register__light-bg .page-register__section-description {
  color: #017439; /* Brand green for titles/descriptions on light background */
}

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

.page-register__dark-bg .page-register__section-title,
.page-register__dark-bg .page-register__step-title,
.page-register__dark-bg .page-register__feature-title,
.page-register__dark-bg .page-register__promo-title,
.page-register__dark-bg .page-register__faq-heading,
.page-register__dark-bg .page-register__section-description {
  color: #FFFF00; /* Yellow for titles/descriptions on dark background */
}

/* Benefits Grid */
.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: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  color: #333333;
}

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

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

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

/* Steps Grid */
.page-register__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-register__step-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-register__step-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Security Features */
.page-register__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-register__feature-item {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  color: #333333;
}

.page-register__feature-icon {
  width: 100%;
  max-width: 120px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-register__feature-text {
  font-size: 0.95em;
  color: #555555;
}

/* Promotions Grid */
.page-register__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-register__promo-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f0f0f0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-register__promo-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

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

.page-register__promo-text {
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-register__category-card {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  color: #333333;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-register__category-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

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

.page-register__category-text {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* FAQ Section */
.page-register__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-register__faq-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

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

.page-register__faq-question:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

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

.page-register__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(0deg);
}

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
  background-color: rgba(0, 0, 0, 0.2);
}

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

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

/* CTA Final Section */
.page-register__cta-final {
  background: linear-gradient(135deg, #017439, #004d2e);
  color: #ffffff;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.page-register__cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

.page-register__cta-final .page-register__section-title {
  color: #FFFF00;
}

.page-register__cta-final .page-register__section-description {
  color: #f0f0f0;
}

.page-register__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  z-index: 1;
}

.page-register__cta-center {
  margin-top: 40px;
  text-align: center;
}

/* General image styling */
.page-register img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-register {
    font-size: 15px;
    line-height: 1.5;
  }

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

  .page-register__hero-section .page-register__container {
    flex-direction: column;
  }

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

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

  .page-register__form {
    width: 100%;
    max-width: none;
    margin-left: 0;
  }

  .page-register__hero-image-wrapper {
    order: -1; /* Image above form on mobile */
    margin-bottom: 30px;
  }

  .page-register__section {
    padding: 60px 0;
  }

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

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

  .page-register__benefits-grid,
  .page-register__steps-grid,
  .page-register__security-features,
  .page-register__promotions-grid,
  .page-register__game-categories {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-register__captcha-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-register__captcha-input {
    width: 100%;
    min-width: unset;
  }

  .page-register__captcha-image {
    width: 100%;
    max-width: 200px;
    height: auto;
  }

  .page-register__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register__btn-tertiary,
  .page-register__btn-link {
    width: 100%;
    max-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-wrap: wrap !important;
    gap: 10px;
  }

  /* Image and Video responsiveness */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

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

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