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

.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Body background is light */
}

.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: #26A9E0; /* Brand primary color */
  color: #ffffff;
  text-align: center;
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit image height */
  overflow: hidden;
}

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

.page-register__hero-content {
  max-width: 900px;
  margin-top: 40px;
  padding: 0 20px;
}

.page-register__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-register__description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #ffffff;
}

/* Shared Section Styles */
.page-register__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: #26A9E0; /* Brand primary color */
}

.page-register__dark-bg .page-register__section-title,
.page-register__dark-bg .page-register__text-block,
.page-register__dark-bg .page-register__step-title,
.page-register__dark-bg .page-register__step-description,
.page-register__dark-bg .page-register__notes-list li,
.page-register__dark-bg .page-register__faq-qtext,
.page-register__dark-bg .page-register__faq-answer {
  color: #ffffff;
}

.page-register__light-bg {
  background-color: #ffffff;
  padding: 80px 0;
  color: #333333;
}

.page-register__dark-bg {
  background-color: #26A9E0;
  padding: 80px 0;
  color: #ffffff;
}

.page-register__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: justify;
}

.page-register__highlight {
  font-weight: bold;
  color: #EA7C07; /* Login color for emphasis */
}

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

.page-register__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-register__btn-primary:hover {
  background-color: #e06c00;
  border-color: #e06c00;
}

.page-register__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0; /* Brand primary color */
  border: 2px solid #26A9E0;
}

.page-register__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1a8cc7;
  border-color: #1a8cc7;
}

/* Why Join Section */
.page-register__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-register__feature-item {
  text-align: center;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.page-register__feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-register__feature-description {
  font-size: 1rem;
  color: #555555;
}

/* Guide Section */
.page-register__guide-section .page-register__section-title {
  margin-bottom: 50px;
}

.page-register__step-item {
  margin-bottom: 60px;
  text-align: center;
}

.page-register__step-item:last-child {
  margin-bottom: 0;
}

.page-register__step-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-register__step-description {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: #555555;
}

.page-register__step-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-register__form-list {
  list-style: none;
  padding: 0;
  margin: 20px auto 30px auto;
  max-width: 600px;
  text-align: left;
}

.page-register__form-list li {
  background-color: #f0f8ff;
  border-left: 5px solid #26A9E0;
  padding: 10px 15px;
  margin-bottom: 10px;
  border-radius: 5px;
  color: #333333;
  font-size: 1rem;
}

/* Notes Section */
.page-register__notes-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 900px;
}

.page-register__notes-list li {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 5px solid #EA7C07;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 1.1rem;
}

.page-register__notes-list li strong {
  color: #ffffff;
}

/* Promotions Section */
.page-register__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 50px;
}

.page-register__promo-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
}

.page-register__promo-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-register__promo-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
  padding: 0 15px;
}

.page-register__promo-description {
  font-size: 1rem;
  color: #555555;
  padding: 0 15px;
}

/* Security Section */
.page-register__security-section .page-register__btn-secondary {
  margin-top: 30px;
}

/* FAQ Section */
.page-register__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__faq-item {
  background-color: #f9f9f9;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

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

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #f0f8ff;
  border-bottom: 1px solid #e0e0e0;
}

.page-register__faq-question:hover {
  background-color: #e6f7ff;
}

.page-register__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #26A9E0;
}

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

.page-register__faq-answer {
  padding: 20px;
  font-size: 1rem;
  color: #555555;
  background-color: #ffffff;
}

/* Conclusion Section */
.page-register__conclusion-section .page-register__btn-primary {
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-register__section-title {
    font-size: 2rem;
  }

  .page-register__features-grid,
  .page-register__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-register__hero-content {
    margin-top: 20px;
  }

  .page-register__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-register__description {
    font-size: 1rem;
  }

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

  .page-register__light-bg,
  .page-register__dark-bg {
    padding: 60px 0;
  }

  .page-register__text-block,
  .page-register__feature-description,
  .page-register__step-description,
  .page-register__notes-list li,
  .page-register__promo-description,
  .page-register__faq-answer {
    font-size: 0.95rem;
  }

  .page-register__btn-primary,
  .page-register__btn-secondary {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .page-register__step-title {
    font-size: 1.6rem;
  }

  .page-register__faq-question {
    font-size: 1.1rem;
  }

  /* Mobile image, video, and button adaptations */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-register video,
  .page-register__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__video-section,
  .page-register__video-container,
  .page-register__video-wrapper,
  .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;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

  .page-register__hero-section,
  .page-register__why-join-section,
  .page-register__guide-section,
  .page-register__notes-section,
  .page-register__promotions-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__conclusion-section {
    padding-left: 0;
    padding-right: 0;
  }

  .page-register__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }

  .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;
    margin-bottom: 10px; /* Spacing for stacked buttons */
  }

  .page-register__cta-buttons,
  .page-register__button-group,
  .page-register__btn-container {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Space between buttons when stacked */
  }
}

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

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

  .page-register__hero-section {
    padding: 10px 0 30px 0;
  }

  .page-register__light-bg,
  .page-register__dark-bg {
    padding: 40px 0;
  }

  .page-register__btn-primary,
  .page-register__btn-secondary {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}