:root {
    /* Custom Colors */
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --bg-color: #08160F;
    --card-bg: #11271B;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --divider-color: #1E3A2A;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --deep-green: #0A4B2C;
}

.page-register {
    font-family: 'Arial', sans-serif;
    background-color: var(--bg-color); /* Dark background */
    color: var(--text-main); /* Light text for contrast */
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.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;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Minimal top padding, body handles header offset */
    padding-bottom: 60px;
    overflow: hidden;
    background-color: var(--deep-green); /* Fallback if image fails */
}

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

.page-register__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Slightly dim the background image */
}

.page-register__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-register__main-title {
    color: var(--text-main);
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
}

.page-register__tagline {
    color: var(--text-secondary);
    font-size: 1.1em;
    margin-bottom: 30px;
}

.page-register__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--btn-gradient);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-register__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-register__cta-button--large {
    padding: 18px 40px;
    font-size: 1.2em;
}

.page-register__section-title {
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 2.2em;
    line-height: 1.3;
}

.page-register__section-description {
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.05em;
}

/* Form Section */
.page-register__form-section {
    padding: 60px 0;
    background-color: var(--card-bg); /* Darker green background */
}

.page-register__form-wrapper {
    background-color: var(--bg-color); /* Even darker background for form card */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
}

.page-register__registration-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-register__form-group {
    display: flex;
    flex-direction: column;
}

.page-register__form-label {
    color: var(--text-main);
    margin-bottom: 8px;
    font-weight: bold;
}

.page-register__form-input {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: #1a3429; /* Slightly lighter than bg-color for input */
    color: var(--text-main);
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-register__form-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.page-register__form-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(17, 168, 78, 0.3);
}

.page-register__terms-checkbox {
    flex-direction: row;
    align-items: center;
}

.page-register__terms-checkbox input[type="checkbox"] {
    margin-right: 10px;
    accent-color: var(--color-primary); /* Style checkbox with primary color */
}

.page-register__terms-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: bold;
}

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

.page-register__submit-button {
    padding: 15px 20px;
    background: var(--btn-gradient);
    color: var(--text-main);
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-register__submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-register__login-prompt {
    text-align: center;
    margin-top: 25px;
    color: var(--text-secondary);
}

.page-register__login-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: bold;
}

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

/* Benefits Section */
.page-register__benefits-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.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: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-register__benefit-title {
    color: var(--color-primary);
    font-size: 1.4em;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-register__benefit-icon {
    width: 200px; /* Minimum size requirement */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%; /* Responsive image */
}

.page-register__benefit-text {
    color: var(--text-secondary);
    font-size: 0.95em;
}

/* Steps Section */
.page-register__steps-section {
    padding: 80px 0;
    background-color: var(--deep-green);
}

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

.page-register__step-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.page-register__step-number {
    background: var(--gold-color);
    color: #000;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    margin: 0 auto 20px auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-register__step-title {
    color: var(--text-main);
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-register__step-image {
    width: 200px; /* Minimum size requirement */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%; /* Responsive image */
}

.page-register__step-text {
    color: var(--text-secondary);
    font-size: 0.95em;
}

.page-register__cta-bottom {
    text-align: center;
    margin-top: 60px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.page-register__secondary-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: transparent;
    color: var(--color-primary);
    text-decoration: none;
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
}

.page-register__secondary-button:hover {
    background-color: var(--color-primary);
    color: var(--text-main);
    box-shadow: 0 5px 15px rgba(17, 168, 78, 0.3);
}

/* Mobile Access Section */
.page-register__mobile-access-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.page-register__mobile-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 50px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center;
}

.page-register__mobile-text {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.page-register__mobile-subtitle {
    color: var(--gold-color);
    font-size: 1.8em;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-register__mobile-description {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.page-register__mobile-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-register__mobile-feature-item {
    color: var(--text-main);
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
}

.page-register__mobile-feature-item::before {
    content: '✓';
    color: var(--color-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2em;
    top: -2px;
}

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

.page-register__mobile-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: block;
    max-width: 100%; /* Responsive image */
}

/* FAQ Section */
.page-register__faq-section {
    padding: 80px 0;
    background-color: var(--card-bg);
}

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

.page-register__faq-item {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    color: var(--text-main);
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    list-style: none; /* For details summary */
}

.page-register__faq-question:hover {
    background-color: #1a3429; /* Slightly lighter hover */
}

.page-register__faq-question::-webkit-details-marker {
    display: none;
}

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

.page-register__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 20px;
    color: var(--color-primary);
    font-weight: normal;
}

.page-register__faq-answer {
    padding: 0 25px 20px 25px;
    color: var(--text-secondary);
    font-size: 0.95em;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.page-register__faq-item[open] .page-register__faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    transition: max-height 0.5s ease-in;
}

.page-register__faq-item.active .page-register__faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    transition: max-height 0.5s ease-in;
}

.page-register__faq-item.active .page-register__faq-question {
    background-color: #1a3429;
}

.page-register__faq-answer p {
    margin: 0;
    padding-top: 10px;
}

/* Final CTA Section */
.page-register__final-cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--deep-green);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-register__hero-content {
        padding: 30px 15px;
    }
    .page-register__main-title {
        font-size: 2.5em;
    }
    .page-register__section-title {
        font-size: 1.8em;
    }
    .page-register__mobile-content {
        flex-direction: column;
    }
    .page-register__mobile-text,
    .page-register__mobile-image-wrapper {
        max-width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-register {
        font-size: 15px;
    }

    .page-register__hero-content {
        padding: 25px 10px;
    }

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

    .page-register__tagline {
        font-size: 1em;
    }

    .page-register__cta-button {
        padding: 12px 25px;
        font-size: 0.9em;
    }

    .page-register__cta-button--large {
        padding: 15px 30px;
        font-size: 1.1em;
    }

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

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

    .page-register__form-wrapper {
        padding: 30px 20px;
    }

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

    .page-register__benefit-card,
    .page-register__step-card {
        padding: 25px;
    }

    .page-register__benefit-title,
    .page-register__step-title {
        font-size: 1.2em;
    }

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

    .page-register__cta-button,
    .page-register__secondary-button,
    .page-register__submit-button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

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

    /* Mobile image responsive adaptations */
    .page-register img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-register__hero-image-wrapper,
    .page-register__benefits-section,
    .page-register__steps-section,
    .page-register__mobile-access-section,
    .page-register__faq-section,
    .page-register__final-cta-section,
    .page-register__form-section,
    .page-register__container,
    .page-register__form-wrapper,
    .page-register__registration-form,
    .page-register__benefits-grid,
    .page-register__steps-grid,
    .page-register__mobile-content,
    .page-register__mobile-text,
    .page-register__mobile-image-wrapper,
    .page-register__faq-list,
    .page-register__cta-bottom {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }

    /* Specific padding for sections */
    .page-register__hero-section,
    .page-register__form-section,
    .page-register__benefits-section,
    .page-register__steps-section,
    .page-register__mobile-access-section,
    .page-register__faq-section,
    .page-register__final-cta-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Buttons responsive adaptation */
    .page-register__cta-button,
    .page-register__btn-primary,
    .page-register__btn-secondary,
    .page-register a[class*="button"],
    .page-register a[class*="btn"],
    .page-register__submit-button {
        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__cta-buttons,
    .page-register__button-group,
    .page-register__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    
    .page-register__cta-buttons {
        flex-direction: column;
    }
}