/* style/register.css */
/* 
  Màu sắc chính: #FFD700 (Vàng kim)
  Màu sắc phụ: #000080 (Xanh đậm)
  Màu nền body (từ shared.css): #111 (Đen đậm) -> Sử dụng chữ màu sáng (#ffffff)
*/

.page-register {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Do body nền tối #111 */
  line-height: 1.6;
  background-color: transparent; /* Nền sẽ do body quản lý */
}

.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); /* Đảm bảo không bị header che */
  min-height: 600px;
  overflow: hidden;
  background-color: #000080; /* Sử dụng màu phụ cho hero, đảm bảo tương phản với text */
}

.page-register__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.2; /* Hình nền mờ */
}

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

.page-register__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 10px;
  background-color: rgba(0, 0, 128, 0.7); /* Nền xanh đậm trong suốt */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-register__hero-title {
  font-size: 3.2em;
  color: #FFD700; /* Vàng kim */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-register__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

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

.page-register__section--steps {
  background-color: #1a1a1a; /* Nền hơi tối */
  color: #ffffff;
}

.page-register__section--benefits {
  background-color: #000080; /* Nền xanh đậm */
  color: #ffffff;
}

.page-register__section--faq {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-register__section--cta {
  background-color: #000080;
  color: #ffffff;
  padding: 100px 20px;
}

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

.page-register__section-title {
  font-size: 2.8em;
  color: #FFD700;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-register__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  max-width: 900px;
  margin: 0 auto 60px auto;
}

.page-register__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  white-space: normal; /* Cho phép chữ xuống dòng */
  word-wrap: break-word; /* Đảm bảo chữ xuống dòng */
  max-width: 100%; /* Đảm bảo nút không tràn */
  box-sizing: border-box; /* Tính cả padding và border vào width */
}

.page-register__btn-primary {
  background-color: #FFD700; /* Vàng kim */
  color: #000080; /* Xanh đậm */
  border: 2px solid #FFD700;
}

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

.page-register__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Vàng kim */
  border: 2px solid #FFD700;
}

.page-register__btn-secondary:hover {
  background-color: #FFD700;
  color: #000080;
  transform: translateY(-2px);
}

.page-register__cta-center {
    margin-top: 40px;
}

/* Steps Grid */
.page-register__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-register__step-item {
  background-color: rgba(255, 255, 255, 0.08); /* Nền hơi trong suốt */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__step-icon {
  width: 60px;
  height: 60px;
  background-color: #FFD700;
  color: #000080;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-register__step-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-register__step-text {
  font-size: 1em;
  color: #cccccc;
  flex-grow: 1; /* Để text chiếm đủ không gian */
}

.page-register__step-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

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

.page-register__benefit-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__benefit-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.page-register__benefit-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-register__benefit-text {
  font-size: 1em;
  color: #cccccc;
}

/* FAQ Section */
.page-register__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
}

.page-register__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden; /* Quan trọng cho max-height transition */
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(0, 0, 128, 0.5); /* Nền xanh đậm cho câu hỏi */
  color: #FFD700;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
  background-color: rgba(0, 0, 128, 0.7);
}

.page-register__faq-title {
    margin: 0;
    color: #FFD700; /* Đảm bảo màu vàng kim */
    font-size: 1.2em; /* Kích thước chữ cho tiêu đề FAQ */
}

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

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(0deg); /* Dấu trừ thường không cần xoay */
}

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: rgba(255, 255, 255, 0.05); /* Nền nhẹ hơn cho câu trả lời */
  color: #cccccc;
  text-align: left;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 1000px !important; /* Đủ lớn để chứa nội dung */
  padding: 20px 25px;
}

.page-register__faq-answer p {
  margin: 0;
  padding: 0;
  color: #cccccc; /* Màu chữ cho câu trả lời */
}

/* Call to Action Content */
.page-register__cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 2.8em;
  }
  .page-register__section-title {
    font-size: 2.4em;
  }
}

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

  .page-register__hero-content {
    padding: 30px;
  }

  .page-register__hero-title {
    font-size: 2.2em;
  }

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

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

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

  .page-register__section-description {
    font-size: 0.95em;
    margin-bottom: 40px;
  }

  .page-register__steps-grid,
  .page-register__benefits-grid {
    grid-template-columns: 1fr;
  }

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

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

  .page-register__benefit-title {
    font-size: 1.4em;
  }

  .page-register__cta-button {
    font-size: 1em;
    padding: 12px 25px;
    margin: 8px;
    max-width: 100% !important; /* Quan trọng cho nút */
    width: 100% !important; /* Quan trọng cho nút */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  /* Buttons in a group */
  .page-register__cta-content {
    flex-direction: column;
    gap: 15px;
  }

  /* Responsive images */
  .page-register img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-register__hero-image,
  .page-register__step-image,
  .page-register__benefit-image {
    width: 100% !important;
  }

  /* Responsive containers */
  .page-register__section,
  .page-register__container,
  .page-register__hero-content,
  .page-register__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Ngăn chặn tràn ngang */
  }
  
  .page-register__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-register__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-register__hero-title {
    font-size: 1.8em;
  }
  .page-register__section-title {
    font-size: 1.6em;
  }
  .page-register__faq-title {
    font-size: 1em;
  }
}