/* style/register.css */

/* Base styles for the page-register scope */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
}

.page-register a {
  color: #017439;
  text-decoration: none;
}

.page-register a:hover {
  text-decoration: underline;
}

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

.page-register__section-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-register__section-description {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Color contrast specific styles */
.page-register__dark-bg {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  padding: 60px 0;
}

.page-register__light-bg {
  background-color: #ffffff; /* White background */
  color: #333333;
  padding: 60px 0;
}

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

.page-register__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px; /* Space between image and text */
}

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

.page-register__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-register__main-title {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  color: #FFFF00; /* Specific font color for register/login title */
}

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

/* Buttons */
.page-register__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.page-register__btn--primary {
  background-color: #C30808; /* Register/Login button color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-register__btn--primary:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-register__btn--secondary {
  background-color: transparent;
  color: #017439;
  border: 2px solid #017439;
}

.page-register__btn--secondary:hover {
  background-color: #017439;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-register__btn--submit {
  background-color: #C30808; /* Register/Login button color */
  color: #FFFF00; /* Register/Login font color */
  border: none;
  width: 100%;
  padding: 15px;
  font-size: 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-register__btn--submit:hover {
  background-color: #a00606;
}

.page-register__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-register__cta-buttons--center {
  text-align: center;
}

/* Registration Form Section */
.page-register__form-section .page-register__section-title {
  color: #017439;
}

.page-register__registration-form {
  max-width: 500px;
  margin: 0 auto;
  padding: 40px;
  background-color: #f8f8f8;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.page-register__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333333;
}

.page-register__form-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
}

.page-register__form-input:focus {
  border-color: #017439;
  outline: none;
  box-shadow: 0 0 0 3px rgba(1, 116, 57, 0.2);
}

.page-register__checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.page-register__form-checkbox {
  margin-right: 10px;
  transform: scale(1.2);
}

.page-register__form-link {
  color: #017439;
  font-weight: bold;
}

.page-register__form-link:hover {
  text-decoration: underline;
}

.page-register__login-prompt {
  text-align: center;
  margin-top: 25px;
  font-size: 1rem;
  color: #555555;
}

/* Benefits Section */
.page-register__benefits-section .page-register__section-title,
.page-register__benefits-section .page-register__section-description {
  color: #ffffff;
}

.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);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-register__benefit-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-register__benefit-text {
  font-size: 1rem;
  line-height: 1.5;
}

/* Games CTA Section */
.page-register__games-cta-section .page-register__section-title {
  color: #017439;
}

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

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

.page-register__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-register__game-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #017439;
  padding: 0 15px;
}

.page-register__game-text {
  font-size: 0.95rem;
  color: #555555;
  margin-bottom: 20px;
  padding: 0 15px;
}

/* FAQ Section */
.page-register__faq-section .page-register__section-title {
  color: #ffffff;
}

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

.page-register__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: #ffffff;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFFF00;
}

.page-register__faq-question::-webkit-details-marker {
  display: none;
}

.page-register__faq-question::marker {
  display: none;
}

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

.page-register__faq-toggle {
  font-size: 1.5rem;
  font-weight: normal;
  margin-left: 15px;
  color: #ffffff;
}

.page-register__faq-item[open] .page-register__faq-toggle {
  content: '−';
}

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

/* Final CTA Section */
.page-register__final-cta-section .page-register__section-title {
  color: #017439;
}

.page-register__cta-content {
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-register__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__hero-section {
    padding-top: 10px !important; /* body handles header offset */
    padding-bottom: 40px;
  }

  .page-register__hero-image-wrapper {
    margin-bottom: 20px;
  }

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

  .page-register__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-register__btn {
    padding: 12px 20px;
    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__btn--submit {
    font-size: 1rem;
  }

  .page-register__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-register__registration-form {
    padding: 25px;
  }

  .page-register__benefits-grid,
  .page-register__games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-register__benefit-card,
  .page-register__game-card {
    padding: 25px;
  }

  .page-register__game-image {
    height: 180px;
  }

  .page-register__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-register__faq-answer {
    padding: 10px 20px 15px;
    font-size: 0.95rem;
  }

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

  .page-register__hero-image-wrapper,
  .page-register__benefits-section,
  .page-register__games-cta-section,
  .page-register__final-cta-section,
  .page-register__form-section,
  .page-register__faq-section,
  .page-register__container,
  .page-register__registration-form,
  .page-register__benefit-card,
  .page-register__game-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
  }
}

@media (max-width: 480px) {
  .page-register__main-title {
    font-size: clamp(1.8rem, 9vw, 2.2rem);
  }

  .page-register__btn--primary,
  .page-register__btn--secondary {
    font-size: 0.95rem;
  }
}