/* style/register.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* General Styles for the Register Page */
.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background from shared.css */
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.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: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-register__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

/* Color Scheme Application */
.page-register__dark-bg {
    background-color: #017439; /* Primary brand color */
    color: #ffffff;
    padding: 60px 0;
}

.page-register__light-bg {
    background-color: #ffffff; /* Secondary brand color (white) */
    color: #333333; /* Dark text for light background */
    padding: 60px 0;
}

.page-register__light-bg .page-register__section-title,
.page-register__light-bg .page-register__section-intro,
.page-register__light-bg .page-register__benefit-title,
.page-register__light-bg .page-register__benefit-text,
.page-register__light-bg .page-register__step-title,
.page-register__light-bg .page-register__step-text,
.page-register__light-bg .page-register__gaming-feature-title,
.page-register__light-bg .page-register__gaming-feature-text {
    color: #333333;
}


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

.page-register__btn-primary {
    background-color: #C30808; /* Custom color for Register */
    color: #FFFF00; /* Custom font color for Register */
    border: 2px solid #C30808;
}

.page-register__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-register__btn-secondary {
    background-color: #017439; /* Primary brand color for secondary actions */
    color: #ffffff;
    border: 2px solid #017439;
    margin-left: 20px;
}

.page-register__btn-secondary:hover {
    background-color: #005a2d;
    border-color: #005a2d;
}

.page-register__cta-container {
    text-align: center;
    margin-top: 50px;
}

.page-register__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}


/* Hero Section */
.page-register__hero-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.page-register__hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
    flex-wrap: wrap;
}

.page-register__hero-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.page-register__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-register__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-register__hero-image-wrapper {
    flex: 1;
    min-width: 400px;
    text-align: center;
}

.page-register__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Why Register Section */
.page-register__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

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

.page-register__benefit-icon {
    width: 100%; /* Ensure large images are used as required */
    height: auto;
    max-height: 200px; /* Limit height for uniform appearance */
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 5px;
}

.page-register__benefit-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439;
}

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

/* Registration Steps Section */
.page-register__steps-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.page-register__step-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: #ffffff;
}

.page-register__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #FFFF00; /* Custom color for numbers */
    margin-bottom: 15px;
}

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

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

.page-register__step-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
}

/* Responsible Gaming Section */
.page-register__gaming-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-register__gaming-feature-card {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    color: #333333;
}

.page-register__gaming-feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439;
}

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

/* FAQ Section */
.page-register__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

.page-register__faq-title {
    margin: 0;
    color: #ffffff;
    font-size: 1em; /* Adjusted for h3 in question div */
}

.page-register__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    transition: transform 0.3s ease;
    color: #FFFF00; /* Custom color for toggle */
}

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

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

.page-register__faq-item.active .page-register__faq-answer {
    max-height: 1000px !important; /* Ensure it expands */
    padding: 15px 25px 20px 25px;
}

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

/* Final CTA Section */
.page-register__final-cta-content {
    text-align: center;
    padding: 50px 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-register__hero-container {
        flex-direction: column;
        text-align: center;
    }

    .page-register__hero-content,
    .page-register__hero-image-wrapper {
        min-width: unset;
        width: 100%;
    }

    .page-register__hero-title {
        font-size: 3em;
    }

    .page-register__btn-secondary {
        margin-left: 0;
        margin-top: 15px;
    }

    .page-register__cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .page-register {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Ensure spacing on mobile */
    }

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

    .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__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 {
        flex-direction: column !important;
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Images responsiveness */
    .page-register img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-register__hero-image-wrapper,
    .page-register__benefit-card,
    .page-register__step-card,
    .page-register__gaming-feature-card,
    .page-register__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Add internal padding to cards/items */
        padding-right: 15px;
    }

    .page-register__hero-section,
    .page-register__why-register-section,
    .page-register__steps-section,
    .page-register__responsible-gaming-section,
    .page-register__faq-section,
    .page-register__final-cta-section {
        padding-left: 0;
        padding-right: 0;
    }

    .page-register__faq-question,
    .page-register__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-register__hero-title {
        font-size: 2em;
    }

    .page-register__section-title {
        font-size: 1.8em;
    }

    .page-register__hero-description,
    .page-register__section-intro,
    .page-register__benefit-text,
    .page-register__step-text,
    .page-register__gaming-feature-text,
    .page-register__faq-answer p {
        font-size: 0.95em;
    }
}