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

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

/* Hero Section */
.page-register__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    box-sizing: border-box;
}

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

.page-register__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
    z-index: 2;
}

.page-register__hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #ffffff;
    max-width: 900px;
    padding: 20px;
}

.page-register__hero-title {
    font-size: 4em;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    color: #FFFFFF;
}

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

.page-register__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* General Button Styles */
.page-register__btn-register,
.page-register__btn-login,
.page-register__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* For mobile responsiveness */
    box-sizing: border-box; /* For mobile responsiveness */
    white-space: normal; /* For mobile responsiveness */
    word-wrap: break-word; /* For mobile responsiveness */
}

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

.page-register__btn-register:hover {
    background-color: #e02020;
    border-color: #e02020;
}

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

.page-register__btn-login:hover {
    background-color: #e02020;
    border-color: #e02020;
}

.page-register__btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.page-register__btn-secondary:hover {
    background-color: #FFFFFF;
    color: #017439;
}

.page-register__btn-large {
    padding: 18px 35px;
    font-size: 1.4em;
}

/* Dark Sections */
.page-register__dark-section {
    background-color: #017439; /* Brand primary color */
    padding: 60px 0;
    color: #ffffff;
}

/* Registration Steps Section */
.page-register__form-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.page-register__registration-steps {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.page-register__step-item {
    flex: 1;
    min-width: 280px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background-color: #C30808; /* Accent color */
    color: #FFFF00;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
}

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

.page-register__step-description {
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-register__registration-cta {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-register__form-banner {
    display: block;
    margin: 60px auto 0;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Benefits Section */
.page-register__benefits-section {
    padding: 80px 0;
    background-color: #FFFFFF; /* Light background for contrast */
    color: #333333; /* Dark text for light background */
}

.page-register__benefits-section .page-register__section-title,
.page-register__benefits-section .page-register__section-intro {
    color: #333333;
}

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

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

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

.page-register__benefit-card .page-register__card-title {
    font-size: 1.8em;
    color: #017439; /* Brand color for titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-register__benefit-card .page-register__card-description {
    font-size: 1.1em;
    color: #555555;
}

.page-register__bonus-image {
    display: block;
    margin: 60px auto 0;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Game Showcase Section */
.page-register__game-showcase {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

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

.page-register__game-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-register__game-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.2);
}

.page-register__game-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.page-register__game-description {
    font-size: 1em;
    color: #f0f0f0;
}

.page-register__game-image {
    display: block;
    margin: 60px auto 0;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-register__security-section .page-register__section-title,
.page-register__security-section .page-register__section-intro {
    color: #333333;
}

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

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

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

.page-register__feature-description {
    font-size: 1.1em;
    color: #555555;
}

.page-register__security-image {
    display: block;
    margin: 60px auto 0;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* FAQ Section */
.page-register__faq-section {
    padding: 80px 0;
}

.page-register__faq-list {
    margin-top: 50px;
    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: #017439; /* Brand color for question background */
    color: #ffffff;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

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

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

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

.page-register__faq-item.active .page-register__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to form an X or minus */
}

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

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

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

/* Final CTA Section */
.page-register__cta-final {
    padding: 80px 0;
    text-align: center;
    background-color: #FFFFFF; /* Light background */
    color: #333333; /* Dark text */
}

.page-register__cta-final .page-register__section-title,
.page-register__cta-final .page-register__section-intro {
    color: #333333;
}

.page-register__cta-final .page-register__btn-register {
    margin-top: 40px;
}

/* Image Responsiveness (Global for .page-register) */
.page-register img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-register {
        font-size: 15px;
        line-height: 1.5;
    }

    .page-register__container {
        padding: 0 15px;
    }

    .page-register__hero-section {
        height: 80vh; /* Adjust for smaller screens */
        padding-top: var(--header-offset, 120px) !important; /* Ensure offset is applied */
    }

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

    .page-register__hero-description {
        font-size: 1.2em;
    }

    .page-register__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-register__btn-register,
    .page-register__btn-login,
    .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;
        flex-direction: column; /* Ensure vertical stacking for multiple buttons */
    }

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

    .page-register__section-intro {
        font-size: 1em;
    }

    .page-register__registration-steps {
        flex-direction: column;
    }

    .page-register__step-item {
        min-width: unset;
        width: 100%;
    }

    .page-register__benefits-grid,
    .page-register__game-grid,
    .page-register__security-features {
        grid-template-columns: 1fr;
    }

    .page-register__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

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

    .page-register__faq-item.active .page-register__faq-answer {
        padding: 10px 20px;
    }

    /* Ensure all content containers are responsive */
    .page-register__section,
    .page-register__card,
    .page-register__container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }

    /* Images within content areas */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
}