/* Glass Umbrella Registration Page Styles */
/* This file contains all registration-specific styles to avoid inline CSS */
/* Updated for enhanced Glass Umbrella branding and Bootstrap override */

:root {
    /* Glass Umbrella Brand Colors - Enhanced */
    --gu-primary-purple: #7B44C1;
    --gu-accent-teal: #9AD5CA;
    --gu-brand-blue: #1E96FC;
    --gu-cloud-white: #EBEBEB;
    --gu-dark: #323031;
    --gu-bg-dark: #1a1a1a;
    
    /* Enhanced Glass Effects */
    --gu-glass-blur: 20px;
    --gu-glass-strong-blur: 30px;
    --gu-glass-bg-opacity: 0.12;
    --gu-glass-border-opacity: 0.25;
    
    /* Enhanced Shadows */
    --gu-shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.25), 0 2px 16px 0 rgba(0, 0, 0, 0.2);
    --gu-shadow-glass-hover: 0 12px 40px 0 rgba(123, 68, 193, 0.35), 0 4px 20px 0 rgba(0, 0, 0, 0.3);
    --gu-shadow-glass-selected: 0 12px 40px 0 rgba(123, 68, 193, 0.4), 0 4px 20px 0 rgba(154, 213, 202, 0.25);
}

/* Dark Theme Background */
body.registration-page {
    background-color: var(--gu-bg-dark) !important;
    color: var(--gu-cloud-white);
}

/* Persona Selection Cards - Glass Morphism Style */
.persona-selector {
    margin: 2rem 0;
}

.persona-selector h3 {
    color: var(--gu-cloud-white);
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.persona-card {
    background: rgba(50, 48, 49, 0.25);
    backdrop-filter: blur(var(--gu-glass-blur)) saturate(1.3);
    -webkit-backdrop-filter: blur(var(--gu-glass-blur)) saturate(1.3);
    border: 1.5px solid rgba(235, 235, 235, 0.15);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--gu-shadow-glass);
    /* Enhanced glass effect with inner highlight */
    background-image: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 50%, 
        rgba(154, 213, 202, 0.05) 100%);
    /* Uniform height for 2x2 grid */
    min-height: 280px;
    height: 280px;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.persona-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--gu-shadow-glass-hover);
    border-color: rgba(123, 68, 193, 0.4);
    background: rgba(50, 48, 49, 0.35);
    background-image: linear-gradient(135deg, 
        rgba(123, 68, 193, 0.1) 0%, 
        rgba(255, 255, 255, 0.08) 50%, 
        rgba(154, 213, 202, 0.1) 100%);
    backdrop-filter: blur(var(--gu-glass-strong-blur)) saturate(1.4);
    -webkit-backdrop-filter: blur(var(--gu-glass-strong-blur)) saturate(1.4);
}

.persona-card.selected {
    border-color: var(--gu-primary-purple);
    border-width: 2px;
    background: linear-gradient(135deg, 
        rgba(123, 68, 193, 0.2) 0%, 
        rgba(255, 255, 255, 0.1) 50%,
        rgba(154, 213, 202, 0.15) 100%);
    box-shadow: var(--gu-shadow-glass-selected),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 0 1px rgba(123, 68, 193, 0.3);
    backdrop-filter: blur(var(--gu-glass-strong-blur)) saturate(1.5);
    -webkit-backdrop-filter: blur(var(--gu-glass-strong-blur)) saturate(1.5);
}

.persona-card.selected::after {
    content: '✓';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gu-primary-purple);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.persona-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
    flex-shrink: 0;
}

.persona-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gu-cloud-white);
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.persona-description {
    color: rgba(235, 235, 235, 0.8);
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 500;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    min-height: 2.5rem;
    margin: 0.5rem 0;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.persona-benefits {
    margin-top: auto;  /* Push to bottom of card */
    padding-top: 0.5rem;
    border-top: 1px solid rgba(229, 231, 235, 0.5);
    flex-shrink: 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: rgba(235, 235, 235, 0.7);
    margin-bottom: 0.25rem;
    padding: 0 0.5rem;
    line-height: 1.3;
}

.benefit-item::before {
    content: '•';
    color: var(--gu-accent-teal);
    font-weight: bold;
    margin-right: 0.4rem;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Persona-specific form fields */
.persona-fields {
    display: none;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(123, 68, 193, 0.03) 0%, rgba(154, 213, 202, 0.03) 100%);
    border-radius: 8px;
    margin: 1rem 0;
    animation: slideDown 0.3s ease;
}

.persona-fields.active {
    display: block;
}

.persona-fields h4 {
    color: var(--gu-primary-purple);
    margin-bottom: 1rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Main Registration Card with Glass Effect */
.registration-card {
    border: none;
    border-radius: 20px;
    background: rgba(50, 48, 49, 0.35);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 8px 32px rgba(123, 68, 193, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    overflow: hidden;
    position: relative;
}

.registration-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--gu-primary-purple) 0%, 
        var(--gu-brand-blue) 50%, 
        var(--gu-accent-teal) 100%);
    z-index: 1;
}

