/* style/register.css */

/* Base styles for the register page */
.page-register {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

/* Section styling */
.page-register__hero-section,
.page-register__why-join-section,
.page-register__steps-section,
.page-register__bonuses-section,
.page-register__security-section,
.page-register__app-download-section,
.page-register__faq-section,
.page-register__final-cta-section {
    padding: 80px 20px;
    text-align: center;
}

/* Specific section background/text colors */
.page-register__dark-bg {
    background-color: #1a1a2e; /* Matches body background for consistency */
    color: #ffffff;
}

.page-register__light-bg {
    background-color: #f8f9fa; /* Light background for contrast sections */
    color: #333333;
}

/* Hero Section */
.page-register__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* For background image */
}

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

.page-register__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Make background image subtle */
}

.page-register__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
}

.page-register__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFFF00; /* Using custom font color here as highlight on dark background, contrast 10.9:1 with #1a1a2e */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    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;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    box-sizing: border-box; /* Include padding in width */
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-register__btn-primary {
    background-color: #C30808; /* Custom Register/Login button color */
    color: #ffffff; /* Forced white text for contrast on #C30808 */
    border: 2px solid #C30808;
}

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

.page-register__btn-secondary {
    background-color: transparent;
    color: #ffffff; /* White text on dark background */
    border: 2px solid #ffffff;
}

.page-register__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439; /* Brand green on white hover */
    border-color: #ffffff;
}

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

/* Section Titles and Descriptions */
.page-register__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-register__light-bg .page-register__section-title {
    color: #017439; /* Brand green on light background */
}

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

.page-register__section-description {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

/* Feature Grid */
.page-register__features-grid,
.page-register__steps-grid,
.page-register__bonus-grid,
.page-register__security-grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

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

.page-register__feature-card,
.page-register__bonus-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    color: #333333; /* Dark text on light card background */
}

.page-register__feature-icon,
.page-register__bonus-image {
    width: 100%; /* Occupy full width of card */
    height: auto;
    max-height: 250px; /* Limit height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

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

/* Steps Section */
.page-register__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    counter-reset: step-counter; /* Initialize counter */
}

.page-register__step-item {
    position: relative;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    border-radius: 10px;
    text-align: left;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-register__step-number {
    font-size: 2em;
    font-weight: bold;
    color: #FFFF00; /* Highlight step numbers */
    margin-bottom: 10px;
    border: 2px solid #FFFF00;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

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

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

/* Bonuses Section (reuses card styles) */

/* Security Section */
.page-register__security-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-top: 40px;
}

.page-register__security-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    color: #ffffff;
}

.page-register__security-icon {
    width: 200px; /* Fixed width for icons */
    height: 150px; /* Fixed height for icons */
    object-fit: contain; /* Ensure full icon visibility */
    margin-bottom: 20px;
}

.page-register__security-subtitle {
    font-size: 1.4em;
    color: #FFFF00; /* Highlight security subtitles */
    margin-bottom: 10px;
}

.page-register__security-text {
    color: #e0e0e0;
}

/* App Download Section */
.page-register__app-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
    text-align: left;
}

.page-register__app-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-register__app-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-register__app-info {
    flex: 1;
    color: #333333;
}

.page-register__app-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-register__app-features li {
    font-size: 1.1em;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.page-register__app-features li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #017439; /* Brand green checkmark */
}

.page-register__highlight-text {
    color: #017439; /* Brand green for highlights */
}

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

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

.page-register__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

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

.page-register__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #FFFF00; /* Highlight toggle icon */
    transition: transform 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

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

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

.page-register__faq-text {
    margin: 0;
    padding-bottom: 10px;
}

/* Final CTA Section */
.page-register__final-cta-section {
    padding: 100px 20px;
    background: linear-gradient(45deg, #017439, #1a1a2e); /* Gradient background with brand color */
    color: #ffffff;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-register__hero-title {
        font-size: 2.8em;
    }
    .page-register__section-title {
        font-size: 2em;
    }
    .page-register__app-content {
        flex-direction: column;
        gap: 30px;
    }
    .page-register__app-info {
        text-align: center;
    }
    .page-register__app-cta {
        justify-content: center;
    }
    .page-register__app-features li {
        padding-left: 0; /* Remove padding for checkmark */
        text-align: center;
    }
    .page-register__app-features li::before {
        position: static; /* Align checkmark inline */
        margin-right: 10px;
    }
}

@media (max-width: 768px) {
    /* Mobile specific overrides */
    .page-register__hero-section,
    .page-register__why-join-section,
    .page-register__steps-section,
    .page-register__bonuses-section,
    .page-register__security-section,
    .page-register__app-download-section,
    .page-register__faq-section,
    .page-register__final-cta-section {
        padding: 60px 15px;
    }

    .page-register__hero-title {
        font-size: 2.2em;
    }
    .page-register__hero-description {
        font-size: 1em;
    }
    .page-register__section-title {
        font-size: 1.8em;
    }
}