/* style/register.css */

/* Variables */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --login-color: #EA7C07;
    --background-color: #FFFFFF;
}

/* Base styles for page-register scope */
.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark); /* Default text color for light body background */
    background-color: var(--background-color);
}

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

/* Hero Section */
.page-register__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    padding-top: 10px; /* Small decorative top padding for the section itself */
    background: linear-gradient(135deg, var(--primary-color) 0%, #34C6FF 100%);
    color: var(--text-color-light);
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-register__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image wrapper for larger screens */
    margin-bottom: 30px; /* Space between image and content */
}

.page-register__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-register__hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 1; /* Ensure text is above any potential background elements */
}

.page-register__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-color-light);
}

.page-register__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--text-color-light);
}

.page-register__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 500px; /* Max width for button group */
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
}

.page-register__btn-primary,
.page-register__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    box-sizing: border-box; /* Include padding in width calculation */
    max-width: 100%; /* Ensure button doesn't exceed container */
    width: auto; /* Default width */
}

.page-register__btn-primary {
    background-color: var(--login-color); /* Using login color for primary CTA */
    color: var(--text-color-light);
    border: 2px solid var(--login-color);
}

.page-register__btn-primary:hover {
    background-color: #D46F00; /* Darken login color */
    border-color: #D46F00;
    transform: translateY(-2px);
}

.page-register__btn-secondary {
    background-color: transparent;
    color: var(--text-color-light);
    border: 2px solid var(--text-color-light);
}

.page-register__btn-secondary:hover {
    background-color: var(--text-color-light);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* General Section Styling */
.page-register__section {
    padding: 60px 0;
}

.page-register__section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.page-register__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-color-dark);
}

/* Benefits Section */
.page-register__benefits-section {
    background-color: var(--background-color);
}

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

.page-register__benefit-card {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    color: var(--text-color-dark);
}

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

.page-register__card-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-register__card-text {
    font-size: 1em;
    color: var(--text-color-dark);
}

/* Guide Section (Dark Background) */
.page-register__guide-section {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.page-register__dark-section-title {
    color: var(--text-color-light);
}

.page-register__dark-section-description {
    color: var(--text-color-light);
}

.page-register__step-card {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-register__step-card--reverse {
    flex-direction: row-reverse;
}

.page-register__step-content {
    flex: 1;
    min-width: 300px;
}

.page-register__step-image-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-register__step-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__step-title {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color-light);
}

.page-register__step-text {
    font-size: 1em;
    margin-bottom: 20px;
    color: var(--text-color-light);
}

/* Security Section */
.page-register__security-section {
    background-color: var(--background-color);
}

.page-register__security-grid {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.page-register__security-content {
    flex: 2;
    min-width: 300px;
}

.page-register__security-image-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

/* FAQ Section */
.page-register__faq-section {
    background-color: #f8f8f8; /* Light grey background for contrast */
}

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

.page-register__faq-item {
    background-color: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-color-dark);
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    background-color: #f5f5f5;
    color: var(--primary-color);
    transition: background-color 0.3s ease;
    list-style: none; /* For <details> summary */
}

.page-register__faq-question::-webkit-details-marker {
    display: none; /* For <details> summary */
}

.page-register__faq-item[open] .page-register__faq-question {
    background-color: #e0e0e0;
}

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

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

.page-register__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
}

.page-register__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--text-color-dark);
}

.page-register__faq-answer p {
    margin-top: 10px;
}

/* Call to Action Bottom */
.page-register__cta-bottom {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    text-align: center;
}

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


/* Responsive Styles */
@media (max-width: 1024px) {
    .page-register__hero-section {
        padding: 60px 20px;
        padding-top: 10px;
    }

    .page-register__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }

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

    .page-register__step-card,
    .page-register__security-grid {
        flex-direction: column;
        align-items: center;
    }

    .page-register__step-card--reverse {
        flex-direction: column; /* Revert to column for mobile */
    }

    .page-register__step-content,
    .page-register__step-image-wrapper,
    .page-register__security-content,
    .page-register__security-image-wrapper {
        min-width: unset;
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* Mobile image responsiveness */
    .page-register img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-register__hero-image-wrapper,
    .page-register__step-image-wrapper,
    .page-register__security-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Mobile button responsiveness */
    .page-register__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-register__btn-primary,
    .page-register__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px; /* Adjust padding for smaller screens */
    }

    /* General section padding for mobile */
    .page-register__section {
        padding: 40px 0;
    }

    .page-register__container {
        padding: 0 15px;
    }

    .page-register__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Small decorative top padding for the section itself */
    }

    .page-register__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em);
    }

    .page-register__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

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

    .page-register__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

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

/* Contrast Fixes - applied based on body background being light */
.page-register__light-bg {
    color: var(--text-color-dark);
    background-color: var(--secondary-color); /* White */
}

.page-register__dark-bg {
    color: var(--text-color-light);
    background-color: var(--primary-color); /* Primary color */
}

.page-register__dark-section-title {
    color: var(--text-color-light);
}

.page-register__dark-section-description {
    color: var(--text-color-light);
}

/* Ensure no CSS filter on images */
.page-register img {
    filter: none !important; /* Ensure no filter is applied */
}