/* style/register.css */

/* Base styles for the register page */
.page-register {
    color: #333333; /* Dark text for light body background #FFFFFF */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-register__hero-section {
    background-color: #000000; /* Dark background for hero, to blend with image opacity */
    color: #FFFFFF; /* Light text for dark background */
    padding: 80px 20px 40px; /* Adjust padding to make space for the image */
    text-align: center;
    position: relative;
    overflow: hidden; /* To contain the image if it overflows */
}

.page-register__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1; /* Ensure text is above image */
}

.page-register__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFFFF;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-register__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-register__hero-cta {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-register__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Make it subtle and blend with dark background */
    z-index: 0; /* Ensure image is behind text */
}

.page-register__button {
    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;
    white-space: nowrap;
}

.page-register__button--primary {
    background-color: #FCBC45; /* Login color for primary action */
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-register__button--primary:hover {
    background-color: #e0a53b;
    border-color: #e0a53b;
}

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

.page-register__button--secondary:hover {
    background-color: #FFFFFF;
    color: #000000;
}

.page-register__button--large {
    padding: 18px 40px;
    font-size: 1.3em;
}

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

.page-register__section {
    margin-bottom: 60px;
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-register__section-title {
    font-size: 2.5em;
    color: #000000;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.page-register__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FCBC45;
    border-radius: 2px;
}

.page-register__section-text {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 20px;
    text-align: justify;
}

.page-register__section-text--small {
    font-size: 0.95em;
    text-align: center;
    margin-top: 30px;
}

.page-register__link {
    color: #FCBC45;
    text-decoration: none;
    font-weight: bold;
}

.page-register__link:hover {
    text-decoration: underline;
}

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

.page-register__feature-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
}

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

.page-register__feature-icon {
    display: block;
    width: 100%;
    max-width: 400px; /* Match HTML width attribute */
    height: auto;
    min-width: 200px; /* Ensure minimum display width */
    min-height: 200px; /* Ensure minimum display height */
    object-fit: contain;
    margin: 0 auto 20px;
    border-radius: 4px;
}

.page-register__feature-title {
    font-size: 1.6em;
    color: #000000;
    margin-bottom: 15px;
}

.page-register__feature-description {
    font-size: 1em;
    color: #666666;
}

/* Steps List */
.page-register__steps-list {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
}

.page-register__step-item {
    background-color: #fefefe;
    border: 1px solid #eee;
    padding: 25px 30px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.page-register__step-item::before {
    counter-increment: step-counter;
    content: "0" counter(step-counter);
    font-size: 2.2em;
    font-weight: bold;
    color: #FCBC45;
    margin-right: 25px;
    flex-shrink: 0;
    line-height: 1;
}

.page-register__step-title {
    font-size: 1.8em;
    color: #000000;
    margin-top: 0;
    margin-bottom: 10px;
}

.page-register__step-description {
    font-size: 1.05em;
    color: #555555;
}

.page-register__section-cta {
    text-align: center;
    margin-top: 40px;
}

/* Terms List */
.page-register__terms-list {
    list-style: none;
    padding: 0;
}

.page-register__terms-item {
    background-color: #f9f9f9;
    padding: 20px 25px;
    margin-bottom: 15px;
    border-left: 5px solid #FCBC45;
    border-radius: 4px;
    font-size: 1.05em;
    color: #444444;
}

.page-register__terms-item strong {
    color: #000000;
}

/* Security Features Grid */
.page-register__security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-register__security-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
}

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

.page-register__security-icon {
    display: block;
    width: 100%;
    max-width: 300px; /* Match HTML width attribute */
    height: auto;
    min-width: 200px; /* Ensure minimum display width */
    min-height: 200px; /* Ensure minimum display height */
    object-fit: contain;
    margin: 0 auto 20px;
    border-radius: 4px;
}

.page-register__security-title {
    font-size: 1.6em;
    color: #000000;
    margin-bottom: 15px;
}

.page-register__security-description {
    font-size: 1em;
    color: #666666;
}

/* FAQ Section */
.page-register__faq-list {
    margin-top: 30px;
}

.page-register__faq-item {
    background-color: #fefefe;
    border: 1px solid #eee;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.page-register__faq-question {
    display: block;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #000000;
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: background-color 0.3s ease;
}

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

.page-register__faq-toggle {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    line-height: 1;
    color: #FCBC45;
    transition: transform 0.3s ease;
}

.page-register__faq-item[open] .page-register__faq-toggle {
    content: '-';
    transform: translateY(-50%) rotate(45deg); /* Simple visual change for open state */
}

.page-register__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.05em;
    color: #555555;
    line-height: 1.7;
    border-top: 1px solid #eee;
}

.page-register__faq-item:not([open]) .page-register__faq-answer {
    display: none; /* Hide answer when not open natively */
}

/* Final CTA Section */
.page-register__section--final-cta {
    text-align: center;
    background-color: #000000; /* Dark background for final CTA */
    color: #FFFFFF; /* Light text */
    padding: 60px 20px;
    border-radius: 10px;
    margin-bottom: 0; /* No margin at the bottom of the main content */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-register__section--final-cta .page-register__section-title {
    color: #FFFFFF;
}

.page-register__section--final-cta .page-register__section-title::after {
    background-color: #FCBC45;
}

.page-register__section--final-cta .page-register__section-text {
    color: #f0f0f0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

@media (max-width: 768px) {
    .page-register {
        padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
    }
    .page-register__hero-section {
        padding: 60px 15px 30px;
    }
    .page-register__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-register__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-register__hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    .page-register__button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .page-register__content-area {
        padding: 40px 15px;
    }
    .page-register__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-register__section-text {
        font-size: 1em;
    }
    .page-register__features-grid,
    .page-register__security-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-register__feature-item,
    .page-register__security-item {
        padding: 25px;
    }
    .page-register__step-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
    .page-register__step-item::before {
        margin-right: 0;
        margin-bottom: 15px;
        font-size: 1.8em;
    }
    .page-register__step-title {
        font-size: 1.4em;
    }
    .page-register__terms-item {
        padding: 15px 20px;
        font-size: 0.95em;
    }
    .page-register__faq-question {
        font-size: 1.1em;
        padding: 18px 20px;
    }
    .page-register__faq-toggle {
        right: 20px;
        font-size: 1.3em;
    }
    .page-register__faq-answer {
        padding: 0 20px 18px;
        font-size: 1em;
    }
    .page-register__section--final-cta {
        padding: 40px 15px;
    }
    .page-register__button--large {
        font-size: 1.1em;
        padding: 15px 25px;
    }
}

@media (max-width: 480px) {
    .page-register__hero-title {
        font-size: 1.8em;
    }
    .page-register__section-title {
        font-size: 1.5em;
    }
    .page-register__step-item::before {
        font-size: 1.5em;
    }
}

/* Global image rules for content area on mobile to prevent overflow and ensure minimum size */
@media (max-width: 768px) {
    .page-register .page-register__content-area img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Enforce minimum size */
        min-height: 200px; /* Enforce minimum size */
        object-fit: contain; /* Adjust as needed, cover or contain */
    }
    /* Hero image is handled separately due to its absolute positioning and opacity */
    .page-register__hero-image {
        max-width: 100%;
        height: 100%; /* Keep height 100% of parent for cover effect */
        min-width: unset;
        min-height: unset;
        object-fit: cover;
    }
}