/* style/register.css */

/* Custom Colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-background: #08160F;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;

    /* Body background is from shared.css, assuming it's dark for text contrast */
    --body-text-color: var(--color-text-main); /* Default to light text on dark body */
    --body-link-color: var(--color-secondary);
}

.page-register {
    font-family: Arial, sans-serif;
    color: var(--body-text-color); /* Ensures text is light on assumed dark body background */
    background-color: var(--color-background);
}

/* Hero Section */
.page-register__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--color-background); /* Ensure consistent background */
    text-align: center;
    overflow: hidden; /* Prevent content overflow */
}

.page-register__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-bottom: 30px; /* Space between image and content */
    box-sizing: border-box;
}

.page-register__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    object-fit: cover;
}

.page-register__hero-link {
    display: block; /* Make the entire image clickable */
    text-decoration: none;
    cursor: pointer;
}

.page-register__hero-content {
    max-width: 900px;
    margin: 0 auto;
    color: var(--color-text-main);
}

.page-register__hero-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive H1 font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--color-gold); /* Gold for emphasis */
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-register__hero-description {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--color-text-secondary);
}

.page-register__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* General Section Styles */
.page-register__section {
    padding: 80px 20px;
    background-color: var(--color-background);
    text-align: center;
    color: var(--color-text-main);
}

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

.page-register__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--color-gold);
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-register__section-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 50px;
    color: var(--color-text-secondary);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Feature Grid (Why Join Section) */
.page-register__why-join {
    background-color: var(--color-deep-green);
}

.page-register__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: left;
}

.page-register__feature-card {
    background-color: var(--color-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border);
}

.page-register__feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 15px var(--color-glow);
}

.page-register__feature-icon {
    width: 100%; /* Ensure they scale correctly */
    height: auto;
    margin-bottom: 20px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px var(--color-glow));
    min-width: 200px; /* Enforce min image size */
    min-height: 200px;
}

.page-register__feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-text-main);
}

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

/* Guide Section */
.page-register__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    counter-reset: step-counter;
}

.page-register__step-card {
    background-color: var(--color-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
    border: 1px solid var(--color-border);
    position: relative;
    padding-top: 80px; /* Space for step number */
}

.page-register__step-number {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-register__step-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-text-main);
}

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

.page-register__step-list {
    margin-top: 15px;
    margin-bottom: 15px;
    padding-left: 20px;
    list-style: disc;
    color: var(--color-text-secondary);
}

.page-register__step-list strong {
    color: var(--color-text-main);
}

.page-register__step-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Enforce min image size */
    min-height: 200px;
}

/* Important Notes Section */
.page-register__notes-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.page-register__notes-list li {
    background-color: var(--color-card-bg);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    border-left: 5px solid var(--color-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-register__notes-list li strong {
    color: var(--color-text-main);
    font-weight: 600;
}

/* FAQ Section */
.page-register__faq {
    background-color: var(--color-deep-green);
}

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

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

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

.page-register__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for details/summary */
}

.page-register__faq-toggle {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.page-register__faq-item[open] .page-register__faq-toggle {
    transform: rotate(45deg); /* Rotate + to X when open */
}

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

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

/* CTA Bottom Section */
.page-register__cta-bottom {
    background: linear-gradient(180deg, var(--color-deep-green) 0%, var(--color-background) 100%);
    padding-bottom: 100px;
}

.page-register__cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.page-register__cta-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    min-width: 200px; /* Enforce min image size */
    min-height: 200px;
}

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
}

.page-register__btn-primary {
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: #ffffff;
    border: 2px solid var(--color-button-gradient-start);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-register__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 12px var(--color-glow);
    filter: brightness(1.1);
}

.page-register__btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-register__btn-secondary:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 8px var(--color-primary);
}

/* Ensure all p and li have text colors for contrast */
.page-register p,
.page-register li {
    color: var(--color-text-secondary); /* Default for paragraphs and list items */
}

.page-register__hero-description,
.page-register__section-description {
    color: var(--color-text-secondary);
}

/* Image styling for min-width and no filter */
.page-register img {
    filter: none; /* Explicitly ensure no filter is applied */
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-register__hero-section {
        padding: 40px 15px;
    }
    .page-register__hero-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-register__hero-description {
        font-size: 1.05rem;
    }
    .page-register__section {
        padding: 60px 15px;
    }
    .page-register__section-title {
        font-size: clamp(1.6rem, 4vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    /* Mobile Image/Video/Button Responsive - MUST use !important */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-register__section,
    .page-register__card,
    .page-register__container,
    .page-register__feature-card,
    .page-register__step-card,
    .page-register__faq-item,
    .page-register__cta-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-register__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
        padding-bottom: 40px !important;
    }

    .page-register__hero-image-wrapper {
        margin-bottom: 20px;
    }

    .page-register__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-register__btn-primary,
    .page-register__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px !important;
        font-size: 1rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-register__section {
        padding: 40px 15px;
    }

    .page-register__section-description {
        margin-bottom: 30px;
    }

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

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

    .page-register__feature-icon {
        min-width: 200px !important; /* Enforce min image size for mobile */
        min-height: 200px !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-register__step-image {
        min-width: 200px !important; /* Enforce min image size for mobile */
        min-height: 200px !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-register__cta-image {
        min-width: 200px !important; /* Enforce min image size for mobile */
        min-height: 200px !important;
        width: 100% !important;
        height: auto !important;
    }
}