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

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

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

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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  background-color: var(--page-register-background);
  overflow: hidden;
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 40px;
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-register__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-register__main-title {
  color: var(--page-register-gold-color);
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.page-register__hero-description {
  font-size: 1.1em;
  color: var(--page-register-text-secondary);
  margin-bottom: 30px;
}

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

.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  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(--page-register-button-gradient);
  color: var(--page-register-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-register__btn-secondary {
  background: none;
  color: var(--page-register-secondary-color);
  border: 2px solid var(--page-register-secondary-color);
}

.page-register__btn-secondary:hover {
  background-color: var(--page-register-secondary-color);
  color: var(--page-register-background);
}

/* General Section Styles */
.page-register__section-title {
  color: var(--page-register-gold-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Benefits Section */
.page-register__benefits-section {
  padding: 60px 0;
  background-color: var(--page-register-background);
}

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

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

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

.page-register__benefit-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-register__card-title {
  color: var(--page-register-secondary-color);
  font-weight: bold;
  margin-bottom: 15px;
}

.page-register__card-text {
  color: var(--page-register-text-secondary);
  font-size: 0.95em;
}

/* Steps Section */
.page-register__steps-section {
  padding: 60px 0;
  background-color: var(--page-register-deep-green);
}

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

.page-register__step-card {
  background-color: var(--page-register-card-bg);
  border: 1px solid var(--page-register-border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  color: var(--page-register-text-main);
}

.page-register__step-number {
  width: 50px;
  height: 50px;
  background: var(--page-register-button-gradient);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5em;
  font-weight: bold;
  color: var(--page-register-text-main);
  margin: 0 auto 20px auto;
}

.page-register__step-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 20px;
  display: block;
}

/* Promotions Section */
.page-register__promotions-section {
  padding: 60px 0;
  background-color: var(--page-register-background);
}

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

.page-register__promotion-card {
  background-color: var(--page-register-card-bg);
  border: 1px solid var(--page-register-border-color);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  color: var(--page-register-text-main);
  text-align: center;
}

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

.page-register__promotion-card .page-register__card-title a {
  color: var(--page-register-secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-register__promotion-card .page-register__card-title a:hover {
  color: var(--page-register-gold-color);
}

.page-register__btn-text-link {
  color: var(--page-register-glow-color);
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  display: inline-block;
  transition: color 0.3s ease;
}

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

/* Security Section */
.page-register__security-section {
  padding: 60px 0;
  background-color: var(--page-register-deep-green); /* Darker background */
  color: var(--page-register-text-main);
}

.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__sub-title {
  color: var(--page-register-gold-color);
  margin-top: 25px;
  margin-bottom: 15px;
}

.page-register__text-block {
  color: var(--page-register-text-secondary);
  margin-bottom: 20px;
}

.page-register__text-link {
  color: var(--page-register-glow-color);
  text-decoration: none;
  font-weight: bold;
}

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

.page-register__security-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-register__security-image {
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 60px 0;
  background-color: var(--page-register-background);
}

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

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  color: var(--page-register-secondary-color);
  list-style: none;
  user-select: none;
}

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

.page-register__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-register__faq-answer {
  padding: 0 25px 20px 25px;
  color: var(--page-register-text-secondary);
}

.page-register__faq-answer p {
  margin: 0;
  color: var(--page-register-text-secondary);
}

/* Final CTA Section */
.page-register__final-cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--page-register-deep-green);
  color: var(--page-register-text-main);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-register__hero-content {
    padding: 0 40px;
  }
}

@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: 10px !important; /* body already handles --header-offset */
    padding-bottom: 40px;
  }

  .page-register__main-title {
    font-size: 2em; /* Adjusted for mobile, not too large */
    line-height: 1.3;
  }

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

  .page-register__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

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

  .page-register__benefits-grid,
  .page-register__steps-wrapper,
  .page-register__promotion-cards {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-register__benefit-card,
  .page-register__step-card,
  .page-register__promotion-card {
    padding: 25px;
  }

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

  .page-register__security-image-wrapper {
    order: -1; /* Image first on mobile */
    margin-bottom: 30px;
  }

  /* Image responsive rules for content area */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__hero-image-wrapper,
  .page-register__security-image-wrapper,
  .page-register__step-image,
  .page-register__promotion-image,
  .page-register__benefit-icon {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  .page-register__final-cta-section {
    padding: 60px 0;
  }
}

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

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