/* style/register.css */

/* Base Styles */
.page-register {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main, #333333); /* Default text color */
  background-color: var(--bg-primary, #F5F7FA); /* Default background */
}

/* Color Contrast Enforcement */
.page-register__dark-bg {
  background-color: var(--brand-primary, #E53935); /* Main brand color */
  color: #ffffff; /* White text for dark background */
}

.page-register__light-bg {
  background-color: var(--bg-card, #FFFFFF); /* Card background or light section */
  color: var(--text-main, #333333); /* Dark text for light background */
}

.page-register__section-title--light {
  color: #ffffff; /* White text for titles on dark backgrounds */
}

.page-register__text-block--light {
  color: #f0f0f0; /* Lighter text for paragraphs on dark backgrounds */
}

/* Sections */
.page-register__hero-section {
  width: 100%;
  display: flex;
  flex-direction: column; /* Stacks image and content vertically */
  align-items: center;
  padding-top: 10px; /* Small top padding as body handles header offset */
  background-color: var(--bg-primary, #F5F7FA); /* Default background for the section */
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 20px; /* Space between image and content */
}

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

.page-register__hero-content {
  width: 100%;
  max-width: 1200px; /* Constrain content width */
  text-align: center;
  padding: 40px 20px; /* Padding for content */
  background-color: var(--bg-card, #FFFFFF); /* Light background for text block */
  color: var(--text-main, #333333); /* Dark text for light background */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  margin-bottom: 40px; /* Space after hero content */
}

.page-register__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
  cursor: pointer;
  border: none;
  background: linear-gradient(180deg, var(--brand-auxiliary, #FF5A4F) 0%, var(--brand-primary, #E53935) 100%);
  color: #ffffff;
}

.page-register__cta-button:hover {
  filter: brightness(1.1);
}

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

.page-register__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main, #333333);
}

.page-register__text-block {
  margin-bottom: 20px;
  font-size: 1.1rem;
  text-align: justify;
}

/* Form Section */
.page-register__form-section {
  padding: 60px 20px;
}

.page-register__form-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-register__form-image {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-register__registration-form {
  flex: 1;
  min-width: 300px;
  background-color: var(--bg-card, #FFFFFF);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-register__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-main, #333333);
}

.page-register__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid var(--border-color, #E0E0E0);
  border-radius: 5px;
  font-size: 1rem;
  color: var(--text-main, #333333);
  background-color: #fcfcfc;
}

.page-register__form-input::placeholder {
  color: #999;
}

.page-register__form-checkbox {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.page-register__checkbox-label {
  font-size: 0.95rem;
  margin-left: 10px;
  color: var(--text-main, #333333);
}

.page-register__link {
  color: var(--brand-primary, #E53935);
  text-decoration: none;
  font-weight: 600;
}

.page-register__link:hover {
  text-decoration: underline;
}

.page-register__submit-button {
  width: 100%;
  padding: 15px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(180deg, var(--brand-auxiliary, #FF5A4F) 0%, var(--brand-primary, #E53935) 100%);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-register__submit-button:hover {
  filter: brightness(1.1);
}

.page-register__login-prompt {
  text-align: center;
  margin-top: 20px;
  font-size: 1rem;
  color: var(--text-main, #333333);
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 60px 20px;
  text-align: center;
}

.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: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark bg */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-register__benefit-icon {
  width: 200px; /* Changed from 100px to meet minimum size requirement */
  height: 200px; /* Changed from 100px to meet minimum size requirement */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
  margin-left: auto;
  margin-right: auto;
  display: block; /* Center block images */
}

.page-register__benefit-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-register__benefit-description {
  font-size: 1rem;
  line-height: 1.5;
  color: #f0f0f0;
}

/* Games Highlights Section */
.page-register__games-highlights-section {
  padding: 60px 20px;
}

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

.page-register__game-card {
  background-color: var(--bg-card, #FFFFFF);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
}

.page-register__game-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-register__game-card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-main, #333333);
  padding: 0 15px;
}

.page-register__game-card-description {
  font-size: 1rem;
  line-height: 1.5;
  color: #555;
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-register__btn-secondary {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.3s ease;
  border: 2px solid var(--brand-primary, #E53935);
  color: var(--brand-primary, #E53935);
  background-color: transparent;
}

.page-register__btn-secondary:hover {
  background-color: var(--brand-primary, #E53935);
  color: #ffffff;
}

/* Promotions Section */
.page-register__promotions-section {
  padding: 60px 20px;
  text-align: center;
}

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

.page-register__promotion-card {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark bg */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-register__promotion-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-register__promotion-description {
  font-size: 1rem;
  line-height: 1.5;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 60px 20px;
}

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

.page-register__faq-item {
  background-color: var(--bg-card, #FFFFFF);
  border: 1px solid var(--border-color, #E0E0E0);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main, #333333);
  cursor: pointer;
  background-color: #fcfcfc;
  border-bottom: 1px solid var(--border-color, #E0E0E0);
}

.page-register__faq-question:hover {
  background-color: #f0f0f0;
}

.page-register__faq-item[open] .page-register__faq-question {
  border-bottom: 1px solid var(--border-color, #E0E0E0);
}

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

.page-register__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-register__faq-answer {
  padding: 20px;
  font-size: 1rem;
  color: #555;
}

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

.page-register__faq-answer p:last-child {
  margin-bottom: 0;
}

/* CTA Section */
.page-register__cta-section {
  padding: 60px 20px;
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-register__hero-content {
    padding: 30px 15px;
  }
  .page-register__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-register__hero-description {
    font-size: 1.1rem;
  }
  .page-register__form-wrapper {
    flex-direction: column;
  }
  .page-register__form-image,
  .page-register__registration-form {
    width: 100%;
    max-width: 600px;
  }
  .page-register__form-image {
    order: -1; /* Image above form on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-register__hero-section {
    padding-top: 10px !important;
  }
  .page-register__hero-image-wrapper {
    margin-bottom: 15px;
  }
  .page-register__hero-content {
    padding: 30px 15px;
    margin-bottom: 30px;
  }
  .page-register__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-register__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  .page-register__cta-button,
  .page-register__submit-button {
    padding: 12px 25px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-register__container {
    padding: 30px 15px;
  }
  .page-register__section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    margin-bottom: 30px;
  }
  .page-register__text-block {
    font-size: 1rem;
  }
  .page-register__form-section,
  .page-register__benefits-section,
  .page-register__games-highlights-section,
  .page-register__promotions-section,
  .page-register__faq-section,
  .page-register__cta-section {
    padding: 30px 15px;
  }

  /* Images responsive */
  .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__form-wrapper,
  .page-register__benefits-grid,
  .page-register__game-cards-grid,
  .page-register__promotion-cards-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* FAQ */
  .page-register__faq-question {
    font-size: 1rem;
    padding: 15px;
  }
  .page-register__faq-answer {
    font-size: 0.95rem;
    padding: 15px;
  }
  .page-register__faq-toggle {
    font-size: 1.2rem;
  }

  /* Card specific adjustments */
  .page-register__benefit-card,
  .page-register__game-card,
  .page-register__promotion-card {
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  .page-register__game-card-image {
    height: 180px;
  }
  .page-register__btn-secondary {
    padding: 8px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .page-register__main-title {
    font-size: clamp(1.5rem, 8vw, 2.2rem);
  }
  .page-register__hero-description {
    font-size: 0.9rem;
  }
  .page-register__section-title {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }
  .page-register__form-input {
    width: calc(100% - 10px); /* Adjust for smaller padding */
    padding: 10px 5px;
  }
  .page-register__checkbox-label {
    font-size: 0.85rem;
  }
}

/* Ensure no filter on images */
.page-register img {
  filter: none !important; /* Override any potential global filter */
}

/* Ensure minimum image sizes for content */
.page-register__hero-image,
.page-register__form-image,
.page-register__benefit-icon,
.page-register__game-card-image {
    min-width: 200px;
    min-height: 200px;
}

/* Button responsive rules for multiple buttons */
.page-register__game-card .page-register__btn-secondary {
  max-width: calc(100% - 30px); /* Account for card padding */
  width: auto; /* Allow natural width */
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 768px) {
  .page-register__game-card .page-register__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-register__promotion-card .page-register__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Override summary default styles for details tag */
.page-register__faq-item summary {
  list-style: none; /* Remove default marker */
}
.page-register__faq-item summary::-webkit-details-marker {
  display: none; /* Hide Chrome/Safari marker */
}