/* style/register.css */

/* General page styling */
.page-register {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF; /* Explicitly set body background as per instruction */
    scroll-behavior: smooth;
}

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

.page-register__section-title {
    font-size: 38px;
    color: #017439; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    letter-spacing: -0.5px;
}

.page-register__section-description {
    font-size: 18px;
    text-align: center;
    margin-bottom: 40px;
    color: #555555;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* Hero Section */
.page-register__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    overflow: hidden;
    background: linear-gradient(135deg, #017439, #FFFFFF); /* Blending brand primary with white */
    min-height: 650px;
}

.page-register__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-register__hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.page-register__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.95); /* Slightly transparent white background for text readability */
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-register__hero-title {
    font-size: 52px;
    color: #017439; /* Brand primary color */
    margin-bottom: 18px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -1px;
}

.page-register__hero-description {
    font-size: 22px;
    color: #333333;
    margin-bottom: 35px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.page-register__cta-button {
    display: inline-block;
    padding: 18px 45px;
    text-decoration: none;
    border-radius: 10px;
    font-size: 22px;
    font-weight: bold;
    margin: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    max-width: 100%; /* For mobile button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    letter-spacing: 0.5px;
}

.page-register__cta-button--register {
    background: #C30808; /* Register button color */
    color: #FFFF00; /* Register button font color */
}

.page-register__cta-button--register:hover {
    background: #a30606; /* Darker red on hover */
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-register__cta-button--login {
    background: #C30808; /* Login button color */
    color: #FFFF00; /* Login button font color */
}

.page-register__cta-button--login:hover {
    background: #a30606; /* Darker red on hover */
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-register__cta-button--secondary {
    background: #017439; /* Brand primary for secondary CTA */
    color: #FFFFFF; /* White text for contrast */
}

.page-register__cta-button--secondary:hover {
    background: #005a2e; /* Darker green on hover */
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Benefits Section */
.page-register__benefits-section {
    padding: 90px 0;
    background-color: #f8f8f8; /* Light background for contrast */
    color: #333333;
}

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

.page-register__dark-section .page-register__section-title,
.page-register__dark-section .page-register__section-description {
    color: #FFFFFF;
}

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

.page-register__benefit-item {
    background-color: #FFFFFF;
    border-radius: 15px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
    border: 1px solid #e0e0e0;
}

.page-register__dark-section .page-register__benefit-item {
    background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white on dark background */
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.2);
}

.page-register__benefit-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.page-register__benefit-icon {
    width: 200px;
    height: 200px;
    min-width: 200px;
    min-height: 200px;
    object-fit: contain;
    margin-bottom: 25px;
    border-radius: 10px;
}

.page-register__benefit-title {
    font-size: 26px;
    color: #017439; /* Brand primary color */
    margin-bottom: 12px;
    font-weight: bold;
}

.page-register__dark-section .page-register__benefit-title {
    color: #FFFF00; /* Yellow for titles on dark background */
}

.page-register__benefit-text {
    font-size: 17px;
    color: #555555;
    line-height: 1.6;
}

.page-register__dark-section .page-register__benefit-text {
    color: #f0f0f0;
}

/* Guide Section */
.page-register__guide-section {
    padding: 90px 0;
    background-color: #FFFFFF;
    color: #333333;
}

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

.page-register__step-item {
    background-color: #fefefe;
    border: 1px solid #e5e5e5;
    border-radius: 15px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.3s ease;
}

.page-register__step-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-register__step-number {
    width: 70px;
    height: 70px;
    background-color: #017439;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 900;
    margin: 0 auto 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-register__step-title {
    font-size: 24px;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-register__step-text {
    font-size: 17px;
    color: #555555;
    line-height: 1.6;
}

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

/* Promo Section */
.page-register__promo-section {
    padding: 90px 0;
    background-color: #017439; /* Dark background */
    color: #FFFFFF; /* White text */
}

.page-register__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.page-register__promo-card {
    background-color: rgba(255, 255, 255, 0.15); /* Semi-transparent white on dark background */
    border-radius: 15px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-register__promo-image {
    width: 100%;
    height: 280px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 25px;
    min-width: 200px;
    min-height: 200px;
}

.page-register__promo-title {
    font-size: 26px;
    color: #FFFF00; /* Yellow for titles on dark background */
    margin-bottom: 12px;
    font-weight: bold;
}

.page-register__promo-text {
    font-size: 17px;
    color: #f0f0f0;
    margin-bottom: 25px;
    line-height: 1.6;
}

.page-register__promo-link {
    display: inline-block;
    background-color: #C30808; /* Register button color */
    color: #FFFF00; /* Register button font color */
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.page-register__promo-link:hover {
    background-color: #a30606;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Security Section */
.page-register__security-section {
    padding: 90px 0;
    background-color: #FFFFFF;
    color: #333333;
}

.page-register__security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.page-register__feature-item {
    background-color: #fefefe;
    border: 1px solid #e5e5e5;
    border-radius: 15px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.3s ease;
}

.page-register__feature-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-register__feature-icon {
    width: 200px;
    height: 200px;
    min-width: 200px;
    min-height: 200px;
    object-fit: contain;
    margin-bottom: 25px;
    border-radius: 10px;
}

.page-register__feature-title {
    font-size: 24px;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-register__feature-text {
    font-size: 17px;
    color: #555555;
    line-height: 1.6;
}

/* FAQ Section */
.page-register__faq-section {
    padding: 90px 0;
    background-color: #017439; /* Dark background */
    color: #FFFFFF; /* White text */
}

.page-register__faq-list {
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-register__faq-item {
    margin-bottom: 18px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: #333333; /* Dark text on light background */
}

.page-register__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-register__faq-question:active {
    background: #eeeeee;
}

.page-register__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: #017439; /* Brand primary color for FAQ questions */
}

.page-register__faq-toggle {
    font-size: 30px; 
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; 
    height: 36px; 
}

.page-register__faq-item.active .page-register__faq-toggle {
    color: #333;
    transform: rotate(45deg); /* Rotates the '+' to an 'x' */
}

.page-register__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    background: #f9f9f9;
    border-radius: 0 0 8px 8px;
    color: #555555; /* Dark text on light background */
}

.page-register__faq-item.active .page-register__faq-answer {
    max-height: 2000px !important; /* Sufficiently large */
    padding: 25px !important;
    opacity: 1;
}

.page-register__faq-answer p {
    margin-bottom: 0;
    font-size: 17px;
    line-height: 1.6;
}

/* Final CTA Section */
.page-register__cta-final-section {
    padding: 90px 0;
    background-color: #FFFFFF;
    text-align: center;
}

.page-register__cta-final-content {
    max-width: 900px;
}

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


/* Responsive Design */
@media (max-width: 1024px) {
    .page-register__hero-title {
        font-size: 44px;
    }
    .page-register__hero-description {
        font-size: 20px;
    }
    .page-register__section-title {
        font-size: 34px;
    }
    .page-register__section-description {
        font-size: 17px;
    }
    .page-register__cta-button {
        font-size: 19px;
        padding: 16px 40px;
    }
}

@media (max-width: 768px) {
    .page-register__container {
        padding: 15px;
    }

    /* Hero Section Mobile */
    .page-register__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure correct offset on mobile */
        padding-bottom: 50px;
        min-height: auto;
    }
    .page-register__hero-content {
        padding: 20px;
    }
    .page-register__hero-title {
        font-size: 36px;
        margin-bottom: 12px;
    }
    .page-register__hero-description {
        font-size: 17px;
        margin-bottom: 25px;
    }
    .page-register__cta-button {
        padding: 14px 28px;
        font-size: 18px;
        margin: 10px;
        max-width: 100% !important; /* Force full width on mobile */
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-register__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
    }
    .page-register__cta-buttons .page-register__cta-button {
        width: calc(100% - 30px); /* Account for padding */
        margin: 0 auto; /* Center individual buttons */
    }

    /* General Section Mobile */
    .page-register__section-title {
        font-size: 28px;
    }
    .page-register__section-description {
        font-size: 16px;
        margin-bottom: 35px;
    }
    .page-register__benefits-section, .page-register__guide-section, .page-register__promo-section, .page-register__security-section, .page-register__faq-section, .page-register__cta-final-section {
        padding: 60px 0;
    }

    /* Images Mobile */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-register__section,
    .page-register__card,
    .page-register__container,
    .page-register__benefits-section,
    .page-register__guide-section,
    .page-register__promo-section,
    .page-register__security-section,
    .page-register__faq-section,
    .page-register__cta-final-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-register__benefit-icon,
    .page-register__feature-icon {
        width: 200px;
        height: 200px;
        min-width: 200px;
        min-height: 200px;
        margin-left: auto;
        margin-right: auto;
    }
    .page-register__promo-image {
        height: 220px; /* Adjust for smaller screens */
    }

    /* FAQ Mobile */
    .page-register__faq-question {
        padding: 18px 20px;
        flex-wrap: wrap;
    }
    .page-register__faq-question h3 {
        font-size: 17px;
        margin-bottom: 0;
        width: calc(100% - 48px);
    }
    .page-register__faq-toggle {
        margin-left: 12px;
        width: 30px;
        height: 30px;
        font-size: 26px;
    }
    .page-register__faq-answer {
        padding: 0 20px;
    }
    .page-register__faq-item.active .page-register__faq-answer {
        padding: 20px !important;
    }
}

@media (max-width: 480px) {
    .page-register__hero-title {
        font-size: 30px;
    }
    .page-register__hero-description {
        font-size: 16px;
    }
    .page-register__section-title {
        font-size: 26px;
    }
    .page-register__cta-button {
        font-size: 16px;
        padding: 12px 25px;
    }
    .page-register__step-number {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    .page-register__step-title {
        font-size: 22px;
    }
    .page-register__promo-title {
        font-size: 22px;
    }
    .page-register__feature-title {
        font-size: 22px;
    }
}