/* style/register.css */

/* Custom colors from palette */
:root {
    --page-register-bg: #08160F;
    --page-register-card-bg: #11271B;
    --page-register-text-main: #F2FFF6;
    --page-register-text-secondary: #A7D9B8;
    --page-register-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-register-border: #2E7A4E;
    --page-register-glow: #57E38D;
    --page-register-gold: #F2C14E;
    --page-register-divider: #1E3A2A;
    --page-register-deep-green: #0A4B2C;
}

.page-register {
    background-color: var(--page-register-bg);
    color: var(--page-register-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-register__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-register__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Max width for the image wrapper */
    margin-bottom: 30px; /* Space between image and content */
}

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

.page-register__hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.page-register__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    color: var(--page-register-text-main);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-register__subtitle {
    font-size: 1.1rem;
    color: var(--page-register-text-secondary);
    margin-bottom: 30px;
}

.page-register__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-register__btn-primary {
    background: var(--page-register-button-gradient);
    color: #ffffff; /* White text on dark button */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-register__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* General Section Styling */
.page-register__section {
    padding: 60px 0;
}

.page-register__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--page-register-text-main);
    text-align: center;
    margin-bottom: 20px;
}

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

/* Why Join Section */
.page-register__why-join {
    background-color: var(--page-register-bg);
}

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

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

.page-register__feature-icon {
    width: 100%; /* Ensure images are responsive */
    max-width: 250px; /* Adjust as needed */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

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

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

/* Registration Steps Section */
.page-register__registration-steps {
    background-color: var(--page-register-bg);
}

.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(--page-register-card-bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-register-border);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-register__step-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--page-register-gold);
    margin-bottom: 20px;
    background-color: var(--page-register-deep-green);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(242, 193, 78, 0.4);
}

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

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

.page-register__step-text a {
    color: var(--page-register-glow);
    text-decoration: none;
}

.page-register__step-text a:hover {
    text-decoration: underline;
}

.page-register__step-image {
    width: 100%;
    max-width: 400px; /* Adjust as needed */
    height: auto;
    border-radius: 8px;
    margin-top: auto; /* Push to bottom if content is shorter */
}

/* Security Info Section */
.page-register__security-info {
    background-color: var(--page-register-bg);
}

.page-register__security-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-register__security-item {
    background-color: var(--page-register-card-bg);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid var(--page-register-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-register__security-feature {
    font-size: 1.3rem;
    color: var(--page-register-text-main);
    margin-bottom: 10px;
}

.page-register__security-item p {
    color: var(--page-register-text-secondary);
    font-size: 0.95rem;
}

.page-register__security-item a {
    color: var(--page-register-glow);
    text-decoration: none;
}

.page-register__security-item a:hover {
    text-decoration: underline;
}

/* New Player Bonus Section */
.page-register__new-player-bonus {
    background-color: var(--page-register-bg);
}

.page-register__bonus-card {
    background-color: var(--page-register-card-bg);
    border-radius: 10px;
    padding: 30px;
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    border: 1px solid var(--page-register-border);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-register__bonus-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    flex-shrink: 0;
}

.page-register__bonus-content {
    flex-grow: 1;
}

.page-register__bonus-title {
    font-size: 1.8rem;
    color: var(--page-register-gold);
    margin-bottom: 15px;
    line-height: 1.3;
}

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

.page-register__bonus-note {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9rem;
    color: var(--page-register-text-secondary);
}

.page-register__bonus-note a {
    color: var(--page-register-glow);
    text-decoration: none;
}

.page-register__bonus-note a:hover {
    text-decoration: underline;
}

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

.page-register__faq-list {
    margin-top: 40px;
}

.page-register__faq-item {
    background-color: var(--page-register-card-bg);
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--page-register-border);
    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;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--page-register-text-main);
    cursor: pointer;
    list-style: none; /* For details/summary */
}

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

.page-register__faq-toggle {
    font-size: 1.5rem;
    margin-left: 15px;
    color: var(--page-register-gold);
}

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

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

.page-register__faq-answer a {
    color: var(--page-register-glow);
    text-decoration: none;
}

.page-register__faq-answer a:hover {
    text-decoration: underline;
}

.page-register__contact-cta {
    text-align: center;
    margin-top: 30px;
    font-size: 1rem;
    color: var(--page-register-text-secondary);
}

.page-register__contact-cta a {
    color: var(--page-register-glow);
    text-decoration: none;
}

.page-register__contact-cta a:hover {
    text-decoration: underline;
}

/* Final CTA Section */
.page-register__final-cta {
    background-color: var(--page-register-deep-green); /* Use a darker brand green */
    text-align: center;
    padding: 80px 0;
}

.page-register__final-cta .page-register__section-title {
    color: var(--page-register-text-main);
    margin-bottom: 20px;
}

.page-register__final-cta .page-register__section-description {
    color: var(--page-register-text-secondary);
    margin-bottom: 40px;
}

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

.page-register__cta-subtext a {
    color: var(--page-register-glow);
    text-decoration: none;
}

.page-register__cta-subtext a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-register__bonus-card {
        flex-direction: column;
        text-align: center;
    }
    .page-register__bonus-image {
        max-width: 100%;
        margin-bottom: 20px;
    }
    .page-register__hero-content {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .page-register__main-title {
        font-size: 2.2rem;
    }
    .page-register__section-title {
        font-size: 1.8rem;
    }
    .page-register__section-description {
        margin-left: 15px;
        margin-right: 15px;
    }

    .page-register__hero-section {
        padding-bottom: 40px;
    }
    .page-register__section {
        padding: 40px 0;
    }

    /* Images responsiveness */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-register__hero-image-wrapper,
    .page-register__features-grid,
    .page-register__steps-grid,
    .page-register__bonus-card,
    .page-register__security-list,
    .page-register__faq-list,
    .page-register__final-cta .page-register__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Buttons responsiveness */
    .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;
        text-align: center; /* Center text in full-width buttons */
    }
    .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;
        display: flex;
        flex-direction: column; /* Stack buttons vertically */
    }

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