/* style/register.css */

/* BEM Naming Convention: page-register__element-name */
/* Colors from custom palette */
: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-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-register {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--page-register-text-main); /* Default text color for dark background */
    background-color: var(--page-register-background); /* Body background from shared.css, so this might be overridden */
}

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

.page-register__section-title {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--page-register-gold);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

.page-register__section-description {
    font-size: 1.1rem;
    color: var(--page-register-text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

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

.page-register__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-register__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-register__hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    box-sizing: border-box;
    margin-top: 20px;
}

.page-register__hero-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 800;
    color: var(--page-register-text-main);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-register__hero-description {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--page-register-text-secondary);
    margin-bottom: 30px;
}

.page-register__cta-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
    text-align: center;
}

.page-register__btn-primary {
    background: var(--page-register-btn-gradient);
    color: #ffffff; /* White text for primary button */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-register__btn-secondary {
    background-color: transparent;
    color: var(--page-register-gold);
    border: 2px solid var(--page-register-gold);
}

.page-register__btn-secondary:hover {
    background-color: var(--page-register-gold);
    color: var(--page-register-background);
    transform: translateY(-2px);
}

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

/* Why Join Section */
.page-register__why-join-section {
    background-color: #ffffff; /* Light background for contrast */
    color: #333333; /* Dark text for light background */
    padding: 80px 0;
}

.page-register__why-join-section .page-register__section-title {
    color: var(--page-register-deep-green);
}

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

.page-register__benefit-card {
    background-color: var(--page-register-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: var(--page-register-text-main);
    border: 1px solid var(--page-register-border);
}

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

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

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

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

.page-register__step-card {
    background-color: var(--page-register-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: var(--page-register-text-main);
    border: 1px solid var(--page-register-border);
}

.page-register__step-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

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

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

/* Security Section */
.page-register__security-section {
    background-color: #ffffff; /* Light background for contrast */
    color: #333333; /* Dark text for light background */
    padding: 80px 0;
}

.page-register__security-section .page-register__section-title {
    color: var(--page-register-deep-green);
}

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

.page-register__security-image {
    flex: 1 1 45%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-register__security-text-block {
    flex: 1 1 50%;
    color: #333333;
}

.page-register__security-text-block p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

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

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

.page-register__promo-card {
    background-color: var(--page-register-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: var(--page-register-text-main);
    border: 1px solid var(--page-register-border);
}

.page-register__promo-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

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

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

/* FAQ Section */
.page-register__faq-section {
    background-color: #ffffff; /* Light background for contrast */
    color: #333333; /* Dark text for light background */
    padding: 80px 0;
}

.page-register__faq-section .page-register__section-title {
    color: var(--page-register-deep-green);
}

.page-register__faq-list {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-register__faq-item {
    background-color: var(--page-register-card-bg);
    border-radius: 12px;
    border: 1px solid var(--page-register-border);
    overflow: hidden;
    color: var(--page-register-text-main);
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--page-register-gold);
    cursor: pointer;
    position: relative;
    list-style: none;
}

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

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

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

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

.page-register__faq-answer p {
    margin-top: 10px;
}

/* Final CTA Section */
.page-register__cta-final-section {
    background-color: var(--page-register-background);
    padding: 80px 0;
    text-align: center;
}

.page-register__cta-final-section .page-register__section-description {
    margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-register__hero-content {
        padding: 30px 20px;
    }
    .page-register__hero-title {
        font-size: clamp(2rem, 4.5vw, 3.5rem);
    }
    .page-register__hero-description {
        font-size: clamp(0.9rem, 1.8vw, 1.2rem);
    }
    .page-register__security-image {
        max-width: 100%;
    }
}

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

    .page-register__section-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        margin-bottom: 30px;
    }

    .page-register__section-description {
        font-size: 1rem;
        margin-bottom: 40px;
    }

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

    .page-register__hero-content {
        padding: 20px 15px;
        margin-top: 0;
    }

    .page-register__hero-title {
        font-size: clamp(2rem, 6vw, 2.8rem);
        margin-bottom: 15px;
    }

    .page-register__hero-description {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .page-register__cta-group {
        flex-direction: column;
        gap: 15px;
    }

    .page-register__btn-primary,
    .page-register__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-register__cta-center .page-register__btn-primary {
        width: auto !important; /* Allow single button to shrink if needed, but max-width 100% applies */
        padding: 15px 30px;
    }

    .page-register__why-join-section,
    .page-register__steps-section,
    .page-register__security-section,
    .page-register__promotions-section,
    .page-register__faq-section,
    .page-register__cta-final-section {
        padding: 50px 0;
    }

    .page-register__benefits-grid,
    .page-register__steps-grid,
    .page-register__promotions-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-register__benefit-card,
    .page-register__step-card,
    .page-register__promo-card {
        padding: 25px;
    }

    .page-register__security-content {
        flex-direction: column;
        gap: 30px;
    }

    .page-register__security-image {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

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

    .page-register__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.95rem;
    }

    /* Image responsive overrides */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* All containers that might hold images or other content */
    .page-register__section,
    .page-register__card,
    .page-register__container,
    .page-register__hero-section,
    .page-register__why-join-section,
    .page-register__steps-section,
    .page-register__security-section,
    .page-register__promotions-section,
    .page-register__faq-section,
    .page-register__cta-final-section,
    .page-register__hero-image-wrapper,
    .page-register__security-content,
    .page-register__cta-group {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    .page-register__hero-image-wrapper {
        padding-left: 0;
        padding-right: 0;
    }

    .page-register__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Specific override for the main hero image to ensure it fills its container without extra padding */
    .page-register__hero-image {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

}

@media (max-width: 480px) {
    .page-register__hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }
    .page-register__hero-description {
        font-size: 0.9rem;
    }
    .page-register__btn-primary,
    .page-register__btn-secondary {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    .page-register__faq-question {
        font-size: 1rem;
    }
}