/* style/register.css */

/* --- General Page Styles --- */
.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #f5f5f5); /* Use shared background variable */
}

.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: #017439; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-register__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Hero Section --- */
.page-register__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

.page-register__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-register__hero-content {
    position: relative;
    z-index: 3;
    color: #FFFFFF;
    max-width: 900px;
    padding: 20px;
}

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

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

/* --- Buttons --- */
.page-register__btn-primary {
    display: inline-block;
    background-color: #C30808; /* Custom color for Register button */
    color: #FFFF00; /* Custom font color for Register button */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-register__btn-primary:hover {
    background-color: #a30606;
    transform: translateY(-2px);
}

.page-register__btn-secondary {
    display: inline-block;
    background-color: #FFFFFF;
    color: #017439; /* Brand color */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    border: 2px solid #017439;
    cursor: pointer;
    margin-left: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-register__btn-secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    border-color: #005a2b;
}

/* --- Form Section --- */
.page-register__form-section {
    padding: 80px 0;
    background-color: #FFFFFF; /* Custom background color */
    color: #333333; /* Dark text for light background */
}

.page-register__registration-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

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

.page-register__form-input {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
}

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

.page-register__captcha-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-register__captcha-input {
    flex-grow: 1;
}

.page-register__captcha-image img {
    border-radius: 6px;
    border: 1px solid #ddd;
    display: block; /* Ensure no extra space below image */
    width: 200px; /* Explicit width for captcha image */
     /* Explicit height for captcha image */
    object-fit: cover;
}

.page-register__form-checkbox {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-register__form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #017439; /* Brand color for checkbox */
}

.page-register__form-checkbox label a {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
}

.page-register__form-checkbox label a:hover {
    text-decoration: underline;
}

.page-register__submit-button {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    border-radius: 8px;
}

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

.page-register__login-link {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
}

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

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

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

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

.page-register__benefit-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.page-register__benefit-image {
    width: 100%;
    max-width: 400px;
    height: 267px; /* Maintain aspect ratio (400x267 is approx 3:2) */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-register__benefit-title {
    font-size: 1.8em;
    color: #FFFF00; /* Yellow for benefit titles */
    margin-bottom: 15px;
    font-weight: bold;
}

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

/* --- How-To Register Section --- */
.page-register__how-to-register {
    padding: 80px 0;
    background-color: #FFFFFF; /* Light background */
    color: #333333; /* Dark text */
}

.page-register__step-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-register__step-item {
    background-color: #f9f9f9;
    border-left: 5px solid #017439; /* Brand color indicator */
    margin-bottom: 25px;
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

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

.page-register__cta-bottom {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background-color: #f0f8ff; /* Light blue accent */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-register__cta-text {
    font-size: 1.2em;
    color: #333333;
    margin-bottom: 20px;
    font-weight: bold;
}

/* --- FAQ Section --- */
.page-register__faq-section {
    padding: 80px 0;
    background-color: #017439; /* Brand dark background */
    color: #FFFFFF; /* White text */
}

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

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

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

.page-register__faq-item summary {
    list-style: none; /* Hide default marker */
}

.page-register__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFFF00; /* Yellow for FAQ questions */
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

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

.page-register__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    line-height: 1;
}

.page-register__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #f0f0f0;
    background-color: rgba(255, 255, 255, 0.03);
}

/* --- Final CTA Section --- */
.page-register__final-cta {
    padding: 80px 0;
    text-align: center;
    background-color: #FFFFFF; /* Light background */
    color: #333333; /* Dark text */
}

.page-register__final-cta-button {
    margin-top: 30px;
    margin-bottom: 20px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-register__hero-title {
        font-size: 3em;
    }
    .page-register__hero-description {
        font-size: 1.1em;
    }
    .page-register__section-title {
        font-size: 2em;
    }
    .page-register__benefits-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* Fixed header spacing for mobile */
    .page-register__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        height: 500px;
    }

    .page-register__hero-title {
        font-size: 2.5em;
    }
    .page-register__hero-description {
        font-size: 1em;
    }
    .page-register__btn-primary,
    .page-register__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
        margin: 10px 0 0 0; /* Adjust margin for stacked buttons */
        width: 100% !important; /* Force full width for buttons */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Ensure multiple buttons stack */
    .page-register__final-cta .page-register__btn-primary,
    .page-register__final-cta .page-register__btn-secondary {
        display: block; /* Stack buttons vertically */
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 15px; /* Spacing between stacked buttons */
    }
    .page-register__final-cta .page-register__btn-secondary {
        margin-left: auto; /* Center secondary button */
    }


    .page-register__section-title {
        font-size: 1.8em;
    }
    .page-register__section-description {
        font-size: 0.95em;
    }

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

    .page-register__captcha-group {
        flex-direction: column;
        align-items: flex-start;
    }
    .page-register__captcha-input {
        width: 100%;
    }
    .page-register__captcha-image {
        width: 100%;
        text-align: center;
    }
    .page-register__captcha-image img {
        width: 100%; /* Make captcha image responsive */
        height: auto;
        max-width: 200px; /* Max width to prevent distortion if image is very wide */
    }

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

    .page-register__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-register__faq-answer {
        padding: 15px 20px;
    }

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

    .page-register__section,
    .page-register__card,
    .page-register__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 */
    }

    /* Specific image sizes for mobile for better control, but still responsive */
    .page-register__hero-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .page-register__benefit-image {
        width: 100%;
        height: auto;
        max-height: 250px;
    }
}

@media (max-width: 480px) {
    .page-register__hero-title {
        font-size: 2em;
    }
    .page-register__hero-description {
        font-size: 0.9em;
    }
    .page-register__section-title {
        font-size: 1.5em;
    }
    .page-register__btn-primary,
    .page-register__btn-secondary {
        font-size: 0.9em;
        padding: 10px 15px;
    }
}