/* style/register.css */

/* Biến màu sắc */
:root {
    --page-register-primary-color: #017439;
    --page-register-secondary-color: #FFFFFF;
    --page-register-register-button-color: #C30808;
    --page-register-login-button-color: #C30808;
    --page-register-background-color: #FFFFFF;
    --page-register-font-color-login-register: #FFFF00;
    --page-register-text-on-dark-bg: #FFFFFF; /* Cho nền body #1a1a1a */
    --page-register-text-on-light-bg: #333333;
}

/* General page styles */
.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--page-register-text-on-dark-bg); /* Text color for content on dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-register__section-title {
    font-size: 2.5em;
    color: var(--page-register-text-on-dark-bg);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-register__section-description {
    font-size: 1.1em;
    color: var(--page-register-text-on-dark-bg);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-register__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 700px;
    padding-top: var(--header-offset, 120px);
    overflow: hidden;
    text-align: center;
    background-color: var(--page-register-primary-color);
}

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

.page-register__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: brightness(0.8);
}

.page-register__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 40px;
    background-color: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    border-radius: 10px;
}

.page-register__hero-title {
    font-size: 3.5em;
    color: var(--page-register-secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.page-register__hero-description {
    font-size: 1.3em;
    color: var(--page-register-secondary-color);
    margin-bottom: 30px;
}

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-register__btn-primary {
    background-color: var(--page-register-register-button-color);
    color: var(--page-register-font-color-login-register);
}

.page-register__btn-primary:hover {
    background-color: #E03030; /* Slightly darker red */
    color: var(--page-register-secondary-color);
}

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

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

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

.page-register__why-register-section .page-register__section-title,
.page-register__why-register-section .page-register__section-description {
    color: var(--page-register-text-on-light-bg);
}

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

.page-register__feature-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.page-register__feature-text {
    font-size: 1em;
    color: var(--page-register-text-on-light-bg);
}

/* Registration Steps Section */
.page-register__registration-steps-section {
    padding: 80px 0;
    background-color: var(--page-register-primary-color);
    color: var(--page-register-secondary-color);
    text-align: center;
}

.page-register__registration-steps-section .page-register__section-title,
.page-register__registration-steps-section .page-register__section-description {
    color: var(--page-register-secondary-color);
}

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

.page-register__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.page-register__step-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background-color: var(--page-register-secondary-color);
    color: var(--page-register-primary-color);
    font-size: 2em;
    font-weight: bold;
    margin: 0 auto 20px;
}

.page-register__step-title {
    font-size: 1.4em;
    color: var(--page-register-secondary-color);
    margin-bottom: 10px;
}

.page-register__step-text {
    font-size: 1em;
    color: var(--page-register-secondary-color);
}

.page-register__steps-illustration {
    display: block;
    margin: 40px auto 0;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.page-register__form-section .page-register__section-title,
.page-register__form-section .page-register__section-description {
    color: var(--page-register-text-on-light-bg);
}

.page-register__registration-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

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

.page-register__form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

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

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

.page-register__form-checkbox {
    margin-right: 10px;
    width: 20px;
    height: 20px;
}

.page-register__form-link {
    color: var(--page-register-primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-register__form-link:hover {
    text-decoration: underline;
}

.page-register__submit-button {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    background-color: var(--page-register-register-button-color);
    color: var(--page-register-font-color-login-register);
    transition: background-color 0.3s ease;
}

.page-register__submit-button:hover {
    background-color: #E03030;
}

.page-register__login-prompt {
    text-align: center;
    margin-top: 30px;
    font-size: 1em;
    color: var(--page-register-text-on-light-bg);
}

/* Bonuses Section */
.page-register__bonuses-section {
    padding: 80px 0;
    background-color: var(--page-register-primary-color);
    color: var(--page-register-secondary-color);
    text-align: center;
}

.page-register__bonuses-section .page-register__section-title,
.page-register__bonuses-section .page-register__section-description {
    color: var(--page-register-secondary-color);
}

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

.page-register__bonus-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-register__bonus-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-register__bonus-title {
    font-size: 1.5em;
    color: var(--page-register-secondary-color);
    margin-bottom: 10px;
}

.page-register__bonus-text {
    font-size: 1em;
    color: var(--page-register-secondary-color);
}

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

.page-register__security-section .page-register__section-title,
.page-register__security-section .page-register__section-description {
    color: var(--page-register-text-on-light-bg);
}

.page-register__security-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.page-register__security-image {
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-register__security-list {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 500px;
}

.page-register__security-list-item {
    font-size: 1.1em;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    color: var(--page-register-text-on-light-bg);
}

.page-register__security-list-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--page-register-primary-color);
    font-weight: bold;
    font-size: 1.2em;
}

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

.page-register__faq-section .page-register__section-title,
.page-register__faq-section .page-register__section-description {
    color: var(--page-register-secondary-color);
}

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

.page-register__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: var(--page-register-secondary-color);
    transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.page-register__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-toggle {
    transform: rotate(45deg);
}

.page-register__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--page-register-secondary-color);
}

