/* style/register.css */

/* Base Styles */
.page-register {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #FFFFFF; /* Default body background */
}

/* Header Offset */
.page-register__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

/* Section Styling */
.page-register__section {
    padding: 60px 0;
    text-align: center;
}

.page-register__dark-bg {
    background-color: #017439; /* Brand primary green */
    color: #FFFFFF; /* White text for dark background */
}

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

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

.page-register__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: inherit; /* Inherit color from parent section */
}

.page-register__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: inherit; /* Inherit color from parent section */
}

/* Hero Section */
.page-register__hero-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-bottom: 60px; /* Adjust as needed */
}

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

.page-register__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Overlay to ensure text readability */
    filter: brightness(0.7); /* Darken image for text contrast */
}

.page-register__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 40px 20px;
    text-align: center;
    color: #FFFFFF;
}

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

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

/* CTA Buttons */
.page-register__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

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

.page-register__btn-primary {
    background-color: #C30808; /* Custom red for register/login */
    color: #FFFF00; /* Custom yellow font */
    border: 2px solid #C30808;
}

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

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

.page-register__btn-secondary:hover {
    background-color: #FFFF00;
    color: #C30808;
}

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

.page-register__benefit-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    color: #333333;
}

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

.page-register__benefit-icon {
    width: 100%;
    max-width: 250px; /* Ensure images are not too wide in cards */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
    object-fit: cover;
}

.page-register__benefit-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439; /* Brand green */
}

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

/* Steps Section */
.page-register__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-register__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-register__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #FFFF00; /* Yellow for numbers */
    margin-bottom: 15px;
}

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

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

.page-register__steps-image-wrapper {
    margin-top: 50px;
    text-align: center;
}

.page-register__steps-image {
    max-width: 800px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
    object-fit: cover;
}

/* Verification Section */
.page-register__verification-content {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-register__verification-text {
    flex: 1;
    min-width: 300px;
}

.page-register__verification-list {
    list-style: disc;
    margin-left: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    color: #555555;
}

.page-register__verification-list li {
    margin-bottom: 10px;
}

.page-register__verification-list strong {
    color: #017439;
}

.page-register__verification-image-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-register__verification-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
    object-fit: cover;
}

/* Bonuses Section */
.page-register__bonuses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-register__bonus-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

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

.page-register__bonus-image {
    width: 100%;
    max-width: 350px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
    object-fit: cover;
}

.page-register__bonus-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFFF00; /* Yellow for bonus titles */
}

.page-register__bonus-text {
    font-size: 1em;
    margin-bottom: 20px;
}

.page-register__cta-bonuses {
    margin-top: 50px;
}

/* FAQ Section */
.page-register__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

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

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

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

.page-register__faq-title {
    margin: 0;
    color: #017439; /* Brand green for FAQ titles */
}

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

.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;
    background-color: #FFFFFF;
    color: #555555;
}

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

.page-register__faq-answer p {
    margin-bottom: 0;
    font-size: 1em;
}

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

.page-register__cta-final-section .page-register__section-title {
    color: #FFFF00; /* Yellow for final CTA title */
}

.page-register__cta-final-section .page-register__section-description {
    color: #FFFFFF;
}

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

@media (max-width: 768px) {
    .page-register__hero-section {
        padding-bottom: 40px;
    }
    .page-register__hero-title {
        font-size: 2.2em;
    }
    .page-register__hero-description {
        font-size: 1.1em;
    }
    .page-register__section {
        padding: 40px 0;
    }
    .page-register__section-title {
        font-size: 1.8em;
    }
    .page-register__section-description {
        font-size: 1em;
    }
    .page-register__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-register__btn-primary,
    .page-register__btn-secondary {
        width: 100%;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        margin: 0 auto; /* Center buttons when stacked */
    }

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

    .page-register__hero-image-wrapper,
    .page-register__steps-image-wrapper,
    .page-register__verification-image-wrapper,
    .page-register__bonus-card,
    .page-register__benefit-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-register__hero-content,
    .page-register__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-register__verification-content {
        flex-direction: column;
        gap: 30px;
    }

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

@media (max-width: 480px) {
    .page-register__hero-title {
        font-size: 1.8em;
    }
    .page-register__section-title {
        font-size: 1.5em;
    }
    .page-register__benefits-grid,
    .page-register__steps-grid,
    .page-register__bonuses-grid {
        grid-template-columns: 1fr;
    }
}