/* style/register.css */
/* Base styles for the page content, ensuring good contrast with body background */
/* Assuming body background is light (from shared.css var(--bg-color) which is #FFFFFF), */
/* text color will be dark #333333 */
.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light background */
    background-color: var(--bg-color, #FFFFFF); /* Fallback to white if var not set */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Section styling */
.page-register__hero-section,
.page-register__benefits-section,
.page-register__steps-section,
.page-register__notes-section,
.page-register__faq-section,
.page-register__cta-bottom-section {
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden; /* Ensure content doesn't bleed */
}

/* Specific section backgrounds based on color scheme */
.page-register__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-register__dark-bg {
    background-color: #26A9E0; /* Primary brand color */
    color: #FFFFFF; /* White text for primary brand color background */
}

.page-register__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Consistent inner padding */
    box-sizing: border-box;
}

/* Hero Section */
.page-register__hero-section {
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-register__hero-image {
    width: 100%;
    max-width: 1920px; /* Max width for large screens */
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 20px; /* Space between image and content */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-register__hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    z-index: 1; /* Ensure content is above any potential background layers */
    color: #333333; /* Ensure readability */
}

.page-register__main-title {
    font-size: clamp(2.2rem, 4vw, 3rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #26A9E0; /* Primary brand color for H1 */
}

.page-register__intro-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #555555;
}

.page-register__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: inherit; /* Inherit color from parent section for contrast */
}

.page-register__section-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: inherit;
}

/* CTA Buttons */
.page-register__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.page-register__cta-buttons--center {
    margin-top: 40px;
}

.page-register__btn-primary,
.page-register__btn-secondary,
.page-register__btn-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
    min-width: 180px; /* Minimum width for buttons */
}

.page-register__btn-primary {
    background-color: #26A9E0; /* Primary brand color */
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

.page-register__btn-primary:hover {
    background-color: #1e87b6; /* Slightly darker primary on hover */
    border-color: #1e87b6;
    transform: translateY(-2px);
}

.page-register__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0; /* Primary brand color for text */
    border: 2px solid #26A9E0;
}

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

.page-register__btn-step {
    background-color: #EA7C07; /* Login color for step button */
    color: #FFFFFF;
    border: 2px solid #EA7C07;
    margin-top: 15px;
    font-size: 0.95rem;
    padding: 10px 20px;
    min-width: auto;
}

.page-register__btn-step:hover {
    background-color: #c96806;
    border-color: #c96806;
    transform: translateY(-2px);
}

.page-register__btn-large {
    padding: 16px 32px;
    font-size: 1.2rem;
    min-width: 220px;
}

/* Benefits Section */
.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: #FFFFFF;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0; /* Add border for contrast */
}

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

.page-register__benefit-icon {
    width: 100%; /* Ensure images fill card width */
    max-width: 250px; /* Adjust max width for aesthetic */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Min image size */
    min-height: 150px; /* Min image height for aspect ratio */
}

.page-register__card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #26A9E0;
}

.page-register__card-text {
    font-size: 0.95rem;
    color: #555555;
}

/* Steps Section */
.page-register__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-register__step-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark bg */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.page-register__step-number {
    width: 50px;
    height: 50px;
    background-color: #EA7C07; /* Login color for step number */
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.page-register__image-form-wrapper {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-register__form-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    min-width: 200px;
    min-height: 150px;
}

/* Notes Section */
.page-register__notes-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
}

.page-register__list-item {
    background-color: #FFFFFF;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #26A9E0; /* Accent border */
}

.page-register__list-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #26A9E0;
}

.page-register__list-text {
    font-size: 0.95rem;
    color: #555555;
}

/* FAQ Section */
.page-register__faq-list {
    margin-top: 40px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #FFFFFF;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    list-style: none; /* For details summary */
}

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

.page-register__faq-item[open] .page-register__faq-question {
    background-color: rgba(0, 0, 0, 0.2);
}

.page-register__faq-qtext {
    flex-grow: 1;
}

.page-register__faq-toggle {
    font-size: 1.5rem;
    margin-left: 15px;
    width: 24px;
    text-align: center;
    line-height: 1;
}

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


.page-register__faq-answer {
    padding: 0 25px 20px;
    font-size: 0.95rem;
    color: #f0f0f0;
    line-height: 1.6;
}

/* Call to Action Bottom Section */
.page-register__cta-bottom-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-register__cta-content {
    max-width: 900px;
}

/* Responsive design */
@media (max-width: 1024px) {
    .page-register__main-title {
        font-size: clamp(2rem, 5vw, 2.8rem);
    }
    .page-register__section-title {
        font-size: clamp(1.6rem, 4.5vw, 2.2rem);
    }
    .page-register__benefits-grid,
    .page-register__steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-register__hero-section,
    .page-register__benefits-section,
    .page-register__steps-section,
    .page-register__notes-section,
    .page-register__faq-section,
    .page-register__cta-bottom-section {
        padding: 40px 15px;
    }

    .page-register__hero-section {
        padding-top: 10px !important; /* body handles --header-offset */
    }

    .page-register__hero-image,
    .page-register__form-image,
    .page-register__benefit-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    .page-register__container,
    .page-register__cta-buttons,
    .page-register__cta-content,
    .page-register__benefits-grid,
    .page-register__steps-grid,
    .page-register__notes-list,
    .page-register__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    .page-register__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 10px;
    }

    .page-register__btn-primary,
    .page-register__btn-secondary,
    .page-register__btn-step,
    .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__benefit-card,
    .page-register__step-card,
    .page-register__list-item,
    .page-register__faq-item {
        padding: 20px;
    }

    .page-register__main-title {
        font-size: 1.8rem;
    }
    .page-register__section-title {
        font-size: 1.5rem;
    }
    .page-register__intro-text,
    .page-register__section-description,
    .page-register__card-text,
    .page-register__list-text,
    .page-register__faq-answer p {
        font-size: 0.9rem;
    }
    .page-register__card-title,
    .page-register__list-title,
    .page-register__faq-question {
        font-size: 1rem;
    }
}