:root {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --card-bg: #10233F;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy: #08162B;
    --light-text-color: #ffffff; /* For dark backgrounds */
    --dark-text-color: #333333;  /* For light backgrounds */
}

/* Base styles for the page content */
.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-text-color); /* Default for light body background */
    background-color: #f9f9f9; /* Assuming a light body background from shared.css */
    padding-top: 10px; /* Small top padding, body handles --header-offset */
}

/* Ensure images are responsive and not too small */
.page-register img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

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

/* Section titles */
.page-register__section-title {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.2;
}

.page-register__section-description {
    font-size: 18px;
    color: var(--dark-text-color);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Primary Button Style */
.page-register__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: var(--button-gradient);
    color: var(--light-text-color);
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-register__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Secondary Button Style */
.page-register__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    background: var(--light-text-color);
    color: var(--primary-color);
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-register__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--light-text-color);
    border-color: var(--primary-color);
}

/* Hero Section */
.page-register__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: var(--deep-navy);
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column; /* Ensure content is stacked vertically */
    padding-bottom: 40px; /* Add some padding at the bottom */
}

.page-register__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for desktop */
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and text */
}

.page-register__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.page-register__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    position: relative; /* Ensure content is above any potential background elements */
    z-index: 2;
}

.page-register__main-title {
    font-size: clamp(32px, 4.5vw, 48px); /* Responsive H1 font size */
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.page-register__hero-description {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Steps Section */
.page-register__steps-section {
    padding: 60px 0;
    background-color: var(--light-text-color);
}

.page-register__steps-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.page-register__steps-text {
    flex: 1;
}

.page-register__steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-register__step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.page-register__step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
    margin-right: 20px;
}

.page-register__step-content {
    flex: 1;
}

.page-register__step-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 8px;
}

.page-register__step-description {
    font-size: 16px;
    color: var(--dark-text-color);
    margin: 0;
}

.page-register__steps-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-register__steps-image {
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Benefits Section */
.page-register__benefits-section {
    padding: 60px 0;
    background-color: var(--primary-color); /* Dark background */
    color: var(--light-text-color); /* Light text for dark background */
}

.page-register__benefits-section .page-register__section-title {
    color: var(--text-main); /* Light title for dark background */
}

.page-register__benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.page-register__benefit-card {
    background-color: var(--card-bg); /* Dark card background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-register__benefit-icon {
    width: 100%; /* Ensure image fills card width */
    height: 200px; /* Fixed height for consistency */
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.page-register__benefit-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--text-main);
    margin-bottom: 10px;
}

.page-register__benefit-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
}

/* Promotions Section */
.page-register__promotions-section {
    padding: 60px 0;
    background-color: var(--light-text-color);
    text-align: center;
}

.page-register__promotions-section .page-register__section-title {
    color: var(--primary-color);
}

.page-register__cta-container {
    margin-top: 40px;
}

/* FAQ Section */
.page-register__faq-section {
    padding: 60px 0;
    background-color: #f0f0f0;
}

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

details.page-register__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    background: #fff;
}
details.page-register__faq-item summary.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}
details.page-register__faq-item summary.page-register__faq-question::-webkit-details-marker {
    display: none;
}
details.page-register__faq-item summary.page-register__faq-question:hover {
    background: #f5f5f5;
}
.page-register__faq-qtext {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--dark-text-color);
}
.page-register__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #666;
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-register__faq-item .page-register__faq-answer {
    padding: 0 20px 20px;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: var(--dark-text-color);
}

/* --- Responsive Styles --- */

/* Tablet and smaller desktops */
@media (max-width: 1024px) {
    .page-register__container {
        padding: 15px;
    }

    .page-register__section-title {
        font-size: 28px;
        margin-bottom: 25px;
    }

    .page-register__hero-image-wrapper {
        max-height: 400px;
    }

    .page-register__main-title {
        font-size: clamp(28px, 4vw, 40px);
    }

    .page-register__hero-description {
        font-size: 18px;
    }

    .page-register__btn-primary,
    .page-register__btn-secondary {
        padding: 12px 25px;
        font-size: 16px;
    }

    .page-register__steps-wrapper {
        flex-direction: column;
    }

    .page-register__steps-image-container {
        margin-top: 30px;
    }

    .page-register__benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .page-register__benefit-title {
        font-size: 20px;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .page-register {
        padding-top: 10px !important; /* Small top padding for mobile */
    }

    .page-register__container,
    .page-register__hero-section,
    .page-register__steps-section,
    .page-register__benefits-section,
    .page-register__promotions-section,
    .page-register__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-register__section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

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

    .page-register__hero-image-wrapper {
        max-height: 300px; /* Further limit height for mobile */
        margin-bottom: 20px;
    }

    .page-register__main-title {
        font-size: clamp(24px, 7vw, 36px);
        margin-bottom: 15px;
    }

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

    .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 15px;
        font-size: 16px;
    }
    
    .page-register__cta-container {
        display: flex;
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        margin-top: 30px;
    }

    .page-register__steps-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .page-register__step-item {
        margin-bottom: 20px;
    }

    .page-register__step-number {
        width: 35px;
        height: 35px;
        font-size: 18px;
        margin-right: 15px;
    }

    .page-register__step-title {
        font-size: 20px;
    }

    .page-register__steps-image-container {
        margin-top: 20px;
    }

    .page-register__benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-register__benefit-card {
        padding: 25px;
    }

    .page-register__benefit-icon {
        height: 180px;
    }

    .page-register__benefit-title {
        font-size: 20px;
    }

    details.page-register__faq-item summary.page-register__faq-question { padding: 15px; }
    .page-register__faq-qtext { font-size: 15px; }
    details.page-register__faq-item .page-register__faq-answer { padding: 0 15px 15px; }
}