/* style/register.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-button-bg: #C30808;
    --register-button-text: #FFFF00;
    --text-dark: #333333;
    --text-light: #ffffff;
}

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

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

/* 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);
    background: var(--primary-color);
    color: var(--text-light);
    overflow: hidden;
}

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

.page-register__hero-content {
    width: 100%;
    max-width: 800px;
}

.page-register__main-title {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--register-button-text); /* Use specific color for main title */
}

.page-register__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-register__form-wrapper {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.page-register__registration-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

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

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

.page-register__form-input {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
}

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

.page-register__captcha-input {
    flex-grow: 1;
}

.page-register__captcha-image {
    flex-shrink: 0;
    width: 150px;
    height: 50px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-weight: bold;
    font-size: 1.2em;
    overflow: hidden;
}

.page-register__captcha-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-register__terms-checkbox {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.page-register__terms-checkbox input {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.page-register__terms-label {
    font-size: 0.9em;
    color: var(--text-light);
}

.page-register__terms-link {
    color: var(--register-button-text);
    text-decoration: underline;
}

.page-register__cta-button {
    display: block;
    width: 100%;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    text-align: center;
    margin-top: 20px;
    box-sizing: border-box;
}

.page-register__btn-register {
    background-color: var(--register-button-bg);
    color: var(--register-button-text);
}

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

.page-register__login-prompt {
    margin-top: 20px;
    font-size: 1em;
    color: var(--text-light);
}

.page-register__login-link {
    color: var(--register-button-text);
    font-weight: bold;
    text-decoration: underline;
}

.page-register__hero-image-wrapper {
    width: 100%;
    margin-top: 40px;
    max-width: 900px;
}

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

/* Sections */
.page-register__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    color: var(--primary-color);
}

.page-register__dark-bg .page-register__section-title {
    color: var(--text-light);
}

.page-register__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    padding: 60px 0;
}

.page-register__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 60px 0;
}

/* Benefits Section */
.page-register__benefits-section .page-register__section-title {
    color: var(--primary-color);
}

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

.page-register__benefit-card {
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
    color: var(--text-dark);
    min-height: 500px; /* Ensure sufficient height for content */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

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

.page-register__benefit-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.page-register__benefit-description {
    font-size: 1em;
    color: var(--text-dark);
    text-align: left;
}

/* Steps Section */
.page-register__steps-list {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
}

.page-register__step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    text-align: center;
}

.page-register__step-item::before {
    counter-increment: step-counter;
    content: "Bước " counter(step-counter);
    font-size: 1.8em;
    font-weight: bold;
    color: var(--register-button-text);
    background: var(--register-button-bg);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid var(--primary-color);
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.2);
}

.page-register__step-title {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--text-light);
    margin-top: 50px;
    margin-bottom: 15px;
}

.page-register__step-description {
    font-size: 1.1em;
    color: var(--text-light);
    margin-bottom: 20px;
}

.page-register__step-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Security Section */
.page-register__security-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-register__security-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-register__security-text {
    flex: 2;
    min-width: 300px;
}

.page-register__security-text p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.page-register__btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--text-light);
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-register__btn-primary:hover {
    background: #005a2e;
}

/* Support Section */
.page-register__support-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: row-reverse; /* Image on right */
}

.page-register__support-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-register__support-text {
    flex: 2;
    min-width: 300px;
}

.page-register__support-text p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--text-light);
}

.page-register__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-register__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

/* FAQ Section */
.page-register__faq-section .page-register__section-title {
    color: var(--primary-color);
}

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

.page-register__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background: var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.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: var(--text-dark);
}

.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.1em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--primary-color);
}