/* style/register.css */
.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #FFFFFF; /* Assuming shared body background is light */
}

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

.page-register__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-register__medium-bg {
    background-color: #f5f5f5;
    color: #333333;
}

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

/* Hero Section */
.page-register__hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 600px;
    padding: 80px 0;
    padding-top: var(--header-offset, 120px);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.page-register__hero-content {
    flex: 1;
    padding-right: 40px;
    z-index: 1;
    max-width: 600px;
}

.page-register__hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 0;
}

.page-register__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    min-height: 200px;
}

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

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

.page-register__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.page-register__btn-primary,
.page-register__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

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

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

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

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

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

/* General Section Styling */
.page-register__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #017439;
}

.page-register__dark-bg .page-register__section-title {
    color: #ffffff;
}

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

.page-register__dark-bg .page-register__section-description {
    color: #f0f0f0;
}

/* Benefits Section */
.page-register__benefits-section,
.page-register__steps-section,
.page-register__security-section,
.page-register__promotions-section,
.page-register__faq-section,
.page-register__cta-final-section {
    padding: 80px 0;
}

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

.page-register__card {
    background: #ffffff;
    color: #333333;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #e0e0e0;
}

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

.page-register__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-register__card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #017439;
}

.page-register__card-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;
    counter-reset: step-counter;
}

.page-register__step-item {
    background: #ffffff;
    color: #333333;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    position: relative;
    padding-top: 60px;
    border: 1px solid #e0e0e0;
}

.page-register__step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #017439;
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    border: 4px solid #f5f5f5;
}

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

.page-register__step-text {
    color: #555555;
}

/* Security Section */
.page-register__security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    text-align: center;
}

.page-register__feature-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 25px;
    color: #ffffff;
}

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

.page-register__feature-text {
    color: #f0f0f0;
}

.page-register__security-image {
    display: block;
    margin: 0 auto;
    max-width: 800px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    min-height: 200px;
}

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

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

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

.page-register__promo-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px;
    min-height: 200px;
}

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

.page-register__promo-text {
    color: #555555;
}

.page-register__cta-buttons--center {
    justify-content: center;
    text-align: center;
}

/* FAQ Section */
.page-register__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-register__faq-item {
    background: #ffffff;
    color: #333333;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

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

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

.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(0deg);
}

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

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

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

.page-register__cta-final-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-register__hero-section {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
        min-height: auto;
    }

    .page-register__hero-content {
        padding-right: 0;
        margin-bottom: 40px;
        max-width: 100%;
    }

    .page-register__hero-image-wrapper {
        justify-content: center;
    }

    .page-register__main-title {
        font-size: 2.8em;
    }

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

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

@media (max-width: 768px) {
    .page-register {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-register__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-register__hero-content,
    .page-register__hero-image-wrapper,
    .page-register__container,
    .page-register__benefits-grid,
    .page-register__steps-grid,
    .page-register__security-features,
    .page-register__promotions-grid,
    .page-register__faq-list,
    .page-register__cta-final-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .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 {
        flex-direction: column;
        gap: 10px;
    }

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

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

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

    .page-register__card,
    .page-register__step-item,
    .page-register__feature-item,
    .page-register__promo-card,
    .page-register__faq-item {
        padding: 20px;
    }

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

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

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

    .page-register__step-number {
        top: -15px;
        width: 40px;
        height: 40px;
        font-size: 1.5em;
    }

    .page-register__security-image {
        min-width: 200px !important;
        min-height: 200px !important;
    }
}

@media (max-width: 480px) {
    .page-register__main-title {
        font-size: 1.8em;
    }

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

    .page-register__btn-primary,
    .page-register__btn-secondary {
        padding: 12px 20px;
        font-size: 0.9em;
    }

    .page-register__btn-primary--large {
        padding: 15px 30px;
        font-size: 1em;
    }
}