/* style/register.css */

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

.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: #26A9E0; /* Brand color for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-register__btn-primary {
  display: inline-block;
  background-color: #EA7C07; /* Login/Register color */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

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

.page-register__btn-center {
  display: block;
  margin: 30px auto 0;
  text-align: center;
  max-width: 300px;
}

.page-register__link {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-register__link:hover {
  color: #1a7bb0;
  text-decoration: underline;
}

/* Hero Section */
.page-register__hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background: linear-gradient(135deg, rgba(38, 169, 224, 0.8), rgba(0, 0, 0, 0.8)), url('[GALLERY:hero_register:1920x1080:register,tr88_apk,mobile_gaming,bonus]') no-repeat center center/cover;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-register__hero-content {
  z-index: 1;
  max-width: 800px;
}

.page-register__hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-register__hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  opacity: 0.9;
}

.page-register__hero-image-wrapper {
  display: none; /* Hide on desktop, only for illustrative purpose if needed, otherwise rely on background */
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background */
}

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

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

.page-register__benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-register__benefit-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-register__benefit-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-register__benefit-text {
  font-size: 1em;
  opacity: 0.8;
}

/* Steps Section */
.page-register__steps-section {
  padding: 80px 0;
  background-color: rgba(0, 0, 0, 0.1); /* Darker background */
}

.page-register__steps-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-register__steps-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-register__steps-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-register__steps-list {
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-register__step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  color: #ffffff;
}

.page-register__step-number {
  background-color: #26A9E0;
  color: #ffffff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
  flex-shrink: 0;
  margin-right: 20px;
}

.page-register__step-title {
  font-size: 1.6em;
  margin-top: 0;
  margin-bottom: 5px;
  color: #26A9E0;
}

.page-register__step-text {
  font-size: 1em;
  opacity: 0.8;
}

/* Security Section */
.page-register__security-section {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-register__security-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-register__security-text {
  flex: 1;
  color: #ffffff;
}

.page-register__security-text p {
  margin-bottom: 20px;
  font-size: 1.1em;
}

.page-register__security-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-register__security-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 0;
  background-color: rgba(0, 0, 0, 0.1);
}

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

.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: 20px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-register__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #26A9E0;
}

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

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

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: rgba(255, 255, 255, 0.05);
}

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

.page-register__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
  font-size: 1em;
  opacity: 0.8;
}

/* CTA Section */
.page-register__cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(45deg, rgba(38, 169, 224, 0.8), rgba(234, 124, 7, 0.8)), url('[GALLERY:cta_register:1920x1080:cta,register,join,tr88_apk]') no-repeat center center/cover;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

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

.page-register__cta-text {
  font-size: 1.3em;
  margin-bottom: 40px;
  opacity: 0.9;
}

.page-register__cta-image {
  display: none; /* Hide on desktop, rely on background image */
}

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

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

  .page-register__steps-content,
  .page-register__security-content {
    flex-direction: column;
  }

  .page-register__security-image-wrapper,
  .page-register__steps-image-wrapper {
    order: -1; /* Image above text on smaller screens */
    margin-bottom: 30px;
  }
}

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

  .page-register__container {
    padding: 0 15px;
  }

  .page-register__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    min-height: 60vh;
  }

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

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

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

  .page-register__btn-primary {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-register__btn-center {
    max-width: 100%;
  }

  .page-register__benefits-section,
  .page-register__steps-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__cta-section {
    padding: 40px 0;
  }

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

  .page-register__step-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .page-register__step-number {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .page-register__step-title {
    font-size: 1.4em;
  }

  .page-register__security-text p {
    font-size: 1em;
  }

  .page-register__faq-question h3 {
    font-size: 1.1em;
  }

  .page-register__faq-answer p {
    font-size: 0.95em;
  }

  /* Mobile image and video responsive adaptation */
  .page-register img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-register__hero-image-wrapper,
  .page-register__steps-image-wrapper,
  .page-register__security-image-wrapper,
  .page-register__cta-image-wrapper,
  .page-register__benefits-grid,
  .page-register__steps-content,
  .page-register__security-content,
  .page-register__cta-buttons,
  .page-register__button-group,
  .page-register__btn-container,
  .page-register__hero-section,
  .page-register__benefits-section,
  .page-register__steps-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-register__benefits-grid {
    flex-direction: column;
    gap: 20px;
  }

  .page-register__cta-text {
    font-size: 1.1em;
  }
}