/* style/register.css */
.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #FFFFFF; /* Explicitly set for clarity, though body takes it */
}

/* Header offset for fixed header */
.page-register__hero-section {
    padding-top: var(--header-offset, 120px); /* Apply offset to the first section */
    background-color: #000000; /* Dark background for hero */
    color: #FFFFFF; /* Light text for dark hero background */
    text-align: center;
    padding-bottom: 60px;
    position: relative;
    overflow: hidden; /* To contain absolute positioned image if any */
}

.page-register__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2; /* Ensure text is above image */
}

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

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

.page-register__register-button {
    display: inline-block;
    background-color: #FCBC45; /* Login button color for primary action */
    color: #000000; /* Dark text for the button */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid #FCBC45;
}

.page-register__register-button:hover {
    background-color: #e0a53b;
    transform: translateY(-2px);
}

.page-register__register-button--bottom {
    margin-top: 40px;
    background-color: #000000; /* Primary brand color for secondary CTA */
    color: #FFFFFF;
    border: 2px solid #000000;
}

.page-register__register-button--bottom:hover {
    background-color: #333333;
    border-color: #333333;
}

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

.page-register__section-title {
    font-size: 2.2em;
    color: #000000;
    text-align: center;
    margin-bottom: 30px;
    margin-top: 60px;
    font-weight: bold;
}

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

/* Value Section */
.page-register__value-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-top: -60px; /* Overlap with hero for visual flow */
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

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

.page-register__feature-item {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}

.page-register__feature-item:hover {
    transform: translateY(-5px);
}

.page-register__feature-icon {
    width: 200px; /* Min size 200px */
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
}

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

.page-register__feature-text {
    color: #555555;
    font-size: 0.95em;
}

/* Steps Section */
.page-register__steps-section {
    max-width: 900px;
    margin: 60px auto;
    padding: 40px 20px;
    background-color: #FFFFFF;
}

.page-register__steps-list {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
}

.page-register__step-item {
    background-color: #f0f0f0;
    border-left: 5px solid #FCBC45;
    margin-bottom: 20px;
    padding: 25px;
    border-radius: 5px;
    position: relative;
    padding-left: 70px;
}

.page-register__step-item::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #FCBC45;
    color: #000000;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
}

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

.page-register__step-description {
    color: #555555;
}

/* Terms Section */
.page-register__terms-section {
    max-width: 900px;
    margin: 60px auto;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.page-register__terms-list {
    list-style: disc;
    padding-left: 25px;
    color: #555555;
}

.page-register__terms-item {
    margin-bottom: 10px;
    font-size: 0.95em;
}

.page-register__read-more-link {
    display: inline-block;
    margin-top: 20px;
    color: #FCBC45;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-register__read-more-link:hover {
    color: #e0a53b;
    text-decoration: underline;
}

/* FAQ Section */
.page-register__faq-section {
    max-width: 900px;
    margin: 60px auto;
    padding: 40px 20px;
    background-color: #FFFFFF;
}

.page-register__faq-container {
    margin-top: 30px;
}

.page-register__faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    margin-bottom: 15px;
    background-color: #fefefe;
}

.page-register__faq-question {
    display: block;
    padding: 20px;
    font-size: 1.1em;
    font-weight: bold;
    color: #000000; /* Dark text for FAQ question */
    cursor: pointer;
    position: relative;
    background-color: #FCBC45; /* FAQ question background */
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

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

.page-register__faq-question::-webkit-details-marker {
    display: none;
}

.page-register__faq-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-register__faq-item[open] .page-register__faq-toggle {
    transform: translateY(-50%) rotate(45deg); /* Change to X or minus */
}

.page-register__faq-answer {
    padding: 20px;
    background-color: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    border-radius: 0 0 5px 5px;
    color: #555555;
    font-size: 0.95em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-register__hero-section {
        padding-top: var(--header-offset, 80px); /* Adjust for mobile header */
        padding-bottom: 40px;
    }

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

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

    .page-register__register-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-register__section-title {
        font-size: 1.8em;
        margin-top: 40px;
    }

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

    .page-register__value-section {
        padding: 30px 15px;
        margin-top: -40px;
    }

    .page-register__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-register__feature-icon {
        width: 200px; /* Keep above 200px */
        height: 150px;
    }

    .page-register__feature-title {
        font-size: 1.2em;
    }

    .page-register__steps-section,
    .page-register__terms-section,
    .page-register__faq-section {
        margin: 40px auto;
        padding: 30px 15px;
    }

    .page-register__step-item {
        padding-left: 60px;
    }

    .page-register__step-item::before {
        left: 15px;
        width: 30px;
        height: 30px;
        font-size: 1.1em;
    }

    .page-register__step-title {
        font-size: 1.3em;
    }

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

    .page-register__faq-toggle {
        right: 15px;
        font-size: 1.3em;
    }

    .page-register__faq-answer {
        padding: 15px;
    }

    /* Ensure all images within .page-register are responsive and don't overflow */
    .page-register img {
        max-width: 100%;
        height: auto;
    }
}

/* Ensure images in content sections are not too small */
.page-register__feature-item img,
.page-register__hero-section img {
    min-width: 200px;
    min- /* Adjust height for aspect ratio if needed, but ensure min is met */
}

/* Additional rules to ensure content area images are never smaller than 200px */
.page-register img:not(.shared-header__logo):not(.shared-footer__payment-icon):not(.shared-footer__social-icon):not(.shared-footer__game-provider-icon) {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover; /* or contain, depending on context */
}

@media (max-width: 768px) {
    .page-register img:not(.shared-header__logo):not(.shared-footer__payment-icon):not(.shared-footer__social-icon):not(.shared-footer__game-provider-icon) {
        max-width: 100%;
        height: auto;
        min-width: unset; /* Allow to shrink with max-width: 100% on mobile */
        min-height: unset;
    }
}