/* style/register.css */

/* Custom Colors */
:root {
    --page-register-card-bg: #11271B;
    --page-register-background: #08160F;
    --page-register-text-main: #F2FFF6;
    --page-register-text-secondary: #A7D9B8;
    --page-register-border: #2E7A4E;
    --page-register-glow: #57E38D;
    --page-register-gold: #F2C14E;
    --page-register-divider: #1E3A2A;
    --page-register-deep-green: #0A4B2C;
    --page-register-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-register-primary-color: #11A84E; /* Main theme color */
    --page-register-secondary-color: #22C768; /* Auxiliary theme color */
}

.page-register {
    background-color: var(--page-register-background); /* Dark background from custom colors */
    color: var(--page-register-text-main); /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-register__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden;
    background-color: var(--page-register-deep-green);
}

.page-register__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    position: relative;
    margin-bottom: 30px;
}

.page-register__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-register__hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.page-register__main-title {
    color: var(--page-register-text-main);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
}

.page-register__description {
    color: var(--page-register-text-secondary);
    font-size: 1.15rem;
    margin-bottom: 30px;
}

/* CTA Button */
.page-register__cta-button {
    display: inline-block;
    background: var(--page-register-button-gradient);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-register__btn-primary {
    background: var(--page-register-button-gradient);
    color: #ffffff;
}

.page-register__btn-secondary {
    background: none;
    color: var(--page-register-primary-color);
    border: 2px solid var(--page-register-primary-color);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.page-register__btn-secondary:hover {
    background: var(--page-register-primary-color);
    color: #ffffff;
}

/* Section Titles */
.page-register__section-title {
    color: var(--page-register-text-main);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    margin-top: 60px;
}

.page-register__intro-text {
    color: var(--page-register-text-secondary);
    text-align: center;
    font-size: 1.05rem;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-register__text {
    color: var(--page-register-text-secondary);
    margin-bottom: 20px;
}

.page-register__text-center {
    text-align: center;
}

.page-register__text-link {
    color: var(--page-register-gold);
    text-decoration: underline;
}

.page-register__text-link:hover {
    color: var(--page-register-glow);
}

/* Why Join Section */
.page-register__why-join-section {
    background-color: var(--page-register-background);
    padding: 60px 0;
}

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

.page-register__feature-card {
    background-color: var(--page-register-card-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--page-register-border);
    color: var(--page-register-text-main);
}

.page-register__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-register__feature-icon {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-register__feature-title {
    color: var(--page-register-gold);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.page-register__feature-text {
    color: var(--page-register-text-secondary);
    font-size: 1rem;
}

/* Registration Guide Section */
.page-register__registration-guide-section {
    background-color: var(--page-register-deep-green);
    padding: 80px 0;
}

.page-register__guide-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    margin-top: 50px;
}

.page-register__step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--page-register-card-bg);
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid var(--page-register-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-register__step-number {
    background: var(--page-register-primary-color);
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-register__step-title {
    color: var(--page-register-gold);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.page-register__step-text {
    color: var(--page-register-text-secondary);
    font-size: 1.05rem;
    margin-bottom: 25px;
}

.page-register__step-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: block;
}

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

/* Security Section */
.page-register__security-section {
    padding: 80px 0;
    background-color: var(--page-register-background);
}

.page-register__dark-section {
    background-color: var(--page-register-primary-color);
    color: #ffffff; /* Forced white text for dark background */
}

.page-register__dark-section .page-register__section-title,
.page-register__dark-section .page-register__text {
    color: #ffffff;
}

.page-register__dark-section .page-register__list-strong {
    color: var(--page-register-gold);
}

.page-register__security-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-register__security-list li {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for dark section list items */
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 5px solid var(--page-register-gold);
    font-size: 1.05rem;
    color: var(--page-register-text-main);
}

.page-register__security-list li:last-child {
    margin-bottom: 0;
}

.page-register__list-strong {
    color: var(--page-register-gold);
    font-weight: bold;
}

/* Bonuses Section */
.page-register__bonuses-section {
    background-color: var(--page-register-deep-green);
    padding: 80px 0;
}

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

.page-register__bonus-card {
    background-color: var(--page-register-card-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--page-register-border);
    color: var(--page-register-text-main);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-register__bonus-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-register__bonus-image {
    width: 100%;
    max-width: 350px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-register__bonus-title {
    color: var(--page-register-gold);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.page-register__bonus-text {
    color: var(--page-register-text-secondary);
    font-size: 1rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* FAQ Section */
.page-register__faq-section {
    background-color: var(--page-register-background);
    padding: 80px 0;
}

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

.page-register__faq-item {
    background-color: var(--page-register-card-bg);
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid var(--page-register-border);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--page-register-text-main);
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--page-register-divider);
    list-style: none; /* For details/summary */
}

.page-register__faq-question::-webkit-details-marker {
    display: none;
}

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

.page-register__faq-item[open] .page-register__faq-question {
    border-bottom: 1px solid var(--page-register-border);
}

.page-register__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--page-register-gold);
}

.page-register__faq-item[open] .page-register__faq-toggle {
    transform: rotate(45deg);
}

.page-register__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--page-register-text-secondary);
    border-top: 1px solid var(--page-register-divider);
}

.page-register__faq-answer p {
    margin-bottom: 0;
    color: var(--page-register-text-secondary);
}

/* Final CTA Section */
.page-register__final-cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--page-register-primary-color); /* Use main brand color */
    color: #ffffff; /* Ensure white text for contrast */
}

.page-register__final-cta-section .page-register__section-title,
.page-register__final-cta-section .page-register__text {
    color: #ffffff;
}

/* Media Queries for Responsiveness */
@media (min-width: 769px) {
    .page-register__guide-steps {
        grid-template-columns: repeat(auto-fit, minmax(45%, 1fr));
    }
}

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

    .page-register__main-title {
        font-size: 2rem;
    }

    .page-register__description {
        font-size: 1rem;
    }

    .page-register__cta-button {
        padding: 12px 25px;
        font-size: 1rem;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-bottom: 10px;
    }

    .page-register__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-register__section-title {
        font-size: 2rem;
        margin-top: 40px;
        margin-bottom: 30px;
    }

    .page-register__intro-text {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .page-register__hero-section {
        padding-bottom: 40px;
    }

    .page-register__why-join-section,
    .page-register__registration-guide-section,
    .page-register__security-section,
    .page-register__bonuses-section,
    .page-register__faq-section,
    .page-register__final-cta-section {
        padding: 50px 0;
    }

    .page-register__features-grid,
    .page-register__bonuses-grid {
        grid-template-columns: 1fr;
    }

    .page-register__step-title {
        font-size: 1.5rem;
    }

    .page-register__step-text {
        font-size: 0.95rem;
    }

    .page-register__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

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

    /* Mobile image responsive */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-register__hero-image-wrapper,
    .page-register__feature-card,
    .page-register__step-item,
    .page-register__bonus-card,
    .page-register__faq-item,
    .page-register__cta-bottom,
    .page-register__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    /* Specific override for hero section padding to ensure small top spacing */
    .page-register__hero-section {
        padding-top: 10px !important;
    }

    /* Ensure button groups wrap */
    .page-register__cta-buttons,
    .page-register__button-group,
    .page-register__btn-container {
        display: flex;
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}

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

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

    .page-register__feature-title,
    .page-register__bonus-title {
        font-size: 1.3rem;
    }
}

/* Desktop specific adjustments */
@media (min-width: 1024px) {
    .page-register__hero-content {
        margin-top: -100px; /* Adjust to slightly overlap image for visual flow */
    }
    .page-register__guide-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-register__step-item:nth-child(even) {
        margin-top: 60px; /* Stagger steps for visual interest */
    }
}