/* style/register.css */

/* --- Base Styles --- */
.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 */
    padding-top: var(--header-offset, 120px); /* Ensure content starts below fixed header for desktop */
}

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

.page-register__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Primary color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

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

.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;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-register__btn-primary {
    background-color: #26A9E0; /* Primary color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

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

.page-register__btn-secondary {
    background-color: #EA7C07; /* Login/Register color */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

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

.page-register__btn-lg {
    padding: 18px 40px;
    font-size: 1.2em;
}

/* --- Section Specific Styles --- */
.page-register__hero-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
}

.page-register__hero-section .page-register__container {
    position: relative;
    z-index: 1;
}

.page-register__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.3; /* Slightly dim the background image */
}

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

.page-register__benefits-section,
.page-register__security-section,
.page-register__game-types-section,
.page-register__faq-section {
    padding: 60px 0;
    background-color: #ffffff; /* Light background for these sections */
    color: #333333; /* Dark text for light background */
}

.page-register__benefits-section .page-register__section-title,
.page-register__benefits-section .page-register__section-description,
.page-register__security-section .page-register__section-title,
.page-register__security-section .page-register__section-description,
.page-register__game-types-section .page-register__section-title,
.page-register__game-types-section .page-register__section-description,
.page-register__faq-section .page-register__section-title {
    color: #333333; /* Dark text for titles and descriptions on light background */
}

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

.page-register__card {
    background-color: #f8f8f8; /* Slightly off-white for cards on light background */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    color: #333333; /* Dark text for card content */
    border: 1px solid #e0e0e0;
}

.page-register__card .page-register__benefit-title,
.page-register__card .page-register__feature-title,
.page-register__card .page-register__promo-title,
.page-register__card .page-register__game-title {
    color: #26A9E0; /* Primary color for card titles */
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-register__card .page-register__benefit-text,
.page-register__card .page-register__feature-text,
.page-register__card .page-register__promo-text,
.page-register__card .page-register__game-text {
    color: #555555; /* Slightly lighter dark text for card paragraphs */
}

.page-register__card img {
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-register__registration-steps-section,
.page-register__promotions-section,
.page-register__mobile-app-section,
.page-register__final-cta-section {
    padding: 60px 0;
}

/* Dark background sections */
.page-register__dark-bg {
    background-color: #0a0a0a; /* Body background color */
    color: #ffffff; /* Light text for dark background */
}

.page-register__dark-bg .page-register__section-title {
    color: #26A9E0; /* Primary color for titles on dark background */
}

.page-register__dark-bg .page-register__section-description {
    color: #f0f0f0; /* Light text for descriptions on dark background */
}

.page-register__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-register__step-item {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards on dark background */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-register__step-title {
    color: #26A9E0;
    font-size: 1.4em;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-register__step-text {
    color: #f0f0f0;
}

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

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

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

.page-register__game-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.page-register__game-item {
    background-color: #f8f8f8;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    color: #333333;
    border: 1px solid #e0e0e0;
}

.page-register__game-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-register__game-title a {
    color: #26A9E0;
    text-decoration: none;
}

.page-register__game-title a:hover {
    text-decoration: underline;
}

.page-register__game-text {
    color: #555555;
}

.page-register__app-download {
    text-align: center;
    margin-top: 40px;
}

.page-register__app-text {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-top: 20px;
    margin-bottom: 30px;
}

.page-register__qr-code {
    display: block;
    margin: 0 auto;
    max-width: 250px; /* Adjust size for QR code */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-register__faq-item {
    background-color: #f8f8f8; /* Light background for FAQ items */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333; /* Dark text for FAQ items */
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: #26A9E0; /* Primary color for FAQ question */
    transition: background-color 0.3s ease;
}

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

.page-register__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    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 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff; /* White background for answer */
    color: #555555; /* Slightly lighter dark text for answer */
}

.page-register__faq-item.active .page-register__faq-answer {
    max-height: 1000px !important; /* Use !important to ensure it overrides */
    padding: 15px 25px;
}

.page-register__faq-answer p {
    margin: 0;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-register__main-title {
        font-size: 3em;
    }
    .page-register__section-title {
        font-size: 2em;
    }
    .page-register__intro-text,
    .page-register__section-description {
        font-size: 1em;
    }
    .page-register__btn-primary,
    .page-register__btn-secondary {
        padding: 12px 25px;
        font-size: 1em;
    }
}

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

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

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

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

    .page-register__intro-text,
    .page-register__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

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

    .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,
    .page-register__benefits-section,
    .page-register__registration-steps-section,
    .page-register__security-section,
    .page-register__promotions-section,
    .page-register__game-types-section,
    .page-register__mobile-app-section,
    .page-register__faq-section,
    .page-register__final-cta-section {
        padding: 40px 0;
    }

    .page-register__benefits-grid,
    .page-register__security-features,
    .page-register__promo-grid,
    .page-register__steps-list,
    .page-register__game-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .page-register__card {
        padding: 20px;
    }

    .page-register__qr-code {
        max-width: 180px;
    }

    /* Mobile image responsiveness */
    .page-register img {
        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;
    }
    /* Special handling for QR code to prevent excessive padding if it's already centered */
    .page-register__qr-code {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 480px) {
    .page-register__main-title {
        font-size: 2em;
    }
    .page-register__section-title {
        font-size: 1.5em;
    }
    .page-register__btn-lg {
        padding: 15px 30px;
        font-size: 1.1em;
    }
}