/* style/register.css */
/* body đã padding-top: var(--header-offset) từ shared.css, không lặp lại ở đây */

: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-color: #0A4B2C;
  --page-register-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

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

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

.page-register__section-title {
  font-size: clamp(28px, 4vw, 48px);
  color: var(--page-register-text-main);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-register__section-description {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--page-register-text-secondary);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
}

.page-register__text-center {
  text-align: center;
}

.page-register__text-link {
  color: var(--page-register-secondary-color);
  text-decoration: none;
}

.page-register__text-link:hover {
  text-decoration: underline;
}

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
}

.page-register__btn-primary {
  background: var(--page-register-button-gradient);
  color: var(--page-register-text-main);
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-register__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-register__btn-secondary {
  background-color: transparent;
  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-text-main);
  transform: translateY(-2px);
}

.page-register__large-btn {
  padding: 15px 30px;
  font-size: 20px;
}

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

.page-register__hero-image-wrapper {
  width: 100%;
  position: relative;
  z-index: 0;
}

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

.page-register__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
  margin-top: -100px; /* Overlap slightly with image for visual flow */
}

.page-register__main-title {
  font-size: clamp(32px, 5vw, 60px);
  color: var(--page-register-text-main);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.page-register__description {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--page-register-text-secondary);
  margin-bottom: 30px;
  line-height: 1.5;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

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

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

.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-deep-green-color);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-register-border-color);
}

.page-register__benefit-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px rgba(87, 227, 141, 0.5));
}

.page-register__card-title {
  font-size: 22px;
  color: var(--page-register-gold-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-register__benefit-card p {
  font-size: 16px;
  color: var(--page-register-text-secondary);
  line-height: 1.6;
}

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

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

.page-register__step-item {
  text-align: center;
  position: relative;
  padding-top: 40px;
}

.page-register__step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--page-register-button-gradient);
  color: var(--page-register-text-main);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  border: 3px solid var(--page-register-deep-green-color);
  box-shadow: 0 0 15px rgba(87, 227, 141, 0.7);
}

.page-register__step-image {
  width: 100%;
  height: 200px;
  object-fit: contain;
  margin-top: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 15px;
  box-sizing: border-box;
}

.page-register__step-title {
  font-size: 20px;
  color: var(--page-register-text-main);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-register__step-item p {
  font-size: 15px;
  color: var(--page-register-text-secondary);
  line-height: 1.5;
}

/* Form Section */
.page-register__form-section {
  padding: 80px 0;
  background-color: var(--page-register-card-bg);
}

.page-register__registration-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--page-register-deep-green-color);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-register-border-color);
}

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

.page-register__form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  color: var(--page-register-text-main);
  font-weight: 500;
}

.page-register__form-group input[type="text"],
.page-register__form-group input[type="password"],
.page-register__form-group input[type="tel"],
.page-register__form-group input[type="email"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--page-register-border-color);
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.2);
  color: var(--page-register-text-main);
  font-size: 16px;
  box-sizing: border-box;
}

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

.page-register__checkbox-group {
  display: flex;
  align-items: center;
  margin-top: 25px;
  margin-bottom: 30px;
}

.page-register__checkbox-group input[type="checkbox"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  accent-color: var(--page-register-secondary-color);
}

.page-register__checkbox-group label {
  margin-bottom: 0;
  font-size: 15px;
}

.page-register__form-submit-btn {
  width: 100%;
  font-size: 20px;
  padding: 15px 25px;
}

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

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

.page-register__promotion-card {
  background-color: var(--page-register-deep-green-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-register-border-color);
  display: flex;
  flex-direction: column;
}

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

.page-register__promotion-card .page-register__card-title {
  font-size: 20px;
  margin: 20px 20px 10px 20px;
  text-align: left;
}

.page-register__promotion-card p {
  font-size: 15px;
  color: var(--page-register-text-secondary);
  line-height: 1.5;
  margin: 0 20px 20px 20px;
  flex-grow: 1;
}

.page-register__promotion-card .page-register__btn-secondary {
  margin: 0 20px 20px 20px;
  align-self: flex-start;
}

/* Security Section */
.page-register__security-section {
  padding: 80px 0;
  background-color: var(--page-register-card-bg);
}

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

.page-register__security-feature {
  background-color: var(--page-register-deep-green-color);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-register-border-color);
}

.page-register__security-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px rgba(87, 227, 141, 0.5));
}

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

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

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: var(--page-register-text-main);
  cursor: pointer;
  background-color: var(--page-register-deep-green-color);
  border-bottom: 1px solid var(--page-register-divider-color);
  list-style: none; /* For details/summary */
}

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

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

.page-register__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-register-gold-color);
}

.page-register__faq-item[open] .page-register__faq-toggle {
  content: '−';
}

.page-register__faq-answer {
  padding: 20px 25px;
  font-size: 16px;
  color: var(--page-register-text-secondary);
  line-height: 1.6;
}

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

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-register__hero-content {
    margin-top: -80px;
  }
  .page-register__main-title {
    font-size: clamp(28px, 4.5vw, 50px);
  }
  .page-register__description {
    font-size: clamp(16px, 2.2vw, 20px);
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    padding-bottom: 40px;
  }
  .page-register__hero-content {
    margin-top: -60px;
  }
  .page-register__main-title {
    font-size: clamp(24px, 6vw, 40px);
  }
  .page-register__description {
    font-size: clamp(15px, 2.5vw, 18px);
  }
  .page-register__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .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;
  }
  .page-register__cta-buttons,
  .page-register__button-group,
  .page-register__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-register__container {
    padding: 0 15px;
  }
  .page-register__section-title {
    font-size: clamp(24px, 6vw, 36px);
  }
  .page-register__section-description {
    font-size: clamp(14px, 2.5vw, 18px);
  }
  .page-register__benefits-section,
  .page-register__steps-section,
  .page-register__form-section,
  .page-register__promotions-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__final-cta-section {
    padding: 40px 0;
  }
  .page-register__registration-form {
    padding: 25px;
  }
  .page-register__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }
  .page-register__faq-answer {
    padding: 15px 20px;
    font-size: 14px;
  }

  /* Image responsive adjustments */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-register__hero-image-wrapper,
  .page-register__benefits-grid,
  .page-register__steps-grid,
  .page-register__promotions-grid,
  .page-register__security-grid,
  .page-register__form-group,
  .page-register__checkbox-group,
  .page-register__faq-list,
  .page-register__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  .page-register__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-register__step-image {
    height: 150px;
  }
  .page-register__promotion-image {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .page-register__main-title {
    font-size: clamp(22px, 7vw, 32px);
  }
  .page-register__description {
    font-size: clamp(14px, 3vw, 16px);
  }
  .page-register__btn-primary,
  .page-register__btn-secondary {
    font-size: 16px;
    padding: 10px 20px;
  }
  .page-register__large-btn {
    font-size: 18px;
    padding: 12px 25px;
  }
  .page-register__hero-content {
    margin-top: -40px;
  }
}

/* Color contrast fixes for specific elements */
.page-register__dark-section {
  background-color: var(--page-register-card-bg);
  color: var(--page-register-text-main);
}
.page-register__dark-section .page-register__section-description,
.page-register__dark-section .page-register__benefit-card p,
.page-register__dark-section .page-register__security-feature p {
  color: var(--page-register-text-secondary);
}

/* Ensure form inputs have good contrast */
.page-register__form-group input {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--page-register-text-main);
}
.page-register__form-group input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}
.page-register__checkbox-group label {
  color: var(--page-register-text-secondary);
}