/* style/register.css */

.page-register {
    font-family: Arial, sans-serif;
    color: #333333; /* Default text color for light body background */
    background-color: #FFFFFF; /* Explicitly set for clarity, though body is default white */
}

.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-bottom: 40px; /* Small top padding, relying on body for header offset */
    background-color: #f8f8f8;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
}

.page-register__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 10px; /* Small top padding for this section */
}

.page-register__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px; /* Limit height for hero image */
}

.page-register__hero-content-wrapper {
    width: 100%;
    text-align: center;
    padding: 30px 0;
}

.page-register__main-title {
    font-size: 42px;
    font-weight: bold;
    color: #26A9E0; /* Brand color for H1 */
    margin-bottom: 20px;
    line-height: 1.2;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-register__description {
    font-size: 18px;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-register__btn-primary {
    display: inline-block;
    background-color: #26A9E0; /* Primary brand color */
    color: #FFFFFF;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

/* Steps Section */
.page-register__steps-section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

.page-register__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
}

.page-register__steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

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

.page-register__step-card:hover {
    transform: translateY(-5px);
}

.page-register__step-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 400px; /* Recommended size */
    margin: 0 auto 20px;
    border-radius: 8px;
    object-fit: cover;
    min-height: 200px; /* Enforce minimum size */
}

.page-register__step-title {
    font-size: 24px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 15px;
}

.page-register__step-text {
    font-size: 16px;
    line-height: 1.6;
    color: #555555;
}

/* Benefits Section */
.page-register__benefits-section {
    padding: 60px 0;
    background-color: #26A9E0; /* Dark section, brand color */
    color: #FFFFFF; /* White text for dark background */
}

.page-register__benefits-section .page-register__section-title {
    color: #FFFFFF; /* White title for dark background */
    margin-bottom: 40px;
}

.page-register__benefits-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 40px;
    max-width: 800px;
}

.page-register__benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.6;
}

.page-register__benefit-icon {
    font-size: 24px;
    color: #FFFFFF;
    margin-right: 15px;
    flex-shrink: 0;
}

.page-register__benefit-item p {
    margin: 0;
    color: #FFFFFF; /* Ensure text is white */
}

.page-register__cta-wrapper {
    text-align: center;
}

/* FAQ Section */
.page-register__faq-section {
    padding: 60px 0;
    background-color: #f5f5f5;
}

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

details.page-register__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    background: #fff;
}
details.page-register__faq-item summary.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}
details.page-register__faq-item summary.page-register__faq-question::-webkit-details-marker {
    display: none;
}
details.page-register__faq-item summary.page-register__faq-question:hover {
    background: #f5f5f5;
}
.page-register__faq-qtext {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #333333; /* Ensure good contrast */
}
.page-register__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #666;
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-register__faq-item .page-register__faq-answer {
    padding: 0 20px 20px;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: #555555; /* Ensure good contrast */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-register__main-title {
        font-size: 38px;
    }
    .page-register__description {
        font-size: 17px;
    }
    .page-register__section-title {
        font-size: 32px;
    }
    .page-register__steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .page-register__step-title {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    /* General content area */
    .page-register__section,
    .page-register__card,
    .page-register__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* All images */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    /* All buttons */
    .page-register__btn-primary,
    .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;
    }

    /* All button containers */
    .page-register__cta-wrapper,
    .page-register__button-group,
    .page-register__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px; /* Ensure spacing if multiple buttons */
        display: flex;
        flex-direction: column;
    }

    /* Hero Section */
    .page-register__hero-section {
        padding-bottom: 20px;
    }
    .page-register__hero-image-wrapper {
        padding-top: 10px !important; /* Small top padding for this section */
    }
    .page-register__hero-image {
        max-height: 300px; /* Adjust hero image height for mobile */
    }
    .page-register__hero-content-wrapper {
        padding: 20px 0;
    }
    .page-register__main-title {
        font-size: 30px;
        margin-bottom: 15px;
        max-width: 100%;
        padding: 0 15px;
    }
    .page-register__description {
        font-size: 16px;
        margin-bottom: 20px;
        max-width: 100%;
        padding: 0 15px;
    }

    /* Steps Section */
    .page-register__steps-section {
        padding: 40px 0;
    }
    .page-register__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-register__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-register__step-card {
        padding: 20px;
    }
    .page-register__step-image {
        margin-bottom: 15px;
    }
    .page-register__step-title {
        font-size: 20px;
    }
    .page-register__step-text {
        font-size: 15px;
    }

    /* Benefits Section */
    .page-register__benefits-section {
        padding: 40px 0;
    }
    .page-register__benefits-section .page-register__section-title {
        font-size: 28px;
    }
    .page-register__benefits-list {
        margin-bottom: 30px;
        padding: 0 15px;
    }
    .page-register__benefit-item {
        font-size: 16px;
    }
    .page-register__benefit-icon {
        font-size: 20px;
        margin-right: 10px;
    }

    /* FAQ Section */
    .page-register__faq-section {
        padding: 40px 0;
    }
    details.page-register__faq-item summary.page-register__faq-question {
        padding: 15px;
    }
    .page-register__faq-qtext {
        font-size: 15px;
    }
    .page-register__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
        margin-left: 10px;
    }
    details.page-register__faq-item .page-register__faq-answer {
        padding: 0 15px 15px;
    }
}