/* style/register.css */

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

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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px 60px 20px; /* Small top padding, more bottom padding */
  background-color: var(--color-deep-green);
  overflow: hidden;
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 1200px; /* Adjust based on typical display width */
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.page-register__hero-content {
  max-width: 900px;
  text-align: center;
  margin-top: 40px;
  padding: 0 20px;
  color: var(--color-text-main);
  z-index: 1;
}

.page-register__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--color-gold);
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.6);
}

.page-register__subtitle {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: var(--color-text-secondary);
}

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

.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.page-register__btn-primary {
  background: var(--color-button-gradient);
  color: var(--color-text-main);
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-register__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  filter: brightness(1.1);
}

.page-register__btn-secondary {
  background: transparent;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-register__btn-secondary:hover {
  transform: translateY(-3px);
  background: rgba(242, 193, 78, 0.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-register__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-register__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 25px;
  color: var(--color-gold);
  text-shadow: 0 0 5px rgba(242, 193, 78, 0.4);
}

.page-register__section-description {
  font-size: 1.05rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: var(--color-text-secondary);
}

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

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

.page-register__benefit-card {
  background-color: var(--color-card-bg);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-divider);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-register__benefit-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(242, 193, 78, 0.5));
}

.page-register__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--color-text-main);
}

.page-register__card-text {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

/* Guide Section */
.page-register__guide-section {
  background-color: var(--color-deep-green);
  padding: 80px 0;
}

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

.page-register__step-card {
  background-color: var(--color-card-bg);
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-divider);
  text-align: center;
}

.page-register__step-number {
  width: 60px;
  height: 60px;
  background: var(--color-button-gradient);
  color: var(--color-text-main);
  font-size: 2rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px auto;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.page-register__step-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

.page-register__cta-buttons--center {
  margin-top: 50px;
}

/* Verification Section */
.page-register__verification-section {
  background-color: var(--color-background);
  padding: 80px 0;
}

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

.page-register__verification-image {
  flex: 1 1 45%;
  min-width: 300px;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

.page-register__verification-text {
  flex: 1 1 45%;
  min-width: 300px;
  color: var(--color-text-secondary);
}

.page-register__verification-text p {
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.page-register__verification-text ul {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
}

.page-register__verification-text li {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.page-register__verification-text strong {
  color: var(--color-text-main);
}

/* Promotions Section */
.page-register__promotions-section {
  background-color: var(--color-deep-green);
  padding: 80px 0;
}

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

.page-register__promo-card {
  background-color: var(--color-card-bg);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-divider);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-register__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Games Section */
.page-register__games-section {
  background-color: var(--color-background);
  padding: 80px 0;
}

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

.page-register__game-card {
  background-color: var(--color-card-bg);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-divider);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-register__game-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-register__btn-text {
  display: inline-block;
  margin-top: 15px;
  color: var(--color-gold);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-register__btn-text:hover {
  color: var(--color-glow);
  text-decoration: underline;
}

/* Security Section */
.page-register__security-section {
  padding: 80px 0;
}

.page-register__dark-section {
  background-color: var(--color-deep-green);
  color: var(--color-text-main);
}

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

.page-register__feature-item {
  background-color: var(--color-card-bg);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-divider);
}

.page-register__feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(242, 193, 78, 0.5));
}

/* FAQ Section */
.page-register__faq-section {
  background-color: var(--color-background);
  padding: 80px 0;
}

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

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text-main);
  cursor: pointer;
  background-color: var(--color-deep-green);
  border-bottom: 1px solid var(--color-divider);
  transition: background-color 0.3s ease;
  list-style: none; /* For <summary> tag */
}

.page-register__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for <summary> */
}

.page-register__faq-item[open] > .page-register__faq-question {
  background-color: var(--color-primary);
}

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

.page-register__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--color-gold);
}

.page-register__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: var(--color-text-secondary);
  border-top: 1px solid var(--color-divider);
}

/* Final CTA Section */
.page-register__cta-final-section {
  background-color: var(--color-deep-green);
  padding: 80px 0;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-content {
    max-width: 700px;
  }
}

@media (max-width: 768px) {
  .page-register__main-title {
    font-size: clamp(2rem, 6vw, 2.5rem);
  }

  .page-register__subtitle {
    font-size: 1rem;
  }

  .page-register__section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  .page-register__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

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

  .page-register__btn-primary,
  .page-register__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-register__container {
    padding: 30px 15px;
  }

  .page-register__benefits-grid,
  .page-register__guide-steps,
  .page-register__promotions-grid,
  .page-register__games-grid,
  .page-register__security-features {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-register__verification-content {
    flex-direction: column;
  }

  .page-register__verification-image,
  .page-register__verification-text {
    min-width: unset;
    flex: none;
    width: 100%;
  }

  .page-register__hero-section,
  .page-register__benefits-section,
  .page-register__guide-section,
  .page-register__verification-section,
  .page-register__promotions-section,
  .page-register__games-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__cta-final-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Mobile image responsiveness */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Image containers mobile responsiveness */
  .page-register__hero-image-wrapper,
  .page-register__benefit-card,
  .page-register__step-card,
  .page-register__promo-card,
  .page-register__game-card,
  .page-register__feature-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    margin-left: auto;
    margin-right: auto;
  }

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

  .page-register__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-register__faq-answer {
    font-size: 0.95rem;
    padding: 15px 20px;
  }
}