/* style/register.css */
/* Base styles for the register page */
.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #FFFFFF; /* Page background color */
}

/* General container for content */
.page-register__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Section titles */
.page-register__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

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

/* Text blocks (paragraphs) */
.page-register__text-block {
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.8;
    text-align: justify;
}

.page-register__text-block--white {
    color: #f0f0f0; /* Lighter text for dark backgrounds */
}

/* Links within content */
.page-register a {
    color: #017439;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-register a:hover {
    color: #C30808; /* Register/Login button color for hover */
    text-decoration: underline;
}

.page-register__link-white {
    color: #FFFF00; /* Register/Login font color */
    text-decoration: underline;
}

.page-register__link-white:hover {
    color: #FFFFFF;
    text-decoration: none;
}

/* --- HERO Section --- */
.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); /* Adjust for fixed header */
    background: linear-gradient(135deg, #017439, #3a9b6c); /* Gradient background with primary color */
    color: #FFFFFF;
    overflow: hidden; /* Ensure no image overflow */
}

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

.page-register__hero-image {
    width: 100%;
    margin-bottom: 30px;
    z-index: 1; /* Ensure image is behind text if text is overlayed, but here text is below */
}

.page-register__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-register__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-register__main-title {
    font-size: 3.2em;
    margin-bottom: 15px;
    font-weight: 700;
    color: #FFFF00; /* Register/Login font color */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-register__description {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #FFFFFF;
}

.page-register__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #C30808; /* Register button color */
    color: #FFFF00; /* Register/Login font color */
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    max-width: 100%; /* Ensure responsive button */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-register__cta-button:hover {
    background: #e02a2a; /* Slightly darker red */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-register__cta-button--final {
    margin-top: 40px;
    padding: 18px 50px;
    font-size: 1.3em;
}

/* --- Intro Section --- */
.page-register__intro-section {
    padding: 80px 0;
    text-align: center;
    background-color: #FFFFFF;
}

/* --- Guide Section --- */
.page-register__guide-section {
    padding: 80px 0;
    background-color: #017439; /* Dark background with primary color */
    color: #FFFFFF;
    text-align: center;
}

.page-register__guide-step {
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent white card */
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: left;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-register__step-title {
    font-size: 1.8em;
    color: #FFFF00; /* Register/Login font color */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-register__step-description {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #f0f0f0;
}

.page-register__checklist {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: #f0f0f0;
    font-size: 1.05em;
}

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

.page-register__step-image {
    width: 100%;
    height: auto;
    max-width: 800px;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* --- Benefits Section --- */
.page-register__benefits-section {
    padding: 80px 0;
    background-color: #f9f9f9; /* Light grey background */
    text-align: center;
}

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

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

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

.page-register__benefit-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

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

.page-register__benefit-description {
    font-size: 1em;
    line-height: 1.7;
    color: #555555;
}

/* --- FAQ Section --- */
.page-register__faq-section {
    padding: 80px 0;
    background-color: #017439; /* Dark background with primary color */
    color: #FFFFFF;
}

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

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

/* 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; /* Dark text for light background */
}

/* FAQ展开状态 - 🚨 Sử dụng !important và đủ lớn max-height để đảm bảo có thể mở rộng */
.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: #ffffff; /* White background for answer */
  border-radius: 0 0 5px 5px;
}

/* 问题样式 */
.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #FFFFFF; /* White background for question */
  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: #017439; /* Primary color for question text */
}

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

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

/* 问题标题样式 */
.page-register__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: #017439; /* Ensure good contrast */
}

/* 切换图标 */
.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; /* 防止图标阻止点击事件 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #017439; /* Primary color for toggle */
}

.page-register__faq-item.active .page-register__faq-toggle {
  color: #C30808; /* Red for active toggle */
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-register__cta-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.page-register__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: #C30808; /* Register button color */
    color: #FFFF00; /* Register/Login font color */
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-register__btn-primary:hover {
    background: #e02a2a;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-register__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    background: #FFFFFF;
    color: #017439; /* Primary color for text */
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    border: 2px solid #017439;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-register__btn-secondary:hover {
    background: #e0e0e0;
    color: #017439;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* --- Conclusion Section --- */
.page-register__conclusion-section {
    padding: 80px 0;
    text-align: center;
    background-color: #FFFFFF;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-register__main-title {
        font-size: 2.8em;
    }
    .page-register__description {
        font-size: 1.1em;
    }
    .page-register__section-title {
        font-size: 2em;
    }
    .page-register__benefit-image {
        height: 200px;
    }
}

@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-image img {
        border-radius: 4px;
    }
    .page-register__main-title {
        font-size: 2.2em;
        margin-bottom: 10px;
    }
    .page-register__description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-register__cta-button {
        padding: 12px 30px;
        font-size: 1em;
        margin-top: 15px;
        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--final {
        padding: 15px 35px;
        font-size: 1.1em;
    }

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

    .page-register__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-register__text-block {
        font-size: 1em;
        text-align: left;
    }
    .page-register__guide-step {
        padding: 20px;
    }
    .page-register__step-title {
        font-size: 1.5em;
    }
    .page-register__step-description {
        font-size: 0.95em;
    }
    .page-register__checklist {
        font-size: 0.95em;
        margin-left: 20px;
    }
    .page-register__benefit-item {
        padding: 20px;
    }
    .page-register__benefit-image {
        height: 180px;
    }
    .page-register__benefit-title {
        font-size: 1.4em;
    }
    .page-register__benefit-description {
        font-size: 0.95em;
    }

    /* FAQ Mobile */
    .page-register__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-register__faq-question h3 {
        font-size: 1em;
        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__btn-primary,
    .page-register__btn-secondary {
        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 {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    /* Images responsive */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-register__section,
    .page-register__card,
    .page-register__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .page-register__main-title {
        font-size: 1.8em;
    }
    .page-register__description {
        font-size: 0.9em;
    }
    .page-register__section-title {
        font-size: 1.5em;
    }
    .page-register__cta-button {
        font-size: 0.95em;
        padding: 10px 25px;
    }
    .page-register__faq-question h3 {
        font-size: 0.9em;
    }
}