/* style/register.css */
/* 
  Body background color comes from shared.css: var(--background-color) which is #0A0A0A (dark).
  Therefore, text colors should be light (e.g., #FFF6D6 from custom colors, or #ffffff).
  Card backgrounds should be #111111 (Card BG).
*/

.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color, #FFF6D6); /* Default text color for the page */
  background-color: var(--background-color, #0A0A0A); /* Ensure consistent background */
}

/* Typography */
.page-register__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1, avoiding fixed large size */
  font-weight: 700;
  color: var(--text-main-color, #FFF6D6);
  line-height: 1.2;
  margin-bottom: 20px;
}

.page-register__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--text-main-color, #FFF6D6);
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.3;
}

.page-register__subtitle,
.page-register__section-description {
  font-size: 1.1rem;
  color: rgba(255, 246, 214, 0.8); /* Slightly lighter for descriptions */
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-register__feature-title,
.page-register__step-title,
.page-register__category-title,
.page-register__bonus-title,
.page-register__security-title,
.page-register__faq-question h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-main-color, #FFF6D6);
  margin-bottom: 10px;
}

.page-register__feature-text,
.page-register__step-text,
.page-register__category-text,
.page-register__bonus-text,
.page-register__security-text,
.page-register__faq-answer p {
  font-size: 1rem;
  color: rgba(255, 246, 214, 0.7);
}

/* Sections */
.page-register__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px; /* Base padding */
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  min-height: 600px;
  overflow: hidden;
  background-color: var(--background-color, #0A0A0A);
}

.page-register__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-register__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle background image */
}

.page-register__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
  margin-bottom: 40px; /* Space between content and image below (if any) */
  box-sizing: border-box;
}

.page-register__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

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

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Include padding in width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  text-align: center;
}

.page-register__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Custom button gradient */
  color: #FFF6D6; /* Text Main */
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-register__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-register__btn-secondary {
  background: transparent;
  color: var(--primary-color, #F2C14E); /* Primary color text */
  border: 2px solid var(--border-color, #3A2A12); /* Border color */
}

.page-register__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  color: var(--primary-color, #F2C14E);
}

/* Dark Section styling */
.page-register__dark-section {
  background-color: var(--card-bg-color, #111111); /* Card BG color */
  padding: 80px 0;
}

.page-register__why-join-section,
.page-register__steps-section,
.page-register__games-section,
.page-register__bonuses-section,
.page-register__security-section,
.page-register__faq-section,
.page-register__final-cta-section {
  padding: 80px 0;
}

/* Features Grid */
.page-register__features-grid,
.page-register__steps-grid,
.page-register__game-categories,
.page-register__bonus-grid,
.page-register__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-register__feature-card,
.page-register__step-card,
.page-register__category-card,
.page-register__bonus-card,
.page-register__security-card {
  background-color: var(--card-bg-color, #111111); /* Card BG */
  border: 1px solid var(--border-color, #3A2A12); /* Border color */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.page-register__feature-card:hover,
.page-register__step-card:hover,
.page-register__category-card:hover,
.page-register__bonus-card:hover,
.page-register__security-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-register__feature-icon,
.page-register__bonus-image {
  width: 100%; /* Max width for images */
  height: auto;
  max-height: 250px; /* Limit height for feature icons to keep them consistent */
  object-fit: contain; /* Ensure image fits without cropping */
  margin-bottom: 20px;
  border-radius: 8px;
  /* Ensure images are at least 200x200px, except allowed exceptions */
  min-width: 200px;
  min-height: 200px;
}

/* Step specific styling */
.page-register__step-card {
  position: relative;
  padding-top: 60px; /* Space for step number */
}