/* style/register.css */

/* Base styles for the register page content */
.page-register {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background from shared.css */
    padding-top: 0; /* Handled by hero section or main container */
}

/* Container for consistent content width */
.page-register__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section titles and descriptions */
.page-register__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-register__section-description {
    font-size: 1.1em;
    color: #f0f0f0; /* Slightly lighter for dark backgrounds */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent; /* Default transparent border */
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-register__btn-primary {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
}

.page-register__btn-primary:hover {
    background-color: #1e87b7; /* Darker shade on hover */
    transform: translateY(-2px);
}

.page-register__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0; /* Brand primary color for text */
    border-color: #26A9E0; /* Border in brand color */
}

.page-register__btn-secondary:hover {
    background-color: #f0f0f0; /* Light grey on hover */
    transform: translateY(-2px);
}

.page-register__btn-large {
    padding: 18px 35px;
    font-size: 1.2em;
}

/* Hero Section */
.page-register__hero-section {
    position: relative;
    padding: 80px 0;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #1a1a2e, #0d0d1a); /* Dark gradient background */
    overflow: hidden; /* Prevent image overflow */
}

.page-register__hero-section .page-register__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-register__hero-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.page-register__main-title {
    font-size: 3.5em;
    color: #FFFFFF;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-register__hero-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 30px;
    max-width: 600px;
}

.page-register__hero-subtext {
    font-size: 1em;
    color: #cccccc;
    margin-top: 15px;
}

.page-register__hero-content .page-register__btn-primary {
    margin-top: 20px;
}

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

.page-register__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
    object-fit: cover;
}

/* Steps Section */
.page-register__steps-section {
    background-color: #FFFFFF; /* Light background for contrast */
    color: #333333; /* Dark text for light background */
    padding: 80px 0;
}

.page-register__steps-section .page-register__section-title {
    color: #26A9E0; /* Brand color for titles */
}

.page-register__steps-section .page-register__section-description {
    color: #555555; /* Darker grey for light background */
}

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

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

.page-register__step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-register__step-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 25px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
    object-fit: cover;
}

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

.page-register__step-text {
    font-size: 1em;
    color: #666666;
}

.page-register__cta-bottom {
    text-align: center;
    margin-top: 60px;
}

.page-register__cta-text {
    font-size: 1.3em;
    color: #333333;
    margin-bottom: 25px;
    font-weight: bold;
}

/* Benefits Section */
.page-register__benefits-section {
    background-color: #1a1a2e; /* Dark background */
    color: #ffffff; /* Light text */
    padding: 80px 0;
}

.page-register__benefits-section .page-register__section-title {
    color: #FFFFFF;
}

.page-register__benefits-section .page-register__section-description {
    color: #f0f0f0;
}

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

.page-register__benefit-card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark 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, background-color 0.3s ease;
}

.page-register__benefit-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-register__benefit-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 25px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
    object-fit: cover;
}

.page-register__benefit-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-register__benefit-text {
    font-size: 1em;
    color: #cccccc;
}

/* FAQ Section */
.page-register__faq-section {
    background-color: #FFFFFF; /* Light background */
    color: #333333; /* Dark text */
    padding: 80px 0;
}

.page-register__faq-section .page-register__section-title {
    color: #26A9E0;
}

.page-register__faq-section .page-register__section-description {
    color: #555555;
}

.page-register__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-register__faq-item {
    border-bottom: 1px solid #eeeeee;
}

.page-register__faq-item:last-child {
    border-bottom: none;
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #f0f0f0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

.page-register__faq-title {
    font-size: 1.2em;
    color: #333333;
    margin: 0;
    font-weight: bold;
}

.page-register__faq-toggle {
    font-size: 1.5em;
    color: #26A9E0;
    font-weight: bold;
    transition: transform 0.3s ease;
    line-height: 1; /* Ensure consistent height for + and - */
}

.page-register__faq-item.active .page-register__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect, or just show '-' */
}

.page-register__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    background-color: #ffffff;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-register__faq-item.active .page-register__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px 25px;
}

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

/* Final CTA Section */
.page-register__cta-section {
    background: linear-gradient(135deg, #1a1a2e, #0d0d1a); /* Dark gradient background */
    padding: 80px 0;
    text-align: center;
}

.page-register__cta-section .page-register__section-title {
    color: #FFFFFF;
}

.page-register__cta-section .page-register__section-description {
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-register__cta-buttons-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-register__cta-section .page-register__btn-primary,
.page-register__cta-section .page-register__btn-secondary {
    margin: 10px 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-register__main-title {
        font-size: 3em;
    }
    .page-register__hero-section .page-register__container {
        flex-direction: column;
        text-align: center;
    }
    .page-register__hero-content {
        text-align: center;
    }
    .page-register__hero-description {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .page-register {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-register__hero-section {
        padding: 60px 0;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-register__main-title {
        font-size: 2.5em;
    }
    .page-register__hero-description {
        font-size: 1.1em;
    }
    .page-register__section-title {
        font-size: 2em;
    }
    .page-register__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    /* Images responsiveness */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure minimum size */
        min-height: 200px !important; /* Ensure minimum size */
    }
    
    /* Video responsiveness (if any, though not in this HTML) */
    .page-register video,
    .page-register__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    /* Content containers for mobile overflow prevention */
    .page-register__section,
    .page-register__card,
    .page-register__container,
    .page-register__hero-section,
    .page-register__steps-section,
    .page-register__benefits-section,
    .page-register__faq-section,
    .page-register__cta-section,
    .page-register__video-section,
    .page-register__video-container,
    .page-register__video-wrapper,
    .page-register__cta-buttons-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;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Buttons responsiveness */
    .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;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 15px; /* Stack buttons */
    }

    .page-register__cta-section {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-register__cta-section .page-register__btn-primary,
    .page-register__cta-section .page-register__btn-secondary {
        display: block; /* Ensure buttons stack */
        margin: 10px auto; /* Center stacked buttons */
    }
}

@media (max-width: 480px) {
    .page-register__main-title {
        font-size: 2em;
    }
    .page-register__hero-description {
        font-size: 1em;
    }
    .page-register__section-title {
        font-size: 1.8em;
    }
    .page-register__faq-question {
        padding: 15px 20px;
    }
    .page-register__faq-title {
        font-size: 1.1em;
    }
    .page-register__faq-answer {
        padding: 0 20px;
    }
    .page-register__faq-item.active .page-register__faq-answer {
        padding: 15px 20px;
    }
}