/* style/register.css */

/* Base styles for the register page content */
.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* inherited from body, which is #0a0a0a */
}

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

/* Hero Section */
.page-register__hero-section {
    position: relative;
    padding: 80px 0;
    padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
    background: linear-gradient(135deg, #017439, #005f2f); /* Brand color gradient */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    overflow: hidden;
}

.page-register__hero-section .page-register__container {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.page-register__hero-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

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

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

.page-register__hero-image-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-register__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    min-height: 200px;
}

/* CTA Buttons */
.page-register__cta-button {
    display: inline-block;
    background-color: #C30808; /* Custom color for register button */
    color: #FFFF00; /* Custom color for register button font */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-register__cta-button:hover {
    background-color: #a00606;
    transform: translateY(-3px);
}

/* Benefits Section */
.page-register__benefits-section {
    padding: 80px 0;
    text-align: center;
}

.page-register__dark-bg {
    background-color: #017439; /* Brand color */
    color: #ffffff;
}

.page-register__benefits-title {
    font-size: 2.5em;
    color: #FFFF00;
    margin-bottom: 20px;
}

.page-register__benefits-intro {
    font-size: 1.1em;
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 50px;
}

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

.page-register__benefit-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.page-register__benefit-icon {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
    max-width: 100%; /* Ensure responsiveness */
    height: auto; /* Ensure responsiveness */
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px;
    min-height: 200px;
}

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

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

/* Steps Section */
.page-register__steps-section {
    padding: 80px 0;
    text-align: center;
    background-color: #1a1a1a; /* Slightly lighter dark background */
}

.page-register__steps-title {
    font-size: 2.5em;
    color: #FFFF00;
    margin-bottom: 20px;
}

.page-register__steps-intro {
    font-size: 1.1em;
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 50px;
}

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

.page-register__step-item {
    background: #2a2a2a;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
    position: relative;
    padding-top: 70px;
}

.page-register__step-number {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #C30808; /* Register button color */
    color: #FFFF00; /* Register button font color */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    border: 3px solid #017439; /* Brand color border */
}

.page-register__step-heading {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 15px;
}

.page-register__step-text {
    font-size: 0.95em;
    color: #e0e0e0;
}

.page-register__steps-image-wrapper {
    margin-top: 40px;
}

.page-register__steps-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    min-height: 200px;
}

/* Security Section */
.page-register__security-section {
    padding: 80px 0;
    text-align: center;
}

.page-register__light-bg {
    background-color: #222222; /* A dark grey for contrast */
    color: #ffffff;
}

.page-register__security-title {
    font-size: 2.5em;
    color: #FFFF00;
    margin-bottom: 20px;
}

.page-register__security-description {
    font-size: 1.1em;
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 50px;
}

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

.page-register__feature-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.page-register__feature-heading {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-register__feature-text {
    font-size: 0.95em;
    color: #e0e0e0;
}

.page-register__security-image-wrapper {
    margin-top: 40px;
}

.page-register__security-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    min-height: 200px;
}

/* FAQ Section */
.page-register__faq-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    text-align: center;
}

.page-register__faq-title {
    font-size: 2.5em;
    color: #FFFF00;
    margin-bottom: 20px;
}

.page-register__faq-intro {
    font-size: 1.1em;
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 50px;
}

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

.page-register__faq-item {
    background: #2a2a2a;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    background-color: #017439; /* Brand color */
    transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
    background-color: #005f2f;
}

.page-register__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-toggle {
    transform: rotate(45deg);
}

.page-register__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    background-color: #3a3a3a;
    color: #e0e0e0;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-answer {
    max-height: 1000px !important; /* Important for overriding */
    padding: 20px 25px;
}

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

/* Video Section */
.page-register__video-section {
    padding: 80px 0;
    text-align: center;
}

.page-register__video-title {
    font-size: 2.5em;
    color: #FFFF00;
    margin-bottom: 20px;
}

.page-register__video-description {
    font-size: 1.1em;
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 50px;
}

