/* style/register.css */

/* Base styles for the page content, ensuring contrast with body background */
.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #ffffff; /* Explicitly white for content area */
}

.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: #017439; /* Brand color for main titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

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

.page-register__card-title {
    font-size: 1.3em;
    color: #017439;
    margin-top: 15px;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-register__card-text {
    font-size: 1em;
    color: #333333;
}

/* --- Hero Section --- */
.page-register__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-register__dark-bg {
    background-color: #017439; /* Dark brand color for section background */
    color: #ffffff; /* Light text for dark background */
}

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

.page-register__hero-section .page-register__container {
    position: relative;
    z-index: 2;
    padding-top: 40px;
    padding-bottom: 40px;
}

.page-register__hero-title {
    font-size: 3.5em;
    color: #FFFFFF; /* White text for dark hero background */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-register__hero-description {
    font-size: 1.3em;
    color: #f0f0f0; /* Slightly off-white for description */
    max-width: 900px;
    margin: 0 auto 40px auto;
}

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

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

/* Specific colors for Register/Login buttons */
.page-register__btn-primary {
    background-color: #C30808; /* Register button color */
    color: #FFFF00; /* 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: #FFFF00; /* White text for secondary button on dark background */
    border: 2px solid #FFFF00;
}

.page-register__btn-secondary:hover {
    background-color: #FFFF00;
    color: #C30808;
}

.page-register__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.3; /* Subtle overlay for background image */
}

/* --- Benefits Section --- */
.page-register__benefits-section {
    padding: 80px 0;
}

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

.page-register__benefit-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333333; /* Dark text for light card background */
}

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

.page-register__benefit-icon {
    width: 100%;
    max-width: 200px; /* Ensure icon is not too large */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px; /* Slightly rounded images */
}

/* --- Guide Section --- */
.page-register__guide-section {
    padding: 80px 0;
    background-color: #f9f9f9; /* Slightly different light background */
}

.page-register__step-item {
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-register__step-title {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-register__step-text {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 800px;
    color: #333333;
}

.page-register__step-list {
    text-align: left;
    margin: 20px auto;
    max-width: 600px;
    list-style-type: disc;
    padding-left: 20px;
    color: #333333;
}

.page-register__step-list li {
    margin-bottom: 10px;
}

.page-register__step-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-top: 20px;
}

/* --- Verification Section --- */
.page-register__verification-section {
    padding: 80px 0;
}

.page-register__verification-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-register__verification-text {
    flex: 1;
    text-align: left;
}

.page-register__feature-list {
    list-style-type: disc;
    padding-left: 25px;
    margin-bottom: 20px;
    color: #f0f0f0; /* Light text on dark background */
}

.page-register__feature-list li {
    margin-bottom: 10px;
}

.page-register__verification-image {
    flex: 1;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

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

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

.page-register__bonus-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    color: #333333;
}

.page-register__bonuses-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 60px;
}

.page-register__bonuses-image {
    max-width: 800px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* --- Troubleshooting Section --- */
.page-register__troubleshooting-section {
    padding: 80px 0;
}

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

.page-register__issue-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    color: #333333;
}

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

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

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

.page-register__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    overflow: hidden; /* For max-height transition */
    color: #333333;
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
    background-color: #f0f0f0;
}

.page-register__faq-title {
    margin: 0;
    font-size: 1.2em;
    color: #017439;
    font-weight: bold;
}

.page-register__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-register__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Adjust padding for closed state */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #333333;
}

.page-register__faq-item.active .page-register__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show all content */
    padding: 15px 25px 25px 25px; /* Padding for open state */
}

.page-register__faq-text {
    margin: 0;
    line-height: 1.6;
}

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

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

/* --- Floating Buttons (Register/Login) --- */
.page-register__floating-button {
    position: fixed;
    bottom: 20px;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1em;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease;
    max-width: calc(50% - 15px); /* Ensure responsiveness on mobile */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-register__floating-button:hover {
    transform: translateY(-3px);
}

.page-register__floating-register-btn {
    background-color: #C30808; /* Register button color */
    color: #FFFF00; /* Register button font color */
    right: 180px; /* Position to the left of login button */
}

.page-register__floating-register-btn:hover {
    background-color: #a00606;
}

.page-register__floating-login-btn {
    background-color: #C30808; /* Login button color */
    color: #FFFF00; /* Login button font color */
    right: 20px;
}

.page-register__floating-login-btn:hover {
    background-color: #a00606;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-register__hero-title {
        font-size: 3em;
    }
    .page-register__section-title {
        font-size: 2em;
    }
    .page-register__verification-content {
        flex-direction: column;
        text-align: center;
    }
    .page-register__verification-image {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-register {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-register__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
        padding-bottom: 60px;
    }
    .page-register__hero-title {
        font-size: 2.2em;
    }
    .page-register__hero-description {
        font-size: 1.1em;
    }
    .page-register__hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    .page-register__btn-primary,
    .page-register__btn-secondary {
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-register__section-title {
        font-size: 1.8em;
    }
    .page-register__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-register__sub-title {
        font-size: 1.5em;
    }
    .page-register__card-title {
        font-size: 1.1em;
    }

    .page-register__benefits-section,
    .page-register__guide-section,
    .page-register__verification-section,
    .page-register__bonuses-section,
    .page-register__troubleshooting-section,
    .page-register__faq-section,
    .page-register__cta-final-section {
        padding: 40px 0;
    }
    .page-register__container {
        padding: 0 15px; /* Add padding to prevent content from touching edges */
    }

    /* Responsive images */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All containers with images/videos/buttons */
    .page-register__section,
    .page-register__card,
    .page-register__container,
    .page-register__hero-section,
    .page-register__benefits-grid,
    .page-register__bonus-grid,
    .page-register__troubleshooting-grid,
    .page-register__faq-list,
    .page-register__hero-cta,
    .page-register__final-cta,
    .page-register__bonuses-cta,
    .page-register__cta-support {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Ensure content has padding */
        padding-right: 15px; /* Ensure content has padding */
    }

    /* Floating buttons */
    .page-register__floating-button {
        position: fixed;
        bottom: 15px;
        padding: 10px 20px;
        font-size: 0.9em;
        max-width: calc(50% - 10px); /* Adjust max-width for smaller screens */
    }
    .page-register__floating-register-btn {
        right: calc(15px + 120px + 10px); /* Adjust position for mobile */
    }
    .page-register__floating-login-btn {
        right: 15px;
    }
}

@media (max-width: 480px) {
    .page-register__hero-title {
        font-size: 1.8em;
    }
    .page-register__hero-description {
        font-size: 0.95em;
    }
    .page-register__section-title {
        font-size: 1.5em;
    }
    .page-register__floating-button {
        max-width: calc(50% - 10px);
    }
    .page-register__floating-register-btn {
        right: calc(15px + 100px + 10px); /* Further adjust position for very small screens */
    }
}