/* style/register.css */

/* Base styles for the register page */
.page-register {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #FFFFFF; /* Default body background is white */
}

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

.page-register__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Hero Section */
.page-register__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 600px;
  padding: 60px 20px;
  box-sizing: border-box;
  background: linear-gradient(135deg, #017439, #00562c);
  color: #ffffff;
}

.page-register__hero-content {
  z-index: 1;
  max-width: 900px;
  margin-bottom: 30px;
}

.page-register__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFF00; /* Custom color for register/login font */
}

.page-register__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.5;
  color: #f0f0f0;
}

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

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

.page-register__btn-primary {
  background-color: #C30808; /* Custom color for register */
  color: #FFFF00; /* Custom color for register/login font */
  border: 2px solid #C30808;
}

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

.page-register__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Custom color for register/login font */
  border: 2px solid #FFFF00;
}

.page-register__btn-secondary:hover {
  background-color: #FFFF00;
  color: #C30808; /* Custom color for register */
}

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

.page-register__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Why Register Section */
.page-register__why-register {
  padding: 80px 0;
  background-color: #FFFFFF;
  color: #333333;
}

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

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

.page-register__feature-item:hover {
  transform: translateY(-10px);
}

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

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

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

/* Registration Steps Section */
.page-register__steps-section {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
}

.page-register__steps-section .page-register__section-title {
  color: #FFFF00;
}

.page-register__steps-section .page-register__section-description {
  color: #f0f0f0;
}

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

.page-register__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  box-sizing: border-box;
}

.page-register__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #FFFF00; /* Custom color for register/login font */
  background-color: #C30808; /* Custom color for register */
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 3px solid #FFFF00;
}

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

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

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

.page-register__cta-text {
  font-size: 1.5em;
  color: #FFFF00;
  margin-bottom: 25px;
  font-weight: bold;
}

/* Account Verification Section */
.page-register__verification-section {
  padding: 80px 0;
  background-color: #FFFFFF;
  color: #333333;
}

.page-register__verification-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-register__verification-text {
  flex: 1;
}

.page-register__verification-subtitle {
  font-size: 1.8em;
  color: #017439;
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__verification-list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
  font-size: 1em;
  color: #555555;
}

.page-register__verification-list li {
  margin-bottom: 10px;
}

.page-register__verification-image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-register__verification-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  display: block;
}

/* Promotions Section */
.page-register__promotions-section {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
}

.page-register__promotions-section .page-register__section-title {
  color: #FFFF00;
}

.page-register__promotions-section .page-register__section-description {
  color: #f0f0f0;
}

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

.page-register__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
}

.page-register__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
  display: block;
}

.page-register__promo-title {
  font-size: 1.6em;
  color: #ffffff;
  margin-bottom: 15px;
  padding: 0 20px;
  font-weight: bold;
}

.page-register__promo-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 25px;
  flex-grow: 1;
  padding: 0 20px;
}

.page-register__promo-card .page-register__btn-secondary {
  border-color: #ffffff;
  color: #ffffff;
  background-color: transparent;
  margin: 0 auto;
}

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

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

/* Games Section */
.page-register__games-section {
  padding: 80px 0;
  background-color: #FFFFFF;
  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: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  height: 100%;
  box-sizing: border-box;
}

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

.page-register__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
  display: block;
}

.page-register__game-title {
  font-size: 1.6em;
  color: #017439;
  margin-bottom: 10px;
  padding: 0 20px;
  font-weight: bold;
}

.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: 1em;
  color: #555555;
  padding: 0 20px;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
}

.page-register__faq-section .page-register__section-title {
  color: #FFFF00;
}

.page-register__faq-section .page-register__section-description {
  color: #f0f0f0;
}

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

.page-register__faq-item {
  background-color: 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: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

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

.page-register__faq-title {
  font-size: 1.2em;
  color: #ffffff;
  margin: 0;
  font-weight: bold;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  color: #FFFF00;
  font-weight: bold;
  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 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

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

.page-register__faq-answer p {
  margin: 0;
  font-size: 1em;
}

/* Final CTA Section */
.page-register__cta-final {
  padding: 80px 0;
  text-align: center;
  background-color: #FFFFFF;
  color: #333333;
}

.page-register__cta-final .page-register__section-title {
  color: #C30808; /* Custom color for register */
}

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

.page-register__btn-large {
  padding: 18px 40px;
  font-size: 1.2em;
  margin-top: 30px;
}

/* Dark/Light Background text color handling */
.page-register__dark-bg {
  color: #ffffff; /* Dark background with light text */
}

.page-register__light-bg {
  color: #333333; /* Light background with dark text */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 3em;
  }
  .page-register__hero-description {
    font-size: 1.1em;
  }
  .page-register__section-title {
    font-size: 2em;
  }
  .page-register__verification-content {
    flex-direction: column;
  }
  .page-register__verification-image-wrapper {
    order: -1; /* Image above text on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    min-height: 500px;
    padding: 40px 15px;
  }
  .page-register__hero-title {
    font-size: 2.2em;
  }
  .page-register__hero-description {
    font-size: 1em;
  }
  .page-register__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-register__btn-primary, .page-register__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-register__section-title {
    font-size: 1.8em;
  }
  .page-register__section-description {
    font-size: 0.95em;
  }
  .page-register__features-grid,
  .page-register__steps-grid,
  .page-register__promo-grid,
  .page-register__game-grid {
    grid-template-columns: 1fr;
  }
  .page-register__feature-item, .page-register__step-item, .page-register__promo-card, .page-register__game-card {
    padding: 25px;
  }
  .page-register__feature-title, .page-register__step-title, .page-register__promo-title, .page-register__game-title {
    font-size: 1.3em;
  }
  .page-register__verification-subtitle {
    font-size: 1.5em;
  }
  .page-register__faq-question {
    padding: 15px 20px;
  }
  .page-register__faq-title {
    font-size: 1.1em;
  }
  .page-register__faq-answer {
    padding: 0 20px;
  }
  .page-register__faq-item.active .page-register__faq-answer {
    padding: 10px 20px;
  }
  .page-register__btn-large {
    font-size: 1.1em;
    padding: 15px 30px;
  }

  /* Mobile specific overrides for images, videos, buttons */
  .page-register img {
    max-width: 100% !important;
    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__hero-section,
  .page-register__why-register,
  .page-register__steps-section,
  .page-register__verification-section,
  .page-register__promotions-section,
  .page-register__games-section,
  .page-register__faq-section,
  .page-register__cta-final,
  .page-register__video-section,
  .page-register__video-container,
  .page-register__video-wrapper,
  .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;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  
  .page-register__hero-buttons,
  .page-register__cta-promotions,
  .page-register__cta-bottom {
    flex-direction: column !important;
    gap: 15px !important;
    width: 100% !important;
  }
  
  .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;
  }
}

@media (max-width: 480px) {
  .page-register__hero-title {
    font-size: 1.8em;
  }
  .page-register__section-title {
    font-size: 1.5em;
  }
  .page-register__step-number {
    width: 60px;
    height: 60px;
    font-size: 2em;
  }
  .page-register__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
  }
}