.registration-card .card-body {
    padding: 3rem;
    position: relative;
    z-index: 2;
}

.registration-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.registration-header h1 {
    color: var(--gu-cloud-white);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, 
        var(--gu-accent-teal) 0%, 
        var(--gu-brand-blue) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.025em;
    /* Add text shadow for depth */
    filter: drop-shadow(2px 2px 4px rgba(123, 68, 193, 0.3)) 
            drop-shadow(0 0 20px rgba(123, 68, 193, 0.15));
}

.registration-header p {
    color: rgba(235, 235, 235, 0.8);
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Enhanced Account Details Section */
.account-details-header {
    color: var(--gu-accent-teal);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.account-details-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--gu-primary-purple) 0%, 
        var(--gu-accent-teal) 100%);
    border-radius: 2px;
}

/* Enhanced Form Labels with Better Contrast */
body .registration-form .form-label {
    font-weight: 700 !important;
    color: var(--gu-cloud-white) !important;
    margin-bottom: 0.75rem !important;
    font-size: 1rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    position: relative;
}

/* Enhanced persona-specific field labels */
body .persona-fields .form-label {
    color: var(--gu-primary-purple) !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* Age checkboxes styling for better readability */
.age-checkboxes,
.contribution-interests {
    background: rgba(50, 48, 49, 0.3);
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(235, 235, 235, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.age-checkboxes .form-check,
.contribution-interests .form-check {
    margin-bottom: 0.5rem;
}

.age-checkboxes .form-check-label,
.contribution-interests .form-check-label {
    color: var(--gu-cloud-white) !important;
    font-weight: 600 !important;
    font-size: 0.95rem;
    cursor: pointer;
}

.age-checkboxes .form-check-input,
.contribution-interests .form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.15rem;
    border: 2px solid var(--gu-primary-purple);
    cursor: pointer;
}

.age-checkboxes .form-check-input:checked,
.contribution-interests .form-check-input:checked {
    background-color: var(--gu-primary-purple);
    border-color: var(--gu-primary-purple);
}

.registration-form .form-control {
    border: 1.5px solid rgba(235, 235, 235, 0.2);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    color: var(--gu-cloud-white) !important;
    background-color: rgba(50, 48, 49, 0.5) !important;
}

/* Dropdown (select) specific styling */
.registration-form select.form-control {
    color: var(--gu-cloud-white) !important;
    background-color: rgba(50, 48, 49, 0.8) !important;
    cursor: pointer;
}

.registration-form select.form-control option {
    color: var(--gu-cloud-white) !important;
    background-color: var(--gu-dark) !important;
    padding: 0.5rem;
}

.registration-form .form-control:focus {
    border-color: var(--gu-primary-purple);
    box-shadow: 0 0 0 3px rgba(123, 68, 193, 0.1);
    outline: none;
}

/* Enhanced CTA Button with Premium Feel */
.registration-submit {
    background: linear-gradient(135deg, 
        var(--gu-primary-purple) 0%, 
        rgba(123, 68, 193, 0.9) 100%) !important;
    color: var(--gu-cloud-white) !important;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    width: 100%;
    box-shadow: 
        0 8px 25px rgba(123, 68, 193, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.registration-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    transition: left 0.6s ease;
}

.registration-submit:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 12px 35px rgba(30, 150, 252, 0.5),
        0 8px 25px rgba(123, 68, 193, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, 
        var(--gu-brand-blue) 0%, 
        var(--gu-primary-purple) 100%) !important;
    border-color: rgba(255, 255, 255, 0.3);
}

.registration-submit:hover::before {
    left: 100%;
}

.registration-submit:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.1s ease;
}

/* Marketing Opt-in Section */
.marketing-opt-in {
    background: linear-gradient(135deg, rgba(154, 213, 202, 0.05) 0%, rgba(123, 68, 193, 0.05) 100%);
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid rgba(123, 68, 193, 0.1);
}

.marketing-opt-in .form-check {
    padding-left: 1.75rem;
}

.marketing-opt-in .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.2rem;
    margin-left: -1.75rem;
    border: 2px solid var(--gu-primary-purple);
    cursor: pointer;
}

