/* style/register.css */

/* Body background is #08160F (dark), so text should be light */
.page-register {
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

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

.page-register__section-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
  line-height: 1.2;
}

.page-register__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #A7D9B8; /* Text Secondary */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* HERO Section */
.page-register__hero-section {
  padding-top: 10px; /* Small top padding */
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #F2FFF6;
  min-height: 500px; /* Ensure sufficient height */
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit image height */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Ensure image covers area */
}

.page-register__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: 20px;
  background-color: rgba(17, 39, 27, 0.8); /* Card BG with transparency */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.page-register__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 800;
  margin-bottom: 15px;
  color: #F2FFF6;
  line-height: 1.1;
}

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

.page-register__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-register__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

/* Why Join Section */
.page-register__why-join-section {
  background-color: #08160F;
}

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

.page-register__feature-card {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
}

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

.page-register__feature-icon {
  width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

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

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

/* Registration Guide Section */
.page-register__registration-guide-section {
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-register__step-card {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  border: 1px solid #2E7A4E;
}

.page-register__step-number {
  display: inline-flex;
  width: 40px;
  height: 40px;
  background-color: #2AD16F;
  color: #08160F;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 20px;
}

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

.page-register__step-text {
  font-size: 0.95em;
  color: #A7D9B8;
}

.page-register__process-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  margin-top: 50px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

/* Win55 Package Section */
.page-register__win55-package-section {
  background-color: #08160F;
}

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

.page-register__package-item {
  background-color: #11271B;
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  border: 1px solid #2E7A4E;
}

.page-register__package-title {
  font-size: 1.6em;
  color: #F2FFF6;
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
}

.page-register__package-title::before {
  content: '★';
  position: absolute;
  left: 0;
  color: #F2C14E; /* Gold */
  font-size: 1.2em;
  top: 0;
}

.page-register__package-text {
  font-size: 0.95em;
  color: #A7D9B8;
}

.page-register__package-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  margin-top: 50px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

/* Game Categories Section */
.page-register__game-categories-section {
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-register__category-card {
  background-color: #11271B;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  color: #F2FFF6;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E;
}

.page-register__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.3);
}

.page-register__category-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

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

.page-register__category-text {
  font-size: 0.9em;
  color: #A7D9B8;
}

.page-register__game-showcase-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  margin-top: 50px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

/* Security and Privacy Section */
.page-register__security-privacy-section {
  background-color: #08160F;
}

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

.page-register__security-item {
  background-color: #11271B;
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  border: 1px solid #2E7A4E;
}

.page-register__security-title {
  font-size: 1.6em;
  color: #F2FFF6;
  margin-bottom: 10px;
}

.page-register__security-text {
  font-size: 0.95em;
  color: #A7D9B8;
}

.page-register__security-text a {
  color: #2AD16F; /* Button primary color */
  text-decoration: none;
}

.page-register__security-text a:hover {
  text-decoration: underline;
}

.page-register__security-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  margin-top: 50px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

/* FAQ Section */
.page-register__faq-section {
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-register__faq-item {
  background-color: #11271B;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #2E7A4E;
  overflow: hidden;
}

.page-register__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  color: #F2FFF6;
  background-color: #11271B;
  border-bottom: 1px solid transparent; /* default */
  transition: background-color 0.3s ease;
}

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

.page-register__faq-item summary:hover {
  background-color: #1E3A2A; /* Divider */
}

.page-register__faq-item[open] summary {
  border-bottom-color: #2E7A4E;
}

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

.page-register__faq-toggle {
  font-size: 1.5em;
  margin-left: 20px;
  color: #2AD16F;
}

.page-register__faq-answer {
  padding: 15px 25px 20px;
  font-size: 0.95em;
  color: #A7D9B8;
  line-height: 1.5;
}

.page-register__faq-answer a {
  color: #2AD16F;
  text-decoration: none;
}

.page-register__faq-answer a:hover {
  text-decoration: underline;
}

/* Final CTA Section */
.page-register__cta-final-section {
  background-color: #08160F;
  padding-bottom: 80px;
}

.page-register__cta-final-section .page-register__container {
  background-color: #11271B; /* Card BG */
  padding: 50px 30px;
  border-radius: 15px;
  border: 1px solid #2E7A4E;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.page-register__cta-final-section .page-register__section-title {
  color: #F2FFF6;
  margin-bottom: 15px;
}

.page-register__cta-final-section .page-register__section-description {
  color: #A7D9B8;
  margin-bottom: 30px;
}

.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background: transparent;
  color: #2AD16F;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #2AD16F;
  margin-left: 20px;
  cursor: pointer;
}

.page-register__btn-secondary:hover {
  background-color: #2AD16F;
  color: #08160F; /* Background color for contrast */
}

/* Global image styles */
.page-register img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-register__container {
    padding: 0 15px !important;
  }

  .page-register__section {
    padding: 40px 0 !important;
  }

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

  .page-register__hero-content {
    padding: 30px 15px;
    margin-top: 15px;
  }

  .page-register__main-title {
    font-size: 2em !important;
    line-height: 1.2;
  }

  .page-register__hero-description {
    font-size: 1em !important;
    margin-bottom: 20px;
  }

  .page-register__cta-button,
  .page-register__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    margin-left: 0 !important; /* Remove margin for stacking */
    margin-bottom: 15px; /* Add space between stacked buttons */
  }

  .page-register__cta-final-section .page-register__container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .page-register__cta-final-section .page-register__cta-button,
  .page-register__cta-final-section .page-register__btn-secondary {
    margin-bottom: 15px; /* Ensure spacing when stacked */
  }

  .page-register__features-grid,
  .page-register__steps-grid,
  .page-register__package-benefits-grid,
  .page-register__categories-grid,
  .page-register__security-features-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-register__feature-card,
  .page-register__step-card,
  .page-register__package-item,
  .page-register__category-card,
  .page-register__security-item {
    padding: 20px !important;
  }

  .page-register__category-image {
    height: 150px !important;
  }

  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: cover;
  }

  /* Ensure all content containers are responsive */
  .page-register__hero-image-wrapper,
  .page-register__why-join-section .page-register__container,
  .page-register__registration-guide-section .page-register__container,
  .page-register__win55-package-section .page-register__container,
  .page-register__game-categories-section .page-register__container,
  .page-register__security-privacy-section .page-register__container,
  .page-register__faq-section .page-register__container,
  .page-register__cta-final-section .page-register__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-register__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }

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