:root {
    --page-register-primary-color: #FFD700; /* Gold */
    --page-register-secondary-color: #8B0000; /* Dark Red */
    --page-register-text-light: #ffffff;
    --page-register-text-dark: #333333;
    --page-register-bg-dark: #1a1a1a; /* Body background from shared.css */
    --page-register-card-bg-dark: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark theme cards */
    --page-register-border-color: rgba(255, 255, 255, 0.15);
}

.page-register {
    color: var(--page-register-text-light); /* Light text for dark body background */
    background-color: var(--page-register-bg-dark); /* Ensure consistency, though body handles this */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Header offset for main content */
.page-register__hero-section {
    padding-top: var(--header-offset, 120px); /* Apply header offset */
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--page-register-secondary-color) 0%, #000000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
    padding-bottom: 60px;
}

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

.page-register__hero-title {
    font-size: 3.5em;
    color: var(--page-register-primary-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: var(--page-register-text-light);
    margin-bottom: 40px;
    opacity: 0.9;
}

.page-register__hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    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: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    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: var(--page-register-primary-color);
    color: var(--page-register-text-dark); /* Dark text on gold button for contrast */
    border: 2px solid var(--page-register-primary-color);
}

.page-register__btn-primary:hover {
    background-color: #e6c200; /* Manual darken */
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-register__btn-secondary:hover {
    background-color: var(--page-register-primary-color);
    color: var(--page-register-text-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-register__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    filter: grayscale(50%); /* Allowed for stylistic effect, not color change */
}

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

.page-register__section-title {
    font-size: 2.8em;
    color: var(--page-register-primary-color);
    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: var(--page-register-text-light);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
    opacity: 0.8;
}

/* Why Join Section */
.page-register__why-join-section {
    background-color: var(--page-register-secondary-color);
    padding: 80px 0;
}

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

.page-register__feature-card {
    background-color: var(--page-register-card-bg-dark);
    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 var(--page-register-border-color);
}

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

.page-register__feature-title {
    font-size: 1.5em;
    color: var(--page-register-primary-color);
    margin-bottom: 15px;
}

.page-register__feature-text {
    font-size: 1em;
    color: var(--page-register-text-light);
    opacity: 0.85;
}

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

.page-register__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.page-register__step-item {
    text-align: center;
    position: relative;
    padding: 20px;
}

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

.page-register__step-title {
    font-size: 1.4em;
    color: var(--page-register-primary-color);
    margin-bottom: 10px;
}

.page-register__step-text {
    font-size: 1em;
    color: var(--page-register-text-light);
    opacity: 0.8;
}

.page-register__steps-image-wrapper {
    text-align: center;
    margin-bottom: 60px;
}

.page-register__steps-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: block; /* Ensure it behaves as a block element */
    margin: 0 auto; /* Center the image */
}

.page-register__cta-bottom {
    text-align: center;
}

/* Security Section */
.page-register__security-section {
    background-color: var(--page-register-secondary-color);
    padding: 80px 0;
}

.page-register__security-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.page-register__security-text {
    flex: 1;
    min-width: 300px;
    color: var(--page-register-text-light);
}

.page-register__security-text p {
    margin-bottom: 15px;
    font-size: 1.1em;
    opacity: 0.9;
}

.page-register__text-link {
    color: var(--page-register-primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-register__text-link:hover {
    color: #e6c200; /* Manual darken */
    text-decoration: underline;
}

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

.page-register__security-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: block;
    margin: 0 auto;
}

/* Promotions Section */
.page-register__promotions-section {
    padding: 80px 0;
    background-color: var(--page-register-bg-dark);
}

.page-register__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-register__promo-card {
    background-color: var(--page-register-card-bg-dark);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--page-register-border-color);
}

.page-register__promo-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    display: block;
}

.page-register__promo-title {
    font-size: 1.6em;
    color: var(--page-register-primary-color);
    margin-bottom: 15px;
}

