/* style/register.css */

/* --- Base Styles --- */
.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark background */
    background-color: var(--dark-bg); /* Assuming body background is dark */
}

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

.page-register__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-register__section-intro {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-register__text-link {
    color: #FFFF00; /* Custom color for links in dark sections */
    text-decoration: underline;
}

/* --- Color Contrast Classes (Smart Selection) --- */
.page-register__dark-bg {
    background-color: #017439; /* Main brand color for dark sections */
    color: #ffffff;
    padding: 80px 0;
}

.page-register__light-bg {
    background-color: #ffffff;
    color: #333333; /* Dark text for light background */
    padding: 80px 0;
}

.page-register__light-bg .page-register__section-title {
    color: #017439; /* Brand color for titles on light background */
}

.page-register__light-bg .page-register__section-intro {
    color: #333333;
}

/* --- Buttons --- */
.page-register__btn-primary,
.page-register__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-register__btn-primary {
    background-color: #C30808; /* Custom Register button color */
    color: #FFFF00; /* Custom Register button font color */
    border: 2px solid #C30808;
}

.page-register__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-register__btn-secondary {
    background-color: transparent;
    color: #017439; /* Brand color for secondary button text on light background */
    border: 2px solid #017439;
}

.page-register__dark-bg .page-register__btn-secondary {
    color: #ffffff;
    border-color: #ffffff;
}

.page-register__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
}

.page-register__dark-bg .page-register__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

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

/* --- Hero Section --- */
.page-register__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-register__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-register__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.page-register__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
}

.page-register__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-register__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-register__hero-cta {
    font-size: 1.2em;
    padding: 18px 40px;
}

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

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

.page-register__feature-card .page-register__feature-icon {
    width: 100%;
    max-width: 250px; /* Adjust based on image content, min 200px */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

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

.page-register__feature-text {
    color: #555555;
}

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

.page-register__step-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.page-register__step-number {
    font-size: 3em;
    font-weight: bold;
    color: #FFFF00; /* Highlight step number */
    margin-bottom: 15px;
}

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

.page-register__step-text {
    color: #f0f0f0;
}

.page-register__image-wrapper {
    text-align: center;
    margin: 50px 0;
}

.page-register__steps-image,
.page-register__security-image {
    max-width: 800px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-register__steps-cta {
    margin-top: 40px;
}

/* --- Bonus Section --- */
.page-register__bonus-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.page-register__bonus-text {
    flex: 1;
    min-width: 300px;
}

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

.page-register__bonus-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-register__bonus-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-register__bonus-list li {
    font-size: 1.1em;
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
    color: #333333;
}

.page-register__bonus-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #017439;
}

/* --- Security Section --- */
.page-register__security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.page-register__security-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

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

.page-register__security-text {
    color: #f0f0f0;
}

.page-register__security-cta {
    margin-top: 40px;
}

/* --- Payments Section --- */
.page-register__payments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 50px;
}

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

.page-register__payment-icon {
    width: 100%;
    max-width: 200px; /* Adjust based on image content, min 200px */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: contain;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-register__payment-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
}

.page-register__payment-text {
    color: #555555;
}

.page-register__payments-note {
    text-align: center;
    margin-top: 30px;
    font-style: italic;
    color: #555555;
}

.page-register__payments-cta {
    margin-top: 40px;
}

/* --- Video Section --- */
.page-register__video-section {
    position: relative;
    padding-top: 60px; /* Adjusted to not conflict with header offset */
    padding-bottom: 60px;
    text-align: center;
}

.page-register__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 1000px; /* Max width for the video player */
    margin: 50px auto;
    background-color: #000; /* Black background for video area */
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-register__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    cursor: pointer; /* Indicate it's clickable */
}

.page-register__video-cta {
    margin-top: 40px;
}

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

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

.page-register__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.1em;
    color: #017439;
    background-color: #f0f0f0;
    transition: background-color 0.3s ease;
}

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

.page-register__faq-item summary:hover {
    background-color: #e0e0e0;
}

.page-register__faq-qtext {
    flex-grow: 1;
}

.page-register__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #017439;
}

.page-register__faq-answer {
    padding: 20px 25px;
    background-color: #ffffff;
    color: #555555;
    font-size: 1em;
    border-top: 1px solid #e9e9e9;
}

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

.page-register__faq-contact {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1em;
    color: #333333;
}

.page-register__faq-contact .page-register__text-link {
    color: #017439;
}

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

.page-register__final-cta {
    font-size: 1.4em;
    padding: 20px 50px;
    margin-top: 40px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-register__hero-title {
        font-size: 3em;
    }
    .page-register__section-title {
        font-size: 2em;
    }
    .page-register__hero-cta {
        font-size: 1.1em;
        padding: 15px 30px;
    }
}

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

    .page-register__dark-bg,
    .page-register__light-bg {
        padding: 60px 0;
    }

    .page-register__container {
        padding: 0 15px;
    }

    .page-register__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Fixed header spacing for mobile */
        min-height: 500px;
    }

    .page-register__hero-title {
        font-size: 2.2em;
    }

    .page-register__hero-description {
        font-size: 1em;
    }

    .page-register__section-title {
        font-size: 1.8em;
    }

    .page-register__section-intro {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-register__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .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-left: 15px;
        padding-right: 15px;
    }

    .page-register__features-grid,
    .page-register__steps-grid,
    .page-register__security-grid,
    .page-register__payments-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-register__bonus-content {
        flex-direction: column;
        gap: 30px;
    }

    /* Mobile image responsiveness */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure min size on mobile too */
        min-height: 200px !important; /* Ensure min size on mobile too */
    }
    
    .page-register__feature-icon,
    .page-register__payment-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important; /* Ensure icons fit */
    }

    /* Mobile video responsiveness */
    .page-register video,
    .page-register__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-register__video-section,
    .page-register__video-container,
    .page-register__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-register__faq-item summary {
        font-size: 1em;
        padding: 15px 20px;
    }

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