/* style/register.css */

/* --- General Page Styling --- */
.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--page-bg, #FFFFFF); /* Inherit from shared or default to white */
}

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

.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;
    color: #555555;
}

/* --- Hero Section --- */
.page-register__hero-section {
    position: relative;
    padding: 100px 20px; /* Adjust padding for content */
    padding-top: var(--header-offset, 120px); /* Ensure header offset */
    background-color: #017439; /* Dark background for hero */
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 40px;
    overflow: hidden; /* Prevent image overflow */
}

.page-register__hero-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    text-align: left;
    z-index: 1;
}

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

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

.page-register__hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.page-register__hero-image {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 0;
}

.page-register__hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
}

/* --- Buttons --- */
.page-register__btn-primary,
.page-register__btn-secondary,
.page-register__submit-btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    max-width: 100%; /* Button responsive */
    box-sizing: border-box; /* Button responsive */
    white-space: normal; /* Button responsive */
    word-wrap: break-word; /* Button responsive */
}

.page-register__btn-primary,
.page-register__submit-btn {
    background-color: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom font color for register/login */
    border: 2px solid #C30808;
}

.page-register__btn-primary:hover,
.page-register__submit-btn:hover {
    background-color: #e00b0b;
    border-color: #e00b0b;
    color: #FFFFFF;
}

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

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

/* --- Form Section --- */
.page-register__form-section {
    padding: 80px 20px;
    background-color: #017439; /* Dark background */
    color: #FFFFFF;
}

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

.page-register__form-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

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

.page-register__form-illustration img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
}

.page-register__registration-form {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.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 rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.2);
    color: #FFFFFF;
    font-size: 1em;
    box-sizing: border-box;
}

.page-register__form-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.page-register__form-input:focus {
    border-color: #FFFF00;
    outline: none;
    background-color: rgba(0, 0, 0, 0.3);
}

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

.page-register__form-checkbox input[type="checkbox"] {
    min-width: 18px;
    min-height: 18px;
    accent-color: #C30808; /* Checkbox color */
}

.page-register__checkbox-label {
    font-size: 0.95em;
    color: #f0f0f0;
}

.page-register__checkbox-label a {
    color: #FFFF00; /* Link color in checkbox label */
    text-decoration: underline;
}

.page-register__checkbox-label a:hover {
    color: #FFFFFF;
}

.page-register__privacy-note {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9em;
    color: #f0f0f0;
}

/* --- Why Fi88 Section --- */
.page-register__why-fi88-section {
    padding: 80px 20px;
    background-color: #FFFFFF; /* Light background */
    color: #333333;
}

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

.page-register__benefit-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.page-register__benefit-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
}

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

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

/* --- CTA Section --- */
.page-register__cta-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #f0f0f0; /* Light background */
    color: #333333;
}

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

/* --- FAQ Section --- */
.page-register__faq-section {
    padding: 80px 20px;
    background-color: #FFFFFF; /* Light background */
    color: #333333;
}

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

.page-register__faq-item {
    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: 18px 25px;
    background-color: #f5f5f5;
    cursor: pointer;
    font-weight: bold;
    color: #333333;
    transition: background-color 0.3s ease;
}

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

.page-register__faq-question h3 {
    margin: 0;
    font-size: 1.1em;
    color: #017439;
}

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

/* This will be handled by JS to change content, but transform for visual */
.page-register__faq-item.active .page-register__faq-toggle {
    transform: rotate(45deg);
}

.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;
    color: #555555;
}

.page-register__faq-item.active .page-register__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content */
    padding: 15px 25px;
}

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

.page-register__faq-answer a {
    color: #017439;
    text-decoration: underline;
}

/* --- Responsive Design --- */

/* Tablet and smaller */
@media (max-width: 1024px) {
    .page-register__hero-title {
        font-size: 2.8em;
    }
    .page-register__hero-description {
        font-size: 1.2em;
    }
    .page-register__section-title {
        font-size: 2em;
    }
}

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

    .page-register__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Header offset for mobile, handled by shared, but for specific sections */
    .page-register__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        flex-direction: column;
        text-align: center;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-register__hero-content {
        text-align: center;
        max-width: 100%;
        min-width: unset;
    }

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

    .page-register__hero-cta {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-register__hero-image {
        max-width: 100%;
        min-width: unset;
    }
    .page-register__hero-image img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

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

    .page-register__form-section,
    .page-register__why-fi88-section,
    .page-register__cta-section,
    .page-register__faq-section {
        padding: 40px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-register__form-illustration,
    .page-register__registration-form {
        max-width: 100%;
        min-width: unset;
    }
    .page-register__form-illustration img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-register__benefit-card {
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    .page-register__benefit-card img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

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

/* Ensure no filter is used on images */
.page-register img {
    filter: none;
}

/* Content area image CSS size lower bound check */
/* This rule applies to all img elements under .page-register */
/* The width/height/max-width/max-height for content images should not make them smaller than 200px */
.page-register img:not(.shared-header img):not(.shared-footer img) {
    min-width: 200px;
    min-height: 200px;
}