/* style/register.css */

/* Base styles for the page content, ensuring contrast with shared body background */
.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for sections directly on body background */
    background-color: transparent; /* Main content area will have section-specific backgrounds */
}

/* Header offset for the first content section */
.page-register__hero-section {
    padding-top: var(--header-offset, 120px);
}

/* General container for content alignment */
.page-register__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Section styling - alternating dark and light backgrounds for contrast */
.page-register__dark-bg {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    padding: 60px 0;
}

.page-register__light-bg {
    background-color: #ffffff;
    color: #333333; /* Dark text for light background */
    padding: 60px 0;
}

.page-register__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    color: inherit; /* Inherits from parent section */
}

.page-register__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: inherit;
}

/* Hero Section */
.page-register__hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.page-register__hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.page-register__hero-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

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

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

.page-register__hero-cta {
    display: flex;
    justify-content: flex-start;
}

.page-register__hero-image-wrapper {
    flex: 1;
    min-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-register__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    box-sizing: border-box; /* Ensure padding/border included in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

/* Specific button colors (overriding brand color for Register/Login due to contrast) */
.page-register__btn-primary {
    background-color: #C30808; /* Red for primary action */
    color: #000000; /* Black text for contrast on red (Contrast Ratio 4.73:1) */
    border-color: #C30808;
}

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

.page-register__btn-secondary {
    background-color: #FFFFFF; /* White background */
    color: #017439; /* Brand green text */
    border-color: #017439;
    margin-left: 15px; /* Spacing for multiple buttons */
}

.page-register__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005a2e;
    border-color: #005a2e;
}

/* Why Register Section */
.page-register__why-register-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

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

.page-register__feature-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

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

.page-register__feature-description {
    color: #555555;
}

/* How-to Section */
.page-register__how-to-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-register__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.page-register__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    color: #ffffff;
}

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

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

.page-register__step-description {
    color: #f0f0f0;
}

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

.page-register__steps-image {
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}


/* Promotions Section */
.page-register__promotions-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

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

.page-register__promo-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

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

.page-register__promo-note {
    font-style: italic;
    text-align: center;
    margin-bottom: 40px;
    color: #666666;
}

.page-register__promo-image-wrapper {
    text-align: center;
    margin-top: 40px;
}

.page-register__promo-image {
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Security Section */
.page-register__security-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

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

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

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

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

.page-register__security-links {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-register__security-links li {
    margin-bottom: 10px;
}

.page-register__link {
    color: #FFFF00; /* Yellow for links on dark background */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-register__link:hover {
    color: #ffffff;
}

.page-register__security-image-wrapper {
    flex: 1;
    min-width: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-register__security-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-register__faq-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

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

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

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

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

.page-register__faq-title {
    font-size: 1.2em;
    margin: 0;
    color: #017439;
}

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

.page-register__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    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;
    padding: 20px;
    padding-top: 0;
}

.page-register__faq-answer p {
    margin-bottom: 15px;
}

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

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

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

.page-register__cta-image {
    max-width: 1000px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

@media (max-width: 768px) {
    /* Mobile specific padding for sections */
    .page-register__dark-bg,
    .page-register__light-bg {
        padding: 40px 0;
    }

    .page-register__container {
        padding: 0 15px; /* Add side padding for mobile */
    }

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

    .page-register__hero-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .page-register__hero-content {
        order: 2;
        text-align: center;
    }

    .page-register__hero-image-wrapper {
        order: 1;
        min-width: unset;
        width: 100%;
    }
}