/* 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: transparent; /* Body background is handled by shared.css */
    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;
}

.page-register__section-title {
    font-size: 2.5em;
    color: #ffffff; /* For dark sections */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-register__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: #f0f0f0; /* Lighter text for description */
}

/* Hero Section */
.page-register__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    background-color: #017439; /* Primary brand color for hero background */
    color: #ffffff;
    padding: 60px 0; /* Additional padding to ensure content visibility */
    overflow: hidden;
}

.page-register__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

.page-register__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFF00; /* Register/Login font color for main title */
}

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

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

.page-register__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Make image subtle behind text */
}

/* Buttons */
.page-register__btn-primary,
.page-register__btn-submit,
.page-register__cta-button {
    display: inline-block;
    background-color: #C30808; /* Custom Register/Login button color */
    color: #FFFF00; /* Custom Register/Login font color */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-register__btn-primary:hover,
.page-register__btn-submit:hover,
.page-register__cta-button:hover {
    background-color: #e00b0b; /* Slightly darker red on hover */
}

/* Form Section */
.page-register__form-section {
    background-color: #FFFFFF; /* White background for form section */
    color: #333333; /* Dark text for light background */
    padding: 60px 0;
    text-align: center;
}

.page-register__form-section .page-register__section-title {
    color: #017439; /* Primary brand color for title on light background */
}

.page-register__form-section .page-register__section-description {
    color: #555555;
}

.page-register__form-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}

.page-register__registration-form {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
}

.page-register__form-group {
    margin-bottom: 20px;
}

.page-register__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333333;
}

.page-register__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

.page-register__form-input::placeholder {
    color: #aaa;
}

.page-register__login-prompt {
    font-size: 1em;
    color: #555555;
}

.page-register__login-link {
    color: #017439; /* Primary brand color for links */
    text-decoration: none;
    font-weight: bold;
}

.page-register__login-link:hover {
    text-decoration: underline;
}

.page-register__form-image {
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

/* Benefits Section */
.page-register__benefits-section {
    background-color: #017439; /* Primary brand color for dark section */
    color: #ffffff;
    padding: 60px 0;
    text-align: center;
}

.page-register__benefits-section .page-register__section-title {
    color: #FFFF00; /* Custom font color for title on dark background */
}

.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: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.page-register__benefit-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFFF00; /* Custom font color for titles */
}

.page-register__benefit-text {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 15px;
}

.page-register__benefit-icon {
    max-width: 100px;
    height: auto;
    display: block;
    margin: 0 auto;
    margin-top: 20px;
}

.page-register__benefits-image {
    max-width: 800px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-top: 50px;
}

/* Process Section */
.page-register__process-section {
    background-color: #FFFFFF; /* White background */
    color: #333333; /* Dark text */
    padding: 60px 0;
    text-align: center;
}

.page-register__process-section .page-register__section-title {
    color: #017439; /* Primary brand color for title */
}

.page-register__process-section .page-register__section-description {
    color: #555555;
}

.page-register__process-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    counter-reset: step-counter; /* Initialize counter for steps */
}

.page-register__process-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: relative;
    padding-left: 80px; /* Space for step number */
}

.page-register__process-item::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #017439; /* Primary brand color for step number background */
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
}

.page-register__process-step-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #017439; /* Primary brand color for step title */
}

.page-register__process-step-text {
    font-size: 1em;
    color: #555555;
}

/* FAQ Section */
.page-register__faq-section {
    background-color: #0a0a0a; /* Body background color */
    color: #ffffff;
    padding: 60px 0;
    text-align: center;
}

.page-register__faq-section .page-register__section-title {
    color: #FFFF00; /* Custom font color for title on dark background */
}

.page-register__faq-section .page-register__section-description {
    color: #f0f0f0;
}

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

.page-register__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for FAQ item */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.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); /* Slightly darker background for question */
    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.8em;
    font-weight: bold;
    color: #FFFF00; /* Custom font color for toggle icon */
    transition: transform 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' or '−' effect */
}

.page-register__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05); /* Lighter background for answer */
}

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

.page-register__faq-text {
    font-size: 1em;
    color: #f0f0f0;
    margin: 0;
}

/* Call to Action Section */
.page-register__cta-section {
    background-color: #FFFFFF; /* White background */
    color: #333333; /* Dark text */
    padding: 60px 0;
    text-align: center;
}

.page-register__cta-section .page-register__section-title {
    color: #017439; /* Primary brand color for title */
}

.page-register__cta-section .page-register__section-description {
    color: #555555;
}

.page-register__cta-button {
    margin-top: 30px;
}

/* Global image responsive styles within page-register scope */
.page-register img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive styles */
@media (max-width: 768px) {
    .page-register {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header on mobile */
    }

    .page-register__container {
        padding: 0 15px !important; /* Add horizontal padding for mobile */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

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

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

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

    .page-register__btn-primary,
    .page-register__btn-submit,
    .page-register__cta-button {
        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;
        padding-right: 15px !important;
    }

    .page-register__registration-form {
        padding: 25px !important;
    }

    .page-register__benefits-grid {
        grid-template-columns: 1fr;
    }

    .page-register__process-item {
        padding-left: 60px;
    }

    .page-register__process-item::before {
        width: 35px;
        height: 35px;
        font-size: 1em;
        left: 15px;
    }

    /* Mobile image responsiveness */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-register__hero-image-wrapper,
    .page-register__form-image,
    .page-register__benefits-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Mobile video responsiveness - if any */
    .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;
    }

    /* Mobile button group adaptation */
    .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;
        gap: 10px;
        display: flex; /* Ensure flex context for wrap/column */
        flex-direction: column; /* Stack buttons vertically on mobile */
    }
}