/* style/register.css */

/* Base styles for the page content within main */
.page-register {
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Let body background show through */
    line-height: 1.6;
    font-family: Arial, sans-serif;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

/* 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;
}

.page-register__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    min-width: 200px; /* Enforce min-size */
    min-height: 200px;
    filter: none; /* Ensure no filters */
}

.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: 800px;
    padding: 20px;
}

.page-register__main-heading {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-register__hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
    max-width: 100%; /* Ensure button doesn't overflow */
    text-align: center;
}

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

.page-register__btn-primary:hover {
    background-color: #a30606;
    color: #fff;
}

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

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

/* Section Headings */
.page-register__section-heading {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: inherit; /* Inherit from parent section */
}

.page-register__sub-heading {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 20px;
    color: inherit;
}

.page-register__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

/* Dark Section */
.page-register__dark-section {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    padding: 60px 0;
}

/* Light Section */
.page-register__light-bg {
    background-color: #ffffff;
    color: #333333; /* Dark text for light background */
    padding: 60px 0;
}

/* Benefits Section */
.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: #f8f8f8;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-register__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
    filter: none; /* Ensure no filters */
}

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

.page-register__card-text {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1; /* Allows text to take available space */
}

.page-register__card-link {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-register__card-link:hover {
    color: #005f2c;
    text-decoration: underline;
}

/* Registration Form Section */
.page-register__form-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    margin-top: 40px;
}

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

.page-register__illustration-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    min-width: 200px;
    min-height: 200px;
    filter: none; /* Ensure no filters */
}

.page-register__registration-form {
    flex: 2;
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff; /* Light text for dark form background */
    max-width: 600px; /* Limit form width */
    margin: 0 auto; /* Center form */
}

.page-register__form-title {
    font-size: 2em;
    margin-bottom: 30px;
    text-align: center;
    color: #FFFF00; /* Custom font color for form title */
}

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

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

.page-register__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #017439;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333333;
    font-size: 1em;
    box-sizing: border-box;
}

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

.page-register__form-input:focus {
    outline: none;
    border-color: #FFFF00;
    box-shadow: 0 0 0 3px rgba(255, 255, 0, 0.3);
}

.page-register__form-help {
    font-size: 0.9em;
    color: #cccccc;
    margin-top: 5px;
    display: block;
}

.page-register__captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.page-register__captcha-code {
    background-color: #f0f0f0;
    color: #017439;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.2em;
    min-width: 70px;
    text-align: center;
}

.page-register__refresh-captcha-btn {
    background-color: #017439;
    color: #ffffff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.page-register__refresh-captcha-btn:hover {
    background-color: #005f2c;
}

.page-register__terms-checkbox {
    display: flex;
    align-items: center;
}

.page-register__terms-checkbox input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #017439;
}

.page-register__terms-link {
    color: #FFFF00; /* Custom color for links in dark section */
    text-decoration: underline;
}

.page-register__terms-link:hover {
    color: #fff;
}

.page-register__submit-btn {
    width: 100%;
    background-color: #C30808; /* Custom color for Register button */
    color: #FFFF00; /* Custom font color for Register button */
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-register__submit-btn:hover {
    background-color: #a30606;
    color: #fff;
}

.page-register__registration-steps {
    margin-top: 60px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.page-register__list {
    list-style: disc inside;
    margin-left: 20px;
    color: #f0f0f0;
}

.page-register__list-item {
    margin-bottom: 10px;
    font-size: 1.05em;
}


/* Why Choose Section */
.page-register__reason-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-register__reason-card {
    background-color: #f8f8f8;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
}

/* FAQ Section */
.page-register__faq-list {
    margin-top: 40px;
}

.page-register__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #017439; /* Brand color for question header */
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-register__faq-question::-webkit-details-marker {
    display: none;
}

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

.page-register__faq-answer {
    padding: 15px 25px;
    background-color: rgba(255, 255, 255, 0.05); /* Lighter background for answer */
    color: #f0f0f0;
    font-size: 1.05em;
    line-height: 1.8;
}

.page-register__faq-answer p {
    margin-bottom: 0;
}

/* Call to Action Section */
.page-register__cta-section {
    text-align: center;
    padding: 80px 0;
}

.page-register__cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

/* Image specific styles - ensuring min-size and no filters */
.page-register img {
    border-radius: 8px; /* Example style */
    display: block; /* Important for responsiveness */
    min-width: 200px;
    min-height: 200px;
    filter: none; /* Explicitly ensure no filters are applied */
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-register__main-heading {
        font-size: 2.8em;
    }
    .page-register__section-heading {
        font-size: 2em;
    }
    .page-register__hero-section {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .page-register {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-register__hero-section {
        height: 400px;
        padding: 0 15px; /* Add padding for mobile */
    }
    .page-register__main-heading {
        font-size: 2.2em;
    }
    .page-register__hero-description {
        font-size: 1.1em;
    }
    .page-register__section-heading {
        font-size: 1.8em;
    }
    .page-register__container {
        padding: 20px 15px; /* Adjust padding for mobile */
    }

    /* Images responsiveness */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce min-size on mobile too */
        min-height: 200px !important;
    }
    
    /* Image containers for responsiveness */
    .page-register__benefit-card,
    .page-register__reason-card,
    .page-register__form-illustration {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* padding-left: 15px; */ /* Removed here to avoid double padding with container */
        /* padding-right: 15px; */ /* Removed here to avoid double padding with container */
        overflow: hidden !important; /* Hide overflow */
    }

    /* Buttons responsiveness */
    .page-register__btn-primary,
    .page-register__btn-secondary,
    .page-register__submit-btn,
    .page-register a[class*="button"],
    .page-register a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 10px 0 !important; /* Stack buttons vertically */
    }

    .page-register__hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .page-register__hero-content .page-register__btn-primary,
    .page-register__hero-content .page-register__btn-secondary {
        margin: 10px auto !important; /* Center stacked buttons */
        display: block !important;
    }

    .page-register__form-wrapper {
        flex-direction: column;
        align-items: center;
    }

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

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

    /* FAQ items on mobile */
    .page-register__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-register__faq-answer {
        font-size: 1em;
        padding: 10px 20px;
    }

    .page-register__cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .page-register__main-heading {
        font-size: 1.8em;
    }
    .page-register__hero-description {
        font-size: 1em;
    }
    .page-register__section-heading {
        font-size: 1.5em;
    }
    .page-register__hero-section {
        height: 350px;
    }
}