/* style/register.css */

/* --- Base Styles --- */
.page-register {
    font-family: 'Arial', sans-serif;
    background-color: #08160F; /* Background */
    color: #F2FFF6; /* Text Main */
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.page-register a {
    color: #2AD16F; /* A lighter green for links for visibility */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-register a:hover {
    color: #57E38D; /* Glow */
}

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

.page-register__section-title {
    font-size: clamp(28px, 4vw, 48px); /* Responsive font size for H2 */
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.page-register__section-description {
    font-size: clamp(16px, 2vw, 18px);
    color: #A7D9B8; /* Text Secondary */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

/* --- Hero Section --- */
.page-register__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 10px 0 60px 0; /* body handles header-offset, so small top padding here */
    overflow: hidden;
    background-color: #08160F; /* Ensure background matches body */
}

.page-register__hero-image-wrapper {
    width: 100%;
    position: relative;
    margin-bottom: 40px; /* Space between image and content */
}

.page-register__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px; /* Limit height of hero image */
}

.page-register__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.page-register__main-title {
    font-size: clamp(32px, 5vw, 64px); /* Responsive H1 */
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.1;
    letter-spacing: 1px;
}

.page-register__description {
    font-size: clamp(18px, 2.2vw, 22px);
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
    line-height: 1.5;
}

.page-register__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
    color: #F2FFF6; /* Text Main for button */
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
    border: none;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button responsiveness */
}

.page-register__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

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

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

.page-register__benefit-card {
    background-color: #11271B; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #2E7A4E; /* Border */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-register__benefit-icon {
    width: 100%; /* Make image fill card width */
    height: auto;
    max-height: 250px; /* Limit image height */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block; /* Ensure no extra space below image */
    margin-left: auto;
    margin-right: auto;
}