.marketing-opt-in .form-check-input:checked {
    background-color: var(--gu-primary-purple);
    border-color: var(--gu-primary-purple);
}

.marketing-opt-in .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(123, 68, 193, 0.2);
}

.marketing-opt-in .form-check-label {
    color: var(--gu-dark);
    font-weight: 500;
    cursor: pointer;
}

.marketing-opt-in .form-text {
    font-size: 0.85rem;
    color: #6B7280;
    margin-left: 1.75rem;
}

/* Enhanced Trust Indicators */
.trust-indicators {
    display: flex;
    justify-content: space-around;
    padding: 2rem 0;
    border-top: 1px solid rgba(123, 68, 193, 0.15);
    border-bottom: 1px solid rgba(123, 68, 193, 0.15);
    margin: 2.5rem 0;
    background: linear-gradient(135deg, 
        rgba(123, 68, 193, 0.02) 0%, 
        rgba(154, 213, 202, 0.02) 100%);
    border-radius: 12px;
}

.trust-item {
    text-align: center;
    flex: 1;
    padding: 0 1rem;
    transition: transform 0.3s ease;
}

.trust-item:hover {
    transform: translateY(-2px);
}

.trust-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.75rem;
    color: var(--gu-accent-teal);
    filter: drop-shadow(0 2px 4px rgba(154, 213, 202, 0.3));
}

.trust-text {
    font-size: 0.95rem;
    color: var(--gu-cloud-white);
    font-weight: 600;
    opacity: 0.9;
}

/* Social Login - Override Bootstrap */
.social-login-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-login-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Font Awesome Icons in Social Buttons - Enhanced specificity */
.social-login-btn i,
.social-login-btn .fab,
body .social-login-buttons .social-login-btn i,
body .social-login-buttons .social-login-btn .fab {
    font-size: 1.2rem !important;
    margin-right: 0.5rem !important;
    vertical-align: middle !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
}

