/* style/register.css */

/* Base styles for the register page content */
.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text on light background */
    background-color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

/* Section general styling */
.page-register__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #26A9E0; /* Primary color for titles */
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

.page-register__section-title--light {
    color: #ffffff; /* White for titles on dark backgrounds */
}

.page-register__section-description {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #555555;
}

.page-register__section-description--light {
    color: #f0f0f0; /* Light text on dark backgrounds */
}

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

.page-register__button-wrapper {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

/* Text links within content */
.page-register__text-link {
    color: #26A9E0;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-register__text-link:hover {
    color: #1a7bb7; /* Slightly darker shade on hover */
}

/* CTA Buttons */
.page-register__cta-button,
.page-register__btn-primary,
.page-register__btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Ensure padding doesn't increase width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-register__cta-button,
.page-register__btn-primary {
    background: #26A9E0; /* Primary color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

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

.page-register__cta-button:hover,
.page-register__btn-primary:hover {
    background: #1e87c0; /* Slightly darker primary on hover */
    border-color: #1e87c0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-register__btn-secondary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* HERO Section */
.page-register__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #26A9E0, #a9d4ed); /* Gradient background with primary color */
    color: #ffffff;
    overflow: hidden; /* Prevent image overflow */
}

.page-register__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Ensure content is above any background effects */
}

.page-register__hero-image {
    width: 100%;
    margin-bottom: 30px;
    max-width: 800px; /* Constrain image width for better presentation */
}

.page-register__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-register__hero-content {
    text-align: center;
    width: 100%;
    max-width: 900px;
}

.page-register__main-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-register__hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    color: #f0f0f0;
}

/* Intro Section */
.page-register__intro-section {
    padding: 80px 0;
    background-color: #ffffff;
    color: #333333;
}

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

.page-register__feature-item {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-register__feature-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure it behaves as a block element */
    margin-left: auto;
    margin-right: auto;
}

.page-register__feature-title {
    font-size: 24px;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-register__feature-text {
    font-size: 16px;
    color: #555555;
}

/* How-to-Register Section */
.page-register__how-to-register {
    padding: 80px 0;
    background-color: #26A9E0; /* Primary color background */
    color: #ffffff;
}

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

.page-register__step-item {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on primary background */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-register__step-number {
    font-size: 48px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 15px;
}

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

.page-register__step-text {
    font-size: 16px;
    color: #f0f0f0;
}

/* Verification Section */
.page-register__verification-section {
    padding: 80px 0;
    background-color: #ffffff;
    color: #333333;
}

.page-register__verification-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-register__verification-text {
    flex: 1;
    min-width: 300px;
}

.page-register__verification-text p {
    margin-bottom: 15px;
}

.page-register__verification-list {
    list-style: disc inside;
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-register__verification-list li {
    margin-bottom: 10px;
}

.page-register__verification-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-register__verification-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: block; /* Ensure it behaves as a block element */
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Section */
.page-register__faq-section {
    padding: 80px 0;
    background-color: #f5f5f5; /* Light grey background for contrast */
    color: #333333;
}

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

/* FAQ item styles */
.page-register__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* FAQ default state - answer hidden */
.page-register__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
    background: #f9f9f9; /* Ensure a background for the answer */
    color: #555555; /* Darker text for answer */
}

/* FAQ expanded state - 🚨 Use!important and sufficiently large max-height */
.page-register__faq-item.active .page-register__faq-answer {
    max-height: 2000px !important; /* 🚨 Use!important to ensure priority, value large enough to accommodate any content */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

/* Question style */
.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-register__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-register__faq-question:active {
    background: #eeeeee;
}

/* Question title style */
.page-register__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px; /* Increased font size for better readability */
    font-weight: 600;
    line-height: 1.5;
    color: #333333; /* Dark text for question */
    pointer-events: none; /* Prevent h3 from blocking click events */
}

/* Toggle icon */
.page-register__faq-toggle {
    font-size: 28px; /* Increased icon size */
    font-weight: bold;
    line-height: 1;
    color: #26A9E0; /* Primary color for toggle icon */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click events */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; /* Larger hit area */
    height: 32px;
}

.page-register__faq-item.active .page-register__faq-toggle {
    color: #1a7bb7; /* Slightly darker primary on active */
    transform: rotate(45deg); /* Rotate for 'x' effect */
}


/* Final CTA Section */
.page-register__cta-final {
    padding: 80px 20px;
    background-color: #26A9E0; /* Primary color background */
    color: #ffffff;
    text-align: center;
}


/* --- Responsive Design --- */

/* Mobile adaptation for images and containers */
@media (max-width: 768px) {
    .page-register {
        font-size: 16px;
        line-height: 1.6;
        /* padding-top is handled by shared.css or hero-section specifically */
    }

    .page-register__container {
        padding: 15px; /* Adjust container padding for mobile */
    }

    /* All images */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    
    /* All image containers */
    .page-register__section,
    .page-register__card,
    .page-register__container,
    .page-register__hero-image,
    .page-register__feature-item,
    .page-register__verification-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* HERO Section */
    .page-register__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-register__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-register__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    /* Section titles and descriptions */
    .page-register__section-title {
        font-size: 28px;
        padding-top: 30px;
    }

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

    /* Features Grid */
    .page-register__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* How-to-Register Steps */
    .page-register__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Verification Section */
    .page-register__verification-content {
        flex-direction: column;
        gap: 30px;
    }
    .page-register__verification-text,
    .page-register__verification-image {
        padding: 0 15px; /* Add padding to inner content if needed */
    }

    /* FAQ Section */
    .page-register__faq-question {
        padding: 15px;
        flex-wrap: wrap; /* Allow question content to wrap */
    }
    
    .page-register__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px); /* Adjust width to make space for toggle */
    }
    
    .page-register__faq-toggle {
        margin-left: 10px;
        width: 28px;
        height: 28px;
        font-size: 24px;
    }
    
    .page-register__faq-answer {
        padding: 0 15px;
    }
    
    .page-register__faq-item.active .page-register__faq-answer {
        padding: 15px !important;
    }

    /* All buttons and button containers */
    .page-register__cta-button,
    .page-register__btn-primary,
    .page-register__btn-secondary,
    .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__button-wrapper {
        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;
    }
    
    .page-register__cta-buttons {
        display: flex;
        flex-direction: column; /* Stack buttons vertically on mobile */
    }
}