.page-register {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #f5f5f5; /* Light background for the overall page */
}

/* Header offset */
.page-register__hero-section {
    padding-top: var(--header-offset, 120px);
}

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

.page-register__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #017439; /* Primary brand color */
    color: #ffffff;
    padding: 80px 20px;
    overflow: hidden;
}

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

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

.page-register__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.page-register__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFFF00; /* Custom font color for register/login */
}

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

.page-register__btn-primary,
.page-register__btn-secondary,
.page-register__btn-submit {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-register__btn-primary,
.page-register__btn-submit {
    background-color: #C30808; /* Custom register color */
    color: #FFFF00; /* Custom register font color */
    border: 2px solid #C30808;
    margin-right: 15px;
}

.page-register__btn-primary:hover,
.page-register__btn-submit:hover {
    background-color: #a00606;
    border-color: #a00606;
}

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

.page-register__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

.page-register__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #017439;
}

.page-register__section-subtitle {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 40px;
    color: #555555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Form Section */
.page-register__form-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background */
    color: #333333;
}

.page-register__registration-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

.page-register__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

.page-register__form-input::placeholder {
    color: #aaaaaa;
}

.page-register__form-help {
    font-size: 0.9em;
    color: #777777;
    margin-top: 5px;
    display: block;
}

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

.page-register__form-checkbox {
    margin-right: 10px;
    margin-top: 4px; /* Align checkbox with text */
    min-width: 20px;
    min-height: 20px;
}

.page-register__text-link {
    color: #017439;
    text-decoration: underline;
}

.page-register__text-link:hover {
    color: #005f2e;
}

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

/* Benefits Section */
.page-register__benefits-section {
    padding: 80px 0;
    background-color: #017439; /* Dark background */
    color: #ffffff;
}

.page-register__benefits-section .page-register__section-title {
    color: #FFFF00;
}

.page-register__benefits-section .page-register__section-subtitle {
    color: #f0f0f0;
}

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

.page-register__benefit-card:hover {
    transform: translateY(-10px);
}

.page-register__benefit-icon {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
}

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

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

/* Guide Section */
.page-register__guide-section {
    padding: 80px 0;
    background-color: #ffffff;
    color: #333333;
}

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

.page-register__step-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    color: #333333;
}

.page-register__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #C30808; /* Custom register color */
    margin-bottom: 15px;
}

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

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

/* Security Video Section */
.page-register__security-video-section {
    padding: 80px 0;
    background-color: #017439;
    color: #ffffff;
}

.page-register__security-video-section .page-register__section-title {
    color: #FFFF00;
}

.page-register__security-video-section .page-register__section-subtitle {
    color: #f0f0f0;
}

.page-register__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-register__video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.page-register__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px; /* Apply border-radius to video element itself */
    display: block;
}

.page-register__video-caption {
    text-align: center;
    margin-top: 20px;
    font-style: italic;
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Section */
.page-register__faq-section {
    padding: 80px 0;
    background-color: #ffffff;
    color: #333333;
}

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

.page-register__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333;
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    background-color: #eaf7f0; /* Light green for question background */
    list-style: none; /* For details tag */
}

.page-register__faq-question::-webkit-details-marker {
    display: none; /* For details tag */
}

.page-register__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #C30808; /* Custom register color */
}

.page-register__faq-item[open] .page-register__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or similar */
}

.page-register__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #555555;
}

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

/* CTA Section */
.page-register__cta-section {
    padding: 80px 0;
    background-color: #017439;
    color: #ffffff;
    text-align: center;
}

.page-register__cta-section .page-register__section-title {
    color: #FFFF00;
}

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

.page-register__cta-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

@media (max-width: 768px) {
    .page-register__hero-title {
        font-size: 2.2em;
    }
    .page-register__hero-description {
        font-size: 1.1em;
    }
    .page-register__section-title {
        font-size: 1.8em;
    }
    .page-register__section-subtitle {
        font-size: 1em;
    }
    .page-register__form-section,
    .page-register__benefits-section,
    .page-register__guide-section,
    .page-register__security-video-section,
    .page-register__faq-section,
    .page-register__cta-section {
        padding: 40px 0;
    }
    .page-register__registration-form {
        padding: 25px;
    }
    .page-register__benefits-grid,
    .page-register__guide-steps {
        grid-template-columns: 1fr;
    }

    /* Images responsive */
    .page-register img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-register__hero-image-wrapper,
    .page-register__benefit-icon {
        width: 100% !important;
        height: auto !important; /* Allow height to adjust */
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-register__benefit-icon {
        height: 200px; /* Maintain a minimum height for visual consistency */
    }

    /* Videos responsive */
    .page-register video,
    .page-register__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-register__video-section,
    .page-register__video-container,
    .page-register__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-register__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    /* Buttons responsive */
    .page-register__btn-primary,
    .page-register__btn-secondary,
    .page-register__btn-submit,
    .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-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-direction: column !important; /* Stack buttons vertically */
        gap: 10px;
    }
    .page-register__btn-primary {
        margin-right: 0 !important; /* Remove margin for stacked buttons */
        margin-bottom: 10px; /* Add space between stacked buttons */
    }

    /* Ensure all content containers have padding for mobile */
    .page-register__container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Specific contrast adjustments */
.page-register__dark-bg {
    color: #ffffff; /* Deep background, light text */
}
.page-register__light-bg {
    color: #333333; /* Light background, dark text */
}
/* Ensure form labels are visible on light background */
.page-register__form-section .page-register__form-label {
    color: #017439; /* Brand color for labels */
}