/* style/register.css */

/* Custom Colors */
:root {
  --page-register-primary-color: #11A84E;
  --page-register-secondary-color: #22C768;
  --page-register-background-color: #08160F;
  --page-register-card-bg: #11271B;
  --page-register-text-main: #F2FFF6;
  --page-register-text-secondary: #A7D9B8;
  --page-register-border-color: #2E7A4E;
  --page-register-glow-color: #57E38D;
  --page-register-gold-color: #F2C14E;
  --page-register-divider-color: #1E3A2A;
  --page-register-deep-green-color: #0A4B2C;
  --page-register-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* Base styles for the page content */
.page-register {
  font-family: 'Arial', sans-serif;
  color: var(--page-register-text-main); /* Default text color for dark background */
  background-color: var(--page-register-background-color);
  line-height: 1.6;
}

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

.page-register__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--page-register-text-main);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-register__section-intro {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--page-register-text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-register__card-title {
  font-size: clamp(20px, 2.5vw, 24px);
  color: var(--page-register-text-main);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-register__card-text {
  font-size: clamp(15px, 1.8vw, 16px);
  color: var(--page-register-text-secondary);
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px;
  padding: 10px 20px 60px;
  overflow: hidden;
  box-sizing: border-box;
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  position: relative;
  margin-bottom: 20px; /* Space between image and content */
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.page-register__hero-content {
  max-width: 900px;
  z-index: 1;
  background: var(--page-register-card-bg); /* Dark background for readability */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  margin-top: -80px; /* Overlap with image slightly for visual appeal */
  position: relative;
}

.page-register__main-title {
  font-size: clamp(32px, 5vw, 56px);
  color: var(--page-register-gold-color);
  margin-bottom: 15px;
  line-height: 1.1;
  font-weight: 700;
}

.page-register__hero-description {
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--page-register-text-main);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Primary Button */
.page-register__btn-primary {
  display: inline-block;
  background: var(--page-register-btn-gradient);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

/* Secondary Button */
.page-register__btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--page-register-primary-color);
  border: 2px solid var(--page-register-primary-color);
  padding: 13px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

/* Dark section styling */
.page-register__dark-section {
  background-color: var(--page-register-card-bg);
  padding: 60px 0;
}

/* Why Join Section */
.page-register__why-join-section {
  padding: 60px 0;
}

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

.page-register__feature-card {
  background-color: var(--page-register-deep-green-color);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-register-border-color);
}

/* How to Register Section */
.page-register__how-to-register-section {
  padding: 60px 0;
  background-color: var(--page-register-background-color);
}

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

.page-register__step-card {
  background-color: var(--page-register-card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-register-border-color);
  position: relative;
}

.page-register__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--page-register-btn-gradient);
  color: #ffffff;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-register__registration-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 60px auto;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-register__important-notes {
  background-color: var(--page-register-deep-green-color);
  padding: 30px;
  border-radius: 10px;
  margin-top: 40px;
  border: 1px solid var(--page-register-border-color);
}

.page-register__notes-title {
  font-size: 22px;
  color: var(--page-register-gold-color);
  margin-bottom: 15px;
  text-align: center;
}

.page-register__important-notes ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.page-register__important-notes li {
  color: var(--page-register-text-secondary);
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  font-size: 16px;
}

.page-register__important-notes li::before {
  content: '✔';
  color: var(--page-register-secondary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Promotions Section */
.page-register__promotions-section {
  padding: 60px 0;
}

.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: var(--page-register-deep-green-color);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-register-border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-register__promo-card .page-register__card-title {
  margin-top: 0;
}

.page-register__promo-card .page-register__btn-secondary {
  margin-top: 20px;
}

.page-register__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 60px;
  flex-wrap: wrap;
}

/* Security Section */
.page-register__security-section {
  padding: 60px 0;
  background-color: var(--page-register-background-color);
}

.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: var(--page-register-card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-register-border-color);
}

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

.page-register__security-footer-text {
  text-align: center;
  color: var(--page-register-text-secondary);
  margin-top: 40px;
  font-size: 17px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 60px 0;
}

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

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: var(--page-register-text-main);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.page-register__faq-question::-webkit-details-marker {
  display: none;
}

.page-register__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--page-register-secondary-color);
  transition: transform 0.3s ease;
}

.page-register__faq-item[open] .page-register__faq-toggle {
  transform: rotate(45deg);
}

.page-register__faq-answer {
  padding: 0 25px 20px;
  font-size: 16px;
  color: var(--page-register-text-secondary);
  line-height: 1.6;
}

/* Final CTA Section */
.page-register__final-cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--page-register-background-color);
}

.page-register__final-cta-section .page-register__section-title {
  color: var(--page-register-gold-color);
}

.page-register__final-cta-section .page-register__section-intro {
  margin-bottom: 50px;
}

.page-register__btn-large {
  padding: 18px 40px;
  font-size: 20px;
}

.page-register__mobile-gaming-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 60px auto 0;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-register__hero-content {
    margin-top: -60px;
  }
}

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

  .page-register__hero-section {
    padding: 10px 15px 40px;
    min-height: auto;
  }

  .page-register__hero-content {
    padding: 20px;
    margin-top: -40px;
  }

  .page-register__main-title {
    font-size: 32px;
  }

  .page-register__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .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-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;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  .page-register__cta-buttons a {
    margin-bottom: 10px;
  }

  .page-register__section-title {
    font-size: 28px;
  }

  .page-register__section-intro {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-register__features-grid,
  .page-register__steps-wrapper,
  .page-register__promo-grid,
  .page-register__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-register__why-join-section,
  .page-register__how-to-register-section,
  .page-register__promotions-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__final-cta-section {
    padding: 40px 0;
  }

  .page-register__important-notes ul {
    text-align: left;
  }

  .page-register__important-notes li {
    padding-left: 0;
  }

  .page-register__important-notes li::before {
    left: -25px;
  }

  /* Image responsive */
  .page-register img {
    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-image-wrapper,
  .page-register__registration-image,
  .page-register__promo-image,
  .page-register__security-icon,
  .page-register__mobile-gaming-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-register__video-section {
    padding-top: 10px !important;
  }
}