/* style/register.css */

/* Custom Color Variables from Palette */
:root {
    --page-register-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-register-card-bg: #11271B;
    --page-register-bg: #08160F; /* This is the body background, so main text should be light */
    --page-register-text-main: #F2FFF6; /* Light text for dark backgrounds */
    --page-register-text-secondary: #A7D9B8; /* Secondary light text */
    --page-register-border: #2E7A4E;
    --page-register-glow: #57E38D;
    --page-register-gold: #F2C14E;
    --page-register-divider: #1E3A2A;
    --page-register-deep-green: #0A4B2C;
}

.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--page-register-text-main); /* Default text color for the page, light for dark body bg */
    background-color: var(--page-register-bg); /* Explicitly set, though body is handled by shared */
}

/* --- Hero Section --- */
.page-register__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    padding: 60px 20px; /* General padding */
    padding-top: 10px; /* Small top padding as body handles header offset */
    text-align: center;
    overflow: hidden; /* Ensure nothing overflows */
}

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

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

.page-register__hero-content {
    position: relative; /* Ensure content is in normal flow */
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

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

.page-register__description {
    font-size: 1.15rem;
    color: var(--page-register-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: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-register__btn-primary {
    background: var(--page-register-button-gradient);
    color: var(--page-register-text-main); /* White text on green gradient */
    border: none;
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
    margin: 0 10px 15px;
}

.page-register__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(42, 209, 111, 0.6);
}

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

.page-register__btn-secondary:hover {
    background-color: var(--page-register-gold);
    color: var(--page-register-bg); /* Dark text on gold hover */
    transform: translateY(-3px);
}

.page-register__btn-large {
    padding: 18px 40px;
    font-size: 1.2rem;
    min-width: 200px; /* Ensure buttons are not too small */
}

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

.page-register__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--page-register-gold);
    text-align: center;
    margin-bottom: 20px;
    margin-top: 40px;
}

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

/* --- Benefits Section --- */
.page-register__benefits-section {
    padding: 80px 0;
    background-color: var(--page-register-deep-green); /* Darker green for this section */
}

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

.page-register__benefit-card {
    background-color: var(--page-register-card-bg); /* Dark card background */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    color: var(--page-register-text-main); /* Light text on dark card */
    border: 1px solid var(--page-register-divider);
}

.page-register__benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-register__benefit-icon {
    width: 100%;
    max-width: 200px; /* Constrain icon size within card */
    height: auto;
    display: block;
    margin: 0 auto 20px;
    border-radius: 8px;
    object-fit: cover;
}

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

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

/* --- Process Section --- */
.page-register__process-section {
    padding: 80px 0;
}

.page-register__process-steps {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    margin-bottom: 50px;
}

.page-register__step-item {
    flex: 1;
    min-width: 280px;
    background-color: var(--page-register-card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    color: var(--page-register-text-main);
    border: 1px solid var(--page-register-divider);
    position: relative;
    padding-top: 60px; /* Space for number */
}

.page-register__step-number {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--page-register-button-gradient);
    color: var(--page-register-text-main);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.5);
    border: 3px solid var(--page-register-bg); /* Border to match body bg */
}

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

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

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

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

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

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

.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;
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default marker for summary */
    -webkit-touch-callout: none; /* Disable text selection on iOS */
    -webkit-user-select: none;   /* Disable text selection on iOS */
    user-select: none;           /* Standard disable text selection */
}

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

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

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

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

/* For details open state */
.page-register__faq-item[open] .page-register__faq-question {
    background-color: rgba(255, 255, 255, 0.08);
}

.page-register__faq-item[open] .page-register__faq-toggle {
    transform: rotate(0deg); /* +/- is handled by JS but ensure it doesn't rotate */
}

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

/* --- Final CTA Section --- */
.page-register__cta-final-section {
    padding: 80px 0;
    text-align: center;
}

.page-register__cta-final-section .page-register__btn-primary,
.page-register__cta-final-section .page-register__btn-secondary {
    margin: 15px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-register__hero-section {
        padding: 40px 15px;
        padding-top: 10px;
    }

    .page-register__main-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }

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

    .page-register__benefits-section,
    .page-register__process-section,
    .page-register__faq-section,
    .page-register__cta-final-section {
        padding: 60px 0;
    }

    .page-register__section-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }

    .page-register__container {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    /* General content area padding for mobile */
    .page-register__section,
    .page-register__card,
    .page-register__container,
    .page-register__hero-section,
    .page-register__benefits-section,
    .page-register__process-section,
    .page-register__faq-section,
    .page-register__cta-final-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    /* Images */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-register__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-register__benefit-icon {
        max-width: 150px !important; /* Adjust smaller for mobile cards */
        width: 100% !important;
        height: auto !important;
    }

    /* Buttons */
    .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;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 15px !important; /* Stack buttons */
        padding-left: 15px !important; /* Ensure text doesn't touch edges */
        padding-right: 15px !important;
    }

    .page-register__cta-bottom {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    .page-register__cta-final-section .page-register__btn-primary,
    .page-register__cta-final-section .page-register__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 15px 0 !important;
    }

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

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

    .page-register__faq-toggle {
        font-size: 1.5rem;
    }

    /* Process steps */
    .page-register__process-steps {
        flex-direction: column;
        gap: 40px; /* More space between stacked items */
    }
}