.page-register {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #1a1a2e; /* Inherited from body, but explicitly set for clarity */
}

/* Hero Section */
.page-register__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below header */
    box-sizing: border-box;
}

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

.page-register__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-register__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
    color: #ffffff;
}

.page-register__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff; /* Ensure high contrast */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

/* Call to Action Buttons */
.page-register__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-register__cta-buttons--center {
    margin-top: 40px;
    margin-bottom: 40px;
}

.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;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    text-align: center;
}

.page-register__btn-primary {
    background-color: #C30808; /* Custom color for register */
    color: #FFFF00; /* Custom font color for register */
    border: 2px solid #C30808;
}

.page-register__btn-primary:hover {
    background-color: #e02020;
    border-color: #e02020;
    color: #ffffff;
}

.page-register__btn-secondary {
    background-color: transparent;
    color: #FFFFFF; /* White text for contrast */
    border: 2px solid #FFFFFF;
}

.page-register__btn-secondary:hover {
    background-color: #FFFFFF;
    color: #017439; /* Primary color on hover */
    border-color: #FFFFFF;
}

/* General Section Styling */
.page-register__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-register__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-register__section-text {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-register__dark-bg {
    background-color: #017439; /* Primary brand color */
    color: #FFFFFF; /* White text for contrast */
}

.page-register__light-bg .page-register__section-title,
.page-register__light-bg .page-register__section-text,
.page-register__light-bg p,
.page-register__light-bg li {
    color: #333333;
}

.page-register__dark-bg .page-register__section-title,
.page-register__dark-bg .page-register__section-text,
.page-register__dark-bg p,
.page-register__dark-bg li {
    color: #FFFFFF;
}

/* Why Choose Section */
.page-register__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-register__feature-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark bg */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.page-register__feature-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
    border-radius: 50%; /* Example: if icons are circular */
}

.page-register__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFFF00; /* Yellow for prominence */
}

.page-register__feature-description {
    font-size: 1em;
    color: #f0f0f0;
}

/* How to Register Section */
.page-register__steps-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-register__step-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    position: relative;
    padding-top: 60px; /* Space for step number */
    height: 100%;
}

.page-register__step-number {
    position: absolute;
    top: 20px;
    left: 30px;
    background-color: #017439;
    color: #ffffff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
}

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

.page-register__step-description {
    font-size: 1em;
    color: #555555;
}

.page-register__step-description ul {
    list-style: disc;
    padding-left: 20px;
    margin-top: 10px;
}

.page-register__step-description li {
    margin-bottom: 5px;
    color: #555555;
}

.page-register__image-wrapper {
    text-align: center;
    margin-top: 40px;
}

.page-register__guide-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-register__note-text {
    text-align: center;
    font-size: 1.1em;
    margin-top: 30px;
    color: #333333;
}

/* Promotions Section */
.page-register__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-register__promo-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    height: 100%;
}

.page-register__promo-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFFF00;
}

.page-register__promo-description {
    font-size: 1em;
    color: #f0f0f0;
}

.page-register__promo-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-top: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.page-register__security-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-register__security-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-register__security-subtitle {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #017439;
}

.page-register__security-description {
    font-size: 1em;
    color: #555555;
}

.page-register__security-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-top: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.page-register__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 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.05);
    transition: background-color 0.3s ease;
    color: #ffffff; /* White text for contrast */
}

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

.page-register__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #ffffff;
}

.page-register__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #FFFF00; /* Yellow for toggle icon */
    transition: transform 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
}

.page-register__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(0, 0, 0, 0.2); /* Slightly darker background for answer */
    color: #f0f0f0;
}

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

.page-register__faq-answer p {
    margin: 0;
    color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-register__hero-title {
        font-size: 3em;
    }
    .page-register__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-register__hero-section {
        height: auto;
        min-height: 600px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is below header on mobile */
    }

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

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

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

    .page-register__btn-primary,
    .page-register__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-register__container {
        padding: 30px 15px;
    }

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

    .page-register__section-text {
        font-size: 1em;
    }

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

    /* All containers with images/content */
    .page-register__hero-section,
    .page-register__about-section,
    .page-register__why-choose-section,
    .page-register__how-to-register-section,
    .page-register__promotions-section,
    .page-register__security-section,
    .page-register__faq-section,
    .page-register__container,
    .page-register__feature-card,
    .page-register__step-card,
    .page-register__promo-card,
    .page-register__security-item,
    .page-register__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    .page-register__hero-section {
      padding-left: 0 !important;
      padding-right: 0 !important;
    }
    .page-register__hero-content {
      padding-left: 15px;
      padding-right: 15px;
    }
    .page-register__image-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 480px) {
    .page-register__hero-title {
        font-size: 1.8em;
    }
    .page-register__section-title {
        font-size: 1.5em;
    }
    .page-register__feature-grid,
    .page-register__steps-wrapper,
    .page-register__promo-grid,
    .page-register__security-grid {
        grid-template-columns: 1fr;
    }
    .page-register__feature-card,
    .page-register__step-card,
    .page-register__promo-card,
    .page-register__security-item {
        padding: 20px;
    }
    .page-register__step-number {
        left: 20px;
    }
    .page-register__faq-question {
        padding: 15px 20px;
    }
    .page-register__faq-question h3 {
        font-size: 1.1em;
    }
    .page-register__faq-answer {
        padding: 0 20px;
    }
    .page-register__faq-item.active .page-register__faq-answer {
        padding: 10px 20px;
    }
}