/* style/register.css */

/* General styles for the register page */
.page-register {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #FFFFFF; /* Default background */
}

.page-register__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 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;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #555555;
}

/* Hero Section */
.page-register__hero-section {
    position: relative;
    padding: 100px 0;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #017439, #005f2c); /* Gradient background with brand color */
    color: #ffffff; /* White text for dark background */
}

.page-register__hero-section .page-register__container {
    position: relative;
    z-index: 1;
}

.page-register__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFF00; /* Yellow for main title on dark background */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-register__intro-text {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-register__btn-primary {
    display: inline-block;
    background-color: #C30808; /* Red for register button */
    color: #FFFF00; /* Yellow font for register button */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

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

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

.page-register__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7); /* Darken image to ensure text contrast */
}

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

.page-register__form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.page-register__registration-form {
    display: flex;
    flex-direction: column;
}

.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 #e0e0e0;
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.page-register__form-input:focus {
    border-color: #017439;
    outline: none;
}

.page-register__captcha-group {
    display: flex;
    gap: 10px;
}

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

.page-register__captcha-button {
    background-color: #017439;
    color: #ffffff;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.page-register__captcha-button:hover {
    background-color: #005f2c;
}

.page-register__checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 25px;
}

.page-register__checkbox {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    accent-color: #017439; /* Checkbox color */
}

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

.page-register__checkbox-label .page-register__link {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
}

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

.page-register__btn-submit {
    background-color: #C30808; /* Red for submit button */
    color: #FFFF00; /* Yellow font for submit button */
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
    width: 100%;
}

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

.page-register__form-image-container {
    text-align: center;
}

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

/* Benefits Section */
.page-register__benefits-section {
    padding: 80px 0;
    background-color: #017439; /* Dark brand color 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(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.page-register__benefit-card {
    background-color: #ffffff; /* Light background for cards */
    color: #333333; /* Dark text for light cards */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-register__benefit-icon {
    width: 100%; /* Ensure images are large, not small icons */
    height: auto;
    max-width: 250px; /* Max width for benefit icons to look good */
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

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

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

.page-register__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-register__btn-secondary {
    display: inline-block;
    background-color: #ffffff;
    color: #017439;
    padding: 15px 30px;
    border: 2px solid #017439;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.page-register__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Steps Section */
.page-register__steps-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background */
}

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

.page-register__step-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
}

.page-register__step-number {
    width: 60px;
    height: 60px;
    line-height: 60px;
    background-color: #017439;
    color: #ffffff;
    border-radius: 50%;
    font-size: 1.8em;
    font-weight: bold;
    margin: 0 auto 20px auto;
}

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

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

.page-register__step-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

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

.page-register__faq-section .page-register__section-title,
.page-register__faq-section .page-register__section-description {
    color: #ffffff;
}

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

.page-register__faq-item {
    background-color: #ffffff; /* Light background for FAQ items */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #f0f0f0;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: #333333; /* Dark text for question */
    transition: background-color 0.3s ease;
}

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

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

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

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

.page-register__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Initial padding, will be 25px when active */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555; /* Dark text for answer content */
    background-color: #ffffff;
}

.page-register__faq-item.active .page-register__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 20px 25px !important; /* Ensure padding is applied when active */
}

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

/* Final CTA Section */
.page-register__cta-final-section {
    padding: 80px 0;
    text-align: center;
    background-color: #f9f9f9;
}

.page-register__btn-large {
    padding: 18px 35px;
    font-size: 1.3em;
    border-radius: 10px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-register__main-title {
        font-size: 3em;
    }
    .page-register__section-title {
        font-size: 2em;
    }
    .page-register__form-wrapper {
        grid-template-columns: 1fr;
    }
    .page-register__form-image-container {
        order: -1; /* Move image above form on smaller screens */
    }
    .page-register__container {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .page-register {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-register__hero-section {
        padding: 60px 0;
        padding-top: var(--header-offset, 120px) !important; /* Ensure padding-top is applied on mobile */
    }
    .page-register__main-title {
        font-size: 2.2em;
    }
    .page-register__intro-text {
        font-size: 1em;
    }
    .page-register__section-title {
        font-size: 1.8em;
    }
    .page-register__section-description {
        font-size: 0.95em;
        margin-bottom: 25px;
    }

    /* Images responsive */
    .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,
    .page-register__form-wrapper,
    .page-register__benefits-grid,
    .page-register__steps-grid,
    .page-register__faq-list,
    .page-register__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Buttons responsive */
    .page-register__btn-primary,
    .page-register__btn-secondary,
    .page-register__btn-submit,
    .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;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-register__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
    }
    .page-register__form-group {
        margin-bottom: 15px;
    }
    .page-register__checkbox-group {
        flex-direction: column;
        align-items: flex-start;
    }
    .page-register__checkbox {
        margin-bottom: 10px;
    }
    .page-register__form-wrapper {
        padding: 20px;
    }
    .page-register__captcha-group {
        flex-direction: column;
    }
    .page-register__captcha-button {
        width: 100%;
    }
    .page-register__faq-question {
        font-size: 1em;
        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 !important;
    }
}

@media (max-width: 480px) {
    .page-register__main-title {
        font-size: 1.8em;
    }
    .page-register__section-title {
        font-size: 1.5em;
    }
    .page-register__btn-primary, .page-register__btn-secondary {
        font-size: 1em;
        padding: 12px 20px;
    }
    .page-register__btn-large {
        font-size: 1.1em;
        padding: 15px 25px;
    }
}