/* style/register.css */

/* Base styles and typography for the register page */
.page-register {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Matches shared.css body background */
}

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

.page-register__dark-bg {
  background-color: #0A2342;
  color: #ffffff;
}

.page-register__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-register__main-title {
  font-size: 48px;
  font-weight: bold;
  color: #E0B400; /* Gold for main title */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-register__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px;
  line-height: 1.3;
  color: inherit; /* Inherit color from parent section */
}

.page-register__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit; /* Inherit color from parent section */
}

.page-register__text-link {
  color: #E0B400; /* Gold for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  padding-top: 0; /* Assuming shared.css handles body padding-top */
  padding-bottom: 80px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px;
}

.page-register__hero-content {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  padding-bottom: 40px;
}

.page-register__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-register__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-register__hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
  display: block;
}

/* CTA Buttons */
.page-register__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

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

.page-register__btn-primary {
  background-color: #E0B400; /* Gold primary button */
  color: #0A2342; /* Dark blue text for contrast */
  border: 2px solid #E0B400;
}

.page-register__btn-primary:hover {
  background-color: #ffd700;
  border-color: #ffd700;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(224, 180, 0, 0.4);
}

.page-register__btn-secondary {
  background-color: transparent;
  color: #E0B400; /* Gold text */
  border: 2px solid #E0B400;
}

.page-register__btn-secondary:hover {
  background-color: #E0B400;
  color: #0A2342;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(224, 180, 0, 0.4);
}

.page-register__btn-large {
  padding: 18px 35px;
  font-size: 20px;
}

/* Registration Form Section */
.page-register__form-section {
  padding: 80px 20px;
}

.page-register__registration-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  background-color: #f8f8f8;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

.page-register__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333333;
  font-size: 16px;
}

.page-register__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
  color: #333333;
  background-color: #ffffff;
}

.page-register__form-input::placeholder {
  color: #999999;
}

.page-register__input-with-button {
  display: flex;
  gap: 10px;
}

.page-register__input-with-button .page-register__form-input {
  flex-grow: 1;
}

.page-register__btn-get-code {
  background-color: #0A2342; /* Dark blue for get code button */
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  flex-shrink: 0;
}

.page-register__btn-get-code:hover {
  background-color: #1a3a60;
}

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

.page-register__form-checkbox {
  margin-right: 10px;
  margin-top: 4px;
  flex-shrink: 0;
}

.page-register__form-checkbox-label {
  font-size: 15px;
  color: #555555;
}

.page-register__btn-submit {
  width: 100%;
  background-color: #E0B400; /* Gold submit button */
  color: #0A2342;
  border: none;
  padding: 15px 25px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-register__btn-submit:hover {
  background-color: #ffd700;
  transform: translateY(-2px);
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 80px 20px;
}

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

.page-register__benefit-card {
  background-color: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  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.12);
}

.page-register__benefit-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px auto;
  background-color: #0A2342; /* Icon background */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-register__benefit-icon-wrapper img {
  
  
  object-fit: contain;
}

.page-register__benefit-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #0A2342;
}

.page-register__benefit-text {
  font-size: 16px;
  color: #555555;
}

/* How-To Section */
.page-register__how-to-section {
  padding: 80px 20px;
}

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

.page-register__step-card {
  background-color: #0A2342;
  color: #ffffff;
  padding: 35px 25px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-register__step-number {
  font-size: 50px;
  font-weight: bold;
  color: rgba(224, 180, 0, 0.4); /* Semi-transparent gold */
  position: absolute;
  top: 10px;
  right: 20px;
  line-height: 1;
  z-index: 0;
}

.page-register__step-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #E0B400; /* Gold title */
  position: relative;
  z-index: 1;
}

.page-register__step-text {
  font-size: 16px;
  color: #f0f0f0;
  position: relative;
  z-index: 1;
}

.page-register__cta-bottom {
  text-align: center;
  margin-top: 50px;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 20px;
  background-color: #0A2342;
  color: #ffffff;
}

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

/* FAQ容器样式 */
.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 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 20px;
  opacity: 0;
  background-color: #f8f8f8; /* Light background for answer */
  color: #333333;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的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 !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
}

/* 问题样式 */
.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background-color: #ffffff; /* Light background for question */
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #333333;
}

.page-register__faq-item.active .page-register__faq-question {
  border-radius: 8px 8px 0 0;
  border-bottom-color: transparent;
}

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

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

/* 问题标题样式 */
.page-register__faq-question-text {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: #0A2342; /* Dark blue for question text */
}

/* 切换图标 */
.page-register__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #E0B400; /* Gold for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* 防止图标阻止点击事件 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-register__faq-item.active .page-register__faq-toggle {
  color: #0A2342; /* Dark blue when active */
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

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

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .page-register__main-title {
    font-size: 40px;
  }
  .page-register__section-title {
    font-size: 30px;
  }
  .page-register__hero-description {
    font-size: 18px;
  }
  .page-register__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-register__btn-primary, .page-register__btn-secondary {
    width: 100%;
  }
  .page-register__benefits-grid, .page-register__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-register__container {
    padding: 20px 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-register__hero-section {
    padding-bottom: 60px;
    min-height: 450px;
  }
  .page-register__hero-content {
    padding-top: 60px;
  }
  .page-register__main-title {
    font-size: 32px;
  }
  .page-register__section-title {
    font-size: 26px;
    margin-bottom: 10px;
  }
  .page-register__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-register__hero-description {
    font-size: 16px;
  }
  .page-register__btn-primary, .page-register__btn-secondary {
    padding: 12px 20px;
    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-buttons {
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-register__form-section, .page-register__benefits-section, .page-register__how-to-section, .page-register__faq-section {
    padding: 60px 15px;
  }
  .page-register__registration-form {
    padding: 25px;
  }
  .page-register__form-label, .page-register__form-input, .page-register__btn-get-code {
    font-size: 15px;
  }
  .page-register__btn-submit {
    padding: 12px 20px;
    font-size: 18px;
  }
  .page-register__benefits-grid, .page-register__steps-grid {
    grid-template-columns: 1fr;
  }
  .page-register__benefit-title {
    font-size: 20px;
  }
  .page-register__step-title {
    font-size: 22px;
  }
  .page-register__faq-question {
    padding: 15px;
  }
  .page-register__faq-question-text {
    font-size: 16px;
  }
  .page-register__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  .page-register__faq-answer {
    padding: 0 15px;
  }
  .page-register__faq-item.active .page-register__faq-answer {
    padding: 15px !important;
  }
  /* Ensure all images are responsive */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  /* No specific logo-item here, so no exclusion needed */
}