/* style/register.css */

/* Base Styles & Typography */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #FFFFFF;
}

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

.page-register__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-register__section-title--light {
  color: #FFFFFF;
}

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

.page-register__section-description--light {
  color: #f0f0f0;
}

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary,
.page-register__btn-submit {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

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

.page-register__btn-primary:hover,
.page-register__btn-submit:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-register__btn-primary--large {
  padding: 15px 30px;
  font-size: 1.2em;
}

.page-register__btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  margin-left: 15px;
}

.page-register__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #017439;
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  width: 100%;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-register__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.page-register__hero-content {
  position: relative;
  z-index: 1;
  color: #FFFFFF;
}

.page-register__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-register__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 80px 0;
  background-color: #f8f8f8;
  color: #333333;
}

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

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

.page-register__benefit-item:hover {
  transform: translateY(-10px);
}

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

.page-register__benefit-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
}

.page-register__benefit-text {
  font-size: 1em;
  color: #666666;
}

/* Registration Form Section */
.page-register__form-section {
  padding: 80px 0;
  background-color: #017439; /* Brand color as dark background */
  color: #FFFFFF;
}

.page-register__form-container {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 50px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  max-width: 700px;
}

.page-register__registration-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-register__form-group {
  display: flex;
  flex-direction: column;
}

.page-register__form-label {
  font-size: 1.1em;
  margin-bottom: 8px;
  color: #FFFFFF;
}

.page-register__form-input {
  padding: 12px 15px;
  border: 1px solid #4CAF50;
  border-radius: 5px;
  font-size: 1em;
  background-color: rgba(255, 255, 255, 0.9);
  color: #333333;
}

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

.page-register__verification-group {
  flex-direction: row;
  align-items: flex-end;
  gap: 10px;
}

.page-register__verification-input {
  flex-grow: 1;
}

.page-register__verification-btn {
  background-color: #4CAF50;
  color: #FFFFFF;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s ease;
}

.page-register__verification-btn:hover {
  background-color: #388E3C;
}

.page-register__terms-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-register__terms-label {
  font-size: 0.95em;
  color: #FFFFFF;
}

.page-register__terms-link {
  color: #FFFF00; /* Highlight terms link */
  text-decoration: underline;
}

.page-register__terms-link:hover {
  color: #FFD700;
}

.page-register__btn-submit {
  width: 100%;
  padding: 15px;
  font-size: 1.2em;
  margin-top: 20px;
}

.page-register__login-prompt {
  text-align: center;
  font-size: 1em;
  color: #FFFFFF;
  margin-top: 20px;
}

.page-register__login-link {
  color: #FFFF00; /* Highlight login link */
  text-decoration: underline;
}

.page-register__login-link:hover {
  color: #FFD700;
}

/* Games & Promotions Section */
.page-register__games-promos-section {
  padding: 80px 0;
  background-color: #FFFFFF;
  color: #333333;
}

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

.page-register__game-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-register__game-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-register__game-title {
  font-size: 1.4em;
  color: #017439;
  padding: 15px 20px 0;
}

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

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

.page-register__game-text {
  font-size: 0.95em;
  color: #666666;
  padding: 0 20px 20px;
}

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

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 0;
  background-color: #f8f8f8;
  color: #333333;
}

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

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #FFFFFF;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-question {
  background-color: #e0f2f1; /* Light green for active question */
}

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

.page-register__faq-title {
  font-size: 1.2em;
  color: #017439;
  margin: 0;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #017439;
  transition: transform 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(45deg); /* Plus to X / Minus */
}

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

.page-register__faq-answer p {
  margin-bottom: 15px;
  color: #555555;
}

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

.page-register__cta-content {
  max-width: 900px;
  margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 3em;
  }
  .page-register__hero-description {
    font-size: 1.2em;
  }
  .page-register__section-title {
    font-size: 2em;
  }
  .page-register__section-description {
    font-size: 1em;
  }
  .page-register__benefits-grid, .page-register__game-promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

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

  .page-register__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-register__hero-title {
    font-size: 2.5em;
  }
  .page-register__hero-description {
    font-size: 1.1em;
  }
  .page-register__hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register__btn-submit,
  .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;
    margin-left: 0 !important; /* Override margin-left for secondary button */
  }
  .page-register__hero-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;
    gap: 10px;
  }
  .page-register__hero-buttons {
    flex-direction: column;
  }

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

  .page-register__container,
  .page-register__form-container {
    padding: 0 15px;
  }
  .page-register__form-container {
    padding: 30px 20px;
  }

  .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__video-section,
  .page-register__video-container,
  .page-register__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-register__benefit-icon {
    max-width: 150px;
  }

  .page-register__verification-group {
    flex-direction: column;
    align-items: stretch;
  }
  .page-register__verification-btn {
    width: 100%;
    margin-top: 10px;
  }

  .page-register__faq-question {
    padding: 15px 20px;
  }
  .page-register__faq-title {
    font-size: 1.1em;
  }
  .page-register__faq-answer {
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .page-register__hero-title {
    font-size: 2em;
  }
  .page-register__hero-description {
    font-size: 1em;
  }
  .page-register__section-title {
    font-size: 1.5em;
  }
  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register__btn-submit {
    font-size: 1em;
    padding: 10px 20px;
  }
}