/* style/register.css */

/* Base styles for the register page */
.page-register {
    color: #ffffff; /* Default text color for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-register__dark-bg {
    background-color: #017439; /* Brand primary color for dark sections */
    color: #ffffff;
}

.page-register__light-bg {
    background-color: #ffffff;
    color: #333333;
}

/* Hero Section */
.page-register__hero-section {
    position: relative;
    padding: 100px 20px;
    text-align: center;
    background: linear-gradient(rgba(1, 116, 57, 0.8), rgba(1, 116, 57, 0.8)), url('[GALLERY:hero:1920x1080:vip_nhat,registration,hero_banner,luxury_gaming]') no-repeat center center/cover;
}

.page-register__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
}

.page-register__description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-register__hero-cta {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Buttons - General Styles */
.page-register__btn-primary {
    background-color: #C30808; /* Custom color for register/login */
    color: #ffffff; /* Adjusted for contrast */
    border: 2px solid #C30808;
}

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

.page-register__btn-secondary {
    background-color: #ffffff;
    color: #017439; /* Brand primary color */
    border: 2px solid #017439;
}

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

/* Section Titles and Descriptions */
.page-register__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    color: #017439;
}

.page-register__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #555555;
}

.page-register__dark-bg .page-register__section-title {
    color: #ffffff;
}

.page-register__dark-bg .page-register__section-description {
    color: #f0f0f0;
}

/* Benefits Section */
.page-register__benefits-section {
    padding: 80px 0;
    background-color: #ffffff;
    color: #333333;
}

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

.page-register__benefit-card {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-register__card-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

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

.page-register__card-text {
    font-size: 1em;
    color: #555555;
}

/* Steps Section */
.page-register__steps-section {
    padding: 80px 0;
}

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

.page-register__step-item {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-register__step-number {
    font-size: 3em;
    font-weight: bold;
    color: #FFFF00; /* Adjusted for contrast on dark background */
    margin-bottom: 20px;
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background-color: #C30808;
}

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

.page-register__step-text {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
}

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

.page-register__steps-cta {
    margin-top: 40px;
}

/* Security Section */
.page-register__security-section {
    padding: 80px 0;
    background-color: #ffffff;
    color: #333333;
}

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

.page-register__security-image {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.page-register__security-list {
    flex: 1;
    min-width: 300px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-register__security-list-item {
    font-size: 1.1em;
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
    color: #555555;
}

.page-register__security-list-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 0;
}

.page-register__security-footer {
    text-align: center;
    font-size: 1.1em;
    margin-top: 60px;
    font-style: italic;
    color: #777777;
}

/* Games Section */
.page-register__games-section {
    padding: 80px 0;
}

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

.page-register__game-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-register__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-register__game-card .page-register__card-image {
    margin-bottom: 15px;
}

.page-register__game-card .page-register__card-title {
    color: #FFFF00; /* Adjusted for contrast on dark background */
    font-size: 1.5em;
    margin-bottom: 10px;
}

.page-register__game-card .page-register__card-text {
    color: #f0f0f0;
    font-size: 0.95em;
}

.page-register__cta-buttons {
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* FAQ Section */
.page-register__faq-section {
    padding: 80px 0;
    background-color: #ffffff;
    color: #333333;
}

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

.page-register__faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    background-color: #f5f5f5;
    transition: background-color 0.3s ease;
}

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

.page-register__faq-title {
    font-size: 1.2em;
    margin: 0;
    color: #333333;
    font-weight: bold;
}

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

.page-register__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff;
    color: #555555;
}

.page-register__faq-answer p {
    padding-bottom: 20px;
    margin: 0;
}

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

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

/* Final CTA Section */
.page-register__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-register__final-cta {
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-register__main-title {
        font-size: 2.8em;
    }
    .page-register__section-title {
        font-size: 2em;
    }
    .page-register__benefits-grid, .page-register__steps-grid, .page-register__games-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-register__hero-section {
        padding: 80px 20px;
    }
    .page-register__main-title {
        font-size: 2.2em;
    }
    .page-register__description {
        font-size: 1em;
    }
    .page-register__section-title {
        font-size: 1.8em;
    }
    .page-register__section-description {
        font-size: 0.95em;
    }
    .page-register__benefits-section, .page-register__steps-section, .page-register__security-section, .page-register__games-section, .page-register__faq-section, .page-register__cta-section {
        padding: 50px 0;
    }
    .page-register__security-content {
        flex-direction: column;
    }
    .page-register__security-image {
        max-width: 100%;
    }
    .page-register__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    /* Enforce mobile responsive for images, videos, and buttons */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important; /* Ensure content images are not too small */
        height: auto !important;
        display: block !important;
    }
    
    .page-register video,
    .page-register__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-register__section,
    .page-register__card,
    .page-register__container,
    .page-register__video-section,
    .page-register__video-container,
    .page-register__video-wrapper,
    .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;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    
    .page-register__cta-button,
    .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__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }
}

@media (max-width: 480px) {
    .page-register__main-title {
        font-size: 1.8em;
    }
    .page-register__section-title {
        font-size: 1.5em;
    }
    .page-register__hero-cta {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-register__benefit-card, .page-register__step-item, .page-register__game-card {
        padding: 25px;
    }
    .page-register__card-title {
        font-size: 1.4em;
    }
    .page-register__step-title {
        font-size: 1.5em;
    }
    .page-register__faq-question {
        padding: 15px 20px;
    }
    .page-register__faq-title {
        font-size: 1.1em;
    }
    .page-register__faq-answer {
        padding: 0 20px;
    }
    .page-register__faq-item.active .page-register__faq-answer {
        padding: 15px 20px;
    }
}