/* style/register.css */

/* Base styles for the page */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Ensures a consistent light background */
}

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

.page-register__dark-bg {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff; /* White text for dark background */
}

.page-register__light-bg {
  background-color: #FFFFFF; /* White background */
  color: #333333; /* Dark text for light background */
}

/* Section titles */
.page-register__section-title {
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: inherit; /* Inherit color from parent section */
  line-height: 1.2;
}

.page-register__sub-title {
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: inherit;
}

.page-register__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: inherit;
}

.page-register__text-block {
  margin-bottom: 20px;
}

/* Buttons */
.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.1rem;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

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

.page-register__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0; /* Brand primary color */
  border: 2px solid #26A9E0;
}

.page-register__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1a7fb8;
  border-color: #1a7fb8;
}

/* Hero Section */
.page-register__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 20px;
}

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

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

.page-register__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem); /* Responsive font size */
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-register__hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #f0f8ff;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__hero-cta {
  margin-top: 20px;
}

/* Why Join Section */
.page-register__why-join-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-register__feature-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
  border: 1px solid #e0e0e0; /* Add border for contrast */
}

.page-register__feature-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
}

.page-register__card-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-register__card-text {
  font-size: 1rem;
  color: #555555;
  flex-grow: 1;
}

.page-register__cta-area {
  margin-top: 60px;
}

/* How To Register Section */
.page-register__how-to-register-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-register__step-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
  border: 1px solid #e0e0e0; /* Add border for contrast */
}

.page-register__step-number {
  width: 60px;
  height: 60px;
  background-color: #EA7C07;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

/* Games & Promotions Section */
.page-register__games-promotions-section {
  padding: 80px 0;
  text-align: center;
}

.page-register__content-block {
  margin-bottom: 50px;
  padding: 30px;
  background-color: #f8f8f8;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
}

.page-register__content-block .page-register__btn-secondary {
  margin-top: 20px;
}

.page-register__game-list,
.page-register__promotion-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.page-register__game-list li,
.page-register__promotion-list li {
  background-color: #eaf7ff; /* Light blue background */
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 1rem;
  color: #333333;
  border: 1px solid #cceeff;
}

.page-register__game-list li a,
.page-register__promotion-list li a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

.page-register__game-list li a:hover,
.page-register__promotion-list li a:hover {
  text-decoration: underline;
}

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

.page-register__faq-list {
  max-width: 800px;
  margin: 50px auto 0 auto;
  text-align: left;
}

.page-register__faq-item {
  background-color: #FFFFFF;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  background-color: #f5fafd;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* Remove default marker for details/summary */
}

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

.page-register__faq-toggle {
  font-size: 1.8rem;
  font-weight: normal;
  line-height: 1;
  color: #EA7C07;
  margin-left: 15px;
}

.page-register__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  color: #555555;
  line-height: 1.6;
}

.page-register__faq-answer p {
  margin-top: 10px;
  margin-bottom: 0;
}

/* Final CTA Section */
.page-register__final-cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-register__final-cta {
  margin-top: 30px;
  margin-right: 15px;
}

.page-register__final-cta-secondary {
  margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-content {
    padding: 0 15px;
  }
  .page-register__features-grid,
  .page-register__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-register__section-description {
    margin-left: 15px;
    margin-right: 15px;
  }
}

@media (max-width: 768px) {
  .page-register__hero-section,
  .page-register__why-join-section,
  .page-register__how-to-register-section,
  .page-register__games-promotions-section,
  .page-register__faq-section,
  .page-register__final-cta-section {
    padding: 40px 0;
  }

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

  .page-register__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-register__hero-description {
    font-size: 1rem;
  }

  .page-register__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .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;
    margin-bottom: 15px; /* Add space between stacked buttons */
  }

  .page-register__final-cta-section .page-register__btn-primary,
  .page-register__final-cta-section .page-register__btn-secondary {
    margin-right: 0; /* Remove right margin for stacked buttons */
  }

  .page-register__cta-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; /* Space between buttons */
  }

  .page-register__hero-cta {
    margin-top: 15px;
  }

  .page-register__final-cta-secondary {
    margin-left: 0;
  }

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

  .page-register__hero-image-wrapper,
  .page-register__container,
  .page-register__why-join-section,
  .page-register__how-to-register-section,
  .page-register__games-promotions-section,
  .page-register__faq-section,
  .page-register__final-cta-section,
  .page-register__content-block,
  .page-register__feature-card,
  .page-register__step-card,
  .page-register__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent content overflow */
  }

  .page-register__game-list,
  .page-register__promotion-list {
    flex-direction: column;
    align-items: center;
  }

  .page-register__game-list li,
  .page-register__promotion-list li {
    width: 100%;
    text-align: center;
  }
}