/* style/register.css */

/* Base styles for the register page */
.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

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

.page-register__light-bg {
    background-color: #ffffff;
    color: #333333; /* Dark text for light background */
}

/* Hero Section */
.page-register__hero-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-register__hero-section .page-register__container {
    position: relative;
    z-index: 2;
    padding-top: 0; /* Already handled by page-register padding-top */
}

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

.page-register__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-register__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.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;
}

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

.page-register__btn-primary:hover {
    background-color: #e02a2a;
    border-color: #e02a2a;
    transform: translateY(-2px);
}

.page-register__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Login font color */
    border: 2px solid #FFFF00;
}

.page-register__btn-secondary:hover {
    background-color: #FFFF00;
    color: #C30808;
    transform: translateY(-2px);
}

.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.3; /* Subtle background image */
}

/* General Section Styles */
.page-register__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    color: inherit; /* Inherits from section background */
}

.page-register__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: inherit;
}

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

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

.page-register__card {
    background-color: #f8f8f8;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: #333333; /* Dark text for light card background */
}

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

.page-register__card-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    display: block; /* Ensure image is block for max-width to work */
    margin-left: auto;
    margin-right: auto;
}

.page-register__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439; /* Brand color for titles */
    font-weight: bold;
}

.page-register__card-text {
    font-size: 1em;
    color: #555555;
}

/* Process Section */
.page-register__process-section {
    padding: 80px 0;
}

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

.page-register__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: #ffffff;
}

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

.page-register__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #C30808; /* Register specific color */
    color: #FFFF00; /* Register font color */
    border-radius: 50%;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
}

.page-register__step-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFFF00; /* Register font color */
    font-weight: bold;
}

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

.page-register__cta-bottom {
    text-align: center;
    margin-top: 50px;
}

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

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

.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: #f8f8f8;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #333333;
}

.page-register__security-icon {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-register__security-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439;
    font-weight: bold;
}

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

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

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

.page-register__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    cursor: pointer;
}

.page-register__cta-video {
    margin-top: 40px;
}

/* FAQ Section */
.page-register__faq-section {
    padding: 80px 0;
}

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

.page-register__faq-item {
    background-color: #f8f8f8;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #333333;
}

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

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

.page-register__faq-question h3 {
    margin: 0;
    color: #017439; /* Brand color for FAQ questions */
}

.page-register__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    transition: transform 0.3s ease;
}

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

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

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

.page-register__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
}

/* Final CTA Section */
.page-register__final-cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-register__btn-final {
    margin-top: 40px;
    padding: 20px 45px;
    font-size: 1.3em;
}

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

@media (max-width: 768px) {
    .page-register {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top is correct */
    }

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

    .page-register__hero-section {
        padding: 60px 0;
    }
    .page-register__hero-title {
        font-size: 2.5em;
        margin-bottom: 15px;
    }
    .page-register__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-register__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .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-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__cta-buttons {
        display: flex;
        flex-direction: column;
    }

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

    .page-register__benefits-section,
    .page-register__process-section,
    .page-register__security-section,
    .page-register__video-section,
    .page-register__faq-section,
    .page-register__final-cta-section {
        padding: 50px 0;
    }

    .page-register__grid-cards,
    .page-register__steps,
    .page-register__security-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-register__card,
    .page-register__step-item,
    .page-register__security-item,
    .page-register__faq-item {
        padding: 20px;
    }

    .page-register__card-image,
    .page-register__security-icon {
        max-width: 100%;
    }

    .page-register__video-wrapper {
        margin: 20px auto;
    }
    .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;
    }

    .page-register__faq-question {
        font-size: 1em;
        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;
    }

    /* Images responsiveness */
    .page-register img {
        max-width: 100%;
        height: auto;
        display: block;
    }
    .page-register__section,
    .page-register__card,
    .page-register__container {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    @media (max-width: 768px) {
        .page-register img {
            max-width: 100% !important;
            width: 100% !important;
            height: auto !important;
        }
        .page-register__section,
        .page-register__card,
        .page-register__container {
            max-width: 100% !important;
            width: 100% !important;
            box-sizing: border-box !important;
            padding-left: 15px;
            padding-right: 15px;
        }
    }
    /* Ensure content area images are not too small */
    .page-register__card-image,
    .page-register__security-icon {
        min-width: 200px;
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .page-register__hero-title {
        font-size: 2em;
    }
    .page-register__btn-large {
        font-size: 1.1em;
        padding: 15px 30px;
    }
    .page-register__section-title {
        font-size: 1.5em;
    }
}

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