/**
 * KYC Registration Styles
 * Estilos para el paso de verificación KYC en el registro
 */

/* Contenedor principal de KYC */
.kyc-content {
    padding: 20px;
}

/* Sección inicial de KYC */
.kyc-initial {
    text-align: center;
    padding: 40px 20px;
}

.kyc-info {
    max-width: 600px;
    margin: 0 auto;
}

.info-icon {
    font-size: 64px;
    color: #667eea;
    margin-bottom: 20px;
}

.kyc-info h4 {
    color: #333;
    font-size: 24px;
    margin-bottom: 15px;
}

.kyc-info p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Lista de pasos de KYC */
.kyc-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
    text-align: left;
}

.kyc-step-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.kyc-step-item i {
    font-size: 24px;
    color: #667eea;
    min-width: 30px;
}

.kyc-step-item span {
    color: #333;
    font-size: 15px;
}

/* Contenedor de QR Code */
.kyc-qr-container {
    text-align: center;
    padding: 30px 20px;
}

.qr-header {
    margin-bottom: 30px;
}

.qr-header h4 {
    color: #333;
    font-size: 22px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.qr-header i {
    color: #667eea;
}

.qr-header p {
    color: #666;
    font-size: 15px;
}

/* Caja del QR code */
.qr-code-box {
    display: inline-block;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
    margin-bottom: 30px;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Instrucciones del QR */
.qr-instructions {
    max-width: 550px;
    margin: 0 auto 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: left;
}

.qr-instructions h5 {
    color: #333;
    font-size: 18px;
    margin-bottom: 15px;
}

.qr-instructions ol {
    color: #666;
    line-height: 1.8;
    padding-left: 25px;
}

.qr-instructions li {
    margin-bottom: 8px;
}

.qr-instructions strong {
    color: #333;
    font-weight: 600;
}

/* Estado del QR */
.qr-status {
    padding: 20px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    max-width: 550px;
    margin: 0 auto;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #856404;
    font-size: 16px;
}

.status-indicator i {
    font-size: 20px;
}

/* Resultados de KYC */
.kyc-result {
    text-align: center;
    padding: 40px 20px;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.result-icon.success {
    color: #28a745;
}

.result-icon.error {
    color: #dc3545;
}

.kyc-result h4 {
    color: #333;
    font-size: 26px;
    margin-bottom: 15px;
}

.kyc-result p {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

/* Detalles de KYC */
.kyc-details {
    max-width: 500px;
    margin: 30px auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: left;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item .label {
    color: #666;
    font-weight: 500;
}

.detail-item .value {
    color: #333;
    font-weight: 600;
    word-break: break-all;
}

.detail-item .value.approved {
    color: #28a745;
}

.detail-item .value.declined {
    color: #dc3545;
}

/* Responsive */
@media (max-width: 768px) {
    .kyc-content {
        padding: 15px;
    }
    
    .kyc-info {
        padding: 20px;
    }
    
    .info-icon {
        font-size: 48px;
    }
    
    .kyc-info h4 {
        font-size: 20px;
    }
    
    .qr-code-box {
        padding: 20px;
    }
    
    .qr-code-box canvas {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .qr-header h4 {
        font-size: 18px;
    }
    
    .qr-instructions {
        padding: 15px;
    }
    
    .result-icon {
        font-size: 60px;
    }
    
    .kyc-result h4 {
        font-size: 22px;
    }
}

/* Animación de spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.fa-spin {
    animation: spin 1s linear infinite;
}

/* Estilos adicionales para integración con register.css */
#step3 .kyc-content {
    min-height: 400px;
}

/* Botón de KYC personalizado */
.kyc-info .btn-primary {
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.kyc-info .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Mejoras visuales */
.kyc-initial,
.kyc-qr-container,
.kyc-result {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
