/* style/khuyen-mai-dang-ky.css */

:root {
  --primary-color: #113B7A;
  --secondary-color: #1D5FD1;
  --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --card-bg: #10233F;
  --text-main: #F3F8FF;
  --text-secondary: #AFC4E8;
  --border-color: #244D84;
  --glow-color: #4FA8FF;
  --gold-color: #F2C14E;
  --divider-color: #1B3357;
  --deep-navy: #08162B; /* Body background from shared.css */
}

.page-khuyen-mai-dang-ky {
  color: var(--text-main); /* Default text color for the page content */
  background-color: var(--deep-navy);
}

.page-khuyen-mai-dang-ky__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* Hero/Main Promo Section */
.page-khuyen-mai-dang-ky__promo-hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 60px;
  background-color: var(--deep-navy);
  display: flex;
  align-items: center;
}

.page-khuyen-mai-dang-ky__promo-hero-section .page-khuyen-mai-dang-ky__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding-top: 40px;
}

.page-khuyen-mai-dang-ky__promo-content {
  flex: 1 1 45%;
  min-width: 300px;
}

.page-khuyen-mai-dang-ky__main-title {
  font-size: 3.2em;
  font-weight: bold;
  line-height: 1.2;
  color: var(--gold-color);
  margin-bottom: 20px;
  text-shadow: 0 0 8px var(--glow-color);
}

.page-khuyen-mai-dang-ky__description {
  font-size: 1.1em;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.page-khuyen-mai-dang-ky__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-khuyen-mai-dang-ky__btn-primary,
.page-khuyen-mai-dang-ky__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-khuyen-mai-dang-ky__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-khuyen-mai-dang-ky__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-khuyen-mai-dang-ky__btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--border-color);
}

.page-khuyen-mai-dang-ky__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--gold-color);
  color: var(--gold-color);
}

.page-khuyen-mai-dang-ky__promo-image-wrapper {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: center;
}

.page-khuyen-mai-dang-ky__promo-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  display: block;
  margin: 0 auto;
}

/* General Section Styling */
.page-khuyen-mai-dang-ky__promo-details-section,
.page-khuyen-mai-dang-ky__guide-section,
.page-khuyen-mai-dang-ky__terms-section,
.page-khuyen-mai-dang-ky__why-89win-section,
.page-khuyen-mai-dang-ky__faq-section,
.page-khuyen-mai-dang-ky__final-cta-section {
  padding: 60px 0;
  background-color: var(--deep-navy);
}

.page-khuyen-mai-dang-ky__section-title {
  font-size: 2.5em;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.3;
}

.page-khuyen-mai-dang-ky__text-block {
  font-size: 1.05em;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.page-khuyen-mai-dang-ky__feature-list,
.page-khuyen-mai-dang-ky__steps-list,
.page-khuyen-mai-dang-ky__terms-list {
  list-style-type: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.page-khuyen-mai-dang-ky__feature-list li,
.page-khuyen-mai-dang-ky__steps-list li,
.page-khuyen-mai-dang-ky__terms-list li {
  background-color: var(--card-bg);
  border-left: 4px solid var(--secondary-color);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 6px;
  color: var(--text-main);
  line-height: 1.6;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai-dang-ky__steps-list li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 50px;
}

.page-khuyen-mai-dang-ky__steps-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--gold-color);
  color: var(--primary-color);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1em;
}

.page-khuyen-mai-dang-ky__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  margin: 30px auto;
  display: block;
}

.page-khuyen-mai-dang-ky__text-link {
  color: var(--gold-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-khuyen-mai-dang-ky__text-link:hover {
  color: var(--glow-color);
}

.page-khuyen-mai-dang-ky__why-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.page-khuyen-mai-dang-ky__why-text {
  flex: 1 1 45%;
  min-width: 300px;
}

.page-khuyen-mai-dang-ky__why-image-wrapper {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: center;
}

/* FAQ Section */
.page-khuyen-mai-dang-ky__faq-list {
  margin-top: 30px;
}

.page-khuyen-mai-dang-ky__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai-dang-ky__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--divider-color);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-khuyen-mai-dang-ky__faq-question::-webkit-details-marker {
  display: none;
}

.page-khuyen-mai-dang-ky__faq-item[open] .page-khuyen-mai-dang-ky__faq-question {
  background-color: var(--primary-color);
  color: var(--gold-color);
}

.page-khuyen-mai-dang-ky__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold-color);
}

