/* style/register.css */
.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #ffffff); /* Inherit from shared, fallback to white */
}

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

/* Hero Section */
.page-register__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    background-color: #26A9E0;
    color: #ffffff;
    text-align: center;
    padding-bottom: 60px;
}

.page-register__hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.page-register__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

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

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

.page-register__hero-image-wrapper {
    margin-top: 40px;
    text-align: center;
}

.page-register__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* General Section Styles */
.page-register__section-title {
    font-size: 2.2em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

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

.page-register__light-bg {
    background-color: #ffffff;
    color: #333333;
    padding: 60px 0;
}

.page-register__dark-bg {
    background-color: #26A9E0;
    color: #ffffff;
    padding: 60px 0;
}

.page-register__dark-bg .page-register__section-title,
.page-register__dark-bg .page-register__section-description {
    color: #ffffff;
}

/* Buttons */
.page-register__btn-primary {
    display: inline-block;
    background-color: #EA7C07; /* Login button color */
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-register__btn-primary:hover {
    background-color: #d16b06;
    transform: translateY(-2px);
}

.page-register__btn-secondary {
    display: inline-block;
    background-color: #ffffff;
    color: #26A9E0;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    border: 2px solid #26A9E0;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.page-register__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
    transform: translateY(-2px);
}

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

.page-register__feature-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page-register__feature-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
}

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

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

.page-register__step-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    color: #ffffff;
}

.page-register__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 15px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.page-register__step-title {
    font-size: 1.5em;
    color: #ffffff;
    margin-bottom: 15px;
}

.page-register__step-text {
    font-size: 1em;
    color: #f0f0f0;
}

.page-register__step-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__cta-center {
    text-align: center;
    margin-top: 50px;
}

/* Verification Section */
.page-register__verification-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-register__text-block {
    flex: 1;
    min-width: 300px;
}

.page-register__sub-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-top: 25px;
    margin-bottom: 15px;
}

.page-register__text-block ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #555555;
}

.page-register__text-block ul li {
    margin-bottom: 10px;
}

.page-register__text-block p {
    color: #555555;
    margin-bottom: 20px;
}

.page-register__image-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-register__security-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Promotions Section */
.page-register__promotion-card {
    display: flex;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: 40px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
}

.page-register__promotion-image {
    flex: 1;
    min-width: 300px;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-register__promotion-content {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-register__promotion-title {
    font-size: 2em;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-register__promotion-text {
    font-size: 1.1em;
    margin-bottom: 25px;
    color: #f0f0f0;
}

.page-register__note-text {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9em;
    color: #f0f0f0;
}

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

.page-register__responsible-item {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.page-register__responsible-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-register__responsible-text {
    font-size: 1em;
    color: #555555;
}

.page-register__responsible-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9em;
    color: #555555;
}

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

.page-register__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

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

.page-register__faq-title {
    font-size: 1.2em;
    color: #ffffff;
    margin: 0;
    flex-grow: 1;
}

.page-register__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #ffffff;
    margin-left: 15px;
    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 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-register__faq-item.active .page-register__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to accommodate content */
    padding: 20px !important;
}

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

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

.page-register__cta-final-section .page-register__section-title {
    color: #26A9E0;
}

.page-register__cta-final-section .page-register__section-description {
    color: #555555;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-register__hero-title {
        font-size: 2.2em;
    }
    .page-register__section-title {
        font-size: 1.8em;
    }
    .page-register__promotion-title {
        font-size: 1.8em;
    }
    .page-register__promotion-card {
        flex-direction: column;
    }
    .page-register__promotion-image {
        height: 250px;
    }
    .page-register__verification-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .page-register__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    }
    .page-register__hero-title {
        font-size: 1.8em;
    }
    .page-register__hero-description {
        font-size: 1em;
    }
    .page-register__section-title {
        font-size: 1.6em;
    }
    .page-register__section-description {
        font-size: 0.95em;
    }
    .page-register__feature-title,
    .page-register__step-title,
    .page-register__sub-title,
    .page-register__responsible-title {
        font-size: 1.3em;
    }
    .page-register__promotion-title {
        font-size: 1.5em;
    }
    .page-register__btn-primary,
    .page-register__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-register__hero-cta-group,
    .page-register__cta-group {
        flex-direction: column;
        gap: 15px;
    }
    .page-register__container {
        padding: 15px;
    }

    /* Images responsive */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-register__hero-image-wrapper,
    .page-register__image-wrapper,
    .page-register__promotion-card,
    .page-register__promotion-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-register__promotion-image {
        height: auto;
    }

    /* Sections padding for mobile */
    .page-register__hero-section,
    .page-register__why-join-section,
    .page-register__steps-section,
    .page-register__verification-section,
    .page-register__promotions-section,
    .page-register__responsible-gambling-section,
    .page-register__faq-section,
    .page-register__cta-final-section {
        padding: 40px 15px;
    }
    .page-register__faq-question {
        padding: 15px;
    }
    .page-register__faq-answer {
        padding: 15px !important;
    }
}