/* style/register.css */

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

/* Base styles for the page content */
.page-register {
    background-color: var(--page-register-background);
    color: var(--page-register-text-main); /* Light text on dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Add some padding at the bottom for footer */
}

.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); 
    font-weight: 700;
    color: var(--page-register-text-main);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-register__section-description {
    font-size: 18px;
    color: var(--page-register-text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Hero Section */
.page-register__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    overflow: hidden; /* Ensure nothing overflows */
}

.page-register__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 40px; /* Space between image and text */
}

.page-register__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Ensure minimum size */
}

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

.page-register__main-title {
    font-size: clamp(32px, 5vw, 56px); /* H1 font size constraint */
    font-weight: 800;
    color: var(--page-register-gold);
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.page-register__hero-description {
    font-size: 20px;
    color: var(--page-register-text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Button - Primary */
.page-register__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    max-width: 100%; /* For mobile responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-register__btn-primary {
    background: var(--page-register-button-gradient);
    color: #ffffff; /* White text on green gradient */
}

.page-register__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--page-register-glow);
}

/* CTA Button - Secondary */
.page-register__btn-secondary {
    background-color: transparent;
    color: var(--page-register-text-main);
    border: 2px solid var(--page-register-deep-green);
}

.page-register__btn-secondary:hover {
    background-color: var(--page-register-deep-green);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Form Section */
.page-register__form-section {
    padding: 60px 0;
    background-color: var(--page-register-background);
}

.page-register__form-wrapper {
    background-color: var(--page-register-card-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid var(--page-register-border);
}

.page-register__registration-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-register__form-group {
    display: flex;
    flex-direction: column;
}

.page-register__form-label {
    font-size: 16px;
    color: var(--page-register-text-secondary);
    margin-bottom: 8px;
    font-weight: 600;
}

.page-register__form-input {
    padding: 12px 15px;
    border: 1px solid var(--page-register-border);
    border-radius: 6px;
    background-color: var(--page-register-deep-green);
    color: var(--page-register-text-main);
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-register__form-input::placeholder {
    color: rgba(242, 255, 246, 0.6); /* Lighter placeholder text */
}

.page-register__form-input:focus {
    border-color: var(--page-register-glow);
    outline: none;
    box-shadow: 0 0 0 3px rgba(87, 227, 141, 0.3);
}

.page-register__checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.page-register__checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--page-register-glow); /* Custom checkbox color */
    cursor: pointer;
}

.page-register__checkbox-label {
    font-size: 15px;
    color: var(--page-register-text-secondary);
}

.page-register__text-link {
    color: var(--page-register-glow);
    text-decoration: none;
    font-weight: 600;
}

.page-register__text-link:hover {
    text-decoration: underline;
}

.page-register__submit-button {
    margin-top: 20px;
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 8px;
    background: var(--page-register-button-gradient);
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-register__submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--page-register-glow);
}

.page-register__login-prompt {
    text-align: center;
    margin-top: 30px;
    font-size: 16px;
    color: var(--page-register-text-secondary);
}

/* Benefits Section */
.page-register__benefits-section {
    padding: 80px 0;
    background-color: var(--page-register-deep-green); /* Darker green background */
}

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

.page-register__benefit-item {
    background-color: var(--page-register-card-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--page-register-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 200px; /* Card min height */
}

.page-register__benefit-icon {
    width: 100px; /* Example icon size, will be overridden by min-width/height for actual images */
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px;
}

.page-register__benefit-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--page-register-gold);
    margin-bottom: 15px;
}

.page-register__benefit-text {
    font-size: 16px;
    color: var(--page-register-text-secondary);
}

/* Responsible Gaming Section */
.page-register__responsible-gaming-section {
    padding: 80px 0;
    background-color: var(--page-register-background);
}

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

.page-register__responsible-gaming-image {
    flex: 1;
    min-width: 300px; /* Minimum width for image */
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--page-register-border);
    min-height: 200px; /* Enforce min image size */
}

.page-register__responsible-gaming-text {
    flex: 2;
    font-size: 17px;
    color: var(--page-register-text-secondary);
}

.page-register__responsible-gaming-text p {
    margin-bottom: 20px;
}

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

.page-register__faq-list {
    max-width: 900px;
    margin: 50px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-register__faq-item {
    background-color: var(--page-register-card-bg);
    border-radius: 10px;
    border: 1px solid var(--page-register-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.page-register__faq-item summary {
    list-style: none; /* Hide default marker */
}

.page-register__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-register__faq-question {
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 600;
    color: var(--page-register-text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--page-register-card-bg);
    transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
    background-color: var(--page-register-deep-green);
}

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

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

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

.page-register__cta-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping for mobile */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    width: 100%; /* Ensure container fills width */
    box-sizing: border-box;
}

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

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

    .page-register__hero-section {
        padding-bottom: 40px;
    }

    .page-register__hero-image-wrapper {
        max-height: 350px;
        margin-bottom: 30px;
    }

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

    .page-register__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

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

    .page-register__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to CTA buttons container */
    }

    .page-register__form-section,
    .page-register__benefits-section,
    .page-register__responsible-gaming-section,
    .page-register__faq-section,
    .page-register__cta-bottom-section {
        padding: 40px 0;
    }

    .page-register__form-wrapper {
        padding: 25px;
    }

    .page-register__form-label {
        font-size: 14px;
    }

    .page-register__form-input {
        padding: 10px 12px;
        font-size: 14px;
    }

    .page-register__checkbox-label {
        font-size: 13px;
    }

    .page-register__submit-button {
        font-size: 16px;
        padding: 12px;
    }

    .page-register__login-prompt {
        font-size: 14px;
    }

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

    .page-register__benefit-icon {
        width: 80px;
        height: 80px;
    }

    .page-register__benefit-title {
        font-size: 20px;
    }

    .page-register__responsible-gaming-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .page-register__responsible-gaming-image {
        min-width: unset;
        width: 100%;
    }

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

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

    /* 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__form-wrapper,
    .page-register__responsible-gaming-content,
    .page-register__faq-list,
    .page-register__cta-bottom-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-register__hero-section,
    .page-register__form-section,
    .page-register__benefits-section,
    .page-register__responsible-gaming-section,
    .page-register__faq-section,
    .page-register__cta-bottom-section {
        padding-left: 0;
        padding-right: 0;
    }
    
    .page-register__video-section { /* If a video section was present, this would apply */
        padding-top: 10px !important;
    }
}

/* Ensure content images meet minimum size requirements */
.page-register__benefit-icon,
.page-register__responsible-gaming-image {
    min-width: 200px;
    min-height: 200px;
}
/* Ensure HTML img width/height attributes are respected for layout */
.page-register__hero-image {
    width: 100%; /* Override fixed width from HTML if needed, but maintain aspect ratio */
    height: auto;
}

/* Desktop __video-container width: 100% (Included for compliance, though no video on this page) */
.page-register__video-container {
    width: 100%; 
    max-width: 1200px;
}

/* Specific for dark background color contrast */
.page-register__dark-section {
    background-color: var(--page-register-deep-green);
    color: var(--page-register-text-main);
}