/* style/register.css */

/* Custom Colors */
:root {
    --color-primary: #11A84E; /* Main color */
    --color-secondary: #22C768; /* Auxiliary color */
    --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;
}

.page-register {
    font-family: Arial, sans-serif;
    color: var(--color-text-main); /* Default text color for the page */
    background-color: var(--color-background); /* Overall page background */
    line-height: 1.6;
}

/* Responsive Images, Videos, Buttons, and Containers - IMPORTANT */
.page-register img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-register video,
.page-register__video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

.page-register__section,
.page-register__card,
.page-register__container,
.page-register__video-section,
.page-register__video-container,
.page-register__video-wrapper,
.page-register__cta-buttons,
.page-register__button-group,
.page-register__btn-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* Prevent content overflow */
}

.page-register__cta-button,
.page-register__btn-primary,
.page-register__btn-secondary,
.page-register a[class*="button"],
.page-register a[class*="btn"] {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
}

/* Mobile specific styles */
@media (max-width: 768px) {
    .page-register {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-register video,
    .page-register__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-register__section,
    .page-register__card,
    .page-register__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-register__video-section,
    .page-register__video-container,
    .page-register__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    .page-register__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    .page-register__cta-button,
    .page-register__btn-primary,
    .page-register__btn-secondary,
    .page-register a[class*="button"],
    .page-register a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

.page-register__section {
    padding: 60px 0;
    text-align: center;
}

.page-register__dark-section {
    background-color: var(--color-background);
    color: var(--color-text-main);
}

.page-register__card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    color: var(--color-text-main);
}

.page-register__section-title {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-register__section-description {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-register__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small decorative top padding */
    overflow: hidden;
    background-color: var(--color-background); /* Ensure consistent background */
}

.page-register__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit hero image height on desktop */
    overflow: hidden; /* Ensure image fits */
}

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

.page-register__hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
    text-align: center;
    max-width: 900px;
    margin-top: 30px; /* Add some spacing after the image */
}

.page-register__main-title {
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 900;
    color: var(--color-gold);
    margin-bottom: 15px;
    line-height: 1.1;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.6);
}

.page-register__hero-description {
    font-size: clamp(18px, 2.2vw, 22px);
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

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

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

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

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

.page-register__btn-bottom {
    margin-top: 30px;
}

/* Why Join Section (Features) */
.page-register__why-join-section {
    padding-bottom: 80px;
}

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

.page-register__feature-card {
    text-align: center;
    padding: 40px;
}

.page-register__feature-icon {
    width: 100%; /* Ensure image fills card width */
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 25px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.page-register__feature-title {
    font-size: clamp(20px, 2.5vw, 24px);
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-register__feature-text {
    font-size: 16px;
    color: var(--color-text-secondary);
}

/* Guide Section */
.page-register__guide-section {
    background-color: var(--color-background);
    padding-top: 80px;
}

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

.page-register__step-card {
    padding: 30px;
    text-align: left;
    background-color: var(--color-card-bg);
    position: relative;
    display: flex;
    flex-direction: column;
}

.page-register__step-card:nth-child(1)::before {
    content: "1";
}
.page-register__step-card:nth-child(2)::before {
    content: "2";
}
.page-register__step-card:nth-child(3)::before {
    content: "3";
}

.page-register__step-card::before {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-gold);
    color: var(--color-background);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    border: 2px solid var(--color-background);
}


.page-register__step-title {
    font-size: clamp(20px, 2.5vw, 24px);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 15px;
    padding-top: 20px; /* Space for step number */
}

.page-register__step-text {
    font-size: 16px;
    color: var(--color-text-secondary);
    margin-bottom: 15px;
}

.page-register__info-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-register__info-list li {
    font-size: 16px;
    color: var(--color-text-secondary);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.page-register__info-list li::before {
    content: "•";
    color: var(--color-gold);
    position: absolute;
    left: 0;
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
}

/* Notes Section */
.page-register__notes-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-register__notes-list {
    list-style: none;
    padding-left: 0;
    max-width: 800px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.page-register__notes-list li {
    font-size: 17px;
    color: var(--color-text-secondary);
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.page-register__notes-list li::before {
    content: "⚠️";
    position: absolute;
    left: 0;
    font-size: 20px;
    line-height: 1;
}

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

.page-register__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-register__faq-item {
    margin-bottom: 20px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--color-card-bg);
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: var(--color-deep-green);
    color: var(--color-text-main);
    font-weight: 600;
    font-size: clamp(17px, 2vw, 20px);
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-register__faq-question:hover {
    background-color: var(--color-primary);
}

.page-register__faq-qtext {
    flex-grow: 1;
}

.page-register__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
    line-height: 1;
    color: var(--color-gold);
}

.page-register__faq-answer {
    padding: 20px 25px;
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    background-color: var(--color-card-bg);
    border-top: 1px solid var(--color-divider);
}

.page-register__faq-answer p {
    margin: 0;
}

/* Final CTA Section */
.page-register__cta-final-section {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: var(--color-deep-green);
}

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

.page-register__cta-final-section .page-register__section-title {
    color: var(--color-gold);
    margin-bottom: 20px;
}

.page-register__cta-final-section .page-register__section-description {
    color: var(--color-text-secondary);
    margin-bottom: 40px;
}

/* Ensure contrast for all text elements */
.page-register h1,
.page-register h2,
.page-register h3,
.page-register h4,
.page-register h5,
.page-register h6 {
    color: var(--color-gold); /* Adjust as needed for contrast */
}

.page-register p,
.page-register li {
    color: var(--color-text-secondary);
}

.page-register__btn-primary {
    color: #ffffff; /* Ensure white text on gradient */
}

.page-register__btn-secondary {
    color: var(--color-primary); /* Ensure green text on white/transparent */
}

.page-register__btn-secondary:hover {
    color: #ffffff; /* Ensure white text on green hover */
}