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

.page-register__hero-section {
    position: relative;
    width: 100%;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #017439, #005f2e);
    color: #ffffff;
}

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

.page-register__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFFF00;
    font-weight: bold;
}

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

.page-register__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-register__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    z-index: 1;
    overflow: hidden;
}

.page-register__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(50%);
}

.page-register__section {
    padding: 60px 20px;
    text-align: center;
    color: #ffffff;
}

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

.page-register__section-intro {
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.1em;
    line-height: 1.7;
    color: #f0f0f0;
}

.page-register__benefits-section {
    background-color: #1a1a1a;
    color: #ffffff;
}

.page-register__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-register__benefit-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

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

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

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

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

.page-register__process-section {
    background-color: #017439;
    color: #ffffff;
}

.page-register__process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-register__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-register__step-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-register__step-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #FFFF00;
    font-weight: bold;
}

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

.page-register__promotions-section {
    background-color: #1a1a1a;
    color: #ffffff;
}

.page-register__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 40px auto;
}

.page-register__promo-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-register__promo-card:hover {
    transform: translateY(-5px);
}

.page-register__promo-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-register__promo-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #FFFF00;
    font-weight: bold;
}

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

.page-register__promotions-cta {
    margin-top: 30px;
}

.page-register__security-section {
    background-color: #005f2e;
    color: #ffffff;
}

.page-register__security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-register__security-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.page-register__security-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #FFFF00;
    font-weight: bold;
}

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

.page-register__faq-section {
    background-color: #1a1a1a;
    color: #ffffff;
}

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

.page-register__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 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.15);
    color: #FFFF00;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

.page-register__faq-q-title {
    margin: 0;
    color: inherit;
}

.page-register__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    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-out, padding 0.3s ease-out;
    color: #e0e0e0;
    background-color: rgba(255, 255, 255, 0.05);
}

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

.page-register__cta-section {
    background: linear-gradient(135deg, #017439, #005f2e);
    color: #ffffff;
    padding: 70px 20px;
}

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

.page-register__btn-primary,
.page-register__btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-register__btn-primary {
    background-color: #C30808;
    color: #FFFF00;
    border: 2px solid #C30808;
}

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

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

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

.page-register__inline-link {
    color: #FFFF00;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-register__inline-link:hover {
    color: #f0f000;
}

.page-register__keyword-highlight {
    color: #FFFF00;
    font-weight: bold;
}

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

/* Mobile responsiveness */
@media (max-width: 768px) {
    .page-register__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }

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

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

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

    .page-register__btn-primary,
    .page-register__btn-secondary {
        width: 100%;
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-register__section {
        padding: 40px 15px;
    }

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

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

    .page-register__benefits-grid,
    .page-register__process-steps,
    .page-register__promotions-grid,
    .page-register__security-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-register__benefit-card,
    .page-register__step-item,
    .page-register__promo-card,
    .page-register__security-item {
        padding: 20px;
    }

    .page-register__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-register__faq-answer {
        padding: 0 20px;
    }

    .page-register__faq-item.active .page-register__faq-answer {
        padding: 10px 20px;
    }

    .page-register__cta-section {
        padding: 50px 15px;
    }

    /* Enforce image responsiveness for mobile */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-register__section,
    .page-register__card,
    .page-register__container,
    .page-register__benefits-grid,
    .page-register__process-steps,
    .page-register__promotions-grid,
    .page-register__security-grid,
    .page-register__faq-list,
    .page-register__hero-buttons,
    .page-register__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-register__hero-image-wrapper {
        padding-left: 0;
        padding-right: 0;
    }

    .page-register__hero-image {
        filter: grayscale(70%); /* Slightly more subdued on mobile */
    }
}