/* style/register.css */

/* Custom Colors */
:root {
    --page-register-primary-color: #11A84E;
    --page-register-secondary-color: #22C768;
    --page-register-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-register-card-bg: #11271B;
    --page-register-bg: #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;
}

/* Base styles for the page content, considering body background is dark */
.page-register {
    background-color: var(--page-register-bg); /* Ensuring consistency if shared.css doesn't cover main */
    color: var(--page-register-text-main); /* Light text on dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Section common styles */
.page-register__hero-section,
.page-register__benefits-section,
.page-register__how-to-register-section,
.page-register__security-support-section,
.page-register__featured-products-section,
.page-register__faq-section,
.page-register__cta-final-section {
    padding: 60px 0;
    position: relative;
}

/* First section top padding for fixed header */
.page-register__hero-section {
    padding-top: 10px; /* body already handles --header-offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Prevent content overflow */
}

.page-register__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    position: relative;
}

.page-register__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px; /* Ensure image doesn't stretch too much */
}

.page-register__hero-content {
    position: relative; /* Ensure content is above image if any overlap */
    z-index: 1;
    max-width: 900px;
    margin: 40px auto; /* Add margin to separate from image */
    padding: 0 20px;
}

.page-register__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    color: var(--page-register-gold);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-register__description {
    font-size: 1.15rem;
    color: var(--page-register-text-main);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-register__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-register__btn-primary,
.page-register__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure text breaks within button */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    max-width: 300px; /* Limit button width */
}

.page-register__btn-primary {
    background: var(--page-register-button-gradient);
    color: var(--page-register-text-main);
    border: none;
    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: transparent;
    color: var(--page-register-secondary-color);
    border: 2px solid var(--page-register-secondary-color);
}

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

/* General content container */
.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, 3.5vw, 2.8rem);
    color: var(--page-register-gold);
    text-align: center;
    margin-bottom: 50px;
    font-weight: bold;
}

.page-register__text-main {
    color: var(--page-register-text-main);
}

/* Dark background sections */
.page-register__dark-section {
    background-color: var(--page-register-deep-green);
    color: var(--page-register-text-main);
}

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

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

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

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

.page-register__card-image {
    width: 100%;
    height: auto;
    max-width: 400px; /* Constrain image size within card */
    margin-top: 20px;
    border-radius: 8px;
    object-fit: cover;
}

/* How to Register section */
.page-register__steps-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 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.3);
    color: var(--page-register-text-main);
    text-align: left;
}

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

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

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

.page-register__step-list li {
    background-color: var(--page-register-deep-green);
    margin-bottom: 10px;
    padding: 10px 15px;
    border-radius: 6px;
    color: var(--page-register-text-main);
    font-size: 0.95rem;
}

.page-register__process-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 800px;
    margin: 40px auto 0 auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* Security and Support section */
.page-register__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.page-register__info-card {
    background-color: var(--page-register-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    color: var(--page-register-text-main);
}

/* Featured Products section */
.page-register__products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

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

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

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

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--page-register-gold);
    background-color: var(--page-register-deep-green);
    border-bottom: 1px solid var(--page-register-divider);
}

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

.page-register__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

.page-register__faq-answer {
    padding: 15px 25px 20px;
    background-color: var(--page-register-card-bg);
    color: var(--page-register-text-secondary);
    font-size: 0.95rem;
}

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

/* Final CTA section */
.page-register__cta-final-section {
    text-align: center;
    background-color: var(--page-register-deep-green);
    padding-bottom: 100px;
}

.page-register__cta-final-section .page-register__description {
    max-width: 900px;
}

.page-register__cta-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 600px;
    margin: 50px auto 0 auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-register__hero-content {
        margin: 20px auto;
    }
    .page-register__benefits-grid,
    .page-register__steps-wrapper,
    .page-register__grid,
    .page-register__products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .page-register__hero-section,
    .page-register__benefits-section,
    .page-register__how-to-register-section,
    .page-register__security-support-section,
    .page-register__featured-products-section,
    .page-register__faq-section,
    .page-register__cta-final-section {
        padding: 40px 0;
    }

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

    .page-register__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

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

    .page-register__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
    }

    .page-register__btn-primary,
    .page-register__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .page-register__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-register__section-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
        margin-bottom: 30px;
    }

    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-register__hero-image {
        max-height: 400px;
    }

    .page-register__card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 20px;
    }

    .page-register__card-image {
        max-width: 100%;
    }

    .page-register__step-card {
        padding: 20px;
    }

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

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

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

@media (max-width: 480px) {
    .page-register__main-title {
        font-size: clamp(1.5rem, 8vw, 2.2rem);
    }
    .page-register__section-title {
        font-size: clamp(1.3rem, 7vw, 2rem);
    }
}