/* ==========================================
   ENHANCED REGISTRATION PAGE CSS - BDM EDITION
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0f171e;
    /* BDM Dark Theme base */
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    color: #e1e6eb;
}

/* Animated Background Gradient */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at top right, rgba(0, 168, 225, 0.15), transparent 40%),
        radial-gradient(circle at bottom left, rgba(0, 168, 225, 0.1), transparent 40%);
    z-index: 0;
}

/* Container and Card Styles */
.registration-card {
    background: #1a242f;
    /* Prime Dark Panel */
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* ==========================================
   ENHANCED LEFT SIDEBAR
   ========================================== */
.registration-sidebar {
    background: linear-gradient(180deg, #0082af 0%, #00a8e1 100%) !important;
    position: relative;
    overflow: hidden;
}

.registration-sidebar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: sidebarShimmer 12s ease infinite;
    z-index: 0;
}

@keyframes sidebarShimmer {

    0%,
    100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    50% {
        transform: translate(-30%, -30%) rotate(180deg);
    }
}

.sidebar-content {
    position: relative;
    z-index: 1;
    color: #0f171e;
}

.brand-section {
    text-align: center;
    animation: slideInUp 0.8s ease-out;
}

.brand-icon {
    background: rgba(15, 23, 30, 0.15);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 1px solid rgba(15, 23, 30, 0.2);
}

.features-list {
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.feature-item {
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 600;
}

.feature-item:hover {
    transform: translateX(10px);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(15, 23, 30, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 23, 30, 0.2);
    color: #0f171e;
}

.stats-section {
    animation: slideInUp 0.8s ease-out 0.4s both;
}

.stat-number {
    background: rgba(15, 23, 30, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 30, 0.2);
    display: inline-block;
    color: #0f171e;
}

.stat-label {
    color: rgba(15, 23, 30, 0.8);
    font-weight: 500;
}

/* ==========================================
   ENHANCED FORM SECTION
   ========================================== */
.registration-form-section {
    background: #1a242f;
    /* Prime Dark base form */
    position: relative;
    z-index: 2;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.form-header h1 {
    color: #fff;
}

.form-header p {
    color: #8197a4 !important;
}

/* ==========================================
   STEP MANAGEMENT & VISIBILITY
   ========================================== */
.step-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.step-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.step-content.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.step-content.fade-out {
    animation: fadeOutDown 0.4s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* ==========================================
   ENHANCED STEP INDICATOR
   ========================================== */
.progress-section {
    animation: slideInDown 0.8s ease-out 0.2s both;
}

.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 0 2rem;
    position: relative;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

.step-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 3px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: #8197a4;
}

.step-item.active .step-circle {
    background: rgba(0, 168, 225, 0.1);
    /* Prime Light Blue Tint */
    border-color: #00a8e1;
    color: #00a8e1;
    box-shadow: 0 8px 20px rgba(0, 168, 225, 0.2);
    transform: scale(1.1);
}

.step-item.completed .step-circle {
    background: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
    color: #28a745;
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.2);
}

.step-number {
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.step-item.active .step-number,
.step-item.completed .step-number {
    transform: scale(0);
    opacity: 0;
}

.step-icon {
    position: absolute;
    font-size: 1.2rem;
    transform: scale(0);
    opacity: 0;
    transition: all 0.3s ease;
}

.step-item.active .step-icon,
.step-item.completed .step-icon {
    transform: scale(1);
    opacity: 1;
}

.step-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #8197a4;
    text-align: center;
    transition: all 0.3s ease;
}

.step-item.active .step-label {
    color: #00a8e1;
    font-weight: 700;
}

.step-item.completed .step-label {
    color: #28a745;
    font-weight: 700;
}

.step-connector {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.step-connector::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #00a8e1;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.step-connector.active::after {
    width: 100%;
}

/* ==========================================
   ENHANCED ROLE SELECTION
   ========================================== */
.role-selection-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.role-card-enhanced {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.role-card-enhanced::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 168, 225, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.role-card-enhanced:hover::before {
    transform: translateX(100%);
}

.role-card-enhanced:hover {
    border-color: #00a8e1;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 168, 225, 0.15);
}

.role-card-enhanced.selected {
    border-color: #00a8e1 !important;
    background: rgba(0, 168, 225, 0.05) !important;
    box-shadow: 0 15px 35px rgba(0, 168, 225, 0.2) !important;
    transform: translateY(-5px) !important;
}

.role-check-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.role-card-enhanced.selected .role-check-indicator {
    background: #00a8e1;
    border-color: #00a8e1;
    color: #0f171e;
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 4px 10px rgba(0, 168, 225, 0.3);
}

.role-card-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.role-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.role-description {
    color: #8197a4;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.feature-badge {
    background: rgba(0, 168, 225, 0.15);
    color: #00a8e1;
    border: 1px solid rgba(0, 168, 225, 0.3);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-card-enhanced.selected .feature-badge {
    background: #00a8e1;
    color: #0f171e;
}

/* ==========================================
   BUTTON ENHANCEMENTS & INPUTS
   ========================================== */
#nextStepBtn {
    padding: 1rem 2.5rem !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#nextStepBtn:disabled {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #8197a4 !important;
    cursor: not-allowed !important;
}

#nextStepBtn:not(:disabled),
.btn-enabled {
    background: #00a8e1 !important;
    border: none !important;
    color: #0f171e !important;
    box-shadow: 0 8px 20px rgba(0, 168, 225, 0.3) !important;
}

#nextStepBtn:not(:disabled):hover {
    background: #0082af !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 25px rgba(0, 168, 225, 0.4) !important;
}

/* Form Inputs Reset for Prime */
.form-control,
.form-select {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: #00a8e1 !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 168, 225, 0.25) !important;
    color: #fff !important;
}

.form-label {
    color: #8197a4;
    font-weight: 600;
}

.input-group-text {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #8197a4 !important;
}

/* Input icon wrapper custom overrides */
.input-icon-wrapper input,
.input-icon-wrapper select {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    padding-left: 45px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #8197a4;
    z-index: 10;
}

select option {
    background-color: #1a242f;
    color: #fff;
}

/* Typography Overrides */
h4,
h2 {
    color: #fff;
}

.text-muted {
    color: #8197a4 !important;
}

a {
    color: #00a8e1;
    text-decoration: none;
}

a:hover {
    color: #0082af;
    text-decoration: underline;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 992px) {
    .role-selection-grid {
        grid-template-columns: 1fr;
    }

    .step-indicator {
        gap: 1rem;
    }

    .step-circle {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 768px) {
    .form-container {
        padding: 1.5rem !important;
    }

    .role-card-enhanced {
        padding: 1.5rem;
    }

    .role-icon-large {
        font-size: 2.5rem;
    }

    .step-indicator {
        flex-direction: column;
        gap: 1rem;
    }

    .step-connector {
        width: 3px;
        height: 2rem;
        min-height: 2rem;
    }

    .step-connector::after {
        width: 100%;
        height: 0%;
        transition: height 0.5s ease;
    }

    .step-connector.active::after {
        height: 100%;
        width: 100%;
    }
}