/* style/register.css */

/* Base styles for the page-register scope */
.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: var(--black-color); /* Inherit from shared.css, expected to be dark */
}

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

.page-register__section {
    padding: 80px 0;
    text-align: center;
}

.page-register__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ffffff; /* Default for dark background */
}

.page-register__section-intro {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0; /* Slightly lighter for intro text */
}

/* Hero Section */
.page-register__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--header-offset, 120px) 0 80px 0; /* Apply header offset */
    min-height: 600px;
    overflow: hidden;
    background-color: #26A9E0; /* Primary brand color for hero background */
    color: #ffffff;
}

.page-register__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3; /* Subtle background image */
}

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

.page-register__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
}

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

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

.page-register__hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* 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;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-register__btn-primary {
    background-color: #EA7C07; /* Login/CTA color */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

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

.page-register__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-register__btn-secondary:hover {
    background-color: #ffffff;
    color: #26A9E0;
}

/* Why Join Section */
.page-register__why-join {
    background-color: #ffffff; /* Light background for this section */
    color: #333333; /* Dark text for light background */
}

.page-register__why-join .page-register__section-title {
    color: #26A9E0; /* Brand color for title on light background */
}

.page-register__why-join .page-register__section-intro {
    color: #555555;
}

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

.page-register__feature-card {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: transform 0.3s ease;
}

.page-register__feature-card:hover {
    transform: translateY(-5px);
}

.page-register__feature-icon {
    width: 250px; /* Example, must be >= 200px */
    height: 150px; /* Example, must be >= 200px or auto if width is >=200 */
    margin: 0 auto 20px auto; /* Center it */
    display: block; /* Ensure it respects width/height */
    object-fit: contain;
}

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

.page-register__feature-description {
    font-size: 1em;
    color: #666666;
}

/* Registration Guide Section */
.page-register__registration-guide {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
}

.page-register__registration-guide .page-register__section-title {
    color: #ffffff;
}

.page-register__registration-guide .page-register__section-intro {
    color: #f0f0f0;
}

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

.page-register__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-register__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #EA7C07; /* Highlight step number */
    margin-bottom: 15px;
}

.page-register__step-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-register__step-description {
    font-size: 1em;
    color: #f0f0f0;
}

.page-register__cta-bottom {
    margin-top: 60px;
}

/* Important Notes Section */
.page-register__important-notes {
    background-color: #ffffff;
    color: #333333;
}

.page-register__important-notes .page-register__section-title {
    color: #26A9E0;
}

.page-register__important-notes .page-register__section-intro {
    color: #555555;
}

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

.page-register__note-card {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.page-register__note-icon {
    width: 250px; /* Example, must be >= 200px */
    height: 150px; /* Example, must be >= 200px or auto if width is >=200 */
    margin: 0 auto 20px auto; /* Center it */
    display: block;
    object-fit: contain;
}

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

.page-register__note-description {
    font-size: 1em;
    color: #666666;
}

/* FAQ Section */
.page-register__faq-section {
    background-color: var(--black-color); /* Dark background */
    color: #ffffff;
}

.page-register__faq-section .page-register__section-title {
    color: #ffffff;
}

.page-register__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
    text-align: left;
}

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

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease;
}

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

.page-register__faq-title {
    font-size: 1.2em;
    margin: 0;
    color: #ffffff;
}

.page-register__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #EA7C07;
    transition: transform 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-toggle {
    transform: rotate(45deg); /* Plus sign to X */
}

.page-register__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-register__faq-item.active .page-register__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to reveal content */
    padding: 15px 25px !important; /* Restore padding when active */
}

.page-register__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
    color: #f0f0f0;
}

/* Final CTA Section */
.page-register__cta-final {
    background-color: #26A9E0;
    color: #ffffff;
    padding-bottom: 80px;
}

.page-register__cta-final-content {
    max-width: 900px;
}

.page-register__cta-final .page-register__section-title {
    color: #ffffff;
}

.page-register__cta-final .page-register__section-intro {
    color: #f0f0f0;
}

.page-register__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping */
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-register__hero-title {
        font-size: 2.8em;
    }
    .page-register__section-title {
        font-size: 2em;
    }
    .page-register__features-grid,
    .page-register__steps-grid,
    .page-register__notes-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-register__section {
        padding: 60px 0;
    }
    .page-register__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
        padding-bottom: 60px;
    }
    .page-register__hero-title {
        font-size: 2.2em;
    }
    .page-register__hero-description {
        font-size: 1em;
    }
    .page-register__hero-cta,
    .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: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Images responsiveness */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-register__container,
    .page-register__section,
    .page-register__card,
    .page-register__feature-card,
    .page-register__step-item,
    .page-register__note-card,
    .page-register__faq-item,
    .page-register__cta-final-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    .page-register__faq-question,
    .page-register__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Ensure content area images are not too small */
    /* This rule covers all img within .page-register */
    .page-register img {
        min-width: 200px !important; /* Enforce minimum size if not already */
        min-height: 200px !important;
    }
    /* Specific image elements that might be smaller by default */
    .page-register__feature-icon,
    .page-register__note-icon {
        width: 200px !important; /* Min width of 200px */
        height: auto !important;
        margin: 0 auto 20px auto !important;
    }
}

@media (max-width: 480px) {
    .page-register__hero-title {
        font-size: 1.8em;
    }
    .page-register__section-title {
        font-size: 1.6em;
    }
    .page-register__feature-title,
    .page-register__step-title,
    .page-register__note-title {
        font-size: 1.3em;
    }
    .page-register__faq-title {
        font-size: 1em;
    }
}