.page-khuyen-mai-dang-ky__faq-item[open] .page-khuyen-mai-dang-ky__faq-toggle {
  color: #ffffff;
}

.page-khuyen-mai-dang-ky__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-secondary);
  background-color: var(--card-bg);
}

.page-khuyen-mai-dang-ky__faq-answer p {
  margin-bottom: 0;
}

.page-khuyen-mai-dang-ky__cta-wrapper {
  text-align: center;
  margin-top: 40px;
}

/* Final CTA Section */
.page-khuyen-mai-dang-ky__final-cta-section {
  padding-bottom: 80px;
}

.page-khuyen-mai-dang-ky__final-cta-section .page-khuyen-mai-dang-ky__description {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Universal Image Responsiveness (for content images) */
.page-khuyen-mai-dang-ky img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-khuyen-mai-dang-ky__main-title {
    font-size: 2.8em;
  }

  .page-khuyen-mai-dang-ky__section-title {
    font-size: 2em;
  }

  .page-khuyen-mai-dang-ky__promo-hero-section .page-khuyen-mai-dang-ky__container {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .page-khuyen-mai-dang-ky__promo-hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-khuyen-mai-dang-ky__promo-hero-section .page-khuyen-mai-dang-ky__container {
    flex-direction: column;
    padding-top: 20px;
    gap: 20px;
  }

  .page-khuyen-mai-dang-ky__promo-content,
  .page-khuyen-mai-dang-ky__promo-image-wrapper {
    flex: 1 1 100%;
    min-width: unset;
  }

  .page-khuyen-mai-dang-ky__main-title {
    font-size: 2em;
    text-align: center;
  }

  .page-khuyen-mai-dang-ky__description {
    font-size: 1em;
    text-align: center;
  }

  .page-khuyen-mai-dang-ky__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .page-khuyen-mai-dang-ky__btn-primary,
  .page-khuyen-mai-dang-ky__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-khuyen-mai-dang-ky__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-khuyen-mai-dang-ky__promo-details-section,
  .page-khuyen-mai-dang-ky__guide-section,
  .page-khuyen-mai-dang-ky__terms-section,
  .page-khuyen-mai-dang-ky__why-89win-section,
  .page-khuyen-mai-dang-ky__faq-section,
  .page-khuyen-mai-dang-ky__final-cta-section {
    padding: 40px 0;
  }

  .page-khuyen-mai-dang-ky__feature-list li,
  .page-khuyen-mai-dang-ky__steps-list li,
  .page-khuyen-mai-dang-ky__terms-list li {
    padding: 12px 15px;
    font-size: 0.95em;
  }

  .page-khuyen-mai-dang-ky__steps-list li {
    padding-left: 45px;
  }

  .page-khuyen-mai-dang-ky__steps-list li::before {
    width: 25px;
    height: 25px;
    font-size: 1em;
    left: 10px;
  }

  .page-khuyen-mai-dang-ky__why-content {
    flex-direction: column;
    gap: 20px;
  }

  .page-khuyen-mai-dang-ky__why-text,
  .page-khuyen-mai-dang-ky__why-image-wrapper {
    flex: 1 1 100%;
    min-width: unset;
  }

  .page-khuyen-mai-dang-ky__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-khuyen-mai-dang-ky__faq-answer {
    padding: 12px 20px 15px;
    font-size: 0.95em;
  }

  /* Mandatory image rules for mobile */
  .page-khuyen-mai-dang-ky img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-khuyen-mai-dang-ky__container,
  .page-khuyen-mai-dang-ky__promo-details-section,
  .page-khuyen-mai-dang-ky__guide-section,
  .page-khuyen-mai-dang-ky__terms-section,
  .page-khuyen-mai-dang-ky__why-89win-section,
  .page-khuyen-mai-dang-ky__faq-section,
  .page-khuyen-mai-dang-ky__final-cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}