/* style/register.css */
:root {
  --color-primary: #11A84E;
  --color-secondary: #22C768;
  --color-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --color-card-bg: #11271B;
  --color-background: #08160F;
  --color-text-main: #F2FFF6;
  --color-text-secondary: #A7D9B8;
  --color-border: #2E7A4E;
  --color-glow: #57E38D;
  --color-gold: #F2C14E;
  --color-divider: #1E3A2A;
  --color-deep-green: #0A4B2C;
}

.page-register {
  font-family: 'Arial', sans-serif;
  color: var(--color-text-main); /* Default text color for the page */
  background-color: var(--color-background); /* Default background color for the page */
}

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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px;
  padding-bottom: 60px;
  overflow: hidden;
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px;
  margin-bottom: 30px;
  border-radius: 8px;
}

.page-register__hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-register__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-gold);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-register__hero-description {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: 30px;
}

.page-register__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-register__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 2px;
}

.page-register__text-content {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-main);
  margin-bottom: 20px;
  text-align: justify;
}

.page-register__text-link {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-register__text-link:hover {
  color: var(--color-gold);
  text-decoration: underline;
}

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn-primary {
  background: var(--color-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 5px 15px rgba(34, 199, 104, 0.4);
}

.page-register__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(34, 199, 104, 0.6);
}

.page-register__btn-secondary {
  background: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
  box-shadow: 0 5px 15px rgba(34, 199, 104, 0.2);
}

.page-register__btn-secondary:hover {
  background: var(--color-secondary);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(34, 199, 104, 0.4);
}

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

/* Sections */
.page-register__benefits-section,
.page-register__steps-section,
.page-register__form-section,
.page-register__security-section,
.page-register__explore-games-section,
.page-register__promotions-section,
.page-register__faq-section,
.page-register__cta-final {
  padding: 60px 0;
}

.page-register__benefits-section,
.page-register__steps-section,
.page-register__form-section,
.page-register__explore-games-section,
.page-register__promotions-section {
  background-color: var(--color-card-bg);
  margin-bottom: 20px;
  border-radius: 8px;
}

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

.page-register__benefit-card {
  background-color: var(--color-background);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease;
}

.page-register__benefit-card:hover {
  transform: translateY(-5px);
}

.page-register__benefit-icon {
  width: 100%;
  max-width: 120px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
}

.page-register__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: 15px;
}

.page-register__card-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

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

.page-register__step-card {
  background-color: var(--color-background);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.page-register__step-number {
  position: absolute;
  top: -10px;
  left: -10px;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transform: rotate(-15deg);
  box-shadow: 0 0 15px rgba(34, 199, 104, 0.6);
}

/* Form Section */
.page-register__form-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
  background-color: var(--color-background);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-border);
}

.page-register__form-image {
  width: 100%;
  max-width: 450px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.page-register__registration-form {
  flex: 1;
  min-width: 300px;
}

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

.page-register__form-label {
  display: block;
  font-size: 1rem;
  color: var(--color-text-main);
  margin-bottom: 8px;
}

.page-register__form-input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background-color: var(--color-deep-green);
  color: var(--color-text-main);
  font-size: 1rem;
  box-sizing: border-box;
}

.page-register__form-input::placeholder {
  color: var(--color-text-secondary);
  opacity: 0.7;
}

.page-register__form-input:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(34, 199, 104, 0.3);
}

.page-register__checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-register__form-checkbox {
  width: 20px;
  height: 20px;
  accent-color: var(--color-primary);
}

.page-register__form-submit-btn {
  width: 100%;
  margin-top: 20px;
  padding: 15px 20px;
}

/* Games Section */
.page-register__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.page-register__game-card {
  background-color: var(--color-background);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text-main);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(34, 199, 104, 0.4);
}

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

.page-register__game-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-gold);
  padding: 15px;
  text-align: center;
}

/* Promotions Section */
.page-register__promotion-content {
  background-color: var(--color-background);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-border);
  text-align: center;
}

.page-register__promotion-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  text-align: left;
  display: inline-block;
}

.page-register__promotion-list li {
  position: relative;
  font-size: 1.05rem;
  color: var(--color-text-main);
  margin-bottom: 10px;
  padding-left: 30px;
}

.page-register__promotion-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: 700;
}

/* FAQ Section */
.page-register__faq-list {
  margin-top: 40px;
}

.page-register__faq-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text-main);
  cursor: pointer;
  background-color: var(--color-deep-green);
  transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
  background-color: var(--color-border);
}

.page-register__faq-item[open] .page-register__faq-question {
  background-color: var(--color-primary);
  color: #ffffff;
}

.page-register__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--color-secondary);
  transition: transform 0.3s ease, color 0.3s ease;
}

.page-register__faq-item[open] .page-register__faq-toggle {
  transform: rotate(45deg);
  color: #ffffff;
}

.page-register__faq-answer {
  padding: 15px 25px 25px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  background-color: var(--color-card-bg);
  border-top: 1px solid var(--color-border);
}

.page-register__faq-item summary {
  list-style: none;
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-register__container {
    padding: 0 15px;
  }

  .page-register__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-register__hero-image {
    margin-bottom: 20px;
    max-height: 300px;
  }

  .page-register__main-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }

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

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

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

  .page-register__form-image {
    max-width: 100% !important;
    width: 100% !important;
  }

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

  /* Button responsive rules */
  .page-register__btn-primary,
  .page-register__btn-secondary,
  .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;
    margin-bottom: 15px; /* Add space between stacked buttons */
  }

  .page-register__btn-center {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .page-register__hero-content .page-register__btn-primary {
    margin-bottom: 0;
  }

  .page-register__form-wrapper {
    flex-direction: column;
    padding: 30px 15px;
  }

  .page-register__registration-form {
    min-width: unset;
    width: 100%;
  }

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

  .page-register__game-title {
    font-size: 1rem;
  }

  .page-register__promotion-list {
    margin: 20px 0;
  }

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

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

  .page-register__faq-toggle {
    font-size: 1.5rem;
  }

  .page-register__cta-final .page-register__btn-primary {
    margin-bottom: 0;
  }

  /* General container padding for mobile */
  .page-register__hero-content,
  .page-register__benefits-section .page-register__container,
  .page-register__steps-section .page-register__container,
  .page-register__form-section .page-register__container,
  .page-register__security-section .page-register__container,
  .page-register__explore-games-section .page-register__container,
  .page-register__promotions-section .page-register__container,
  .page-register__faq-section .page-register__container,
  .page-register__cta-final .page-register__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-register__benefits-section,
  .page-register__steps-section,
  .page-register__form-section,
  .page-register__security-section,
  .page-register__explore-games-section,
  .page-register__promotions-section,
  .page-register__faq-section,
  .page-register__cta-final {
    padding: 40px 0;
  }
}