/* style/register.css */
.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light body background */
    background-color: var(--background-color, #FFFFFF); /* Inherit from shared, default to white */
}

.page-register__hero-section {
    display: flex;
    flex-direction: column; /* Default to column for mobile first */
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background: linear-gradient(135deg, #26A9E0, #34B7F1); /* Gradient background for hero */
    color: #FFFFFF;
    text-align: center;
    overflow: hidden; /* Ensure no overflow */
}

.page-register__hero-content {
    max-width: 800px;
    margin-top: 30px; /* Space between image and content on mobile */
}

.page-register__main-title {
    font-size: clamp(2.2em, 5vw, 3.2em); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.page-register__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

.page-register__btn-primary,
.page-register__btn-secondary,
.page-register__btn-tertiary,
.page-register__btn-link {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
}

.page-register__btn-primary {
    background-color: #EA7C07; /* Login/Register custom color */
    color: #FFFFFF;
    border: 2px solid #EA7C07;
}

.page-register__btn-primary:hover {
    background-color: #D66E06;
    border-color: #D66E06;
}

.page-register__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border: 2px solid #FFFFFF;
}

.page-register__btn-secondary:hover {
    background-color: #E0F2F7;
    border-color: #E0F2F7;
}

.page-register__hero-image-container {
    width: 100%;
    max-width: 1000px; /* Max width for hero image */
}

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

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

.page-register__why-join-section,
.page-register__how-to-register-section,
.page-register__faq-section,
.page-register__security-contact-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px 20px;
    background-color: #FFFFFF; /* Explicitly white background for sections */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.page-register__feature-card,
.page-register__step-card,
.page-register__info-card {
    background-color: #F8F8F8; /* Light gray background for cards */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-register__feature-icon,
.page-register__info-icon {
    width: 100%; /* Ensure images take full width of card */
    max-width: 200px; /* Max width for feature icons */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
}

.page-register__feature-title,
.page-register__step-title,
.page-register__info-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-register__feature-description,
.page-register__step-description,
.page-register__info-description {
    font-size: 1em;
    color: #555555;
    flex-grow: 1; /* Allow description to grow */
}

.page-register__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #26A9E0;
    color: #FFFFFF;
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 20px;
}

.page-register__btn-tertiary {
    background-color: #26A9E0;
    color: #FFFFFF;
    border: 2px solid #26A9E0;
    margin-top: 20px;
}

.page-register__btn-tertiary:hover {
    background-color: #1F8FC4;
    border-color: #1F8FC4;
}

.page-register__tips-block {
    background-color: #E0F2F7; /* Light blue background for tips */
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
}

.page-register__tips-title {
    font-size: 1.6em;
    color: #26A9E0;
    margin-bottom: 20px;
    text-align: center;
}

.page-register__tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.page-register__tips-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    color: #333333;
}

.page-register__tips-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #EA7C07;
    font-weight: bold;
}

.page-register__faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-register__faq-item {
    background-color: #F8F8F8;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1em;
    font-weight: 600;
    color: #26A9E0;
    cursor: pointer;
    background-color: #E0F2F7;
    border-bottom: 1px solid #D1E9F0;
    list-style: none; /* For details/summary */
}

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

.page-register__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #EA7C07;
    margin-left: 15px;
}

.page-register__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #555555;
    text-align: left;
}

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

.page-register__btn-link {
    color: #26A9E0;
    text-decoration: underline;
    margin-top: 15px;
    font-weight: 600;
    font-size: 0.95em;
}

.page-register__btn-link:hover {
    color: #1F8FC4;
    text-decoration: none;
}

/* Responsive styles */
@media (min-width: 769px) {
    .page-register__hero-section {
        flex-direction: row; /* Desktop: row layout */
        text-align: left;
        padding: 80px 40px;
    }

    .page-register__hero-content {
        text-align: left;
        margin-left: 50px; /* Space between image and content on desktop */
        margin-top: 0;
    }

    .page-register__hero-image-container {
        margin-top: 0;
    }

    .page-register__cta-buttons {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .page-register__main-title {
        font-size: clamp(2em, 8vw, 2.5em);
    }

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

    .page-register__hero-section,
    .page-register__why-join-section,
    .page-register__how-to-register-section,
    .page-register__faq-section,
    .page-register__security-contact-section {
        padding-left: 15px;
        padding-right: 15px;
        margin-left: 10px;
        margin-right: 10px;
    }

    /* Mobile image responsiveness */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-register__hero-image-container,
    .page-register__feature-card,
    .page-register__step-card,
    .page-register__info-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden !important;
    }

    /* Mobile button responsiveness */
    .page-register__cta-button,
    .page-register__btn-primary,
    .page-register__btn-secondary,
    .page-register__btn-tertiary,
    .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,
    .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;
        flex-direction: column !important; /* Stack buttons vertically on mobile */
    }
}