:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --accent-color: #EA7C07; /* For login/action buttons */
    --text-dark: #333333;
    --text-light: #ffffff;
    --border-color: #e0e0e0;
    --bg-light: #f9f9f9;
}

.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light body background */
    background-color: var(--secondary-color); /* Assuming shared.css sets body to white or light */
}

/* Fixed header offset */
.page-register__hero-section {
    padding-top: var(--header-offset, 120px); /* Desktop default, overridden by media query for mobile if needed */
}

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

.page-register__section-title {
    font-size: 32px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-register__section-description {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--text-dark);
}

.page-register__section-description a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-register__section-description a:hover {
    text-decoration: underline;
}

/* --- HERO Section --- */
.page-register__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 60px; /* Adjust as needed */
    background: linear-gradient(135deg, var(--primary-color), #5bc0de); /* Subtle gradient with primary color */
    color: var(--text-light);
    overflow: hidden; /* Ensure image doesn't 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;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

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

.page-register__hero-title {
    font-size: 48px;
    margin-bottom: 15px;
    line-height: 1.2;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-register__hero-description {
    font-size: 22px;
    max-width: 900px;
    margin: 0 auto 30px;
    color: var(--text-light);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* --- Buttons --- */
.page-register__cta-button,
.page-register__btn-primary,
.page-register__btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-register__btn-primary {
    background: var(--accent-color); /* Login/action color */
    color: var(--text-light);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__btn-primary:hover {
    background: #c76706; /* Darken on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-register__btn-secondary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-register__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* --- Why Register Section --- */
.page-register__why-register-section {
    padding: 80px 0;
    background-color: var(--bg-light); /* Light background for contrast */
}

.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: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-register__feature-item:hover {
    transform: translateY(-5px);
}

.page-register__feature-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-register__feature-item p {
    font-size: 16px;
    color: var(--text-dark);
}

.page-register__feature-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-register__feature-item a:hover {
    text-decoration: underline;
}

/* --- Registration Steps Section --- */
.page-register__steps-section {
    padding: 80px 0;
    background-color: var(--primary-color); /* Dark background */
    color: var(--text-light);
}

.page-register__steps-section .page-register__section-title,
.page-register__steps-section .page-register__section-description {
    color: var(--text-light);
}

.page-register__steps-section .page-register__section-description a {
    color: var(--secondary-color);
}

.page-register__steps-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
}

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

.page-register__steps-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.page-register__steps-list {
    flex: 1;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-register__step-item {
    background: rgba(255, 255, 255, 0.15); /* Semi-transparent white */
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.page-register__step-title {
    font-size: 22px;
    color: var(--text-light);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-register__step-item p {
    font-size: 16px;
    color: var(--text-light);
}

.page-register__step-item a {
    color: var(--secondary-color);
    text-decoration: underline;
    font-weight: bold;
}

.page-register__step-item a:hover {
    text-decoration: none;
}

/* --- Registration Form Section --- */
.page-register__form-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.page-register__registration-form {
    max-width: 600px;
    margin: 40px auto 0;
    background: var(--secondary-color);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

.page-register__form-group label {
    display: block;
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: bold;
}

.page-register__form-group input[type="text"],
.page-register__form-group input[type="password"],
.page-register__form-group input[type="tel"] {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    color: var(--text-dark);
    box-sizing: border-box;
}

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

.page-register__verification-input {
    display: flex;
    gap: 10px;
}

.page-register__verification-input input {
    flex: 1;
}

.page-register__send-code-button {
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 14px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.page-register__send-code-button:hover {
    background: #208cb9;
}

.page-register__checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-register__checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.page-register__checkbox-group label {
    margin: 0;
    font-size: 15px;
}

.page-register__checkbox-group label a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-register__checkbox-group label a:hover {
    text-decoration: underline;
}

.page-register__submit-button {
    width: 100%;
    padding: 18px;
    font-size: 20px;
    margin-top: 30px;
}

.page-register__login-prompt {
    text-align: center;
    margin-top: 25px;
    font-size: 16px;
    color: var(--text-dark);
}

.page-register__login-prompt a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-register__login-prompt a:hover {
    text-decoration: underline;
}

/* --- New User Promotions Section --- */
.page-register__promotions-section {
    padding: 80px 0;
    background-color: var(--primary-color); /* Dark background */
    color: var(--text-light);
}

.page-register__promotions-section .page-register__section-title,
.page-register__promotions-section .page-register__section-description {
    color: var(--text-light);
}

.page-register__promotions-section .page-register__section-description a {
    color: var(--secondary-color);
}

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

.page-register__promo-card {
    background: rgba(255, 255, 255, 0.15); /* Semi-transparent white */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-register__promo-card:hover {
    transform: translateY(-5px);
}

.page-register__promo-card img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    display: block; /* Ensure it behaves as a block element for max-width/height */
}

.page-register__promo-title {
    font-size: 22px;
    color: var(--text-light);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-register__promo-card p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.page-register__promo-card a {
    display: inline-block; /* Ensure button styling */
    margin-top: 0; /* Override default button margin */
}

/* --- Security Section --- */
.page-register__security-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

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

.page-register__security-item {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-register__security-item:hover {
    transform: translateY(-5px);
}

.page-register__security-item img {
     /* Smaller size for icons */
    
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* --- FAQ Section --- */
.page-register__faq-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

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

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

/* 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.3s ease;
  padding: 0 15px;
  opacity: 0;
  color: var(--text-dark);
}

/* FAQ展开状态 - 🚨 Sử dụng!important và max-height đủ lớn để đảm bảo nó 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 bất kỳ nội dung nào */
  padding: 20px 15px !important;
  opacity: 1;
  background: #fdfdfd; /* Slightly different background for expanded answer */
  border-radius: 0 0 5px 5px;
}

/* Question style */
.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

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

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

/* Question title style */
.page-register__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 tag from blocking click events */
  color: var(--text-dark);
}

/* Toggle icon */
.page-register__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click events */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}