/* style/register.css */

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

/* Base styles for the page, assuming a dark body background from shared.css */
.page-register {
    background-color: var(--shbet-background); /* Override if shared.css background is different */
    color: var(--shbet-text-main);
    font-family: 'Arial', sans-serif; /* Example font */
    line-height: 1.6;
}

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

.page-register__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem); /* Use clamp for H2 */
    color: var(--shbet-text-main);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

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

/* Hero Section */
.page-register__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 20px 80px 20px; /* Small top padding, body handles header offset */
    background-color: var(--shbet-deep-green); /* Darker background for hero */
    overflow: hidden;
    box-sizing: border-box;
}

.page-register__hero-image-wrapper {
    position: relative;
    width: 100%;
    max-height: 500px; /* Limit height for desktop */
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 10px;
}

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

.page-register__hero-content {
    position: relative; /* Ensure content is above image if z-index is used, but not overlapping */
    max-width: 900px;
    z-index: 1;
}

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

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

.page-register__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on small 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;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-register__btn-primary {
    background: var(--shbet-button-gradient);
    color: #ffffff; /* White text for contrast */
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

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

.page-register__btn-secondary:hover {
    background-color: var(--shbet-main-color);
    color: #ffffff;
    transform: translateY(-3px);
}

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

/* Why Register Section */
.page-register__why-register {
    background-color: var(--shbet-background);
}

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

.page-register__card {
    background-color: var(--shbet-card-bg);
    border: 1px solid var(--shbet-border);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--shbet-text-main);
}

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

.page-register__card-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-top: 20px;
}

/* Steps Section */
.page-register__steps {
    background-color: var(--shbet-deep-green);
}

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

.page-register__step-item {
    text-align: center;
    padding: 25px;
    background-color: var(--shbet-card-bg);
    border-radius: 10px;
    border: 1px solid var(--shbet-border);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    color: var(--shbet-text-main);
}

.page-register__step-icon {
    width: 60px;
    height: 60px;
    background: var(--shbet-button-gradient);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 20px auto;
}

.page-register__step-title {
    font-size: 1.3rem;
    color: var(--shbet-gold);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-register__image-full-width {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 10px;
}

/* App Promo Section */
.page-register__app-promo {
    background-color: var(--shbet-background);
}

.page-register__app-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.page-register__feature-item {
    background-color: var(--shbet-card-bg);
    border: 1px solid var(--shbet-border);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    color: var(--shbet-text-main);
}

.page-register__feature-title {
    font-size: 1.3rem;
    color: var(--shbet-gold);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-register__app-download-area {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    background-color: var(--shbet-deep-green);
    border-radius: 15px;
    padding: 40px;
    border: 2px solid var(--shbet-main-color);
}

.page-register__app-image {
    max-width: 350px;
    height: auto;
    display: block;
    border-radius: 10px;
}

.page-register__download-content {
    text-align: center;
    max-width: 400px;
    color: var(--shbet-text-main);
}

.page-register__download-title {
    font-size: 2rem;
    color: var(--shbet-gold);
    margin-bottom: 20px;
    font-weight: 700;
}

/* First Deposit Section */
.page-register__first-deposit {
    background-color: var(--shbet-deep-green);
}

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

.page-register__guide-item {
    background-color: var(--shbet-card-bg);
    border: 1px solid var(--shbet-border);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    color: var(--shbet-text-main);
}

.page-register__guide-title {
    font-size: 1.3rem;
    color: var(--shbet-gold);
    margin-bottom: 10px;
    font-weight: 600;
}

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

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

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

.page-register__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
}

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

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--shbet-text-main);
    background-color: var(--shbet-deep-green);
    border-bottom: 1px solid var(--shbet-divider);
    transition: background-color 0.3s ease;
}

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

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

.page-register__faq-item[open] .page-register__faq-toggle {
    content: "−"; /* Changed by JS, but this is for visual context */
}

.page-register__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--shbet-text-secondary);
    border-top: 1px solid var(--shbet-divider);
}

/* Security and Responsible Gaming Section */
.page-register__security-responsible {
    background-color: var(--shbet-deep-green);
}

.page-register__content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
    color: var(--shbet-text-main);
}

.page-register__image-responsive {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin-top: 20px;
}

/* Final CTA Section */
.page-register__final-cta {
    background-color: var(--shbet-background);
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-register__hero-section {
        padding: 10px 15px 60px 15px;
    }
    .page-register__section {
        padding: 50px 15px;
    }
    .page-register__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-register__description {
        font-size: 1.1rem;
    }
    .page-register__app-download-area {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }
    .page-register__app-image {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    /* Mobile specific image adaptation */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile specific video adaptation - No video on this page, but keeping for template */
    .page-register video,
    .page-register__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Mobile specific button adaptation */
    .page-register__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px; /* Add padding to container */
    }

    .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 !important; /* Ensure padding inside button for text */
        padding-right: 15px !important;
    }

    /* General container adaptation for mobile */
    .page-register__section,
    .page-register__card,
    .page-register__container,
    .page-register__video-section,
    .page-register__video-container,
    .page-register__video-wrapper,
    .page-register__app-download-area,
    .page-register__content-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    
    /* First section top padding - small value, not var(--header-offset) */
    .page-register__hero-section {
        padding-top: 10px !important;
    }

    .page-register__section-title {
        font-size: 2rem;
    }
    .page-register__description {
        font-size: 1rem;
    }
    .page-register__card {
        padding: 20px;
    }
    .page-register__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-register__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-register__main-title {
        font-size: 2rem;
    }
    .page-register__section-title {
        font-size: 1.8rem;
    }
    .page-register__app-image {
        max-width: 280px;
    }
}