.page-register__faq-item.active .page-register__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 20px;
}

.page-register__faq-answer p {
    margin: 0;
    font-size: 1em;
}

/* CTA Section */
.page-register__cta-section {
    padding: 80px 0;
    background-color: var(--page-register-background-color);
    color: var(--page-register-text-on-light-bg);
    text-align: center;
}

.page-register__cta-section .page-register__section-title,
.page-register__cta-section .page-register__section-description {
    color: var(--page-register-text-on-light-bg);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-register__hero-title {
        font-size: 3em;
    }
    .page-register__hero-description {
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    .page-register {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-register__hero-section {
        min-height: 600px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-register__hero-content {
        padding: 30px;
    }
    .page-register__hero-title {
        font-size: 2.5em;
    }
    .page-register__hero-description {
        font-size: 1.1em;
    }
    .page-register__section-title {
        font-size: 2em;
    }
    .page-register__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-register__features-grid,
    .page-register__steps-grid,
    .page-register__bonuses-grid {
        grid-template-columns: 1fr;
    }
    .page-register__registration-form {
        padding: 30px;
    }
    .page-register__security-content {
        flex-direction: column;
        gap: 30px;
    }
    .page-register__security-image {
        max-width: 100%;
    }
    .page-register__security-list {
        max-width: 100%;
        text-align: left;
    }
    .page-register__faq-question {
        font-size: 1.1em;
    }

    /* Images responsive */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-register__hero-image-wrapper,
    .page-register__steps-illustration,
    .page-register__bonus-image,
    .page-register__security-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Buttons responsive */
    .page-register__btn-primary,
    .page-register__btn-secondary,
    .page-register a[class*="button"],
    .page-register a[class*="btn"] {
        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-buttons,
    .page-register__button-group,
    .page-register__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .page-register__hero-title {
        font-size: 2em;
    }
    .page-register__hero-description {
        font-size: 1em;
    }
    .page-register__section-title {
        font-size: 1.8em;
    }
    .page-register__btn-primary,
    .page-register__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-register__step-icon {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 1.8em;
    }
    .page-register__form-group {
        margin-bottom: 15px;
    }
    .page-register__submit-button {
        font-size: 1.1em;
    }
    .page-register__faq-question {
        padding: 15px;
        font-size: 1em;
    }
    .page-register__faq-answer {
        padding: 15px;
    }
}

/* Contrast Fixes */
.page-register__dark-bg {
    background: var(--page-register-primary-color);
    color: var(--page-register-text-on-dark-bg);
}

.page-register__light-bg {
    background: var(--page-register-background-color);
    color: var(--page-register-text-on-light-bg);
}

.page-register p,
.page-register li {
    color: inherit; /* Inherit from parent, which is set by dark/light bg classes */
}

.page-register__card {
    background: #f9f9f9; /* Ensure light background for card on dark body */
    color: var(--page-register-text-on-light-bg);
    border: 1px solid #e0e0e0;
}

.page-register__dark-section {
    background: var(--page-register-primary-color);
    color: var(--page-register-secondary-color);
}