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

.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px);
  background-color: #f0f8f0; /* Light green tint for hero background */
  color: #333333;
}

.page-register__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-register__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-register__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-register__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-register__hero-title {
  font-size: 44px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #017439;
}

.page-register__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: #555555;
}

.page-register__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #C30808; /* Custom color for register button */
  color: #FFFF00; /* Custom font color for register button */
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
}

.page-register__cta-button:hover {
  background: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-register__cta-button--centered {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
}

.page-register__section {
  padding: 80px 20px;
  text-align: center;
}

.page-register__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-register__section-title {
  font-size: 38px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #017439;
}

.page-register__section-title--light {
  color: #FFFFFF;
}

.page-register__section-intro {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

.page-register__section-intro--light {
  color: #f0f0f0;
}

.page-register__why-register {
  background-color: #FFFFFF;
  color: #333333;
}

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

.page-register__feature-item {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

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

.page-register__feature-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #017439;
}

.page-register__feature-text {
  font-size: 16px;
  color: #666666;
  line-height: 1.7;
}

.page-register__dark-bg {
  background-color: #017439; /* Primary color as dark background */
  color: #ffffff;
}

.page-register__registration-guide {
  background-color: #017439;
  color: #ffffff;
}

.page-register__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-register__guide-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  min-height: 250px;
}

.page-register__guide-icon {
  background: #C30808; /* Custom color */
  color: #FFFF00; /* Custom font color */
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-register__guide-heading {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-register__guide-text {
  font-size: 16px;
  color: #f0f0f0;
  line-height: 1.7;
}

.page-register__guide-list {
  list-style-type: disc;
  margin-left: 20px;
  color: #f0f0f0;
  font-size: 15px;
}

.page-register__guide-list li {
  margin-bottom: 8px;
}

.page-register__guide-image-wrapper {
  margin-top: 60px;
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
}

.page-register__guide-image-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-register__benefits-section {
  background-color: #f8f8f8;
  color: #333333;
}

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

.page-register__benefit-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-register__benefit-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #017439;
}

.page-register__benefit-text {
  font-size: 16px;
  color: #666666;
  line-height: 1.7;
}

.page-register__image-container {
  margin-top: 60px;
  display: flex;
  justify-content: center;
}

.page-register__image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-register__faq-section {
  background-color: #017439;
  color: #ffffff;
}

.page-register__faq-list {
  margin-top: 40px;
  text-align: left;
}

/* FAQ容器样式 */
.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: #ffffff;
}

/* FAQ默认状态 - 答案隐藏 */
.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  color: #333333;
}

/* FAQ展开状态 - 🚨 使用!important và đủ lớn max-height */
.page-register__faq-item.active .page-register__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng!important để đảm bảo ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

/* Vấn đề (Câu hỏi) kiểu dáng */
.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #333333;
}

.page-register__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-register__faq-question:active {
  background: #eeeeee;
}

/* Tiêu đề câu hỏi kiểu dáng */
.page-register__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn chặn thẻ h3 chặn sự kiện nhấp */
  color: #017439;
}

/* Biểu tượng chuyển đổi */
.page-register__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Ngăn chặn biểu tượng chặn sự kiện nhấp */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-register__faq-item.active .page-register__faq-toggle {
  color: #C30808;
  transform: rotate(45deg);
}

.page-register__download-app {
  background-color: #FFFFFF;
  color: #333333;
}

.page-register__app-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.page-register__app-text {
  flex: 1;
  min-width: 300px;
}

.page-register__app-text p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #555555;
}

.page-register__app-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-register__app-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-register__cta-button--download {
  margin-top: 20px;
  background: #017439;
  color: #ffffff;
  padding: 15px 30px;
  font-size: 18px;
}

.page-register__cta-button--download:hover {
  background: #005f2c;
}

.page-register__commitment-section {
  background-color: #017439;
  color: #ffffff;
}

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

.page-register__commitment-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.page-register__commitment-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-register__commitment-text {
  font-size: 16px;
  color: #f0f0f0;
  line-height: 1.7;
}

/* General image responsiveness */
.page-register img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-register__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__hero-title {
    font-size: 32px;
  }

  .page-register__hero-description {
    font-size: 16px;
  }

  .page-register__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-register__cta-button--centered {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__section {
    padding: 50px 15px;
  }

  .page-register__section-title {
    font-size: 28px;
  }

  .page-register__section-intro {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-register__features-grid,
  .page-register__guide-steps,
  .page-register__benefits-grid,
  .page-register__commitment-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-register__guide-item {
    min-height: auto;
  }

  .page-register__app-content {
    flex-direction: column;
    gap: 20px;
  }

  .page-register__app-text,
  .page-register__app-image {
    min-width: unset;
    width: 100%;
  }

  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-register__section,
  .page-register__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }

  .page-register__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }

  .page-register__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }

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

  .page-register__faq-item.active .page-register__faq-answer {
    padding: 15px !important;
  }

  .page-register__cta-button--download {
    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-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}