/* style/register.css */

/* General page styling */
.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background from shared.css */
}

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

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

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

/* Hero Section */
.page-register__hero-section {
    position: relative;
    width: 100%;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding-top: var(--header-offset, 120px);
    overflow: hidden;
    isolation: isolate; /* Create a new stacking context for overlay */
}

.page-register__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
    z-index: 1;
}

.page-register__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 40px 20px;
}

.page-register__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

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

/* Video Wrapper */
.page-register__video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0; /* Behind hero content */
}

.page-register__video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    display: block;
}

.page-register__video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3; /* Above video and overlay, below hero content */
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0); /* Transparent by default */
    transition: background-color 0.3s ease;
}

.page-register__video-overlay-link:hover {
    background-color: rgba(0, 0, 0, 0.1); /* Slight overlay on hover */
}

/* Buttons */
.page-register__btn-primary {
    display: inline-block;
    background-color: #C30808; /* Custom color for Register */
    color: #ffffff; /* White text for contrast */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

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

.page-register__btn-secondary {
    display: inline-block;
    background-color: #ffffff;
    color: #017439; /* Brand color for text */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid #017439;
    cursor: pointer;
}

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

/* Section Backgrounds */
.page-register__dark-bg {
    background-color: #017439; /* Main brand color */
    color: #ffffff;
    padding: 80px 0;
}

.page-register__light-bg {
    background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
    color: #ffffff;
    padding: 80px 0;
}

/* Benefits Section */
.page-register__benefits-section .page-register__section-title,
.page-register__benefits-section .page-register__section-intro {
    color: #ffffff; /* Ensure text is white on dark background */
}

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

.page-register__benefit-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-register__benefit-icon {
    width: 100%;
    height: auto;
    max-height: 200px; /* Adjust as needed */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

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

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

/* Guide Section */
.page-register__guide-section .page-register__section-title,
.page-register__guide-section .page-register__section-intro {
    color: #ffffff;
}

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

.page-register__step-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.page-register__step-image {
    width: 100%;
    height: auto;
    max-height: 300px; /* Adjust as needed */
    object-fit: cover;
    margin-bottom: 25px;
    border-radius: 8px;
}

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

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

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

/* Security Section */
.page-register__security-section .page-register__section-title,
.page-register__security-section .page-register__section-intro {
    color: #ffffff;
}

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

.page-register__security-image {
    flex: 1;
    min-width: 300px;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
}

.page-register__security-text {
    flex: 2;
    min-width: 300px;
}

.page-register__security-subtitle {
    font-size: 1.8em;
    color: #ffffff;
    margin-bottom: 15px;
    margin-top: 25px;
}

.page-register__security-text p {
    color: #f0f0f0;
    margin-bottom: 15px;
}

/* Promotions Section */
.page-register__promotions-section .page-register__section-title,
.page-register__promotions-section .page-register__section-intro {
    color: #ffffff;
}

.page-register__promo-cards {
    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);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

/* FAQ Section */
.page-register__faq-section .page-register__section-title,
.page-register__faq-section .page-register__section-intro {
    color: #ffffff;
}

.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.08);
    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;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    background-color: #017439; /* Brand color for question background */
    transition: background-color 0.3s ease;
}

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

.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;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
    background-color: rgba(255, 255, 255, 0.05); /* Lighter transparent for answer */
}

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

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

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

.page-register__cta-section .page-register__section-title,
.page-register__cta-section .page-register__section-intro {
    color: #ffffff;
}

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

@media (max-width: 768px) {
    .page-register {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-register__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-register__hero-title {
        font-size: 2.2em;
    }
    .page-register__hero-description {
        font-size: 1em;
    }
    .page-register__section-title {
        font-size: 1.8em;
    }
    .page-register__section-intro {
        font-size: 0.95em;
    }
    .page-register__dark-bg, .page-register__light-bg {
        padding: 60px 0;
    }
    .page-register__container {
        padding: 0 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Images responsive */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-register__benefits-grid,
    .page-register__guide-steps,
    .page-register__promo-cards {
        grid-template-columns: 1fr;
    }
    .page-register__security-content {
        flex-direction: column;
    }
    .page-register__security-image {
        min-width: unset;
        width: 100%;
    }

    /* Video responsive */
    .page-register video,
    .page-register__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-register__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Buttons responsive */
    .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-bottom {
        display: flex;
        justify-content: center;
        padding: 0 15px;
        box-sizing: border-box;
    }
    .page-register__faq-question {
        font-size: 1.1em;
        padding: 18px 20px;
    }
    .page-register__faq-answer {
        padding: 0 20px;
    }
    .page-register__faq-item.active .page-register__faq-answer {
        padding: 15px 20px 20px;
    }
}

@media (max-width: 480px) {
    .page-register__hero-title {
        font-size: 1.8em;
    }
    .page-register__hero-description {
        font-size: 0.9em;
    }
    .page-register__section-title {
        font-size: 1.5em;
    }
    .page-register__btn-primary,
    .page-register__btn-secondary {
        font-size: 1em;
        padding: 12px 20px;
    }
    .page-register__faq-question {
        font-size: 1em;
    }
}