.page-register__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 960px; /* Example max width for video */
    margin: 0 auto;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-register__video-wrapper::before {
    content: '';
    display: block;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

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

.page-register__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Final CTA Section */
.page-register__cta-section-bottom {
    padding: 80px 0;
    text-align: center;
    background-color: #222222; /* A dark grey for contrast */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-register__cta-content-bottom {
    max-width: 800px;
    margin-bottom: 40px;
}

.page-register__cta-title-bottom {
    font-size: 2.5em;
    color: #FFFF00;
    margin-bottom: 20px;
}

.page-register__cta-description-bottom {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 30px;
}

.page-register__cta-image-wrapper-bottom {
    width: 100%;
    max-width: 1200px;
}

.page-register__cta-image-bottom {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    min-height: 200px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-register__hero-title {
        font-size: 2.8em;
    }
    .page-register__benefits-title,
    .page-register__steps-title,
    .page-register__security-title,
    .page-register__faq-title,
    .page-register__video-title,
    .page-register__cta-title-bottom {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-register__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure space below fixed header on mobile */
        padding: 60px 0;
        min-height: auto;
    }
    .page-register__hero-section .page-register__container {
        flex-direction: column;
        text-align: center;
    }
    .page-register__hero-content {
        order: 2; /* Content below image on mobile */
    }
    .page-register__hero-image-wrapper {
        order: 1;
        margin-bottom: 30px;
    }
    .page-register__hero-title {
        font-size: 2.2em;
    }
    .page-register__hero-description {
        font-size: 1em;
    }

    .page-register__benefits-section,
    .page-register__steps-section,
    .page-register__security-section,
    .page-register__faq-section,
    .page-register__video-section,
    .page-register__cta-section-bottom {
        padding: 40px 0;
    }

    .page-register__benefits-title,
    .page-register__steps-title,
    .page-register__security-title,
    .page-register__faq-title,
    .page-register__video-title,
    .page-register__cta-title-bottom {
        font-size: 1.8em;
    }

    .page-register__benefits-intro,
    .page-register__steps-intro,
    .page-register__security-description,
    .page-register__faq-intro,
    .page-register__video-description,
    .page-register__cta-description-bottom {
        font-size: 0.95em;
    }

    .page-register__benefit-heading,
    .page-register__step-heading,
    .page-register__feature-heading {
        font-size: 1.3em;
    }

    .page-register__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-register__faq-answer {
        padding: 0 20px;
    }
    .page-register__faq-item.active .page-register__faq-answer {
        padding: 15px 20px;
    }

    /* Enforce image responsiveness */
    .page-register img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-register__hero-image-wrapper,
    .page-register__steps-image-wrapper,
    .page-register__security-image-wrapper,
    .page-register__cta-image-wrapper-bottom,
    .page-register__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Add padding to prevent content from touching edges */
        padding-right: 15px; /* Add padding to prevent content from touching edges */
        overflow: hidden !important;
    }

    /* Enforce video responsiveness */
    .page-register video,
    .page-register__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-register__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    /* Enforce button responsiveness */
    .page-register__cta-button,
    .page-register__btn-register,
    .page-register a[class*="button"],
    .page-register a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important; /* Make buttons full width on mobile */
        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__hero-content .page-register__cta-button {
        width: auto !important; /* Allow button to shrink if content is small, but max-width: 100% still applies */
        max-width: 250px !important; /* Example to prevent it from being too wide if not flex */
        margin: 0 auto;
    }
    .page-register__cta-section-bottom .page-register__cta-button-bottom {
        width: auto !important;
        max-width: 250px !important;
        margin: 0 auto;
    }
}

/* Ensure no filter on images */
.page-register img {
    filter: none !important;
}

/* Content area images CSS dimensions lower bound */
.page-register__hero-image,
.page-register__benefits-image,
.page-register__steps-image,
.page-register__security-image,
.page-register__cta-image-bottom,
.page-register__benefit-icon {
    min-width: 200px;
    min-height: 200px;
}