/* style/register.css */

:root {
  --page-register-primary-color: #017439;
  --page-register-secondary-color: #FFFFFF;
  --page-register-register-button-bg: #C30808;
  --page-register-register-button-text: #FFFF00;
  --page-register-login-button-bg: #C30808;
  --page-register-login-button-text: #FFFF00;
  --page-register-background-color: #FFFFFF;
  --page-register-text-dark: #333333;
  --page-register-text-light: #FFFFFF;
  --page-register-border-color: #e0e0e0;
}

.page-register {
  font-family: 'Arial', sans-serif;
  color: var(--page-register-text-dark); /* Default text color for light background */
  background-color: var(--page-register-background-color);
}

.page-register__dark-section {
  background-color: var(--page-register-primary-color);
  color: var(--page-register-text-light);
}

.page-register__light-bg {
  background-color: var(--page-register-background-color);
  color: var(--page-register-text-dark);
}

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

.page-register__section {
  padding: 40px 0;
  margin-bottom: 20px;
}

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

.page-register__main-title,
.page-register__section-title {
  font-size: 2.8em;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: inherit; /* Inherit from section for contrast */
}

.page-register__section-description,
.page-register__hero-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

/* Hero Section */
.page-register__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
}

.page-register__hero-content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-register__hero-text-block {
  flex: 1;
}

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

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

.page-register__hero-cta-buttons,
.page-register__cta-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  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;
  word-wrap: break-word;
  max-width: 100%;
}

.page-register__btn-primary {
  background-color: var(--page-register-register-button-bg);
  color: var(--page-register-register-button-text);
  border: 2px solid var(--page-register-register-button-bg);
}

.page-register__btn-primary:hover {
  background-color: darken(var(--page-register-register-button-bg), 10%);
  border-color: darken(var(--page-register-register-button-bg), 10%);
}

.page-register__btn-secondary {
  background-color: var(--page-register-secondary-color);
  color: var(--page-register-primary-color);
  border: 2px solid var(--page-register-primary-color);
}

.page-register__btn-secondary:hover {
  background-color: var(--page-register-primary-color);
  color: var(--page-register-secondary-color);
}

/* How-to-Register Section */
.page-register__how-to-register {
  text-align: center;
}

.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-color: var(--page-register-secondary-color);
  border: 1px solid var(--page-register-border-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-register__step-card:hover {
  transform: translateY(-5px);
}

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

.page-register__step-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--page-register-primary-color);
}

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

/* Benefits Section */
.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.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.page-register__benefit-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--page-register-login-button-text); /* Use yellow for highlight */
}

.page-register__benefit-text {
  font-size: 0.95em;
  line-height: 1.6;
  color: var(--page-register-text-light);
}

/* Why Choose Us Section */
.page-register__why-choose-us {
  text-align: center;
}

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

.page-register__feature-item {
  background-color: var(--page-register-secondary-color);
  border: 1px solid var(--page-register-border-color);
  border-radius: 10px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-register__feature-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--page-register-primary-color);
}

.page-register__feature-text {
  font-size: 0.95em;
  line-height: 1.6;
}

/* Security Commitment Section */
.page-register__security-commitment {
  text-align: center;
}

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

.page-register__security-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-register__security-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-register__security-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--page-register-login-button-text);
}

.page-register__security-text {
  font-size: 0.95em;
  line-height: 1.6;
  color: var(--page-register-text-light);
}

/* FAQ Section */
.page-register__faq-section {
  text-align: center;
}

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

.page-register__faq-item {
  background-color: var(--page-register-secondary-color);
  border: 1px solid var(--page-register-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--page-register-primary-color);
  cursor: pointer;
  background-color: var(--page-register-secondary-color);
  user-select: none;
  list-style: none; /* For details tag */
}

.page-register__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for details tag */
}

.page-register__faq-qtext {
  flex-grow: 1;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-register-primary-color);
}

.page-register__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: var(--page-register-text-dark);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-register__faq-item[open] .page-register__faq-answer {
  max-height: 500px; /* Sufficiently large to show content */
  padding-top: 10px;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 500px !important;
  padding-top: 10px;
}

.page-register__faq-item.active .page-register__faq-toggle {
  content: '−';
}

/* Final CTA Section */
.page-register__final-cta-section {
  padding-top: 50px;
  padding-bottom: 50px;
}

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

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

  .page-register__hero-text-block,
  .page-register__hero-image-block {
    flex: none;
    width: 100%;
  }

  .page-register__hero-image {
    max-width: 80%;
  }

  .page-register__hero-cta-buttons,
  .page-register__cta-buttons {
    justify-content: center;
  }

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

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

  .page-register__steps-grid,
  .page-register__benefits-grid,
  .page-register__feature-grid,
  .page-register__security-features {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-register__container {
    padding: 15px;
  }

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

  /* Hero Section */
  .page-register__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-register__hero-image {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    max-height: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .page-register__main-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-register__section-title {
    font-size: 1.6em;
    margin-bottom: 15px;
  }

  .page-register__hero-description,
  .page-register__section-description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  /* General Images and Containers */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-register__section,
  .page-register__step-card,
  .page-register__benefit-card,
  .page-register__feature-item,
  .page-register__security-item,
  .page-register__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons and Button Containers */
  .page-register__btn-primary,
  .page-register__btn-secondary,
  .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: 12px 20px;
    font-size: 1em;
  }

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

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

  .page-register__faq-toggle {
    font-size: 1.2em;
  }

  .page-register__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.9em;
  }

  /* No game grid, winner list, blog list on this page, so no specific mobile styles for them. */
}

/* Darken function for hover effects (manual) */
.page-register__btn-primary:hover {
  background-color: #a00606; /* Slightly darker red */
  border-color: #a00606;
}

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