/* style/register.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm */

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

.page-register {
  font-family: 'Arial', sans-serif;
  color: var(--iwin68-text-main);
  background-color: var(--iwin68-background);
  line-height: 1.6;
}

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

.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  position: relative;
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text contrast */
}

.page-register__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 800px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 8px;
}

.page-register__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
  font-weight: 700;
  color: var(--iwin68-text-main);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-register__hero-description {
  font-size: 1.1em;
  color: var(--iwin68-text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn-primary {
  background: var(--iwin68-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-register__btn-secondary {
  background-color: transparent;
  color: var(--iwin68-main-color);
  border: 2px solid var(--iwin68-main-color);
  margin-left: 20px;
}

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

.page-register__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  color: var(--iwin68-text-main);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.page-register__section-description {
  font-size: 1.05em;
  color: var(--iwin68-text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-register__why-join-section,
.page-register__steps-section,
.page-register__promotions-section,
.page-register__final-cta-section {
  padding: 80px 0;
}

.page-register__dark-section {
  background-color: var(--iwin68-deep-green);
  padding: 80px 0;
  color: var(--iwin68-text-main);
}

.page-register__dark-section .page-register__section-description {
  color: var(--iwin68-text-secondary);
}

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

.page-register__card {
  background-color: var(--iwin68-card-bg);
  border: 1px solid var(--iwin68-border);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.page-register__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-register__feature-icon,
.page-register__promo-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

.page-register__step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--iwin68-button-gradient);
  color: #ffffff;
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-register__card-title {
  font-size: 1.5em;
  color: var(--iwin68-text-main);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-register__card-text {
  font-size: 1em;
  color: var(--iwin68-text-secondary);
  flex-grow: 1;
}

.page-register__cta-bottom {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 60px;
  flex-wrap: wrap;
}

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

.page-register__security-item {
  text-align: center;
  padding: 20px;
  border-radius: 12px;
  background-color: var(--iwin68-card-bg);
  border: 1px solid var(--iwin68-border);
}

.page-register__security-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
  object-fit: contain;
  min-width: 200px; /* Ensure min size, though icons are typically smaller, following rule */
  min-height: 200px; /* Ensure min size */
}

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 0;
  background-color: var(--iwin68-deep-green);
}

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

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--iwin68-text-main);
  cursor: pointer;
  background-color: var(--iwin68-card-bg);
  position: relative;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

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

.page-register__faq-question::marker {
  display: none;
}

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

.page-register__faq-toggle {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--iwin68-main-color);
  margin-left: 15px;
  transition: transform 0.3s ease;
}

details[open] > .page-register__faq-question .page-register__faq-toggle {
  transform: rotate(45deg);
}

.page-register__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: var(--iwin68-text-secondary);
  line-height: 1.7;
  text-align: left;
}

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

.page-register__faq-answer p:last-child {
  margin-bottom: 0;
}

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

.page-register__text-link:hover {
  color: var(--iwin68-secondary-color);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-register__hero-content {
    max-width: 90%;
  }
}

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

  .page-register__hero-section {
    padding-bottom: 40px;
  }

  .page-register__hero-content {
    position: static;
    transform: none;
    background-color: transparent; /* Remove background on mobile for better readability */
    padding: 20px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-register__hero-image-wrapper {
    max-height: 300px;
  }

  .page-register__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-register__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-register__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 15px;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-register__cta-bottom {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-register__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
    margin-bottom: 15px;
  }

  .page-register__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-register__why-join-section,
  .page-register__steps-section,
  .page-register__promotions-section,
  .page-register__final-cta-section,
  .page-register__dark-section {
    padding: 40px 0;
  }

  .page-register__features-grid,
  .page-register__steps-grid,
  .page-register__promo-cards-grid,
  .page-register__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-register__card {
    padding: 25px;
  }

  .page-register__feature-icon,
  .page-register__promo-image,
  .page-register__security-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
    box-sizing: border-box !important;
    display: block !important;
  }

  /* Image containers */
  .page-register__hero-section,
  .page-register__why-join-section,
  .page-register__steps-section,
  .page-register__security-section,
  .page-register__promotions-section,
  .page-register__faq-section,
  .page-register__final-cta-section,
  .page-register__container,
  .page-register__card,
  .page-register__feature-card,
  .page-register__step-card,
  .page-register__promo-card,
  .page-register__security-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

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

  .page-register__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95em;
  }
}

@media (max-width: 480px) {
  .page-register__main-title {
    font-size: clamp(1.5em, 8vw, 2em);
  }

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

  .page-register__section-title {
    font-size: clamp(1.3em, 7vw, 1.8em);
  }

  .page-register__card-title {
    font-size: 1.3em;
  }
}