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

.page-register {
    background-color: var(--color-background);
    color: var(--color-text-main);
    font-family: 'Arial', sans-serif;
}

.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;
    padding: 10px 0 60px 0; /* body handles --header-offset, this is decorative top padding */
    text-align: center;
    overflow: hidden;
    background-color: var(--color-deep-green);
}

.page-register__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height of image wrapper */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

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

.page-register__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.page-register__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--color-gold);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-register__description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.page-register__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.page-register__btn-primary {
    background: var(--color-button-gradient);
    color: var(--color-text-main);
    border: none;
}

.page-register__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(87, 227, 141, 0.4);
}

.page-register__btn-secondary {
    background-color: transparent;
    color: var(--color-glow);
    border: 2px solid var(--color-glow);
}

.page-register__btn-secondary:hover {
    background-color: var(--color-glow);
    color: var(--color-background);
}

.page-register__section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    padding-top: 40px;
}

.page-register__section-description {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

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

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

.page-register__benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(87, 227, 141, 0.3);
}

.page-register__benefit-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    object-fit: contain;
    filter: none; /* Ensure no CSS filters are applied */
}

.page-register__benefit-title {
    font-size: 1.5rem;
    color: var(--color-glow);
    margin-bottom: 15px;
}

.page-register__benefit-text {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

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

.page-register__form-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
}

.page-register__registration-form {
    background-color: var(--color-card-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
    flex: 1;
    max-width: 600px;
    border: 1px solid var(--color-border);
}

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

.page-register__form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
    color: var(--color-text-main);
    font-weight: 600;
}

.page-register__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--color-text-main);
    font-size: 1rem;
    box-sizing: border-box;
}

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

.page-register__form-input:focus {
    border-color: var(--color-glow);
    outline: none;
    box-shadow: 0 0 8px rgba(87, 227, 141, 0.4);
}

.page-register__form-terms {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.page-register__form-terms input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: var(--color-glow);
}

.page-register__terms-link {
    color: var(--color-glow);
    text-decoration: none;
}

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

.page-register__form-image-area {
    flex: 1;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-register__form-illustration {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    filter: none; /* Ensure no CSS filters are applied */
}

/* Security Section */
.page-register__security-section {
    padding: 80px 0;
    background-color: var(--color-deep-green);
    color: var(--color-text-main); /* Explicitly set for dark background */
}

.page-register__dark-section {
    background-color: var(--color-deep-green);
    color: var(--color-text-main);
}

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

.page-register__security-text {
    flex: 1;
    font-size: 1rem;
    line-height: 1.7;
}

.page-register__security-text p {
    margin-bottom: 15px;
    color: var(--color-text-secondary);
}

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

.page-register__security-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    filter: none; /* Ensure no CSS filters are applied */
}

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

.page-register__payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    margin-top: 40px;
    justify-items: center;
}

.page-register__payment-card {
    background-color: var(--color-card-bg);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease;
}

.page-register__payment-card:hover {
    transform: translateY(-3px);
}

.page-register__payment-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: none; /* Ensure no CSS filters are applied */
}

.page-register__payment-name {
    font-size: 1rem;
    color: var(--color-text-main);
    font-weight: 600;
}

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

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

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

.page-register__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text-main);
    transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
    background-color: rgba(87, 227, 141, 0.1);
}

.page-register__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    color: var(--color-glow);
    margin-left: 15px;
    pointer-events: none; /* Handled by details/summary native behavior */
}

.page-register__faq-item[open] .page-register__faq-question {
    background-color: var(--color-deep-green);
    color: var(--color-gold);
    border-bottom: 1px solid var(--color-divider);
}

.page-register__faq-item[open] .page-register__faq-toggle {
    color: var(--color-gold);
}

.page-register__faq-answer {
    padding: 15px 25px 20px 25px;
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.page-register__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-register__faq-item summary {
    list-style: none;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-register__hero-image-wrapper {
        max-height: 450px;
    }
    .page-register__form-wrapper,
    .page-register__security-content {
        flex-direction: column;
    }
    .page-register__form-image-area,
    .page-register__security-image-wrapper {
        max-width: 100%;
    }
    .page-register__registration-form {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-register__container {
        padding: 0 15px !important;
    }
    .page-register__hero-section {
        padding: 10px 0 40px 0 !important;
    }
    .page-register__hero-image-wrapper {
        max-height: 300px;
        margin-bottom: 20px;
    }
    .page-register__main-title {
        font-size: 2rem !important;
        margin-bottom: 15px;
    }
    .page-register__description {
        font-size: 0.95rem !important;
        margin-bottom: 25px;
    }
    .page-register__section-title {
        font-size: 1.8rem !important;
        padding-top: 30px;
    }
    .page-register__section-description {
        font-size: 0.9rem !important;
        margin-bottom: 30px;
    }
    .page-register__benefits-section,
    .page-register__form-section,
    .page-register__security-section,
    .page-register__payment-section,
    .page-register__faq-section,
    .page-register__cta-final {
        padding: 50px 0 !important;
    }

    /* Images */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-register__hero-image,
    .page-register__form-illustration,
    .page-register__security-image,
    .page-register__benefit-icon,
    .page-register__payment-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-register__hero-image-wrapper,
    .page-register__form-image-area,
    .page-register__security-image-wrapper,
    .page-register__payment-methods-grid,
    .page-register__benefit-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure no overflow */
    }
    .page-register__registration-form {
        padding: 30px 20px;
    }
    .page-register__form-wrapper {
        gap: 20px;
    }

    /* Buttons */
    .page-register__cta-button,
    .page-register__btn-primary,
    .page-register__btn-secondary,
    .page-register a[class*="button"],
    .page-register a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px !important;
        font-size: 1rem !important;
    }
    .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: 0px !important; /* Buttons should take full width, padding on button itself */
        padding-right: 0px !important;
        overflow: hidden !important;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .page-register__payment-methods-grid {
        grid-template-columns: 1fr;
    }
    .page-register__faq-question {
        font-size: 1rem !important;
        padding: 15px 20px;
    }
    .page-register__faq-answer {
        font-size: 0.9rem !important;
        padding: 10px 20px 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-register__main-title {
        font-size: 1.8rem !important;
    }
    .page-register__section-title {
        font-size: 1.6rem !important;
    }
}