/* style/register.css */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css (#121212) */
}

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

.page-register__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-register__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-register__hero-section {
  padding: 100px 0 60px;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-image: url('[GALLERY:hero:1920x1080:online betting,registration banner,mm live clip,vietnam]');
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
}

.page-register__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.page-register__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-register__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-register__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 50px;
  color: #ffffff;
}

.page-register__form-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background for this section */
}

.page-register__form-section .page-register__section-title {
  color: #ffffff;
}

.page-register__form-wrapper {
  background-color: #282828; /* Darker card background */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  margin: 0 auto;
}

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

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

.page-register__form-label {
  margin-bottom: 8px;
  font-weight: bold;
  color: #ffffff; /* Light text on dark card background */
}

.page-register__form-input {
  padding: 12px 15px;
  border: 1px solid #017439;
  border-radius: 5px;
  background-color: #333333; /* Dark input background */
  color: #ffffff;
  font-size: 1em;
}

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

.page-register__captcha-group {
  flex-direction: row;
  align-items: center;
  gap: 15px;
}

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

.page-register__captcha-image {
  border-radius: 5px;
  border: 1px solid #017439;
  object-fit: cover;
}

.page-register__terms {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}

.page-register__checkbox {
  width: 18px;
  height: 18px;
  min-width: 18px; /* Prevent shrinking */
  min-height: 18px; /* Prevent shrinking */
  margin-top: 3px;
  accent-color: #017439; /* Custom checkbox color */
}

.page-register__checkbox-label {
  font-size: 0.95em;
  color: #f0f0f0;
}

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

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

.page-register__btn-primary, .page-register__btn-submit, .page-register__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
}

.page-register__btn-primary {
  background-color: #017439; /* Brand primary green */
  color: #ffffff; /* White text on green */
}

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

.page-register__btn-submit {
  background-color: #C30808; /* Custom red for register button */
  color: #FFFF00; /* Custom yellow for register button text */
}

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

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

.page-register__login-prompt a {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

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

.page-register__benefits-section {
  padding: 80px 0;
  background-color: #017439; /* Brand green background */
}

.page-register__benefits-section .page-register__section-title {
  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: #282828; /* Darker card background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  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.5em;
  margin-bottom: 15px;
  color: #FFFF00; /* Custom yellow for titles */
}

.page-register__benefit-description {
  font-size: 1em;
  color: #f0f0f0;
}

.page-register__video-section {
  padding: 80px 0;
  text-align: center;
  background-color: #1a1a1a;
}

.page-register__video-section .page-register__section-title,
.page-register__video-description {
  color: #ffffff;
}

.page-register__video-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  background-color: #000;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-register__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.page-register__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-register__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #017439;
}

.page-register__cta-title {
  font-size: 2.8em;
  color: #ffffff;
  margin-bottom: 20px;
}

.page-register__cta-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__cta-button {
  background-color: #C30808;
  color: #FFFF00;
}

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

.page-register__faq-section {
  padding: 80px 0;
  background-color: #121212;
}

.page-register__faq-section .page-register__section-title {
  color: #ffffff;
}

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

.page-register__faq-item {
  margin-bottom: 15px;
  border: 1px solid #017439;
  border-radius: 8px;
  overflow: hidden;
  background-color: #282828; /* Darker card background */
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #017439; /* Brand green for question header */
  color: #ffffff;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

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

.page-register__faq-question h3 {
  margin: 0;
  color: #ffffff;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(0deg); /* +/- is already handled by JS */
}

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  background-color: #333333; /* Even darker for answer background */
  color: #cccccc;
  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 value */
  padding: 20px 25px;
}

.page-register__faq-answer p {
  margin: 0;
  color: #cccccc;
}

/* Floating Buttons */
.page-register__floating-button {
  position: fixed;
  right: 20px;
  padding: 12px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
}

.page-register__floating-register-button {
  bottom: 80px;
  background-color: #C30808; /* Custom red */
  color: #FFFF00; /* Custom yellow */
}

.page-register__floating-register-button:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-register__floating-login-button {
  bottom: 20px;
  background-color: #C30808; /* Custom red */
  color: #FFFF00; /* Custom yellow */
}

.page-register__floating-login-button:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 2.8em;
  }

  .page-register__hero-description {
    font-size: 1.1em;
  }

  .page-register__section-title {
    font-size: 2em;
  }

  .page-register__cta-title {
    font-size: 2.2em;
  }
}

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

  .page-register__hero-section {
    padding: 80px 0 40px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-register__hero-title {
    font-size: 2.2em;
  }

  .page-register__hero-description {
    font-size: 1em;
  }

  .page-register__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-register__form-wrapper {
    padding: 30px;
  }

  .page-register__captcha-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page-register__captcha-input {
    width: 100%;
  }

  .page-register__captcha-image {
    width: 100%;
    max-width: 200px;
    height: auto;
  }

  .page-register__benefits-grid {
    grid-template-columns: 1fr;
  }

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

  .page-register__benefit-icon {
    max-width: 150px;
  }

  .page-register__cta-title {
    font-size: 1.8em;
  }

  .page-register__cta-description {
    font-size: 1em;
  }

  .page-register__btn-primary, .page-register__btn-submit, .page-register__cta-button {
    padding: 12px 20px;
    font-size: 1em;
  }

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

  .page-register__faq-answer {
    padding: 0 20px;
  }

  .page-register__faq-item.active .page-register__faq-answer {
    padding: 15px 20px;
  }

  /* Mobile image responsiveness */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Mobile video responsiveness */
  .page-register video,
  .page-register__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .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;
  }

  /* Mobile button responsiveness */
  .page-register__btn-primary,
  .page-register__btn-submit,
  .page-register__cta-button,
  .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;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__cta-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__floating-button {
    right: 15px;
    padding: 10px 15px;
    font-size: 0.9em;
  }

  .page-register__floating-register-button {
    bottom: 70px;
  }

  .page-register__floating-login-button {
    bottom: 15px;
  }
}

@media (max-width: 480px) {
  .page-register__hero-title {
    font-size: 1.8em;
  }

  .page-register__section-title {
    font-size: 1.5em;
  }

  .page-register__cta-title {
    font-size: 1.6em;
  }

  .page-register__form-wrapper {
    padding: 20px;
  }
}