/* style/register.css */

/* Custom Color Variables */
:root {
    --gk88-primary-color: #11A84E;
    --gk88-secondary-color: #22C768;
    --gk88-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --gk88-card-bg: #11271B;
    --gk88-background: #08160F;
    --gk88-text-main: #F2FFF6;
    --gk88-text-secondary: #A7D9B8;
    --gk88-border: #2E7A4E;
    --gk88-glow: #57E38D;
    --gk88-gold: #F2C14E;
    --gk88-divider: #1E3A2A;
    --gk88-deep-green: #0A4B2C;
}

/* Base styles for the register page */
.page-register {
    background-color: var(--gk88-background);
    color: var(--gk88-text-main);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Ensure space above footer */
}

/* Section general styles */
.page-register__hero-section,
.page-register__benefits-section,
.page-register__steps-section,
.page-register__promotions-section,
.page-register__faq-section,
.page-register__cta-banner-section {
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden; /* Prevent content overflow for sections */
    box-sizing: border-box;
}

/* Specific top padding for the first section if it's not a video */
.page-register__hero-section {
    padding-top: 10px; /* Small top padding as body handles header offset */
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    justify-content: center;
}

.page-register__container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%; /* Ensure container takes full width up to max-width */
    box-sizing: border-box;
}

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

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

.page-register__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

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

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

/* CTA Buttons */
.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-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Ensure padding doesn't cause overflow */
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-register__btn-primary {
    background: var(--gk88-button-gradient);
    color: var(--gk88-text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-register__btn-secondary:hover {
    background-color: var(--gk88-primary-color);
    color: var(--gk88-text-main);
}

/* Section Titles and Descriptions */
.page-register__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--gk88-gold); /* Gold for section titles */
    margin-bottom: 20px;
    font-weight: 700;
}

.page-register__section-description {
    font-size: 1rem;
    color: var(--gk88-text-secondary);
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-register__benefit-card {
    background-color: var(--gk88-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--gk88-border);
}

.page-register__benefit-icon {
    width: 250px; /* Min size 200x200, so 250px is good */
    height: 187px; /* Maintain aspect ratio for 400x300 example */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block; /* Ensure it respects width/height */
}

.page-register__benefit-title {
    font-size: 1.5rem;
    color: var(--gk88-primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

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

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

.page-register__step-card {
    background-color: var(--gk88-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: left;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gk88-border);
}

.page-register__step-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gk88-gold);
    margin-bottom: 15px;
}

.page-register__step-title {
    font-size: 1.6rem;
    color: var(--gk88-primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

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

.page-register__cta-center {
    margin-top: 40px;
}

/* Promotions Section */
.page-register__promotions-section .page-register__container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.page-register__promo-content {
    flex: 1;
}

.page-register__promo-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-sizing: border-box;
}

.page-register__promo-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-register__promo-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-register__promo-list li {
    font-size: 1rem;
    color: var(--gk88-text-main);
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.page-register__promo-list li::before {
    content: '★'; /* Star icon */
    color: var(--gk88-gold);
    position: absolute;
    left: 0;
    top: 0;
}

/* FAQ Section */
.page-register__faq-list {
    margin-top: 40px;
    text-align: left;
}

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

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gk88-primary-color);
    user-select: none;
    list-style: none; /* Hide default marker for summary */
}

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

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

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

.page-register__faq-item[open] .page-register__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to form an X or simply change to minus */
    content: '−'; /* Change to minus for open state */
}

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

/* CTA Banner Section */
.page-register__cta-banner-section {
    background: var(--gk88-deep-green); /* Use deep green for a strong CTA background */
    padding: 80px 20px;
    border-radius: 10px;
    margin: 40px auto;
    max-width: 1200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-register__cta-banner-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--gk88-gold);
    margin-bottom: 20px;
    font-weight: 700;
}

.page-register__cta-banner-description {
    font-size: 1.1rem;
    color: var(--gk88-text-secondary);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-register__promotions-section .page-register__container {
        flex-direction: column;
        text-align: center;
    }
    .page-register__promo-image-wrapper {
        margin-top: 30px;
    }
    .page-register__promo-list {
        text-align: left;
    }
    .page-register__promo-list li {
        padding-left: 25px; /* Keep padding for bullet */
    }
    .page-register__promo-list li::before {
        display: block; /* Show bullets */
    }
}

@media (max-width: 768px) {
    .page-register__hero-section,
    .page-register__benefits-section,
    .page-register__steps-section,
    .page-register__promotions-section,
    .page-register__faq-section,
    .page-register__cta-banner-section {
        padding: 40px 15px; /* Adjust padding for mobile */
    }

    /* General responsive for images */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* General responsive for containers */
    .page-register__section,
    .page-register__card,
    .page-register__container,
    .page-register__hero-section,
    .page-register__benefits-section,
    .page-register__steps-section,
    .page-register__promotions-section,
    .page-register__faq-section,
    .page-register__cta-banner-section,
    .page-register__hero-image-wrapper,
    .page-register__promo-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent content overflow */
    }

    /* Buttons responsive */
    .page-register__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-register__btn-primary,
    .page-register__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px; /* Ensure internal padding for text */
        padding-right: 15px; /* Ensure internal padding for text */
    }

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

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

    .page-register__benefit-icon {
        width: 100% !important; /* Make benefit icons take full width */
        height: auto !important;
    }

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