.page-register {
    color: #ffffff; /* Default text color for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-register__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 600px;
    overflow: hidden;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background: linear-gradient(135deg, #017439, #0a0a0a); /* Brand color gradient */
}

.page-register__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-bottom: 40px;
}

.page-register__main-title {
    font-size: 3.5em;
    color: #FFFF00; /* Register and Login Font color */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

.page-register__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-register__cta-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    border: none; /* Removed default border */
}

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

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

.page-register__btn-secondary {
    background-color: #017439;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.page-register__btn-secondary:hover {
    background-color: #005a2d;
    transform: translateY(-3px);
}


/* Section Styles */
.page-register__section-title {
    font-size: 2.5em;
    color: #FFFF00; /* Use brand font color for titles */
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

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

.page-register__form-section {
    padding: 80px 20px;
    background-color: #0a0a0a; /* Dark background for form section */
}

.page-register__registration-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for form background */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.page-register__form-group {
    margin-bottom: 20px;
}

.page-register__form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
    color: #f0f0f0;
    font-weight: bold;
}

.page-register__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #017439;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
}

.page-register__form-input::placeholder {
    color: #cccccc;
    opacity: 0.7;
}

.page-register__captcha-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.page-register__captcha-input {
    flex-grow: 1;
}

.page-register__captcha-image {
    border-radius: 5px;
    border: 1px solid #017439;
    width: 200px; /* Fixed width for captcha image */
    height: 60px; /* Fixed height for captcha image */
    object-fit: cover;
}

.page-register__checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-top: 25px;
    margin-bottom: 30px;
}

.page-register__checkbox {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    min-width: 20px; /* Ensure checkbox doesn't shrink */
    min-height: 20px; /* Ensure checkbox doesn't shrink */
    cursor: pointer;
}

.page-register__checkbox-label {
    font-size: 0.95em;
    color: #e0e0e0;
}

.page-register__link {
    color: #FFFF00; /* Register and Login Font color for links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-register__link:hover {
    color: #fff;
}

.page-register__submit-button {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 8px;
    background-color: #C30808; /* Register button color */
    color: #FFFF00; /* Register and Login Font color */
    border: 2px solid #FFFF00;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
}

.page-register__submit-button:hover {
    background-color: #e02a2a;
    transform: translateY(-3px);
}

.page-register__benefits-section {
    padding: 80px 20px;
    background-color: #0d0d0d; /* Slightly lighter dark background */
}

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

.page-register__benefit-card {
    background-color: rgba(255, 255, 255, 0.08); /* Light transparent background for cards */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-register__benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-register__benefit-icon {
    width: 100%;
    max-width: 200px;
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 5px;
}

.page-register__benefit-title {
    font-size: 1.6em;
    color: #FFFF00; /* Register and Login Font color */
    margin-bottom: 15px;
}

.page-register__benefit-text {
    font-size: 1em;
    color: #e0e0e0;
}

.page-register__cta-download-section {
    padding: 80px 20px;
    background: linear-gradient(45deg, #017439, #0d0d0d); /* Gradient background */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.page-register__cta-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    text-align: center;
}

.page-register__cta-download-section .page-register__section-title {
    color: #FFFF00; /* Register and Login Font color */
}

.page-register__cta-download-section .page-register__section-description {
    color: #f0f0f0;
}

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

.page-register__cta-image-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-register__cta-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-register__faq-section {
    padding: 80px 20px;
    background-color: #0a0a0a;
}

.page-register__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
}

.page-register__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-register__faq-title {
    font-size: 1.25em;
    color: #FFFF00; /* Register and Login Font color */
    margin: 0;
}

.page-register__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #FFFF00;
    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;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #e0e0e0;
    font-size: 1em;
}

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

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

    .page-register__container,
    .page-register__form-section,
    .page-register__benefits-section,
    .page-register__cta-download-section,
    .page-register__faq-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-register__hero-section {
        min-height: 450px;
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }

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

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

    .page-register__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1.1em;
        margin-bottom: 10px; /* Space between buttons if stacked */
    }

    .page-register__submit-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1.1em;
    }

    .page-register__form-section,
    .page-register__benefits-section,
    .page-register__cta-download-section,
    .page-register__faq-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

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

    .page-register__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-register__registration-form {
        padding: 25px;
    }

    .page-register__captcha-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .page-register__captcha-image {
        width: 100% !important;
        height: auto !important; /* Adjust height for full width */
        max-width: 200px; /* Keep max-width for image aspect ratio */
        margin-top: 10px;
    }

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

    .page-register__benefit-icon {
        max-width: 150px;
    }

    .page-register__cta-download-section {
        flex-direction: column;
    }

    .page-register__cta-content,
    .page-register__cta-image-wrapper {
        min-width: unset;
        width: 100%;
        max-width: 100%;
    }

    .page-register__button-group {
        flex-direction: column;
        gap: 15px;
    }

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

    .page-register__faq-title {
        font-size: 1.1em;
    }

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

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

    /* All image containers must be responsive */
    .page-register__hero-image-wrapper,
    .page-register__captcha-wrapper,
    .page-register__benefit-card,
    .page-register__cta-image-wrapper,
    .page-register__container,
    .page-register__form-section,
    .page-register__benefits-section,
    .page-register__cta-download-section,
    .page-register__faq-section,
    .page-register__faq-list,
    .page-register__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent overflow */
    }

    /* All button containers must be responsive */
    .page-register__button-group {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    /* Ensure text in buttons wraps */
    .page-register__cta-button,
    .page-register__btn-primary,
    .page-register__btn-secondary,
    .page-register a[class*="button"],
    .page-register a[class*="btn"] {
        white-space: normal !important;
        word-wrap: break-word !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Color Contrast Specifics for Dark Background Body (#0a0a0a) */
/* Text on dark backgrounds should be light */
.page-register__dark-section {
    background-color: #0a0a0a;
    color: #ffffff;
}

.page-register__light-bg {
    background-color: rgba(255, 255, 255, 0.08); /* Light transparent background for cards */
    color: #ffffff;
}

/* Ensure brand color for titles has good contrast */
.page-register__main-title,
.page-register__section-title,
.page-register__benefit-title,
.page-register__faq-title,
.page-register__faq-toggle,
.page-register__link {
    color: #FFFF00; /* Yellow for high contrast on dark green/dark backgrounds */
}

/* Button colors are custom defined */
.page-register__btn-primary {
    background-color: #C30808; /* Red for primary button */
    color: #FFFF00; /* Yellow text on red button */
    border-color: #FFFF00;
}

.page-register__btn-secondary {
    background-color: #017439; /* Brand green for secondary button */
    color: #FFFFFF; /* White text on green button */
    border-color: #FFFFFF;
}

/* General text on dark background */
.page-register p,
.page-register li,
.page-register__form-label,
.page-register__checkbox-label {
    color: #e0e0e0; /* Off-white for general text */
}

/* Form input text */
.page-register__form-input {
    color: #ffffff;
}
.page-register__form-input::placeholder {
    color: #cccccc;
}

/* Contrast fix if needed (though current scheme should be good) */
.page-register__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-register__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}