.page-register__benefit-title {
    font-size: 24px;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-register__benefit-text {
    font-size: 16px;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 15px;
}

.page-register__game-list {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-top: 20px;
}

.page-register__game-list li {
    font-size: 16px;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.page-register__game-list li::before {
    content: '•';
    color: #2AD16F;
    position: absolute;
    left: 0;
    top: 0;
}

/* --- How-To-Register Section --- */
.page-register__how-to-register-section {
    padding: 80px 0;
    background-color: #08160F; /* Background */
}

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

.page-register__step-card {
    background-color: #11271B; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #2E7A4E; /* Border */
    position: relative;
    padding-top: 70px; /* Space for step number */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-register__step-number {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
    color: #F2FFF6;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    border: 2px solid #2E7A4E;
}

.page-register__step-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-register__step-title {
    font-size: 22px;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-register__step-text {
    font-size: 16px;
    color: #A7D9B8; /* Text Secondary */
}

.page-register__important-notes {
    background-color: #11271B; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    margin-top: 60px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #2E7A4E; /* Border */
}

.page-register__note-title {
    font-size: 24px;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
    text-align: center;
}

.page-register__note-list {
    list-style: none;
    padding: 0;
}

.page-register__note-list li {
    font-size: 16px;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.page-register__note-list li::before {
    content: '⚠️';
    position: absolute;
    left: 0;
    top: 0;
}

/* --- Why Choose Section --- */
.page-register__why-choose-section {
    padding: 80px 0;
    background-color: #08160F; /* Background */
}

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

.page-register__choice-item {
    background-color: #11271B; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #2E7A4E; /* Border */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__choice-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-register__choice-icon {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-register__choice-title {
    font-size: 24px;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-register__choice-text {
    font-size: 16px;
    color: #A7D9B8; /* Text Secondary */
}

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

.page-register__faq-list {
    margin-top: 50px;
}

.page-register__faq-item {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: bold;
    color: #F2FFF6; /* Text Main */
    cursor: pointer;
    background-color: #11271B;
    list-style: none; /* For details/summary */
    transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
    background-color: #1E3A2A; /* Divider for hover */
}

.page-register__faq-item[open] .page-register__faq-question {
    background-color: #1E3A2A;
}

.page-register__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #2AD16F;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

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

.page-register__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 16px;
    color: #A7D9B8; /* Text Secondary */
    line-height: 1.6;
    max-height: 0; /* Managed by details/summary for native or JS for div */
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.page-register__faq-item[open] .page-register__faq-answer {
    max-height: 1000px; /* Sufficiently large to show content */
    transition: max-height 0.5s ease-in;
}

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

/* Remove default marker for details/summary */
.page-register__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-register__faq-item summary {
    list-style: none;
}


/* --- CTA Section --- */
.page-register__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #08160F; /* Background */
}

.page-register__cta-button--large {
    padding: 18px 40px;
    font-size: 22px;
    margin-top: 30px;
}

.page-register__additional-cta {
    font-size: 18px;
    color: #A7D9B8; /* Text Secondary */
    margin-top: 30px;
}

.page-register__login-link {
    font-weight: bold;
    color: #57E38D; /* Glow for emphasis */
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-register__hero-image {
        max-height: 500px;
    }

    .page-register__main-title {
        font-size: clamp(30px, 4.5vw, 56px);
    }

    .page-register__description {
        font-size: clamp(16px, 2vw, 20px);
    }
}

@media (max-width: 768px) {
    .page-register__container {
        padding: 0 15px;
    }

    .page-register__hero-section {
        padding: 10px 0 40px 0;
        min-height: auto;
    }

    .page-register__hero-image-wrapper {
        margin-bottom: 20px;
    }

    .page-register__hero-image {
        max-height: 350px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-register__main-title {
        font-size: clamp(28px, 6vw, 48px);
        margin-bottom: 15px;
    }

    .page-register__description {
        font-size: clamp(15px, 2.5vw, 18px);
        margin-bottom: 25px;
    }

    .page-register__cta-button,
    .page-register__cta-button--large {
        padding: 12px 25px;
        font-size: 18px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-register__section-title {
        font-size: clamp(24px, 5vw, 36px);
        margin-bottom: 15px;
    }

    .page-register__section-description {
        font-size: clamp(15px, 2.5vw, 16px);
        margin-bottom: 30px;
    }

    .page-register__benefits-section,
    .page-register__how-to-register-section,
    .page-register__why-choose-section,
    .page-register__faq-section,
    .page-register__cta-section {
        padding: 50px 0;
    }

    .page-register__benefits-grid,
    .page-register__steps-grid,
    .page-register__choice-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-register__benefit-card,
    .page-register__step-card,
    .page-register__choice-item,
    .page-register__important-notes,
    .page-register__faq-item {
        padding: 20px;
    }

    .page-register__benefit-icon,
    .page-register__step-image,
    .page-register__choice-icon {
        max-height: 180px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-register__step-card {
        padding-top: 60px;
    }

    .page-register__step-number {
        width: 35px;
        height: 35px;
        font-size: 20px;
        top: 15px;
    }

    .page-register__benefit-title,
    .page-register__step-title,
    .page-register__choice-title,
    .page-register__note-title {
        font-size: 20px;
    }

    .page-register__benefit-text,
    .page-register__step-text,
    .page-register__choice-text,
    .page-register__note-list li,
    .page-register__game-list li {
        font-size: 15px;
    }

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

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

    .page-register__additional-cta {
        font-size: 16px;
    }

    /* Ensure all images are responsive */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* All containers with images/buttons should be responsive */
    .page-register__hero-section,
    .page-register__benefits-section,
    .page-register__how-to-register-section,
    .page-register__why-choose-section,
    .page-register__faq-section,
    .page-register__cta-section,
    .page-register__container,
    .page-register__benefit-card,
    .page-register__step-card,
    .page-register__choice-item,
    .page-register__important-notes,
    .page-register__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-register__cta-buttons {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap !important;
        gap: 10px;
    }
}

/* Color contrast enforcement (already handled by specific color choices and background) */
/* .page-register is dark-bg, so text is light. Cards are slightly less dark, text is still light. */
/* Buttons have light text on a green gradient. */