/* Google button icon styling */
body .social-login-buttons .btn-outline-primary .fab.fa-google,
body .social-login-buttons .btn-outline-primary i.fab.fa-google {
    color: inherit !important;
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

/* GitLab button icon styling */
body .social-login-buttons .btn-outline-dark .fab.fa-gitlab,
body .social-login-buttons .btn-outline-dark i.fab.fa-gitlab {
    color: inherit !important;
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

/* Ensure Font Awesome brand icons display properly */
.fab::before {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
    font-style: normal !important;
}

/* Enhanced Social Login Buttons with Glass Umbrella Branding */
/* Higher specificity to override Bootstrap styles completely */
body .registration-form .btn-outline-primary,
body .social-login-buttons .btn-outline-primary {
    color: var(--gu-brand-blue) !important;
    border: 2px solid var(--gu-brand-blue) !important;
    background: rgba(30, 150, 252, 0.05) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-weight: 600 !important;
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
}

body .registration-form .btn-outline-primary:hover,
body .social-login-buttons .btn-outline-primary:hover {
    color: var(--gu-cloud-white) !important;
    background: linear-gradient(135deg, var(--gu-brand-blue) 0%, rgba(30, 150, 252, 0.9) 100%) !important;
    border-color: var(--gu-brand-blue) !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(30, 150, 252, 0.4), 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

body .registration-form .btn-outline-dark,
body .social-login-buttons .btn-outline-dark {
    color: var(--gu-dark) !important;
    border: 2px solid var(--gu-dark) !important;
    background: rgba(50, 48, 49, 0.05) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-weight: 600 !important;
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
}

body .registration-form .btn-outline-dark:hover,
body .social-login-buttons .btn-outline-dark:hover {
    color: var(--gu-cloud-white) !important;
    background: linear-gradient(135deg, var(--gu-dark) 0%, rgba(50, 48, 49, 0.9) 100%) !important;
    border-color: var(--gu-dark) !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(50, 48, 49, 0.4), 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

/* Login Link */
.login-link {
    color: var(--gu-accent-teal);
    font-weight: 500;
    text-decoration: none;
}

.login-link:hover {
    color: var(--gu-primary-purple);
    text-decoration: underline;
}

/* Enhanced Progress Indicator */
.registration-progress {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
    padding: 1rem 0;
}

.progress-step {
    width: 50px;
    height: 6px;
    background: rgba(123, 68, 193, 0.15);
    margin: 0 6px;
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        var(--gu-primary-purple), 
        var(--gu-brand-blue));
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-step.active {
    background: linear-gradient(90deg, 
        var(--gu-primary-purple) 0%, 
        var(--gu-brand-blue) 100%);
    box-shadow: 0 2px 8px rgba(123, 68, 193, 0.3);
}

.progress-step.active::before {
    left: 0;
}

/* Enhanced Alert Styling */
.glass-alert {
    border-radius: 12px;
    border: 1px solid rgba(154, 213, 202, 0.3);
    border-left: 4px solid var(--gu-accent-teal);
    background: linear-gradient(135deg, 
        rgba(154, 213, 202, 0.08) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 1.25rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(154, 213, 202, 0.1);
}

.alert-danger.glass-alert {
    border-left-color: #DC2626;
    border-color: rgba(220, 38, 38, 0.3);
    background: linear-gradient(135deg, 
        rgba(220, 38, 38, 0.08) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.1);
    color: #B91C1C;
}

.alert-info.glass-alert {
    border-left-color: var(--gu-brand-blue);
    border-color: rgba(30, 150, 252, 0.3);
    background: linear-gradient(135deg, 
        rgba(30, 150, 252, 0.15) 0%, 
        rgba(50, 48, 49, 0.1) 100%);
    box-shadow: 0 4px 12px rgba(30, 150, 252, 0.1);
    color: var(--gu-cloud-white);
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(20px)) {
    .persona-card {
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    }
    
    .persona-card:hover {
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 12px 32px rgba(123, 68, 193, 0.2);
    }
    
    .persona-card.selected {
        background: linear-gradient(135deg, 
            rgba(123, 68, 193, 0.1) 0%, 
            rgba(154, 213, 202, 0.1) 100%);
    }
    
    .persona-fields {
        background: rgba(248, 250, 252, 0.98);
    }
    
    .registration-card {
        background: rgba(255, 255, 255, 0.98);
    }
    
    body .registration-form input.form-control,
    body .registration-form select.form-control {
        background: rgba(255, 255, 255, 0.95) !important;
    }
}

/* Large screens - 2x2 grid with more space */
@media (min-width: 1200px) {
    .persona-card {
        height: 300px;
        min-height: 300px;
        padding: 2.25rem 1.75rem;
    }
    
    .persona-icon { font-size: 2.75rem; }
    .persona-title { font-size: 1.5rem; }
    .persona-description { 
        font-size: 1rem;
        padding: 0.75rem;
        line-height: 1.5;
    }
    .benefit-item { font-size: 0.9rem; }
}

/* Enhanced Responsive Design */
@media (max-width: 992px) {
    .registration-card .card-body {
        padding: 2.5rem 2rem;
    }
    
    /* Still 2 columns on tablets */
    .persona-card {
        margin-bottom: 1.5rem;
        height: 290px;
        min-height: 290px;
        padding: 1.75rem 1.5rem;
    }
    
    .persona-icon { font-size: 2.4rem; }
    .persona-title { font-size: 1.3rem; }
    .persona-description { 
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    .benefit-item { font-size: 0.85rem; }
    
    .trust-indicators {
        padding: 1.5rem 0;
    }
}

@media (max-width: 768px) {
    .registration-card .card-body {
        padding: 2rem 1.5rem;
    }

    /* Single column on smaller tablets */
    .persona-card {
        padding: 1.5rem 1.25rem;
        margin-bottom: 1rem;
        height: 260px;
        min-height: 260px;
    }
    
    .persona-icon { font-size: 2.2rem; }
    .persona-title { font-size: 1.2rem; }
    .persona-description { 
        font-size: 0.85rem;
        min-height: 2.5rem;
        line-height: 1.3;
    }
    .benefit-item { 
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
    }

    .registration-header h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .registration-header p {
        font-size: 1.1rem;
    }

    .social-login-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .trust-indicators {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .trust-item {
        padding: 1rem;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.5);
    }
    
    .progress-step {
        width: 35px;
        height: 5px;
    }
}

@media (max-width: 576px) {
    .registration-card {
        margin: 1rem;
        border-radius: 16px;
    }
    
    .registration-card .card-body {
        padding: 1.5rem 1rem;
    }
    
    .registration-header h1 {
        font-size: 1.75rem;
    }
    
    .registration-header p {
        font-size: 1rem;
    }
    
    /* Single column on mobile */
    .persona-card {
        padding: 1.25rem;
        height: 250px;
        min-height: 250px;
    }
    
    .persona-icon { font-size: 2rem; }
    .persona-title { font-size: 1.1rem; }
    .persona-description { 
        font-size: 0.8rem;
        line-height: 1.25;
        min-height: 2.2rem;
        padding: 0.4rem;
    }
    .benefit-item { 
        font-size: 0.75rem;
        margin-bottom: 0.15rem;
        padding: 0 0.3rem;
    }
    
    .registration-submit {
        padding: 16px 32px;
        font-size: 1.1rem;
    }
    
    .progress-step {
        width: 30px;
        height: 4px;
        margin: 0 3px;
    }
}

/* Very small screens - ensure single column */
@media (max-width: 480px) {
    .persona-card {
        height: 240px;
        min-height: 240px;
        margin-bottom: 0.75rem;
        padding: 1.2rem 1rem;
    }
    
    .persona-icon { font-size: 1.9rem; }
    .persona-title { font-size: 1rem; }
    .persona-description { 
        font-size: 0.78rem;
        min-height: 2rem;
        padding: 0.3rem;
    }
    .benefit-item { font-size: 0.72rem; }
}

/* Accessibility and Focus Management */
.registration-card,
.registration-card * {
    font-family: inherit;
}

/* Enhanced focus states for accessibility */
.persona-card:focus-visible {
    outline: 3px solid var(--gu-brand-blue);
    outline-offset: 2px;
    box-shadow: var(--gu-shadow-glass-hover), 0 0 0 3px rgba(30, 150, 252, 0.3);
}

.registration-submit:focus-visible {
    outline: 3px solid var(--gu-accent-teal);
    outline-offset: 2px;
}

body .registration-form input.form-control:focus-visible,
body .registration-form select.form-control:focus-visible {
    outline: 2px solid var(--gu-brand-blue) !important;
    outline-offset: 1px !important;
}

/* Improved keyboard navigation */
.persona-card {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.persona-card[tabindex="0"]:focus {
    transform: translateY(-2px);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .persona-card {
        border-width: 3px;
        background: rgba(255, 255, 255, 0.95);
    }
    
    .persona-card.selected {
        border-color: var(--gu-primary-purple);
        background: rgba(123, 68, 193, 0.1);
    }
    
    body .registration-form .form-label {
        color: #000000 !important;
        font-weight: 900 !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .persona-card,
    .registration-submit,
    .progress-step,
    .trust-item {
        transition: none;
    }
    
    .persona-card:hover,
    .registration-submit:hover {
        transform: none;
    }
    
    .registration-submit::before {
        display: none;
    }
}

/* Enhanced Form Controls with Glass Umbrella Styling */
/* Maximum specificity to override all Bootstrap styles */
body .registration-form input.form-control,
body .registration-form select.form-control,
body .registration-form textarea.form-control {
    border: 2px solid rgba(123, 68, 193, 0.2) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-weight: 500 !important;
    color: var(--gu-dark) !important;
    padding: 0.875rem 1.25rem !important;
    font-size: 1rem !important;
}

body .registration-form input.form-control:focus,
body .registration-form select.form-control:focus,
body .registration-form textarea.form-control:focus {
    border-color: var(--gu-primary-purple) !important;
    box-shadow: 0 0 0 4px rgba(123, 68, 193, 0.15), 0 4px 12px rgba(123, 68, 193, 0.1) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    transform: translateY(-1px) !important;
    outline: none !important;
}

body .registration-form input.form-control:hover:not(:focus),
body .registration-form select.form-control:hover:not(:focus),
body .registration-form textarea.form-control:hover:not(:focus) {
    border-color: rgba(123, 68, 193, 0.3) !important;
    background: rgba(255, 255, 255, 0.92) !important;
}