:root {
    /* Custom Colors */
    --color-primary: #F2C14E;
    --color-secondary: #FFD36B;
    --color-button-gradient-start: #FFD86A;
    --color-button-gradient-end: #DDA11D;
    --color-card-bg: #111111;
    --color-background: #0A0A0A; /* Body background from shared.css */
    --color-text-main: #FFF6D6;
    --color-border: #3A2A12;
    --color-glow: #FFD36B;

    /* Shared header offset, if not defined in shared.css, provide a fallback */
    --header-offset: 120px; /* Default for desktop, adjusted in shared.css for mobile */
}

.page-register {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--color-text-main); /* Main text color for the page */
    background-color: var(--color-background); /* Ensure consistent background */
}

/* Ensure images are responsive and not smaller than 200px */
.page-register img:not(.page-register__feature-icon):not(.page-register__bonus-icon) { /* Exclude feature/bonus icons if they are smaller */
    max-width: 100%;
    height: auto;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

/* Specific styling for feature and bonus icons if they are smaller and allowed */
.page-register__feature-icon,
.page-register__bonus-icon {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Changed to cover for better visual consistency */
    margin-bottom: 15px;
    border-radius: 8px; /* Added border-radius for aesthetics */
}

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

/* Hero Section */
.page-register__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    padding-bottom: 80px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.page-register__hero-image {
    width: 100%;
    max-width: 1200px;
    height: auto;
    object-fit: cover;
    margin-bottom: 30px;
    border-radius: 10px; /* Added border-radius for hero image */
}

.page-register__hero-content-wrapper {
    max-width: 800px;
    margin: 0 auto 30px;
    padding: 0 20px;
    z-index: 1;
}

.page-register__hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-register__hero-description {
    font-size: 1.2rem;
    color: #f0f0f0;
    margin-bottom: 30px;
}

.page-register__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* General Sections */
.page-register__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
}

.page-register__section-intro {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--color-text-main);
}

/* Card Styling */
.page-register__card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-register__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
}

.page-register__btn-primary {
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-register__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(242, 193, 78, 0.6);
    opacity: 0.9;
}

.page-register__btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.page-register__btn-secondary:hover {
    background-color: var(--color-primary);
    color: #ffffff;
}

.page-register__btn-primary--large {
    padding: 18px 35px;
    font-size: 1.2rem;
}

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

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

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

/* Why Join Section */
.page-register__why-join-section {
    padding: 80px 0;
}

.page-register__dark-bg {
    background-color: var(--color-background);
    color: var(--color-text-main);
}

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

.page-register__feature-title {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-register__feature-description {
    font-size: 1rem;
    color: var(--color-text-main);
}

/* How to Register Section */
.page-register__how-to-register-section {
    padding: 80px 0;
    background-color: var(--color-background);
}

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

.page-register__step-item {
    text-align: center;
}

.page-register__step-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 15px;
    background-color: rgba(255, 211, 107, 0.1);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 2px solid var(--color-primary);
}

.page-register__step-title {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-register__step-description {
    font-size: 1rem;
    color: var(--color-text-main);
}

/* Bonuses Section */
.page-register__bonuses-section {
    padding: 80px 0;
}

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

.page-register__bonus-card {
    text-align: center;
}

.page-register__bonus-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-register__bonus-title {
    font-size: 1.6rem;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-register__bonus-description {
    font-size: 1rem;
    color: var(--color-text-main);
}

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

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

.page-register__responsible-feature-title {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-register__responsible-feature-description {
    font-size: 1rem;
    color: var(--color-text-main);
}

/* FAQ Section */
.page-register__faq-section {
    padding: 80px 0;
}

.page-register__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-register__faq-item {
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    cursor: pointer;
    background-color: var(--color-card-bg);
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
    background-color: rgba(17, 17, 17, 0.8);
}

.page-register__faq-title {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin: 0;
    font-weight: 600;
}

.page-register__faq-toggle {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-secondary);
    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 30px;
    background-color: var(--color-card-bg);
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-answer {
    max-height: 1000px !important;
    padding: 20px 30px;
}

.page-register__faq-answer p {
    font-size: 1rem;
    color: var(--color-text-main);
    margin: 0;
}

/* Final CTA Section */
.page-register__final-cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-register__final-cta-section .page-register__container {
    background-color: var(--color-card-bg);
    padding: 60px 30px;
    border-radius: 15px;
    border: 1px solid var(--color-border);
}

.page-register__final-cta-section .page-register__section-title {
    color: var(--color-primary);
}

.page-register__final-cta-section .page-register__section-intro {
    color: var(--color-text-main);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-register__hero-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-register__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .page-register {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-register__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 60px;
    }

    .page-register__hero-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .page-register__hero-description {
        font-size: 1.1rem;
    }
}