/* style/register.css */

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

.page-register {
    background-color: var(--page-register-background); /* #08160F - Dark background */
    color: var(--page-register-text-main); /* #F2FFF6 - Light text for contrast */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Main content area padding */
.page-register__main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero Section */
.page-register__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 20px 60px; /* Small top padding, more bottom padding */
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-register__hero-image {
    width: 100%;
    max-width: 1920px; /* Max width for the actual image */
    height: auto;
    object-fit: cover;
    margin-bottom: 30px; /* Space between image and content */
    border-radius: 8px;
}

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

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

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

/* Buttons */
.page-register__btn-primary {
    display: inline-block;
    background: var(--page-register-btn-gradient);
    color: var(--page-register-text-main); /* Light text on gradient button */
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-register__btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--primary-color); /* Brand primary color for text */
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 2px solid var(--primary-color);
    cursor: pointer;
}

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

.page-register__btn-large {
    padding: 18px 40px;
    font-size: 1.2em;
}

/* Sections */
.page-register__benefits-section,
.page-register__steps-section,
.page-register__security-section,
.page-register__promotions-section,
.page-register__faq-section,
.page-register__cta-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.page-register__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    color: var(--page-register-gold);
    margin-bottom: 40px;
    font-weight: 700;
}

/* Benefits Grid */
.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(--page-register-card-bg); /* #11271B */
    padding: 30px;
    border-radius: 15px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-register-border);
    color: var(--page-register-text-main);
}

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

.page-register__benefit-card p {
    color: var(--page-register-text-secondary);
}

/* Steps Section */
.page-register__steps-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.page-register__step-item {
    background-color: var(--page-register-card-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-register-border);
    color: var(--page-register-text-main);
}

.page-register__step-image {
    width: 100%;
    height: auto;
    max-width: 400px; /* Ensure image is not too wide */
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

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

/* Security Section */
.page-register__security-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.page-register__security-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

/* Promotions Section */
.page-register__promo-card {
    background-color: var(--page-register-card-bg);
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px;
    border-radius: 15px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-register-border);
    color: var(--page-register-text-main);
}

.page-register__promo-image {
    width: 40%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

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

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

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

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--page-register-gold);
    cursor: pointer;
    list-style: none; /* For details/summary */
}

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

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

.page-register__faq-item[open] .page-register__faq-toggle {
    transform: rotate(45deg);
}

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

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

/* CTA Section */
.page-register__cta-section {
    padding-bottom: 80px;
}

/* --- Responsive Design --- */

/* Tablet */
@media (max-width: 1024px) {
    .page-register__hero-section,
    .page-register__benefits-section,
    .page-register__steps-section,
    .page-register__security-section,
    .page-register__promotions-section,
    .page-register__faq-section,
    .page-register__cta-section {
        padding-left: 30px;
        padding-right: 30px;
    }

    .page-register__promo-card {
        flex-direction: column;
        text-align: center;
    }

    .page-register__promo-image {
        width: 100%;
        max-width: 600px;
        margin-bottom: 20px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .page-register {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-register__hero-section,
    .page-register__benefits-section,
    .page-register__steps-section,
    .page-register__security-section,
    .page-register__promotions-section,
    .page-register__faq-section,
    .page-register__cta-section {
        padding-left: 15px;
        padding-right: 15px;
        width: 100% !important; /* Enforce width for containers */
        box-sizing: border-box !important;
    }

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

    .page-register__main-title {
        font-size: 2em; /* Smaller on mobile */
    }

    .page-register__section-title {
        font-size: 1.8em;
    }

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

    .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;
        margin-bottom: 15px; /* Add spacing between stacked 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; /* Allow buttons to wrap */
        gap: 10px;
    }

    .page-register__benefits-grid,
    .page-register__steps-container {
        grid-template-columns: 1fr; /* Stack cards/steps on mobile */
        gap: 20px;
    }

    .page-register__step-item,
    .page-register__benefit-card {
        max-width: 100%;
    }

    /* Image responsive rules for content area */
    .page-register img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure images are not too small */
        min-height: 200px !important;
    }

    .page-register__hero-image {
        min-width: unset !important; /* Allow hero image to shrink more */
        min-height: unset !important;
    }

    .page-register__promo-image {
        min-width: 200px !important; /* Card images minimum size */
        min-height: 200px !important;
    }

    .page-register__security-image {
        min-width: 200px !important; /* Content images minimum size */
        min-height: 200px !important;
    }

    /* Video responsiveness (if any, though none explicitly added for register page) */
    .page-register video,
    .page-register__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-register__video-section,
    .page-register__video-container,
    .page-register__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}