/* style/register.css */

/* Custom Colors from prompt */
:root {
    --page-register-card-bg: #11271B;
    --page-register-background: #08160F;
    --page-register-text-main: #F2FFF6;
    --page-register-text-secondary: #A7D9B8;
    --page-register-border: #2E7A4E;
    --page-register-glow: #57E38D;
    --page-register-gold: #F2C14E;
    --page-register-divider: #1E3A2A;
    --page-register-deep-green: #0A4B2C;
    --page-register-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-register {
    background-color: var(--page-register-background); /* #08160F - Dark background */
    color: var(--page-register-text-main); /* #F2FFF6 - Light text */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.page-register__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    position: relative;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-register__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px; /* Space between image and content */
}

.page-register__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.page-register__hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 1; /* Ensure content is above any potential background elements */
}

.page-register__hero-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Use clamp for H1 font size */
    color: var(--page-register-gold); /* Gold for emphasis on title */
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.page-register__hero-description {
    font-size: 1.1em;
    color: var(--page-register-text-secondary);
    margin-bottom: 30px;
}

/* CTA Button - Primary */
.page-register__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Ensure padding doesn't cause overflow */
    max-width: 100%; /* Default for all buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
}

.page-register__btn-primary {
    background: var(--page-register-button-gradient);
    color: var(--page-register-text-main); /* Light text on dark/gradient button */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* CTA Button - Secondary */
.page-register__btn-secondary {
    background-color: transparent;
    color: var(--page-register-gold); /* Gold text on transparent button */
    border: 2px solid var(--page-register-gold);
    margin-left: 20px;
}

.page-register__btn-secondary:hover {
    background-color: var(--page-register-gold);
    color: var(--page-register-background); /* Dark text on gold hover */
}

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

.page-register__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    color: var(--page-register-gold);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.page-register__section-description {
    font-size: 1.1em;
    color: var(--page-register-text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Why Join Section */
.page-register__why-join-section {
    padding: 80px 0;
    background-color: var(--page-register-card-bg); /* Darker background for contrast */
}

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

.page-register__feature-card {
    background-color: rgba(17, 39, 27, 0.7); /* Slightly transparent card bg */
    border: 1px solid var(--page-register-border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.page-register__feature-title {
    font-size: 1.5em;
    color: var(--page-register-gold);
    margin-bottom: 15px;
}

.page-register__feature-text {
    color: var(--page-register-text-secondary);
    font-size: 1em;
}

/* How To Register Section */
.page-register__how-to-register-section {
    padding: 80px 0;
}

.page-register__steps-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.page-register__step-card {
    background-color: var(--page-register-card-bg);
    border: 1px solid var(--page-register-border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-register__step-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-register__step-title {
    font-size: 1.6em;
    color: var(--page-register-gold);
    margin-bottom: 10px;
}

.page-register__step-text {
    color: var(--page-register-text-secondary);
    font-size: 1em;
}

.page-register__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Promotions Section */
.page-register__promotions-section {
    padding: 80px 0;
    background-color: var(--page-register-card-bg);
}

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

.page-register__promo-card {
    background-color: rgba(17, 39, 27, 0.7);
    border: 1px solid var(--page-register-border);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.page-register__promo-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-register__promo-title {
    font-size: 1.4em;
    color: var(--page-register-gold);
    margin-bottom: 10px;
}

.page-register__promo-text {
    color: var(--page-register-text-secondary);
    font-size: 0.95em;
    margin-bottom: 20px;
}

.page-register__card-link {
    display: inline-block;
    color: var(--page-register-glow); /* Greenish glow for links */
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid var(--page-register-glow);
    padding-bottom: 5px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page-register__card-link:hover {
    color: var(--page-register-text-main);
    border-color: var(--page-register-text-main);
}

.page-register__button-container {
    text-align: center;
}

/* Responsible Gaming Section */
.page-register__responsible-gaming-section {
    padding: 80px 0;
}

.page-register__responsible-content {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 40px;
    align-items: center;
    justify-content: center;
}

.page-register__responsible-image {
    width: 100%;
    max-width: 600px; /* Max width for image */
    height: auto;
    object-fit: cover;
    border-radius: 12px;
}

.page-register__responsible-text-block {
    flex: 1;
    min-width: 300px; /* Minimum width before wrapping */
    color: var(--page-register-text-secondary);
}

.page-register__responsible-text-block p {
    margin-bottom: 20px;
    font-size: 1.05em;
}

/* FAQ Section */
.page-register__faq-section {
    padding: 80px 0;
    background-color: var(--page-register-card-bg);
}

.page-register__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-register__faq-item {
    background-color: rgba(17, 39, 27, 0.7);
    border: 1px solid var(--page-register-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--page-register-gold);
    cursor: pointer;
    background-color: var(--page-register-deep-green); /* Slightly darker for question */
    border-bottom: 1px solid var(--page-register-divider);
}

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

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

.page-register__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--page-register-glow);
    margin-left: 15px;
}

.page-register__faq-item[open] .page-register__faq-toggle {
    content: "−";
}

.page-register__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: var(--page-register-text-secondary);
    line-height: 1.6;
}

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

/* Final CTA Section */
.page-register__final-cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--page-register-background);
}

/* --- Responsive Design --- */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-register__hero-title {
        font-size: clamp(2em, 5vw, 3em);
    }

    .page-register__section-title {
        font-size: clamp(1.8em, 4vw, 2.5em);
    }

    .page-register__hero-image {
        height: 500px; /* Adjust height for tablets */
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .page-register__hero-section {
        padding-bottom: 30px;
    }

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

    .page-register__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-register__hero-image-wrapper,
    .page-register__container,
    .page-register__section,
    .page-register__card,
    .page-register__feature-card,
    .page-register__step-card,
    .page-register__promo-card,
    .page-register__responsible-content,
    .page-register__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no horizontal overflow */
    }

    .page-register__hero-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        margin-bottom: 10px;
    }

    .page-register__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    /* All images */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* All buttons */
    .page-register__cta-button,
    .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; /* Add padding for readability on small buttons */
        padding-right: 15px;
        margin-left: 0 !important; /* Remove margin for stacked buttons */
        margin-right: 0 !important;
    }

    .page-register__button-group {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px; /* Space between stacked buttons */
    }

    .page-register__section-title {
        font-size: clamp(1.6em, 6vw, 2.2em);
    }

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

    .page-register__features-grid,
    .page-register__steps-wrapper,
    .page-register__promo-cards-grid {
        grid-template-columns: 1fr; /* Single column layout */
    }

    .page-register__responsible-content {
        flex-direction: column; /* Stack image and text */
    }

    .page-register__responsible-image {
        max-width: 100%;
    }

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

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

/* Ensure body padding-top is not duplicated */
.page-register__video-section {
    padding-top: 10px; /* Small decorative top padding, not header offset */
}