/* style/register.css */

/* Base styles for the register page */
.page-register {
    font-family: 'Arial', sans-serif;
    color: #ffffff; /* Light text for dark body background */
    line-height: 1.6;
    background-color: transparent; /* Body background from shared.css */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-register__section-title {
    font-size: 2.5rem;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-register__section-description {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 50px;
    color: #f0f0f0;
}

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

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

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

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

.page-register__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

/* Hero Section */
.page-register__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 600px; /* Adjust height as needed */
    overflow: hidden;
    margin-bottom: 60px;
    padding: 20px; /* Add padding for mobile responsiveness */
}

.page-register__hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.page-register__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: -1;
}

.page-register__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

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

.page-register__intro-description {
    font-size: 1.3rem;
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-register__hero-cta {
    font-size: 1.2rem;
    padding: 18px 35px;
}

/* Advantages Section */
.page-register__advantages-section {
    padding: 80px 0;
    background-color: rgba(38, 169, 224, 0.1); /* Subtle brand color background */
    margin-bottom: 60px;
}

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

.page-register__advantage-card {
    background-color: rgba(255, 255, 255, 0.08); /* Light transparent card background */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
}

.page-register__advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-register__advantage-icon {
    width: 100%; /* Ensure image fills card width */
    max-width: 250px; /* Max width for consistency */
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px; /* Slightly rounded corners for images */
}

.page-register__advantage-title {
    font-size: 1.6rem;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-register__advantage-text {
    font-size: 1rem;
    color: #e0e0e0;
}

/* How to Register Section */
.page-register__how-to-register-section {
    padding: 80px 0;
    margin-bottom: 60px;
}

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

.page-register__step-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #ffffff;
}

.page-register__step-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #26A9E0;
    background-color: rgba(38, 169, 224, 0.2);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    border: 2px solid #26A9E0;
}

.page-register__step-title {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-register__step-text {
    font-size: 1.05rem;
    color: #e0e0e0;
    margin-bottom: 25px;
    flex-grow: 1; /* Push button to bottom */
}

.page-register__step-button {
    margin-top: auto; /* Align button at bottom */
    width: 100%;
    max-width: 250px;
}

.page-register__step-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

/* Important Notes Section */
.page-register__important-notes-section {
    padding: 80px 0;
    background-color: rgba(255, 255, 255, 0.05); /* Subtle background for notes */
    margin-bottom: 60px;
}

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

.page-register__note-card {
    background-color: rgba(38, 169, 224, 0.15); /* Brand color transparent background */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.page-register__note-title {
    font-size: 1.6rem;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-register__note-text {
    font-size: 1rem;
    color: #e0e0e0;
}

/* FAQ Section */
.page-register__faq-section {
    padding: 80px 0;
    margin-bottom: 60px;
}

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

.page-register__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(38, 169, 224, 0.3);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    background-color: rgba(38, 169, 224, 0.1);
    transition: background-color 0.3s ease;
}

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

.page-register__faq-qtext {
    flex-grow: 1;
    color: #ffffff; /* Ensure text is white */
}

.page-register__faq-toggle {
    font-size: 1.8rem;
    margin-left: 15px;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-register__faq-item[open] .page-register__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
}

.page-register__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: #e0e0e0;
    line-height: 1.7;
}

/* Conclusion Section */
.page-register__conclusion-section {
    padding: 80px 0;
    text-align: center;
    background-color: rgba(38, 169, 224, 0.2); /* Brand color transparent background */
}

.page-register__conclusion-text {
    font-size: 1.2rem;
    color: #f0f0f0;
    max-width: 900px;
    margin: 30px auto 40px auto;
}

.page-register__conclusion-cta {
    font-size: 1.3rem;
    padding: 20px 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-register__main-title {
        font-size: 3rem;
    }
    .page-register__intro-description {
        font-size: 1.1rem;
    }
    .page-register__section-title {
        font-size: 2rem;
    }
    .page-register__advantage-title,
    .page-register__note-title,
    .page-register__step-title {
        font-size: 1.4rem;
    }
    .page-register__faq-question {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .page-register {
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    }
    .page-register__hero-section {
        height: 500px;
    }
    .page-register__main-title {
        font-size: 2.2rem;
    }
    .page-register__intro-description {
        font-size: 1rem;
    }
    .page-register__hero-cta {
        font-size: 1rem;
        padding: 15px 25px;
    }
    .page-register__section-title {
        font-size: 1.8rem;
    }
    .page-register__section-description {
        font-size: 1rem;
    }
    .page-register__advantages-grid,
    .page-register__steps-grid,
    .page-register__notes-grid {
        grid-template-columns: 1fr;
    }
    .page-register__advantage-card,
    .page-register__step-card,
    .page-register__note-card {
        padding: 25px;
    }
    .page-register__advantage-title,
    .page-register__note-title,
    .page-register__step-title {
        font-size: 1.3rem;
    }
    .page-register__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-register__faq-answer {
        padding: 0 20px 15px 20px;
    }
    .page-register__conclusion-text {
        font-size: 1.05rem;
    }
    .page-register__conclusion-cta {
        font-size: 1.1rem;
        padding: 15px 30px;
    }

    /* Mobile image, video, button responsive requirements */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-register video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-register__hero-section,
    .page-register__advantages-section,
    .page-register__how-to-register-section,
    .page-register__important-notes-section,
    .page-register__faq-section,
    .page-register__conclusion-section,
    .page-register__container,
    .page-register__advantage-card,
    .page-register__step-card,
    .page-register__note-card,
    .page-register__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll for containers */
    }

    .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;
        margin-left: 0 !important; /* Reset any horizontal margins */
        margin-right: 0 !important; /* Reset any horizontal margins */
    }

    /* If buttons are in a flex container, ensure they wrap or stack */
    .page-register__hero-content,
    .page-register__cta-buttons {
        display: flex;
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px; /* Space between stacked buttons */
        align-items: center; /* Center buttons */
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Ensure content area images are not smaller than 200px */
.page-register img:not(.page-register__advantage-icon, .page-register__step-image) {
    min-width: 200px;
    min-height: 200px;
}

/* Specific overrides for small images within cards if they were to be smaller */
.page-register__advantage-icon,
.page-register__step-image {
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

/* No CSS filters for images */
.page-register img {
    filter: none;
}