/* style/register.css */

/* Base styles for the page-register scope */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main color for dark background */
  background-color: #0A0A0A; /* Background color */
}

/* Hero Section */
.page-register__hero-section {
  padding-top: var(--header-offset, 120px); /* For fixed header */
  background: linear-gradient(135deg, #F2C14E, #FFD36B); /* Main and Auxiliary colors */
  color: #000000; /* Dark text for light gradient background */
  text-align: center;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.page-register__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  gap: 30px;
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

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

.page-register__hero-title {
  font-size: clamp(2.5rem, 5vw, 3rem); /* H1 font size control */
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #000000; /* Dark text for light gradient background */
}

.page-register__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #333333; /* Dark text for light gradient background */
}

.page-register__hero-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #111111; /* Dark text for button */
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-register__hero-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-register__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #F2C14E; /* Main color for titles */
}

.page-register__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #FFF6D6; /* Text Main color */
}

/* Registration Form Section */
.page-register__form-section {
  background-color: #0A0A0A; /* Background color */
  padding: 60px 0;
}

.page-register__registration-form {
  background-color: #111111; /* Card BG color */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  max-width: 600px;
  margin: 0 auto;
  border: 1px solid #3A2A12; /* Border color */
}

.page-register__form-group {
  margin-bottom: 20px;
}

.page-register__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #FFF6D6; /* Text Main color */
}

.page-register__form-input {
  width: 100%;
  padding: 12px 15px;
  background-color: #0A0A0A; /* Darker input background */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 5px;
  color: #FFF6D6; /* Text Main color */
  font-size: 1rem;
  box-sizing: border-box;
}

.page-register__form-input::placeholder {
  color: rgba(255, 246, 214, 0.6); /* Lighter placeholder text */
}

.page-register__form-terms {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-register__form-terms input[type="checkbox"] {
  min-width: 20px;
  min-height: 20px;
  accent-color: #F2C14E; /* Accent color for checkbox */
}

.page-register__form-link {
  color: #FFD36B; /* Auxiliary color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-register__form-link:hover {
  color: #F2C14E; /* Main color on hover */
  text-decoration: underline;
}

.page-register__submit-button {
  width: 100%;
  padding: 15px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #111111; /* Dark text for button */
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-register__submit-button:hover {
  transform: translateY(-3px);
  background: linear-gradient(180deg, #FFD36B 0%, #F2C14E 100%); /* Slightly different gradient on hover */
}

.page-register__already-member {
  text-align: center;
  margin-top: 25px;
  font-size: 1rem;
  color: #FFF6D6; /* Text Main color */
}

/* Benefits Section */
.page-register__benefits-section {
  background-color: #0A0A0A; /* Background color */
  padding: 60px 0;
}

.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: #111111; /* Card BG color */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12; /* Border color */
  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.4);
}

.page-register__benefit-icon {
  width: 100%;
  height: auto;
  max-width: 400px; /* To respect 400x267 display size */
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 5px;
}

.page-register__benefit-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #F2C14E; /* Main color for benefit titles */
}

.page-register__benefit-text {
  font-size: 1rem;
  color: #FFF6D6; /* Text Main color */
}

/* CTA Section for Game Categories */
.page-register__cta-section {
  background-color: #0A0A0A; /* Background color */
  padding: 60px 0;
  text-align: center;
}

.page-register__game-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-register__category-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #FFF6D6; /* Text Main color */
  font-weight: bold;
  font-size: 1rem;
  padding: 15px 20px;
  background-color: #111111; /* Card BG color */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 8px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  min-width: 120px;
  box-sizing: border-box;
}

.page-register__category-link:hover {
  background-color: #F2C14E; /* Main color on hover */
  color: #111111; /* Dark text on hover */
  transform: translateY(-3px);
}

.page-register__category-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.page-register__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #111111; /* Dark text for button */
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  margin-top: 20px;
}

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

/* FAQ Section */
.page-register__faq-section {
  background-color: #0A0A0A; /* Background color */
  padding: 60px 0;
}

.page-register__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-register__faq-item {
  background-color: #111111; /* Card BG color */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  color: #F2C14E; /* Main color for FAQ questions */
  transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
  background-color: rgba(242, 193, 78, 0.1); /* Light hover effect */
}

.page-register__faq-question h3 {
  margin: 0;
  color: inherit; /* Inherit color from parent */
  font-size: 1.1rem;
}

.page-register__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFD36B; /* Auxiliary color for toggle */
}

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(45deg); /* Rotate for minus sign */
}

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6; /* Text Main color */
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 1000px !important; /* Ensure it expands */
  padding: 20px;
}

.page-register__faq-answer p {
  margin-bottom: 0;
  color: inherit;
}

.page-register__faq-link {
  color: #FFD36B; /* Auxiliary color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-register__faq-link:hover {
  color: #F2C14E; /* Main color on hover */
  text-decoration: underline;
}


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

.page-register__final-register-button {
  margin-right: 20px;
  margin-bottom: 20px; /* For mobile stacking */
}

.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background: transparent;
  color: #F2C14E; /* Main color for text */
  text-decoration: none;
  border: 2px solid #F2C14E; /* Main color for border */
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.page-register__btn-secondary:hover {
  background-color: #F2C14E; /* Main color for background */
  color: #111111; /* Dark text on hover */
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: clamp(2rem, 4.5vw, 2.8rem);
  }
  .page-register__hero-description {
    font-size: 1.05rem;
  }
  .page-register__section-title {
    font-size: 2.2rem;
  }
  .page-register__benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  /* Mobile image and button responsive rules */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__hero-container,
  .page-register__registration-form,
  .page-register__benefits-grid,
  .page-register__game-categories,
  .page-register__faq-list,
  .page-register__final-cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Specific padding for hero on mobile */
  .page-register__hero-section {
    padding-top: var(--header-offset, 100px) !important; /* Mobile: use --header-offset, default 100px */
    padding-bottom: 40px;
  }
  
  .page-register__hero-container {
    flex-direction: column;
  }

  .page-register__hero-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-register__hero-description {
    font-size: 1rem;
  }

  .page-register__section-title {
    font-size: 1.8rem;
  }
  .page-register__section-description {
    font-size: 0.95rem;
  }

  .page-register__hero-button,
  .page-register__submit-button,
  .page-register__btn-primary,
  .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-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-register__game-categories {
    flex-direction: row; /* Keep as row, but allow wrap */
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .page-register__category-link {
    min-width: unset;
    flex-grow: 1; /* Allow items to grow */
    padding: 10px 15px;
    font-size: 0.9rem;
  }

  .page-register__final-register-button {
    margin-right: 0; /* Remove margin for stacking */
  }

  .page-register__final-cta-section a {
    display: block; /* Stack buttons vertically */
    margin-bottom: 15px;
  }
  .page-register__final-cta-section a:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 480px) {
  .page-register__hero-section {
    padding-top: var(--header-offset, 80px) !important;
  }
  .page-register__registration-form {
    padding: 25px;
  }
  .page-register__section-title {
    font-size: 1.6rem;
  }
  .page-register__faq-question h3 {
    font-size: 1rem;
  }
  .page-register__faq-answer p {
    font-size: 0.9rem;
  }
}