/* style/register.css */
/* 
  Body background color: #F4F7FB (light)
  Main text color: #1F2D3D (dark)
  Card background: #FFFFFF (light)
  Button gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%) -> text white
  Dark sections background: #2F6BFF -> text white
*/

.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #1F2D3D; /* Default text color for light background */
  background-color: #F4F7FB; /* Consistent with shared body background */
}

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

/* --- Hero Section --- */
.page-register__hero-section {
  display: flex;
  flex-direction: column; /* Default for mobile, will change for desktop */
  align-items: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  background: #2F6BFF; /* Main brand color for dark section */
  color: #ffffff; /* White text for dark background */
  text-align: center;
  overflow: hidden; /* Ensure no overflow */
}

.page-register__hero-image-wrapper {
  order: 1; /* Image first on mobile */
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
}

.page-register__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-register__hero-content {
  order: 2; /* Content second on mobile */
  width: 100%;
  max-width: 800px;
  margin-top: 20px;
}

.page-register__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-register__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-register__cta-buttons {
  display: flex;
  flex-direction: column; /* Stack buttons on mobile */
  gap: 15px;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 400px; /* Limit button group width */
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
}

.page-register__btn-primary,
.page-register__btn-secondary,
.page-register a[class*="button"],
.page-register a[class*="btn"] {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%; /* Ensure buttons don't overflow */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-register__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-register__btn-secondary {
  background: #ffffff;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-register__btn-secondary:hover {
  background: #f0f0f0;
  color: #1a5ac2;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* --- General Section Styles --- */
.page-register__benefits-section,
.page-register__security-section,
.page-register__games-showcase-section,
.page-register__final-cta-section {
  padding: 80px 0;
  background-color: #F4F7FB; /* Light background */
  color: #1F2D3D; /* Dark text */
}

.page-register__how-to-register-section,
.page-register__responsible-gaming-section,
.page-register__faq-section {
  padding: 80px 0;
  background-color: #2F6BFF; /* Dark background */
  color: #ffffff; /* White text */
}

.page-register__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: inherit; /* Inherit color from parent section */
}

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

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

.page-register__benefit-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #1F2D3D;
  border: 1px solid #D6E2FF;
}

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

.page-register__card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #2F6BFF; /* Brand color for titles */
}

.page-register__card-text {
  font-size: 1em;
  color: #555;
}

/* --- How To Register Section --- */
.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: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-register__step-icon {
  width: 60px;
  height: 60px;
  background-color: #ffffff;
  color: #2F6BFF;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  font-weight: 700;
  margin: 0 auto 20px;
}

.page-register__step-card .page-register__card-title {
  color: #ffffff; /* White title for dark card */
}

.page-register__step-card .page-register__card-text {
  color: #f0f0f0; /* Lighter text for dark card */
}

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

/* --- Security Section --- */
.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: #FFFFFF;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  color: #1F2D3D;
  border: 1px solid #D6E2FF;
}

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

/* --- Responsible Gaming Section --- */
.page-register__responsible-gaming-content {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
  color: #ffffff;
}

.page-register__responsible-gaming-content p {
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-register__responsible-gaming-list {
  list-style-type: disc;
  padding-left: 25px;
  margin-bottom: 25px;
  color: #f0f0f0;
}

.page-register__responsible-gaming-list li {
  margin-bottom: 8px;
}

/* --- Games Showcase Section --- */
.page-register__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-register__game-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #1F2D3D;
  border: 1px solid #D6E2FF;
}

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

.page-register__game-card .page-register__card-title a {
  color: #2F6BFF;
  text-decoration: none;
}

.page-register__game-card .page-register__card-title a:hover {
  text-decoration: underline;
}

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

/* --- FAQ Section --- */
.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); /* Semi-transparent white for dark background */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
  color: #ffffff;
}

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

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

.page-register__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-register__faq-item[open] .page-register__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
}

.page-register__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #f0f0f0;
}

/* --- Final CTA Section --- */
.page-register__final-cta-section .page-register__cta-buttons {
  margin-top: 40px;
}

/* --- Responsive Design --- */
@media (min-width: 768px) {
  .page-register__hero-section {
    flex-direction: row; /* Desktop layout */
    text-align: left;
    padding: 80px 20px;
    gap: 40px;
  }

  .page-register__hero-image-wrapper {
    order: 2; /* Image second on desktop */
    width: 50%;
    margin-bottom: 0;
  }

  .page-register__hero-content {
    order: 1; /* Content first on desktop */
    width: 50%;
    margin-top: 0;
    text-align: left;
  }

  .page-register__cta-buttons {
    flex-direction: row; /* Buttons side-by-side on desktop */
    max-width: none; /* Remove max-width for desktop button group */
    justify-content: flex-start;
  }

  .page-register__cta-buttons .page-register__btn-primary,
  .page-register__cta-buttons .page-register__btn-secondary {
    width: auto; /* Buttons adjust to content */
  }

  .page-register__section-title {
    font-size: 3em;
  }
}

@media (max-width: 768px) {
  .page-register__section-title {
    font-size: 2em;
  }

  .page-register__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  /* Images responsive */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Image containers responsive */
  .page-register__hero-image-wrapper,
  .page-register__security-image,
  .page-register__games-image,
  .page-register__faq-image,
  .page-register__container,
  .page-register__hero-section,
  .page-register__benefits-section,
  .page-register__how-to-register-section,
  .page-register__security-section,
  .page-register__responsible-gaming-section,
  .page-register__games-showcase-section,
  .page-register__faq-section,
  .page-register__final-cta-section,
  .page-register__benefit-card,
  .page-register__step-card,
  .page-register__security-item,
  .page-register__game-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  /* Video area top padding (if any video section existed) */
  .page-register__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  /* Buttons responsive */
  .page-register__cta-button,
  .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;
  }
  
  /* Button containers responsive */
  .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; /* Allow buttons to wrap */
    gap: 10px;
    flex-direction: column !important; /* Stack buttons vertically */
    overflow: hidden !important;
  }
}