/* style/register.css */

/* Base Styles & Typography */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a2e; /* Inherited from body, but explicitly set for clarity */
}

.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: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-register a {
  color: #FFFF00; /* Link color for register/login font */
  text-decoration: none;
}

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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  padding: 100px 20px;
  text-align: center;
  background-color: #017439; /* Brand primary color for hero */
  background-image: url('[GALLERY:hero:1920x1080:online_betting,registration,welcome_bonus,vn168]');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  color: #ffffff;
}

.page-register__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 1;
}

.page-register__hero-section .page-register__container {
  position: relative;
  z-index: 2;
}

.page-register__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: 700;
}

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

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

/* Buttons */
.page-register__btn-primary, 
.page-register__btn-secondary, 
.page-register__btn-submit {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-register__btn-primary:hover, .page-register__btn-submit:hover {
  background-color: #e02a2a;
  border-color: #e02a2a;
  transform: translateY(-2px);
}

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

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

/* Section Styles */
.page-register__advantages-section,
.page-register__how-to-section,
.page-register__form-section,
.page-register__games-section,
.page-register__security-section,
.page-register__faq-section,
.page-register__cta-section {
  padding: 80px 0;
}

.page-register__light-bg {
  background-color: #FFFFFF;
  color: #333333; /* Dark text for light background */
}

.page-register__light-bg .page-register__section-title {
  color: #017439;
}

.page-register__light-bg .page-register__section-description,
.page-register__light-bg .page-register__advantage-text,
.page-register__light-bg .page-register__form-label,
.page-register__light-bg .page-register__form-input,
.page-register__light-bg .page-register__checkbox-label,
.page-register__light-bg .page-register__login-prompt,
.page-register__light-bg .page-register__security-text p {
  color: #333333;
}

.page-register__light-bg .page-register__advantage-title {
  color: #017439;
}

.page-register__light-bg .page-register a {
  color: #C30808;
}

.page-register__dark-bg {
  background-color: #1a1a2e;
  color: #ffffff; /* Light text for dark background */
}

/* Advantages Grid */
.page-register__advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-register__advantage-card {
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white for dark bg */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-register__light-bg .page-register__advantage-card {
  background: #f9f9f9;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-register__advantage-card:hover {
  transform: translateY(-10px);
}

.page-register__advantage-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-register__advantage-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FFFF00; /* Highlighted text for dark bg cards */
}

.page-register__advantage-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-register__light-bg .page-register__advantage-title {
  color: #017439;
}

.page-register__light-bg .page-register__advantage-text {
  color: #333333;
}

/* How-To Steps */
.page-register__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-register__step-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-register__step-title {
  font-size: 1.6em;
  color: #FFFF00;
  margin-bottom: 15px;
}

.page-register__step-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-register__tips-card {
  background: rgba(1, 116, 57, 0.8); /* Brand color with transparency */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 800px;
  margin: 0 auto;
  color: #ffffff;
}

.page-register__tips-title {
  font-size: 1.8em;
  color: #ffffff;
  margin-bottom: 20px;
  text-align: center;
}

.page-register__tips-card ul {
  list-style: none;
  padding: 0;
}

.page-register__tips-card li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  color: #f0f0f0;
}

.page-register__tips-card li::before {
  content: '✔️';
  position: absolute;
  left: 0;
  color: #FFFF00;
}

/* Registration Form */
.page-register__registration-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  background: #f9f9f9;
  border-radius: 10px;
  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 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
  color: #333333;
  background-color: #ffffff;
}

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

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

.page-register__form-checkbox input[type="checkbox"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
}

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

.page-register__checkbox-label a {
  color: #C30808;
}

.page-register__btn-submit {
  width: 100%;
}

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

.page-register__login-prompt a {
  color: #C30808;
  font-weight: bold;
}

/* Games Section */
.page-register__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-register__game-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-register__game-card:hover {
  transform: translateY(-10px);
}

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

.page-register__game-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #FFFF00;
}

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

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

.page-register__game-text {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* Security Section */
.page-register__security-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-register__security-text {
  flex: 1;
  min-width: 300px;
}

.page-register__security-text p {
  margin-bottom: 15px;
  color: #333333;
}

.page-register__security-text a {
  color: #C30808;
  font-weight: bold;
}

.page-register__security-image {
  flex: 1;
  min-width: 300px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

/* FAQ Section */
.page-register__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-register__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-register__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.2em;
  color: #FFFF00;
  background: #017439;
  border-radius: 10px;
}

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

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

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

.page-register__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #f0f0f0;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-register__faq-answer a {
  color: #FFFF00;
}

/* CTA Section */
.page-register__cta-section {
  text-align: center;
  padding: 60px 0;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

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

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

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

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

  .page-register__hero-section {
    padding: 80px 15px;
    min-height: 400px;
  }

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

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

  .page-register__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .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;
    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;
    flex-direction: column;
  }

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

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

  .page-register__advantage-image,
  .page-register__game-image,
  .page-register__security-image,
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-register__advantage-card,
  .page-register__game-card,
  .page-register__step-card,
  .page-register__tips-card,
  .page-register__registration-form,
  .page-register__security-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__security-content {
    flex-direction: column;
  }
  
  .page-register__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-register__faq-item summary {
    font-size: 1.1em;
    padding: 15px 20px;
  }

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

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

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

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

/* Color Contrast Fixes */
.page-register__dark-bg {
  color: #ffffff;
}

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

.page-register__advantage-card,
.page-register__game-card,
.page-register__step-card {
  background: rgba(255, 255, 255, 0.1);
}

.page-register__light-bg .page-register__advantage-card {
  background: #f9f9f9;
}

.page-register__light-bg .page-register__game-card {
  background: #f9f9f9;
  color: #333333;
}

.page-register__light-bg .page-register__game-title a {
  color: #017439;
}

.page-register__light-bg .page-register__game-text {
  color: #333333;
}

.page-register__registration-form {
  background: #ffffff;
}

.page-register__faq-item summary {
  background: #017439;
  color: #FFFF00;
}

.page-register__faq-answer {
  background: rgba(255, 255, 255, 0.05);
  color: #f0f0f0;
}

.page-register__faq-answer a {
  color: #FFFF00;
}

.page-register__tips-card {
  background: #017439;
  color: #ffffff;
}

.page-register__tips-card li::before {
  color: #FFFF00;
}

.page-register__hero-section .page-register__hero-buttons a {
  color: #FFFF00;
}

.page-register__hero-section .page-register__hero-buttons .page-register__btn-secondary {
  color: #ffffff;
  border-color: #ffffff;
}

.page-register__hero-section .page-register__hero-buttons .page-register__btn-secondary:hover {
  color: #017439;
}

.page-register__light-bg .page-register__security-text a {
  color: #C30808;
}

/* Ensure content images in .page-register are not smaller than 200px on desktop */
.page-register img:not(.shared-logo, .shared-social-icon, .shared-payment-icon, .shared-game-provider-icon) {
  min-width: 200px; 
  min-height: 200px;
}

/* Specific overrides for mobile to ensure max-width: 100% !important */
@media (max-width: 768px) {
  .page-register img:not(.shared-logo, .shared-social-icon, .shared-payment-icon, .shared-game-provider-icon) {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: unset !important; /* Allow images to shrink on mobile */
    min-height: unset !important;
  }

  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__advantages-grid,
  .page-register__steps-grid,
  .page-register__games-grid,
  .page-register__security-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }
}