/* Role Selection Premium Styling - V3 Readability Overhaul */

:root {
    --primary-gradient: linear-gradient(135deg, #ff6d52 0%, #ff9a8b 100%);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    --card-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.1);
    --text-main: #1a1c1d;
    /* Deep Charcoal for maximum contrast */
    /* Slightly darker for better contrast */
    --text-muted: #4a5568;
    /* Darker grey for readable secondary text */
    /* Slightly darker muted text */
}

body {
    font-family: 'Open Sans', 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-main);
}

.role-selection-wrapper {
    padding: 60px 0;
    min-height: 80vh;
}

.reg-steps {
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    padding: 0 20px;
    /* Add padding to ensure lines don't touch edges */
}

.reg-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e0e0e0;
    /* Inactive line color */
    z-index: 0;
}

.reg-step {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
    color: var(--text-muted);
    font-size: 1.1rem;
    /* Increased size */
    font-weight: 700;
    /* Bold for steps */
    font-family: 'Montserrat', sans-serif;
    /* Increased margin */
    /* Increased from 0.95rem */
    /* Ensure step content is above the line */
    background-color: #fff;
    /* Match body bg for step background */
    padding: 0 12px;
    /* Padding to create space around text */
}

.reg-step.active {
    color: var(--text-main);
}

.reg-step-icon {
    width: 38px;
    /* Increased from 30px */
    height: 38px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    /* Space between icon and text */
    font-size: 0.95rem;
    /* Increased from 0.8rem */
    font-weight: 700;
}

.reg-step.active .reg-step-icon {
    background-color: #ff6d52;
}

/* New style for step number */
.step-num {
    font-size: 0.8rem;
    font-weight: 700;
}

/* Active line segment */
.reg-step.active+.reg-step::before {
    background-color: #ff6d52;
    /* Active line color */
}

.auth-box {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--card-shadow);
}

.auth-header h1 {
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 10px;
}

.section-divider {
    position: relative;
    margin: 50px 0 30px;
    text-align: center;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #dfe6e9, transparent);
    z-index: 1;
}

.section-divider h2 {
    position: relative;
    display: inline-block;
    padding: 0 25px;
    background: #f7f8fb;
    /* Match body bg */
    z-index: 2;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Role Card Styling */
.role-card {
    background: #fff;
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.role-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.role-card.active {
    border-color: #ff6d52;
    background: #fffcfb;
    box-shadow: 0 12px 25px rgba(255, 109, 82, 0.15);
}

.role-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #fff5f3;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.role-card:hover .role-icon-wrapper {
    background: var(--primary-gradient);
}

.role-icon-wrapper i {
    font-size: 28px;
    color: #ff6d52;
    transition: all 0.3s ease;
}

.role-card:hover .role-icon-wrapper i {
    color: #fff;
}

.role-title {
    font-size: 1.35rem;
    /* Increased */
    font-weight: 800;
    /* Extra Bold Montserrat */
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
}

.role-desc {
    font-size: 1.05rem;
    /* Increased */
    color: var(--text-muted);
    line-height: 1.5;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
}

/* Submit Button */
.btn-submit-premium {
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 15px 40px;
    box-shadow: 0 8px 20px rgba(255, 109, 82, 0.3);
    transition: all 0.3s ease;
}

.btn-submit-premium:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 30px rgba(255, 109, 82, 0.4);
    color: #fff;
}

.btn-submit-premium:active {
    transform: scale(0.98);
}

/* Footer Fix */
.footer-wrap {
    margin-top: 80px;
    /* Ensure footer doesn't inherit glass styles inappropriately */
}

@media (max-width: 768px) {
    .auth-box {
        padding: 25px 15px;
    }

    .role-selection-wrapper {
        padding: 30px 0;
    }
}