/* Registration Wizard Styles - Split Screen Layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #208bca 0%, #14a652 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding: 0;
    position: relative;
    overflow-x: hidden;
    margin: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background-image: url('../img/stripes.png');
    background-size: 600px 600px;
    background-repeat: no-repeat;
    opacity: 0.20;
    pointer-events: none;
    z-index: 0;
    transform: rotate(-90deg);
}

.page-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 1;
}
.wizard-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 1200px;
    height: 85vh;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
    z-index: 1;
    min-height: 600px;
}

/* Left Side: Image */
.wizard-image-side {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.image-content {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.wizard-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    padding: 40px 30px;
    color: white;
    text-align: left;
}

.image-text h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.image-text p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

/* Logo on Image Side */
.wizard-image-side .wizard-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    text-align: center;
    margin: 0;
}

/* Right Side: Form */
.wizard-form-side {
    display: flex;
    flex-direction: column;
    padding: 40px;
    overflow-y: auto;
    max-height: 100vh;
}

/* Logo Container */
.wizard-logo {
    text-align: center;
    margin-bottom: 30px;
}

.wizard-logo .logo {
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.wizard-logo .logo:hover {
    transform: scale(1.05);
}

/* Progress Bar */
.progress-container {
    background: transparent;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 30px;
}

.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-direction: row;
}

.progress-step {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    position: relative;
    gap: 10px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #6c757d;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: #28a745;
    color: white;
}

.step-label {
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.progress-step.active .step-label {
    color: #28a745;
    font-weight: 600;
}

.progress-line {
    display: none;
}

/* Content Container */
.content-container {
    flex: 1;
    /* overflow-y: auto; */
}

.wizard-header {
    text-align: center;
    margin-bottom: 30px;
}

.wizard-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.wizard-header p {
    color: #6c757d;
    font-size: 14px;
}

/* Step Content */
.step-content h2 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.step-description {
    color: #6c757d;
    margin-bottom: 25px;
    font-size: 14px;
}

/* Form Styles */
.wizard-form .form-label {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
}

.wizard-form .form-control,
.wizard-form .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.wizard-form .form-control:focus,
.wizard-form .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Camera Section */
.camera-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    margin-bottom: 25px;
}

.camera-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

#camera-video {
    width: 280px;
    height: 210px;
    border-radius: 12px;
    background: #000;
    display: none;
}

#camera-canvas {
    display: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.camera-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.camera-tips {
    background: #e3f2fd;
    border-radius: 8px;
    padding: 14px;
    text-align: left;
    max-width: 280px;
    margin: 0 auto;
}

.tips-header {
    font-weight: 600;
    color: #1976d2;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.camera-tips ul {
    margin: 0;
    padding-left: 18px;
}

.camera-tips li {
    margin-bottom: 4px;
    font-size: 13px;
    color: #1565c0;
}

/* Documents Section */
.documents-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.document-upload {
    text-align: center;
}

.upload-icon {
    width: 70px;
    height: 70px;
    background: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.upload-icon i {
    font-size: 28px;
    color: #1976d2;
}

.document-upload h4 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.document-upload p {
    color: #6c757d;
    margin-bottom: 18px;
    font-size: 14px;
}

/* Wizard Actions */
.wizard-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 5px;
    padding-top: 25px;
    border-top: 0px solid #e9ecef;
}

.wizard-actions .btn {
    padding: 10px 20px;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    color: white;
    text-decoration: none;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #1e7e34;
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Footer */
.wizard-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.wizard-footer p {
    color: #6c757d;
    margin: 0;
    font-size: 14px;
}

.wizard-footer a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.wizard-footer a:hover {
    text-decoration: underline;
}

/* Alert Styles */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .wizard-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    /* .wizard-image-side {
        display: none;
    } */
    
    .wizard-form-side {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .page-wrapper {
        padding: 10px;
    }
    
    .wizard-container {
        border-radius: 12px;
    }
    
    .wizard-form-side {
        padding: 20px;
    }
    
    .wizard-logo .logo {
        width: 45px;
        height: 45px;
    }
    
    .progress-bar {
        gap: 15px;
    }
    
    .progress-step {
        gap: 8px;
    }
    
    .step-label {
        font-size: 12px;
    }
    
    .step-number {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .wizard-header h1 {
        font-size: 20px;
    }
    
    .step-content h2 {
        font-size: 18px;
    }
    
    .wizard-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .wizard-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .camera-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .camera-controls .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-wrapper {
        padding: 8px;
    }
    
    .wizard-form-side {
        padding: 15px;
    }
    
    .wizard-logo .logo {
        width: 40px;
        height: 40px;
    }
    
    .wizard-header h1 {
        font-size: 18px;
    }
    
    .step-content h2 {
        font-size: 16px;
    }
    
    .progress-bar {
        gap: 12px;
    }
    
    .step-label {
        font-size: 11px;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .wizard-actions .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    #camera-video {
        width: 240px;
        height: 180px;
    }
}

/* Consent checkbox */
.consent-check {
    background: #f0f7ff;
    border: 1px solid #c3ddf6;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.consent-check .form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #208bca;
}

.consent-check .form-check-label {
    font-size: 0.8rem;
    color: #374151;
    line-height: 1.5;
    cursor: pointer;
}

/* Disabled Continue button state */
.btn-next:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: auto; /* keep cursor visible */
}

/* ── KYC / Ghana Card upload ── */
.kyc-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.kyc-card-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 16px;
    font-size: 0.9rem;
    color: #374151;
}

.kyc-tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
}

.kyc-tab {
    flex: 1;
    padding: 9px 12px;
    border: none;
    background: #fff;
    font-size: 0.85rem;
    color: #6b7280;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.kyc-tab:first-child {
    border-right: 1px solid #e2e8f0;
}

.kyc-tab.active {
    background: #f0f7ff;
    color: #208bca;
    font-weight: 600;
}

.kyc-tab:hover:not(.active) {
    background: #f9fafb;
}

.kyc-pane {
    padding: 14px 16px;
}

/* Camera */
.kyc-camera-wrap {
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    max-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kyc-camera-wrap video {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    display: block;
}

.kyc-cam-error {
    margin-top: 10px;
    padding: 10px 14px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #664d03;
}

.kyc-camera-controls {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* Preview thumbnail */
.kyc-preview {
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #14a652;
}

.kyc-preview img {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    display: block;
}

.kyc-preview p {
    padding: 10px 14px;
    margin: 0;
    font-size: 0.85rem;
}

/* ── Ghana Card Reference Sample ── */
.kyc-reference {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-bottom: 1px solid #bae6fd;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.kyc-ref-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #0369a1;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.kyc-ref-img {
    height: 56px;
    width: auto;
    max-width: 120px;
    border-radius: 6px;
    border: 2px solid #7dd3fc;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(3,105,161,.15);
}

.kyc-ref-tips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.kyc-ref-tips span {
    font-size: 0.7rem;
    background: #fff;
    border: 1px solid #bae6fd;
    border-radius: 20px;
    padding: 2px 9px;
    color: #0369a1;
    white-space: nowrap;
}

.kyc-ref-tips span:last-child {
    border-color: #fca5a5;
    color: #dc2626;
    background: #fef2f2;
}

/* ── Quality Check Message ── */
.kyc-quality-msg {
    margin-top: 8px;
    border-radius: 9px;
    padding: 10px 14px;
    font-size: 0.82rem;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    line-height: 1.5;
}

.kyc-quality-ok {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #15803d;
}

.kyc-quality-warn {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
}

.kyc-quality-bad {
    background: #fef2f2;
    border: 1.5px solid #fca5a5;
    color: #991b1b;
}
