/* style/register.css */

/* --- General Page Styles --- */
.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for a dark background body */
    background-color: transparent; /* Body background is handled by shared.css */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-register__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-register__section-description {
    font-size: 1.1em;
    color: #f0f0f0; /* Lighter text for description on dark background */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* --- Buttons --- */
.page-register__btn-primary,
.page-register__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Ensure padding doesn't push width over */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.page-register__btn-primary {
    background-color: #26A9E0; /* Brand primary color */
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

.page-register__btn-primary:hover {
    background-color: #1e87c0;
    border-color: #1e87c0;
}

.page-register__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0; /* Brand primary color for text */
    border: 2px solid #26A9E0;
}

.page-register__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1e87c0;
    border-color: #1e87c0;
}

.page-register__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* --- Hero Section --- */
.page-register__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background-color: #1a1a1a; /* Dark background for hero */
    padding: 80px 20px;
    overflow: hidden;
    box-sizing: border-box;
}

.page-register__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin-right: 40px;
}

.page-register__hero-title {
    font-size: 3.5em;
    color: #FFFFFF;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-register__hero-description {
    font-size: 1.3em;
    color: #f0f0f0;
    margin-bottom: 30px;
}

.page-register__hero-image-wrapper {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 50%;
    max-width: 700px;
}

.page-register__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* --- Why Join Section --- */
.page-register__why-join-section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Darker background */
}

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

.page-register__feature-item {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-register__feature-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.1);
}

.page-register__feature-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-register__feature-text {
    color: #cccccc;
    font-size: 1em;
}

/* --- Steps Section --- */
.page-register__steps-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Dark background */
}

.page-register__step-card {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 40px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    gap: 40px;
}

.page-register__step-card--reverse {
    flex-direction: row-reverse;
}

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

.page-register__step-image-wrapper {
    flex: 1;
    min-width: 300px; /* Minimum width for image wrapper */
}

.page-register__step-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.page-register__step-title {
    font-size: 2em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-register__step-text {
    font-size: 1.1em;
    color: #cccccc;
    margin-bottom: 20px;
}

/* --- Video Section --- */
.page-register__video-section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Darker background */
}

.page-register__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    margin-top: 40px;
}

.page-register__video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.page-register__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    object-fit: cover; /* Ensure video covers the area */
}

/* --- FAQ Section --- */
.page-register__faq-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Dark background */
}

.page-register__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    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;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFFFFF;
    cursor: pointer;
    background-color: #26A9E0; /* Brand primary color */
    transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
    background-color: #1e87c0;
}

.page-register__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    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 25px;
    background-color: #2a2a2a; /* Slightly lighter dark background for answer */
    color: #cccccc;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-register__faq-item.active .page-register__faq-answer {
    max-height: 1000px !important; /* Use !important to ensure it overrides */
    padding: 20px 25px;
}

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

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

/* --- Bottom CTA Section --- */
.page-register__cta-bottom {
    padding: 80px 0;
    background-color: #0d0d0d; /* Darker background */
}

.page-register__cta-content--center {
    text-align: center;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-register__hero-section {
        flex-direction: column;
        padding: 60px 20px;
    }

    .page-register__hero-content {
        margin-right: 0;
        margin-bottom: 40px;
        max-width: 100%;
    }

    .page-register__hero-image-wrapper {
        width: 80%;
        max-width: 600px;
    }

    .page-register__hero-title {
        font-size: 2.8em;
    }

    .page-register__hero-description {
        font-size: 1.1em;
    }

    .page-register__step-card {
        flex-direction: column;
    }

    .page-register__step-card--reverse {
        flex-direction: column; /* Keep consistent for tablet */
    }

    .page-register__step-image-wrapper {
        min-width: unset;
        width: 100%;
        margin-top: 30px;
    }
}