/* style/register.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --login-color: #EA7C07;
    --text-on-dark: #ffffff;
    --text-on-light: #333333;
    --background-dark: #000000;
    --background-light: #ffffff;
    --border-color: #e0e0e0;
}

.page-register {
    color: var(--text-on-dark); /* Body background is dark (#000000), so text must be light */
    background-color: var(--background-dark);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

/* Hero Section */
.page-register__hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    text-align: center;
    min-height: 70vh;
    position: relative;
    overflow: hidden;
}

.page-register__hero-section.page-register__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-on-dark);
}

.page-register__hero-content {
    max-width: 800px;
    z-index: 1;
    position: relative;
}

.page-register__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-on-dark);
}

.page-register__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-on-dark);
}

.page-register__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-register__btn-primary,
.page-register__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-register__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-on-dark);
    border: 2px solid var(--primary-color);
}

.page-register__btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
}

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

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

.page-register__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.page-register__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Slightly faded to keep text readable */
}

/* General Section Styling */
.page-register__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.page-register__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

.page-register__why-us-section,
.page-register__benefits-section {
    padding: 80px 0;
}

.page-register__why-us-section.page-register__light-bg,
.page-register__benefits-section.page-register__light-bg {
    background-color: var(--background-light);
    color: var(--text-on-light);
}

.page-register__how-to-section,
.page-register__faq-section,
.page-register__cta-final-section {
    padding: 80px 0;
}

.page-register__how-to-section.page-register__dark-bg,
.page-register__faq-section.page-register__dark-bg,
.page-register__cta-final-section.page-register__dark-bg {
    background-color: var(--background-dark);
    color: var(--text-on-dark);
}

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

.page-register__feature-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
}

.page-register__feature-card .page-register__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-register__feature-card .page-register__feature-text {
    font-size: 1em;
    line-height: 1.7;
}

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

.page-register__step-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.page-register__step-icon {
    font-size: 2em;
    font-weight: bold;
    color: var(--primary-color);
    background-color: var(--secondary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 3px solid var(--primary-color);
}

.page-register__step-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: var(--text-on-dark);
}

.page-register__step-text {
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-on-dark);
}

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

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

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

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

.page-register__benefit-card {
    background-color: var(--background-light);
    color: var(--text-on-light);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
}

.page-register__benefit-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-register__benefit-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-register__benefit-text {
    font-size: 1em;
    line-height: 1.7;
}

/* FAQ Section */
.page-register__faq-list {
    max-width: 800px;
    margin: 50px auto 0 auto;
}

.page-register__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-on-dark);
    transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-register__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-register__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-on-dark);
}

.page-register__faq-item.active .page-register__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 15px 20px 20px 20px;
}

.page-register__faq-answer p {
    margin: 0;
    font-size: 1em;
    line-height: 1.7;
}

/* Final CTA Section */
.page-register__cta-final-section {
    text-align: center;
    padding: 80px 0;
}

.page-register__cta-final-section .page-register__section-title {
    color: var(--text-on-dark);
}

.page-register__cta-final-section .page-register__section-description {
    color: var(--text-on-dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-register__hero-title {
        font-size: 3em;
    }
    .page-register__section-title {
        font-size: 2em;
    }
    .page-register__btn-large {
        padding: 15px 30px;
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-register__hero-section {
        padding: 60px 0;
    }
    .page-register__hero-title {
        font-size: 2.5em;
    }
    .page-register__hero-description {
        font-size: 1em;
    }
    .page-register__section-title {
        font-size: 1.8em;
    }
    .page-register__section-description {
        font-size: 0.95em;
    }
    .page-register__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-register__btn-primary,
    .page-register__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-register__container {
        padding: 0 15px;
    }
    .page-register__why-us-section,
    .page-register__how-to-section,
    .page-register__benefits-section,
    .page-register__faq-section,
    .page-register__cta-final-section {
        padding: 50px 0;
    }
    
    /* Mobile image responsiveness */
    .page-register img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Ensure all containing elements for images/videos/buttons are responsive */
    .page-register__section,
    .page-register__card,
    .page-register__container,
    .page-register__hero-section,
    .page-register__why-us-section,
    .page-register__how-to-section,
    .page-register__benefits-section,
    .page-register__faq-section,
    .page-register__cta-final-section,
    .page-register__features-grid,
    .page-register__steps-grid,
    .page-register__benefits-grid,
    .page-register__faq-list,
    .page-register__cta-buttons,
    .page-register__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .page-register__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }

    .page-register__step-card, .page-register__feature-card, .page-register__benefit-card {
        margin-left: auto;
        margin-right: auto;
        max-width: 400px; /* Constrain individual cards for better readability */
    }
}

@media (max-width: 480px) {
    .page-register__hero-title {
        font-size: 2em;
    }
    .page-register__section-title {
        font-size: 1.5em;
    }
    .page-register__faq-question {
        font-size: 1.1em;
    }
}