:root {
    --primary: #4361ee;
    --primary-light: #4895ef;
    --primary-dark: #3a0ca3;
    --success: #4cc9f0;
    --error: #f72585;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --border: #dee2e6;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f5f7fa;
    color: var(--dark);
    line-height: 1.6;
}

.kyc-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.kyc-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.kyc-header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.kyc-header p {
    color: var(--gray);
}
.success-message {
    text-align: center;
    padding: 2rem;
}

.success-icon-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background-color: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #c8e6c9;
}

.success-icon {
    font-size: 3rem;
    color: #4caf50;
}

.success-title {
    font-size: 1.8rem;
    color: #2e7d32;
    margin-bottom: 1rem;
    font-weight: 600;
}

.success-text {
    color: #616161;
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.processing-info {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #757575;
}

.success-btn {
    padding: 0.75rem 2rem;
    background-color: #4caf50;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    color: white;
    font-weight: 500;
}

.success-btn:hover {
    background-color: #3d8b40;
    transform: translateY(-2px);
}
.kyc-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.kyc-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--border);
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--border);
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    border: 4px solid white;
    transition: all 0.3s ease;
}

.step-title {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 500;
}

.step.active .step-number {
    background-color: var(--primary);
    color: white;
}

.step.active .step-title {
    color: var(--dark);
    font-weight: 600;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.upload-section {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.upload-section.single {
    justify-content: center;
}

.upload-box {
    flex: 1;
    min-width: 250px;
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 200px;
    background-color: var(--light);
}

.upload-box:hover {
    border-color: var(--primary);
    background-color: white;
}

.upload-box i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.upload-box p {
    font-weight: 500;
    color: var(--dark);
    text-align: center;
}

.preview {
    width: 100%;
    height: 180px;
    margin-top: 1rem;
    position: relative;
    background-color: #f1f3f5;
    border-radius: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--error);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.review-section {
    background-color: var(--light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.review-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.review-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.review-item span:first-child {
    font-weight: 500;
    color: var(--gray);
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.form-check input {
    margin-right: 0.75rem;
}

.form-actions {
    display: flex;
    justify-content: space-between;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 0.95rem;
}

.btn-prev {
    background-color: white;
    color: var(--gray);
    border: 1px solid var(--border);
}

.btn-prev:hover {
    background-color: var(--light);
}

.btn-next,
.btn-submit {
    background-color: var(--primary);
    color: white;
}

.btn-next:hover,
.btn-submit:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.loader {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .kyc-container {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .upload-section {
        flex-direction: column;
    }
    
    .upload-box {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .kyc-steps {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .kyc-steps::before {
        display: none;
    }
    
    .step {
        flex-direction: row;
        gap: 1rem;
        align-items: center;
        width: 100%;
    }
    
    .step-title {
        text-align: left;
    }
}