/* style/register.css */

/* Base styles for the page-register scope */
.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #FFFFFF; /* Explicitly white background */
}

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

.page-register__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand primary color */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-register__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #555555;
}

.page-register__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    max-width: 100%; /* For mobile responsiveness */
    box-sizing: border-box; /* For mobile responsiveness */
    white-space: normal; /* For mobile responsiveness */
    word-wrap: break-word; /* For mobile responsiveness */
}

/* Custom button colors */
.page-register__btn--primary {
    background-color: #C30808; /* Custom Register/Login button color */
    color: #FFFF00; /* Custom Register/Login font color */
    border: 2px solid #C30808;
}

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

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

.page-register__btn--secondary:hover {
    background-color: #e0e0e0;
}

/* Hero Section */
.page-register__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    color: #FFFFFF;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-register__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(1, 116, 57, 0.7), rgba(0, 0, 0, 0.7)); /* Dark overlay for text readability */
    z-index: 1;
}

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

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

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

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

.page-register__subtitle {
    font-size: 1.4em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

/* Form Section */
.page-register__form-section {
    padding: 80px 0;
    background-color: #FFFFFF; /* Light background */
    color: #333333;
}

.page-register__form-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-register__form-illustration {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.page-register__registration-form {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.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;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

.page-register__form-group--checkbox {
    display: flex;
    align-items: center;
    margin-top: 25px;
}

.page-register__form-checkbox {
    margin-right: 10px;
    transform: scale(1.2);
}

.page-register__form-label--inline {
    margin-bottom: 0;
}

.page-register__link {
    color: #017439; /* Brand primary color for links */
    text-decoration: none;
    font-weight: bold;
}

.page-register__link:hover {
    text-decoration: underline;
}

.page-register__btn--submit {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    font-size: 1.1em;
}

.page-register__login-prompt {
    text-align: center;
    margin-top: 20px;
    font-size: 0.95em;
    color: #555555;
}

/* Benefits Section */
.page-register__benefits-section {
    padding: 80px 0;
    background-color: #017439; /* Brand primary color for dark section */
    color: #FFFFFF; /* White text for dark background */
    text-align: center;
}

.page-register__benefits-section .page-register__section-title {
    color: #FFFFFF;
}

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

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

.page-register__benefit-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    transition: transform 0.3s ease;
}

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

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

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

.page-register__benefits-image-wrapper {
    margin-top: 60px;
}

/* Steps Section */
.page-register__steps-section {
    padding: 80px 0;
    background-color: #f8f8f8; /* Light background */
    color: #333333;
    text-align: center;
}

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

.page-register__step-item {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.page-register__step-item:hover {
    transform: translateY(-5px);
}

.page-register__step-icon {
    width: 60px;
    height: 60px;
    background-color: #017439;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    margin: 0 auto 20px auto;
}

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

.page-register__step-text {
    font-size: 0.95em;
    color: #555555;
}

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

/* Security Section */
.page-register__security-section {
    padding: 80px 0;
    background-color: #017439; /* Brand primary color for dark section */
    color: #FFFFFF;
}

.page-register__security-section .page-register__section-title {
    color: #FFFFFF;
}

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

.page-register__security-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-register__security-text {
    flex: 1;
    min-width: 300px;
}

.page-register__security-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-register__security-list li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23FFFF00"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat left center;
    background-size: 20px;
    padding-left: 30px;
    margin-bottom: 15px;
    color: #f0f0f0;
}

.page-register__security-list li strong {
    color: #FFFF00; /* Custom font color for emphasis */
}

.page-register__security-note {
    margin-top: 30px;
    font-style: italic;
    color: #f0f0f0;
}

.page-register__security-image {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

/* FAQ Section */
.page-register__faq-section {
    padding: 80px 0;
    background-color: #f8f8f8; /* Light background */
    color: #333333;
    text-align: center;
}

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

.page-register__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    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: #f0f0f0;
    transition: background-color 0.3s ease;
}

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

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

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

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

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

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

.page-register__faq-text {
    color: #555555;
    margin: 0;
}

.page-register__faq-support {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.page-register__faq-support-text {
    font-size: 1.1em;
    color: #333333;
}

/* General image styling */
.page-register__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Optional: subtle rounded corners */
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-register__main-title {
        font-size: 3em;
    }
    .page-register__subtitle {
        font-size: 1.2em;
    }
}

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

    .page-register__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    }

    .page-register__main-title {
        font-size: 2.2em;
    }

    .page-register__subtitle {
        font-size: 1.1em;
    }

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

    .page-register__form-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .page-register__form-illustration,
    .page-register__registration-form {
        max-width: 100%;
    }

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

    .page-register__security-content {
        flex-direction: column;
    }

    .page-register__security-image {
        max-width: 100%;
    }

    .page-register__faq-list {
        padding: 0 15px;
    }

    .page-register__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-register__btn {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Mobile image responsiveness */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

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

    .page-register__section,
    .page-register__card,
    .page-register__container,
    .page-register__form-section,
    .page-register__benefits-section,
    .page-register__steps-section,
    .page-register__security-section,
    .page-register__faq-section,
    .page-register__video-section,
    .page-register__video-container,
    .page-register__video-wrapper,
    .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;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
}

/* Contrast Fixes (as per instructions) */
.page-register__dark-bg {
    color: #ffffff; /* Deep dark background, white text */
    background: #017439;
}

.page-register__light-bg {
    color: #333333; /* Light background, dark text */
    background: #ffffff;
}