.page-register__promo-text {
    font-size: 1em;
    color: var(--page-register-text-light);
    opacity: 0.85;
    margin-bottom: 20px;
    flex-grow: 1; /* Push button to bottom */
}

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

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

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

.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.05);
    transition: background-color 0.3s ease;
}

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

.page-register__faq-title {
    font-size: 1.2em;
    color: var(--page-register-primary-color);
    margin: 0;
}

.page-register__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--page-register-primary-color);
    transition: transform 0.3s ease;
}

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

.page-register__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--page-register-text-light);
    opacity: 0.85;
}

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

/* Final CTA Section */
.page-register__cta-section {
    padding: 80px 0;
    background-color: var(--page-register-bg-dark);
    text-align: center;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-register__hero-title {
        font-size: 2.8em;
    }
    .page-register__hero-description {
        font-size: 1.1em;
    }
    .page-register__section-title {
        font-size: 2.2em;
    }
    .page-register__security-content {
        flex-direction: column;
    }
}

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

    .page-register__hero-section {
        min-height: 60vh;
        padding-bottom: 40px;
    }

    .page-register__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-register__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-register__hero-cta {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-register__btn-primary,
    .page-register__btn-secondary {
        width: 100% !important;
        max-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__container {
        padding: 30px 15px;
    }

    .page-register__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

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

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

    .page-register__step-number {
        width: 50px;
        height: 50px;
        font-size: 1.8em;
    }

    .page-register__security-content {
        gap: 30px;
    }

    .page-register__promo-image {
        max-height: 200px;
    }

    /* Images responsiveness */
    .page-register img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    /* All image containers in mobile must ensure no overflow */
    .page-register__hero-image-wrapper,
    .page-register__steps-image-wrapper,
    .page-register__security-image-wrapper,
    .page-register__promo-card,
    .page-register__container,
    .page-register__why-join-section,
    .page-register__steps-section,
    .page-register__security-section,
    .page-register__promotions-section,
    .page-register__faq-section,
    .page-register__cta-section {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      overflow: hidden !important; /* Crucial for preventing horizontal scroll */
      padding-left: 15px;
      padding-right: 15px;
    }

    /* Adjust padding for sections that have container */
    .page-register__why-join-section .page-register__container,
    .page-register__steps-section .page-register__container,
    .page-register__security-section .page-register__container,
    .page-register__promotions-section .page-register__container,
    .page-register__faq-section .page-register__container,
    .page-register__cta-section .page-register__container {
        padding-left: 0;
        padding-right: 0;
    }

    .page-register__faq-question,
    .page-register__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-register__faq-item.active .page-register__faq-answer {
        padding: 15px 15px 25px;
    }
    
    .page-register__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset is applied */
    }
}

/* Ensure contrast for dark background */
.page-register__dark-section {
    background-color: var(--page-register-secondary-color); /* Dark red background */
    color: var(--page-register-text-light); /* Light text */
}
.page-register__dark-section .page-register__section-title {
    color: var(--page-register-primary-color); /* Gold title */
}
.page-register__dark-section .page-register__section-description {
    color: var(--page-register-text-light);
}

.page-register__card {
  background: var(--page-register-card-bg-dark); /* Semi-transparent white on dark body background */
  color: var(--page-register-text-light); /* Light text on card */
  border: 1px solid var(--page-register-border-color);
}

/* Specific button contrast for primary on gold */
.page-register__btn-primary {
  background: var(--page-register-primary-color);
  color: var(--page-register-text-dark); /* Dark text on gold */
}

/* Specific button contrast for secondary (gold text on transparent/dark) */
.page-register__btn-secondary {
  background: transparent;
  color: var(--page-register-primary-color); /* Gold text */
  border: 2px solid var(--page-register-primary-color);
}

/* Ensure text in p and li tags within main content has good contrast */
.page-register p,
.page-register li {
  color: var(--page-register-text-light); /* Default light text for dark background */
}

/* No filter property for images */
.page-register img {
    filter: none; /* Ensure no color filters are applied */
}