:root {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --card-bg: #10233F;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --border-color: #244D84;
    --glow: #4FA8FF;
    --gold: #F2C14E;
    --divider: #1B3357;
    --deep-navy: #08162B; /* This is the body background */
}

/* Base styles for the register page */
.page-register {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Light text for dark body background */
    background-color: var(--deep-navy); /* From shared.css, dark background */
}

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

/* Ensure text in main content areas is light due to dark body background */
.page-register__hero-content,
.page-register__steps-section,
.page-register__benefits-section,
.page-register__faq-section {
    color: var(--text-main);
}
.page-register__hero-description,
.page-register__section-description,
.page-register__step-text,
.page-register__benefit-text,
.page-register__faq-answer {
    color: var(--text-secondary);
}

/* Hero Section */
.page-register__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--deep-navy);
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-bottom: 60px;
}

.page-register__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 40px;
}

.page-register__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
}

.page-register__hero-content {
    max-width: 800px;
    margin-bottom: 40px;
    z-index: 1;
}

.page-register__main-title {
    font-size: clamp(2.5em, 5vw, 4em); /* Min 2.5em, preferred 5vw, max 4em */
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.2;
    max-width: 100%;
}

.page-register__hero-description {
    font-size: 1.2em;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.page-register__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.page-register__btn-primary,
.page-register__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-register__btn-primary {
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-register__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-register__btn-secondary {
    background: #ffffff;
    color: var(--primary-color); /* #113B7A */
    border: 2px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-register__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Section Titles and Descriptions */
.page-register__section-title {
    font-size: 2.8em;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 20px;
    margin-top: 60px;
}

.page-register__section-description {
    font-size: 1.1em;
    color: var(--text-secondary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
}

/* Steps Section */
.page-register__steps-section {
    padding: 60px 0;
    background-color: var(--deep-navy); /* Use deep navy for consistency */
}

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

.page-register__step-card {
    background-color: var(--card-bg); /* #10233F */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-register__step-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color); /* #244D84 */
}

.page-register__step-title {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 15px;
}

.page-register__step-text {
    font-size: 1em;
    color: var(--text-secondary);
}

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

.page-register__btn-large {
    padding: 18px 40px;
    font-size: 1.3em;
}

/* Benefits Section */
.page-register__benefits-section {
    padding: 80px 0;
    background-color: var(--deep-navy); /* Use deep navy for consistency */
}

.page-register__benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-register__benefit-item {
    background-color: var(--card-bg); /* #10233F */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-register__benefit-title {
    font-size: 1.6em;
    font-weight: 700;
    color: var(--gold); /* #F2C14E */
    margin-bottom: 15px;
}

.page-register__benefit-text {
    font-size: 1em;
    color: var(--text-secondary);
}

/* FAQ Section */
.page-register__faq-section {
    padding: 80px 0;
    background-color: var(--deep-navy); /* Use deep navy for consistency */
}

.page-register__faq-list {
    margin-top: 40px;
}

details.page-register__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color); /* #244D84 */
    overflow: hidden;
    background: var(--card-bg); /* #10233F */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}
details.page-register__faq-item summary.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: var(--text-main);
}
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: rgba(255, 255, 255, 0.05); /* Slightly lighter on hover */
}
.page-register__faq-qtext {
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
}
.page-register__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--gold); /* #F2C14E */
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-register__faq-item .page-register__faq-answer {
    padding: 0 25px 20px;
    background: rgba(255, 255, 255, 0.03); /* Slightly different background for answer */
    border-radius: 0 0 8px 8px;
    color: var(--text-secondary);
}

/* Final CTA Section */
.page-register__final-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); /* #113B7A to #1D5FD1 */
    text-align: center;
    color: #ffffff;
    box-shadow: inset 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-register__section-title--light,
.page-register__section-description--light {
    color: #ffffff;
}

.page-register__btn-glow {
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    color: #ffffff;
    border: 2px solid var(--glow); /* #4FA8FF */
    box-shadow: 0 0 15px var(--glow);
}

.page-register__btn-glow:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px var(--glow), 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-register__main-title {
        font-size: clamp(2em, 4.5vw, 3.5em); /* Adjust clamp for smaller screens */
    }
    .page-register__section-title {
        font-size: 2.2em;
    }
    .page-register__steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-register__benefits-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-register__hero-image-wrapper {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    /* General content area padding for mobile */
    .page-register__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Hero Section */
    .page-register__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
        padding-bottom: 40px;
    }
    .page-register__hero-image-wrapper {
        margin-bottom: 25px;
    }
    .page-register__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-register__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em); /* Adjust clamp for mobile */
        margin-bottom: 15px;
    }
    .page-register__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-register__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    /* Buttons responsive */
    .page-register__btn-primary,
    .page-register__btn-secondary,
    .page-register__btn-large,
    .page-register__btn-glow,
    .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;
    }
    .page-register__cta-buttons {
        display: flex;
        flex-direction: column;
    }

    /* Section Titles and Descriptions */
    .page-register__section-title {
        font-size: 1.8em;
        margin-top: 40px;
        margin-bottom: 15px;
    }
    .page-register__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    /* Steps Section */
    .page-register__steps-section {
        padding: 40px 0;
    }
    .page-register__steps-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px;
    }
    .page-register__step-card {
        padding: 25px;
    }
    .page-register__step-image {
        max-width: 250px;
        margin-bottom: 20px;
    }
    .page-register__step-title {
        font-size: 1.5em;
    }
    .page-register__cta-bottom {
        margin-top: 40px;
    }

    /* Benefits Section */
    .page-register__benefits-section {
        padding: 50px 0;
    }
    .page-register__benefits-list {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px;
    }
    .page-register__benefit-item {
        padding: 25px;
    }
    .page-register__benefit-title {
        font-size: 1.4em;
    }

    /* FAQ Section */
    .page-register__faq-section {
        padding: 50px 0;
    }
    .page-register__faq-list {
        margin-top: 30px;
    }
    details.page-register__faq-item summary.page-register__faq-question {
        padding: 15px 20px;
    }
    .page-register__faq-qtext {
        font-size: 1em;
    }
    .page-register__faq-toggle {
        font-size: 20px;
        margin-left: 10px;
        width: 24px;
    }
    details.page-register__faq-item .page-register__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95em;
    }

    /* Final CTA Section */
    .page-register__final-cta-section {
        padding: 50px 0;
    }

    /* Universal image responsive styles for mobile */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-register__section,
    .page-register__card,
    .page-register__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}