.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #000000; /* Body background from shared.css */
}

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

/* Hero Section */
.page-register__hero-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    background-color: #017439; /* Primary brand color for hero background */
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
}

.page-register__main-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFFF00; /* Highlighted color for main title */
    line-height: 1.2;
}

.page-register__subtitle {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-register__btn-primary,
.page-register__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button max-width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

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

.page-register__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Custom font color for login */
    border: 2px solid #FFFF00;
}

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

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

.page-register__section-title {
    font-size: 2em;
    color: #017439; /* Primary color for section titles on light background */
    text-align: center;
    margin-bottom: 20px;
}

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

.page-register__form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

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

.page-register__captcha-image {
    border-radius: 5px;
    border: 1px solid #ddd;
    display: block; /* Ensure image is block for max-width to work */
    max-width: 200px; /* Specific width */
    height: auto; /* Maintain aspect ratio */
    min-width: 200px; /* Min size */
    min-height: 80px; /* Min size */
}

.page-register__terms-checkbox {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.page-register__checkbox-input {
    margin-right: 10px;
}

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

.page-register__checkbox-label a {
    color: #017439;
    text-decoration: none;
}

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

.page-register__submit-button {
    background-color: #C30808; /* Custom color for register */
    color: #FFFF00; /* Custom font color for register */
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button max-width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-register__submit-button:hover {
    background-color: #e02020;
}

/* Benefits Section */
.page-register__benefits-section {
    padding: 60px 0;
    background-color: #017439; /* Primary brand color */
    color: #ffffff;
    text-align: center;
}

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

.page-register__benefit-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-register__benefit-icon {
    width: 100%; /* Ensure large images, not icons */
    height: auto;
    max-width: 300px; /* Max width for benefit images */
    min-width: 200px;
    min-height: 200px;
    margin-bottom: 20px;
    border-radius: 5px;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

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

/* Why Choose Us Section */
.page-register__why-choose-us {
    padding: 60px 0;
    background-color: #ffffff;
    color: #333333;
    text-align: center;
}

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

.page-register__reason-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-register__reason-image {
    width: 100%;
    height: auto;
    max-width: 400px; /* Max width for reason images */
    min-width: 200px;
    min-height: 200px;
    margin-bottom: 20px;
    border-radius: 5px;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

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

/* FAQ Section */
.page-register__faq-section {
    padding: 60px 0;
    background-color: #017439;
    color: #ffffff;
    text-align: center;
}

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

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

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease;
}

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

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

.page-register__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #FFFF00;
    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-out, padding 0.3s ease-out;
    color: #f0f0f0;
}

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

.page-register__faq-answer p {
    margin: 0;
    font-size: 1em;
}

/* Bottom CTA Section */
.page-register__cta-bottom {
    padding: 60px 0;
    text-align: center;
    background-color: #ffffff;
    color: #333333;
}

.page-register__cta-bottom .page-register__section-title {
    color: #017439;
}

.page-register__cta-bottom .page-register__section-description {
    color: #555555;
    margin-bottom: 30px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-register__main-title {
        font-size: 2.5em;
    }
    .page-register__section-title {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .page-register__hero-section {
        padding: 60px 0;
        padding-top: var(--header-offset, 120px) !important;
    }

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

    .page-register__subtitle {
        font-size: 1em;
        margin-bottom: 30px;
    }

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

    .page-register__btn-primary,
    .page-register__btn-secondary,
    .page-register__submit-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-register__form-section,
    .page-register__benefits-section,
    .page-register__why-choose-us,
    .page-register__faq-section,
    .page-register__cta-bottom {
        padding: 40px 0;
    }

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

    .page-register__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .page-register__form-wrapper {
        padding: 30px 20px;
    }

    .page-register__captcha-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-register__captcha-image {
        margin-top: 10px;
        max-width: 100% !important;
        height: auto !important;
        min-width: 200px !important; /* Ensure min size */
        min-height: 80px !important; /* Ensure min size */
    }

    .page-register__benefits-grid,
    .page-register__why-choose-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .page-register__benefit-icon,
    .page-register__reason-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important; /* Ensure min size */
        min-height: 200px !important; /* Ensure min size */
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

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

    .page-register__faq-question {
        padding: 15px 20px;
    }

    .page-register__faq-title {
        font-size: 1.1em;
    }

    .page-register__faq-answer {
        padding: 0 20px;
    }

    .page-register__faq-item.active .page-register__faq-answer {
        padding: 15px 20px 20px;
    }

    /* General image and video responsive styles */
    .page-register img {
      max-width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .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-wrapper,
    .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;
      overflow: hidden !important; /* Prevent horizontal scroll */
      padding-left: 15px;
      padding-right: 15px;
    }
    .page-register__hero-section,
    .page-register__form-section,
    .page-register__benefits-section,
    .page-register__why-choose-us,
    .page-register__faq-section,
    .page-register__cta-bottom {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}